Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
# of users in forum on forumhome Details »»
# of users in forum on forumhome
Version: 1.00, by Neo Neo is offline
Developer Last Online: Dec 2009 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-28-2002 Last Update: Never Installs: 64
 
No support by the author.

Ok here it is.. I have seen a few requests for it... so here it is.

Info:
What it does is show the number users in a forums on your forum home / main page.


Install Info:
2 File Adds
6 template edits


Thats it. I will post images below if you need an idea of what it looks like

Here is the new version of it. " Thanks Chen :bunny: "
The first file will be posted below it you need to unistall or would like to use it O__O

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 05-01-2002, 03:51 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make a table.. in the left cell you put the title and in the right one the browsers..
Reply With Quote
  #63  
Old 05-01-2002, 03:58 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by cdcopyworld


Yep done that and it worked but how do i make the "$browsers members browsing" stay as far right as it can go like here at vb.org.
In forumhome_forumbit_level2_post take the default:
Code:
<td bgcolor="{ firstaltcolor }" align="left"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]">
<normalfont><b>$forum[title]</b></normalfont></a>
	<br><smallfont>$forum[description]</smallfont></td>
and change it to something like this:
Code:
<td bgcolor="{ firstaltcolor }">
<table width=100% cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left">
<a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a></td>
<td width="35%" align="right" valign="top">
<smallfont>($browsers members browsing)</smallfont></td>
</tr>
<td colspan="2">
<smallfont>$forum[description]</smallfont>
</td>
</tr>
</table>
</td>
Don't forget to remove the spaces around firstaltcolor.
Reply With Quote
  #64  
Old 05-09-2002, 02:00 AM
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
Location: Manitoba, Canada
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i have it like firefly has it ONLY! No New Column?
Reply With Quote
  #65  
Old 05-09-2002, 02:25 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look Up One Post
Reply With Quote
  #66  
Old 05-09-2002, 04:20 AM
Orlandu's Avatar
Orlandu Orlandu is offline
 
Join Date: Apr 2002
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well Neo, if you don't mind I have a addition to that hack. It will say "1 users" how it is, but I added a little bit and now it will say "1 user" and then "2 users" respectively.

I'll post if, but if you won't allow it then I will remove it.

Instead of add this:
PHP Code:
        global $forumbrowsers;
        
$count $forumbrowsers[$forum['forumid']];
        if (
intval($count) < 1) {
            
$count 0;
        } 
Add this for the correct term for 1 user:
PHP Code:
        global $forumbrowsers;
        
$count $forumbrowsers[$forum['forumid']];
                
$s 's';
        if (
intval($count) < 1) {
            
$count 0;
        }
        if (
intval($count) == 1) {
            
$s '';
        } 
That's in both forumdisplay.php and index.php
Then you have to change the counter to something like this:
Code:
($count user$s browsing)
in the right template.
Hope you like
Reply With Quote
  #67  
Old 05-12-2002, 09:04 PM
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
Location: Manitoba, Canada
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by neo
Look Up One Post
do i just install this.....or install the original hack and then that
Reply With Quote
  #68  
Old 05-14-2002, 05:55 AM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ummm damn. All I get is grey boxes on the right side of my screen when I add this hack.. Can someone show me what I did wrong?
Reply With Quote
  #69  
Old 05-14-2002, 06:07 AM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh wow.. it worked.. kinda. I just noticed it, because it isn't how vb.org has it set up... but I did end up getting those annoying grey blocks on my page.. how do i get rid of those?
Reply With Quote
  #70  
Old 05-14-2002, 06:12 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Warlord
Oh wow.. it worked.. kinda. I just noticed it, because it isn't how vb.org has it set up... but I did end up getting those annoying grey blocks on my page.. how do i get rid of those?
You need to change forumhome_forumbit_leve1_nopost to <td colspan="7"> for one thing. Same thing with forumhome_loggedinusers.
Reply With Quote
  #71  
Old 05-14-2002, 06:30 AM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

May Jesus have mercy on my soul....

I've attempted to make it look the way vb.org has it and screwed up alot of shi@t
Reply With Quote
  #72  
Old 05-14-2002, 07:07 AM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I have some of it fixed...

Question - In subforums, I added the same code as I did for the main page..
<code>
<td bgcolor="{firstaltcolor}">
<table width=100% cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left">
<a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a></td>
<td width="35%" align="right" valign="top">
<smallfont>($browsers members browsing)</smallfont></td>
</tr>
<td colspan="2">
<smallfont>$forum[description]</smallfont>
</td>
</tr>
</table>
</td>
</code>

But the Members browsing appears exactly right after the forum description, so if the forum has no description, it is almost all the way over to the left.

Also.. none of the forums are picking up any members in them

Take a look and tell me what I'm doing wrong...

http://www.superherochat.com/vb
Reply With Quote
  #73  
Old 05-14-2002, 12:43 PM
Orlandu's Avatar
Orlandu Orlandu is offline
 
Join Date: Apr 2002
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you add the code to index.php and forumdisplay.php? If you don't add that, then it won't work correctly.

Also, if you want it to not add the "s" if there is only one member, then use the code I posted
Reply With Quote
  #74  
Old 05-14-2002, 02:33 PM
concept's Avatar
concept concept is offline
 
Join Date: Mar 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'having a problem with my forums thing is i added all the chanegd neo supplyed but only thing is i'm getting an un finished </tr> or </td> somewhere cuz my forums is messed up ....

this is what it looked like now

my forums messed up

i get these grey unclosed tables wtf is up with this can someone tell me what to do
Reply With Quote
  #75  
Old 05-14-2002, 03:48 PM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Orlandu
Did you add the code to inew.php and forumdisplay.php? If you don't add that, then it won't work correctly.

Also, if you want it to not add the "s" if there is only one member, then use the code I posted
I assume you mean index.php and forumdisplay.php and yes I did add the code...

Got any idea about the second table data not aligning to the right on the first table row with the "forum title" and the "($browsers members browsing)"? It works just fine on then main page, but in the subforums, it aligns both table data's to the left, even though I've specified right.
Reply With Quote
  #76  
Old 05-14-2002, 04:03 PM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I figured out why it wasn't counting the users.. it's not $browsers, it supposed to be $count...

Now if I can just get the second table data to align to the right in the subforums...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:31 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.11356 seconds
  • Memory Usage 2,375KB
  • Queries Executed 30 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete