vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Top 'X' Stats (https://vborg.vbsupport.ru/showthread.php?t=59609)

1nf3rn0 07-02-2005 08:37 PM

replace:

PHP Code:

SELECT useridusernameposts FROM " . TABLE_PREFIX . "user ORDER BY posts DESC LIMIT 0$displayrecords 

with:

PHP Code:

SELECT useridusernameposts FROM " . TABLE_PREFIX . "user WHERE userid NOT IN (1,2,3ORDER BY posts DESC LIMIT 0$displayrecords 

change 1,2,3 to the userid(s) of the users you wish to exclude.

mike3k 07-03-2005 06:36 AM

ok fixed it

Didnt help that in the readme of the mod it shows you the templates with ' on them remove them and your set lmao....Thanks for your help 1nf3rn0 its working fine now

cheers again

Dont know a mod that tells who you has viewed a thread do you>?

Thanks

1nf3rn0 07-03-2005 08:13 AM

sure do bro!
https://vborg.vbsupport.ru/showthread.php?t=61222

1nf3rn0 07-03-2005 08:15 AM

Quote:

Originally Posted by mike3k
ok fixed it

Didnt help that in the readme of the mod it shows you the templates with ' on them remove them and your set lmao....Thanks for your help 1nf3rn0 its working fine now

cheers again

Dont know a mod that tells who you has viewed a thread do you>?

Thanks

oh sh1t..hahaha..yeah i guess that would help....glad you got it going bro!

mike3k 07-03-2005 04:33 PM

thanks m8 :)

King Kovifor 07-05-2005 04:00 PM

Quote:

Originally Posted by 1nf3rn0
yes sir..ask and ye shall receive bud!

look for:

PHP Code:

$excludedforums "13"// forums to be excluded from latest threads. Format "0,5,7" 

and just add the forum id's you want excluded!

Where would this code be located at?

Damien2005 07-06-2005 03:21 PM

Quote:

Originally Posted by King Kovifor
Where would this code be located at?

If you search in your index.php you will find it :rolleyes:

Damien2005 07-06-2005 03:24 PM

I like the Top X stats very much
But is there a way to color the usernames like in the useronline section?
I have see it on a other forum but cant find how to do it.. some how can help?

King Kovifor 07-10-2005 01:43 PM

Quote:

Originally Posted by Damien2005
If you search in your index.php you will find it :rolleyes:

Thanks... I'll do that soon.

King Kovifor 07-14-2005 10:50 PM

Small mistake in template: forumhome_stats_poster. You forgot a Td Class in there. So the template SHould be:

Code:

                        <tr>
                                <td class="smallfont" width="100%"><b><a href="member.php?u=$getstats_poster[userid]">$getstats_poster[username]</a></b></td>
                                <td class="smallfont" align="right"><b>$getstats_poster[posts]</b></td>
                        </tr>

It's in red.

BeePee 07-16-2005 04:20 PM

Hi m8,

Great hack you made. I took the liberty to make a few improvements:
- Moved the changes in the FORUMHOME into a new template thus change in FORUMHOME is a oneliner now;
- Added some AdimnCP settings so you can control the 3 variables ($displayrecords, $excludedforums and $threadchars) plus a setting to switch the hack on or off.

Enjoy

csidlernet 07-18-2005 06:10 AM

thanks man.

jluerken 07-18-2005 10:49 AM

Will there be a version for vb3.5 also?

mfarmerhi 07-22-2005 06:54 AM

installed BPs update. Thanks guys.

InfiniteWebby 07-28-2005 11:26 AM

<a href="https://vborg.vbsupport.ru/showthread.php?p=743846#post743846" target="_blank">https://vborg.vbsupport.ru/showt...846#post743846</a> <- vB3.5 RC 1 version.

gregsbaby64 07-31-2005 12:09 PM

I just upgraded to vB 3.0.8 and now the stats are empty, totally. I double checked all the templates, everything is still there.

Is it just one of those things that I have to wait to see if it's still like this tomorrow, since I upgraded this morning, or is there a way to grab the old stats from this morning and refresh the board?

Gads, I hope this makes sense.

Edited to post:

I'm a geek. I forgot to update my index.php file.

:p Don't mind me. Move along, nothing to see here.

Sleepyk 07-31-2005 10:04 PM

^i did same thing, it wont work with 3.0.8

funkmeister 08-02-2005 12:24 AM

Quote:

Originally Posted by Sleepyk
^i did same thing, it wont work with 3.0.8

It works on 3.08 for me, perhaps you have another mod that's conflicting with it?

BeePee 08-02-2005 05:55 PM

Yes, it does work with v3.0.8

Please check that you didn't loose any of the implemented changes when you upgraded your forum soft ;)

auz1111 08-04-2005 10:30 PM

yeah it is working with my v3.0.8

KoC 08-07-2005 02:38 PM

I have a Problem.

There is no data in the Script. You can see it here http://www.turkforum.in
Please help me to resolve this problem

faast 08-07-2005 04:20 PM

can I see this in action somewhere? Share your link!

imported_Vengeance2k0 08-10-2005 08:28 PM

I get a parse error with it.

Code:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/killer/public_html/Forums/index.php on line 49

edit: i fixed it nevermind this.

Mark.B 08-13-2005 09:15 AM

One issue with this hack is that if you have a usergroup whose posts go into pre-moderation before appearing, such posts show up in the stats box.

Anyone know how to fix this?

InfiniteWebby 08-13-2005 10:38 AM

Quote:

Originally Posted by Mark.B
One issue with this hack is that if you have a usergroup whose posts go into pre-moderation before appearing, such posts show up in the stats box.

Anyone know how to fix this?

In the index.php find:

Code:

WHERE NOT ISNULL(thread.threadid)
And replace with:

Code:

WHERE NOT ISNULL(thread.threadid) AND thread.visible <> 0
However this will only check if the thread requires moderation and not that of the latest post. It also doesn't check if the user has permissions to view moderated threads.

Edit: I didn't realise I was replying to my vB3.0 version of the hack. The above code might work. I don't know as I have no way of supporting my vB3.0 hacks.

HO3R 08-19-2005 04:08 PM

Great hack !!

Fully installed and fully working ;)
Great !

