vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Top xx Reputation Forum Home (https://vborg.vbsupport.ru/showthread.php?t=117959)

Adam21 09-02-2007 06:50 AM

How do we enable it to display column by column in the sidebar in forumhome?Thanks

TigerWare 09-11-2007 03:27 PM

Quote:

Originally Posted by TigerWare (Post 1327638)
I'd like to add my voice to adding a collapse option too, just to make it consistent with the other tables there.


Hope you don't mind Atakan KOC, but I made a modification to your template FORUMHOME_toprep, which allows the table to be collapsable like the others. Please feel free to steal this slight alteration. :up:

Your current html:-
HTML Code:

<tbody>
  <tr><td class="thead" colspan="2">
      $vbphrase[tr_popular]
  </td></tr>
</tbody>
<tbody>
  <tr>
    <td class="alt2"><a href="memberlist.php">
      <img src="$stylevar[imgdir_misc]/stats.gif" alt="" border="0" />
    </td>
    <td class="alt1" width="100%">
      <div class="smallfont">$sonuclaryaz</div>
    </td>
  </tr>
</tbody>

Changed to this:-
HTML Code:

<thead>
  <tr><td class="thead" colspan="2">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('topxxxreputation')"><img id="collapseimg_topxxxreputation" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_topxxxreputation].gif" alt="" border="0" /></a>
    $vbphrase[tr_popular]
  </td></tr>
</thead>
<tbody id="collapseobj_topxxxreputation" style="$vbcollapse[collapseobj_topxxxreputation]">
  <tr>
    <td class="alt2"><a href="memberlist.php">
      <img src="$stylevar[imgdir_misc]/stats.gif" alt="" border="0" />
    </td>
    <td class="alt1" width="100%">
      <div class="smallfont">$sonuclaryaz</div>
    </td>
  </tr>
</tbody>


adom7 09-27-2007 06:33 AM

Good job! Thanks, install.
Is it possible to add more users for it ? not 5 but 10?
I'd also like to add my voice to adding a collapse option too, just to make it consistent with the other tables there.

teşekk?rler atakan bey,
?ye listesini 5 yerine 10 yapma ya da dahası i?in bir alternatif d?ş?nebilinir mi?
yukarıda biri daha s?ylemiş, kişisel tercihe g?re column acma kapama fonksiyonu olması m?mk?n m??

-y?klendi-

Adam21 09-30-2007 04:58 AM

In your Admincp,under Products & Plug-Ins,under Product:Top Reputation Forum Home,edit the Top xx Reputation Forum Home under Hook Location - forumhome_start ,find

Code:

$adet<10)
Edit both same values in the plug-in that you want to display as the top reputation.

To remove the extra comma at the last member,find

Code:

$sonuclaryaz .= "<a href=\"member.php?u=".$getrep['userid']."\">".$getrep['username']."</a> (".$getrep['reputation'].") , ";
Remove the comma in red

katilkuzu 10-12-2007 09:35 AM

good job dude.

yoyoyoyo 10-12-2007 10:15 AM

Here is an updated xml file that fixes some bugs and also allows the box to be collapsed

VIPER-MAN 03-20-2008 11:04 PM

Anyone know if this works in 3.7 RCx?

anwar.abdullakh 04-16-2008 09:12 PM

can anyone tell me how I can't exclude admins from this top stats?

VIPER-MAN 06-11-2008 05:08 PM

FYI -- this works on my 3.7.1 install ... and even was able to modify the code to exclude admin's from the Top Rep list.

VIPER-MAN 06-11-2008 05:11 PM

Quote:

Originally Posted by anwar.abdullakh (Post 1492492)
can anyone tell me how I can't exclude admins from this top stats?

I did this by modifying the code (AdminCP - Plugin Manager) select "Top XXX" and append a WHERE clause to the SQL statement.

My statement now reads:

$db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid <> 1 ORDER BY reputation DESC LIMIT 0, $adet");

This omits the main admin user. As for all admins, you'd have to exclude the usergroup, vs the userid.

Good luck.


All times are GMT. The time now is 05:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01059 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete