Top Posters on Index

Here my mods and history gets moved when validated and released to the phpbb.com MODDB

Re: Top Posters on Index

Postby alterastro » Mon Feb 23, 2009 2:57 pm

Hi Lefty

Thanks for a great mod! I've been using it for months now with no problems.

We have several groups set up and would like for those members not to show on the listing. Up to now I have simply added them to the 'Enter Specific ID' box, but now it won't let me add any more. It has run out of characters. How can I make this box bigger, so that I can add more user ID's? or is there another way to add members or groups other than Admin or Mods?

Many thanks

Nick ;)
alterastro
Newbie/Neuling
 
Posts: 5
Joined: Mon Feb 23, 2009 2:50 pm

Re: Top Posters on Index

Postby lefty » Mon Feb 23, 2009 9:38 pm

i have not tested this but you can try:

open inlcudes/functions_topposter.php
find
Code: Select all
   $spammer_user_ids = ($config['top_posters_excl_ids']) ? explode(",", $config['top_posters_excl_ids']) : array();


after, add
Code: Select all
  $selected_groups = array(2,3); // enter here the group_id's of the groups that should be excluded
  $sql = 'SELECT *
      FROM ' . USER_GROUP_TABLE . '
      WHERE ' . $db->sql_in_set('group_id', $selected_groups) . '
         AND user_id = ' . $user->data['user_id'];
      $result = $db->sql_query($sql);
      while ($row = $db->sql_fetchrow($result))
   {
    $spammer_user_ids[] = $row['user_id'];
  }
  $db->sql_freeresult($result);

in above example, users that are in usergroup 2 and 3 will be excluded.

as i said i have not tested this at all so please make a backup before you try it out.
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Top Posters on Index

Postby alterastro » Tue Feb 24, 2009 5:46 pm

Hi Lefty

Thanks for that. I tried it but unfortunately it doesn't work.

My test forum is at http://forumtest.fourwheeldriveclub.com and it's basically any group with a colour I want excluded.

Any other suggestions?

Thanks

Nick
alterastro
Newbie/Neuling
 
Posts: 5
Joined: Mon Feb 23, 2009 2:50 pm

Re: Top Posters on Index

Postby lefty » Tue Feb 24, 2009 8:23 pm

not right now, sorry, i had eye surgery today so can't spend too long in front of the screen right now. any chance you could provide me with a temp ftp account to your test area so i can have a look directly there?
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Top Posters on Index

Postby alterastro » Tue Feb 24, 2009 11:44 pm

Yeah sure, I'll PM you the details :thumbsup:
alterastro
Newbie/Neuling
 
Posts: 5
Joined: Mon Feb 23, 2009 2:50 pm

Re: Top Posters on Index

Postby lefty » Wed Feb 25, 2009 6:03 pm

cheers, i will have a look.

am i correct to assume that cupcake should not appear there? just want to be sure i know what it is ur after.
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Top Posters on Index

Postby alterastro » Wed Feb 25, 2009 6:37 pm

Yes, that's correct - basically the only ones showing should be 'registered users'

Cheers

Nick
alterastro
Newbie/Neuling
 
Posts: 5
Joined: Mon Feb 23, 2009 2:50 pm

Re: Top Posters on Index

Postby lefty » Wed Feb 25, 2009 6:44 pm

ok, when you mean 'registered user' you mean users that are not in other groups as i assume that users in the special groups are also in the registered user group.
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Top Posters on Index

Postby alterastro » Wed Feb 25, 2009 7:22 pm

Yes, sorry, thts correct. I only want it to show 'normal' users, not the ones in special groups with coloured and bold names?!

Thanks

Nick
alterastro
Newbie/Neuling
 
Posts: 5
Joined: Mon Feb 23, 2009 2:50 pm

Re: Top Posters on Index

Postby g0tmad » Thu Mar 12, 2009 3:56 pm

Hi lefty...

I use AeroBlack style.