Greetz

iinstall is clicked

Duncan 09-10-2005 04:43 PM

My forum is located at: http://habbodiscussion.com

How do I get the "Top Posters" font smaller, its larger then the others.

axi 10-06-2005 02:00 PM

How would i go about it not to show the threads from a private forum ?

axi 10-06-2005 02:08 PM

oh found it!!

thanks ppl

DrewzR/T 10-11-2005 06:24 PM

clicks install!!!

Edison Chen 10-15-2005 06:47 PM

Isn't there a way to hide the forums that the usergroups, which don't have permission to view it won't see them? I know the line in the hack, but it is too annoying to update that every time and also adding a number to a list all the time is also something I wouldn't want to do. The main issue is that I want them to show if you can see the forum, like we have three schools. If you can see one of the schools, you should be able to see the new posts in your school and your school alone. Is there really no way to do this???! So many have asked before how to hide forums and all, is this thread mostly abandoned?

Club3G 10-16-2005 12:54 PM

Installed and working great on 3.0.3. Thanks much!

Club3G 10-16-2005 02:49 PM

Quote:

Originally Posted by Duncan
My forum is located at: http://habbodiscussion.com

How do I get the "Top Posters" font smaller, its larger then the others.

In the forumhome_stats_poster template, add class="smallfont" to the first table call. Here's my entire template:

Code:

<tr>
<td class="smallfont" width="100%"><b><a href="member.php?u=$getstats_poster[userid]">$getstats_poster[username]</a></b></td>
<td class="smallfont" align="right"><b>$getstats_poster[posts]</b></td>
</tr>


Club3G 10-16-2005 02:53 PM

https://vborg.vbsupport.ru/showpost....3&postcount=40

Edit: Saw this on how to move it. Apologies.

I'd also love to see the code to make it parse reputation. :)

BeePee 10-21-2005 12:51 PM

Quote:

Originally Posted by Edison Chen
Isn't there a way to hide the forums that the usergroups, which don't have permission to view it won't see them? I know the line in the hack, but it is too annoying to update that every time and also adding a number to a list all the time is also something I wouldn't want to do. The main issue is that I want them to show if you can see the forum, like we have three schools. If you can see one of the schools, you should be able to see the new posts in your school and your school alone. Is there really no way to do this???! So many have asked before how to hide forums and all, is this thread mostly abandoned?

See most further up (post #251 in this thread), that's the best that can be done without major re-coding.

Alphawolf83 11-04-2005 08:44 PM

*clicks install* :)

Nice hack, easy installation. No problems.

Club3G 11-06-2005 01:42 PM

Quote:

Originally Posted by Club3G

I'd also love to see the code to make it parse reputation. :)

/bonk

kpr 11-16-2005 10:37 AM

I installed this but as it is a new forum just starting it isnt needed yet as a great hack.
but i took out the part to show stats on forum hole and now if your logged in it wont show them but log out and you see the stats.

any ideas on rectifying this.

Cheers

Club3G 11-18-2005 02:04 PM

Quote:

Originally Posted by Club3G

I'd also love to see the code to make it parse reputation. :)

Bumpage!

Alphawolf83 11-19-2005 11:21 AM

I'd also like to see a "Reputation-instead-of-newest-members"-Version. :)

Is their any chance for excluding moderated posts from displying in the top 5?


All times are GMT. The time now is 12:41 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.01589 seconds
  • Memory Usage 1,823KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (10)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
  • (40)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