Can you edit for me index_body.html ?? :(
Attachments
index_body.rar
(1.46 KiB) Downloaded 421 times
g0tmad
Newbie/Neuling
 
Posts: 9
Joined: Mon Feb 23, 2009 2:01 pm

Re: Top Posters on Index

Postby lefty » Thu Mar 12, 2009 8:20 pm

try this code instead, havent tested it tho:

Code: Select all
<!-- IF TOP_POSTERS_LIST -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="18" height="18"><img src="{T_THEME_PATH}/images/tl.png" width="18" height="18" alt="" /></td>
    <td height="18" style="background:url('{T_THEME_PATH}/images/tm.png');"></td>
    <td width="18" height="18"><img src="{T_THEME_PATH}/images/tr.png" width="18" height="18" alt="" /></td>
  </tr>
  <tr>
    <td width="18" style="background:url('{T_THEME_PATH}/images/ml.png');"></td>
    <td>
   <table class="tablebg" width="100%" cellspacing="0">
   <tr>
      <td class="cat" colspan="2"><h4>{L_TOP_POSTERS}</h4></td>
   </tr>
   <tr>
      <td class="row1" align="center" valign="middle" <!-- IF TOP_POSTERS_HOURS_LIST --> rowspan="2" <!-- ENDIF -->><img src="{T_THEME_PATH}/images/stats.png" alt="{L_TOP_POSTERS}" /></td>
      <td class="row1" width="100%"><p class="genmed">{TOP_POSTERS_LIST}</p></td>
   </tr>
<!-- IF TOP_POSTERS_HOURS_LIST -->
   <tr>
      <td class="row1" width="100%"><p class="genmed"><i>{TOP_POSTERS_HOURS}</i>{TOP_POSTERS_HOURS_LIST}</p></td>
   </tr>
<!-- ENDIF -->
   </table>
       </td>
    <td width="18" style="background:url('{T_THEME_PATH}/images/mr.png');"></td>
  </tr>
  <tr>
    <td width="18" height="18" align="right"><img src="{T_THEME_PATH}/images/bl.png" width="18" height="18" alt="" /></td>
    <td height="18" style="background:url('{T_THEME_PATH}/images/bm.png');"></td>
    <td width="18" height="18"><img src="{T_THEME_PATH}/images/br.png" width="18" height="18" alt="" /></td>
  </tr>
</table>
<!-- ENDIF -->

lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Top Posters on Index

Postby g0tmad » Thu Mar 12, 2009 9:31 pm

Tnx. It's work! ;)
g0tmad
Newbie/Neuling
 
Posts: 9
Joined: Mon Feb 23, 2009 2:01 pm

Re: Top Posters on Index

Postby g0tmad » Thu Mar 12, 2009 9:36 pm

Another problem.. :S

{ TOP_POSTERS }
{ TOP_POSTERS }

eNergize* (29)

eNergize* (28)

This is c/p..

It's work, but double :/
g0tmad
Newbie/Neuling
 
Posts: 9
Joined: Mon Feb 23, 2009 2:01 pm

Re: Top Posters on Index

Postby lefty » Thu Mar 12, 2009 9:39 pm

g0tmad wrote:Another problem.. :S

{ TOP_POSTERS }
{ TOP_POSTERS }

eNergize* (29)

eNergize* (28)

This is c/p..

It's work, but double :/

sorry, not sure i understand. do you have a screenshot or link?
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Top Posters on Index

Postby g0tmad » Thu Mar 12, 2009 10:01 pm

g0tmad
Newbie/Neuling
 
Posts: 9
Joined: Mon Feb 23, 2009 2:01 pm

Re: Top Posters on Index

Postby lefty » Thu Mar 12, 2009 10:49 pm

looks ok to me, 29 posts in total, 28 in the last 24hrs
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Top Posters on Index

Postby g0tmad » Fri Mar 13, 2009 7:23 am

When you visit as a guest, it's looks ok, but if you visit forum as a registered user, it's not ok.. :/
g0tmad
Newbie/Neuling
 
Posts: 9
Joined: Mon Feb 23, 2009 2:01 pm

Re: Top Posters on Index

Postby g0tmad » Fri Mar 13, 2009 8:12 am

This is screenshot.
Attachments
topposters.JPG
(7.54 KiB) Downloaded 29 times
g0tmad
Newbie/Neuling
 
Posts: 9
Joined: Mon Feb 23, 2009 2:01 pm

Re: Top Posters on Index

Postby lefty » Fri Mar 13, 2009 7:10 pm

if you use a language other then english you will need to make edits to those language files as well ;)
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Top Posters on Index

Postby g0tmad » Sun Mar 15, 2009 11:37 pm

I use British English.. :S I don't know where is error.. :S
g0tmad
Newbie/Neuling
 
Posts: 9
Joined: Mon Feb 23, 2009 2:01 pm

Re: Top Posters on Index

Postby lefty » Mon Mar 16, 2009 8:56 pm

thats quite strange as the language vars are missing when i look at your screenshot. :nerdglasses:
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Top Posters on Index

Postby ~HG~ » Sun Mar 22, 2009 9:40 pm

g0tmad wrote:This is screenshot.



The problem of brackets showing up on the index page is related to the fact that the file that has been edited is the incorrect file.

language/en/acp/common.php is edited instead of language/en/common.php
~HG~
~HG~
Newbie/Neuling
 
Posts: 2
Joined: Sun Mar 22, 2009 9:37 pm
Location: Australia

Re: Top Posters on Index

Postby Noctis88 » Thu Mar 26, 2009 5:26 am

Hello lefty, thank you for you awesome MOD! i've been trying to install it, but i found some problem.. :scared3:

Im using black_pearl as my forum skin and i followed the prosilver and subsilver 2 installer guide, but i found that the index_body on black_pearl was different with that two styles... so what im gonna do if i wanted to install it on my black_pearl ?

Thank you ^^
Noctis88
Newbie/Neuling
 
Posts: 1
Joined: Thu Mar 26, 2009 5:20 am

Re: Top Posters on Index

Postby lefty » Fri Mar 27, 2009 8:36 pm

hi, i will try and take a look this weekend. just in case, pse remind me should i forget. :happysmerk:
lefty aka The Heikze! :eyebrowe:

Heiko Carstens
http://www.lefty74.com

Would you like me to install one of my mods for you? Read here for details
lefty
Abschlussklasse R10c
 
Posts: 1357
Joined: Mon Feb 06, 2006 1:20 am
Location: Den Haag - NL

Re: Top Posters on Index

Postby Straihn » Tue Sep 29, 2009 12:39 am

howdy to all Lefty74 Community !
i can't see the Top Posters at Index, i Use SubSilver+ (a style for SubSilver)

i put the codes ok, and the SQL as well; what happens ?

Sorry 4 my bad english!
Straihn
Newbie/Neuling
 
Posts: 2
Joined: Tue Sep 29, 2009 12:28 am
Location: Oropesa del Mar

PreviousNext

Return to [3.0.x] MOD Database Releases

Who is online

Users browsing this forum: No registered users and 2 guests

cron