vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   # of users in forum on forumhome (https://vborg.vbsupport.ru/showthread.php?t=38012)

lifesourcerec 05-15-2002 01:42 AM

Fixed! Thanks 2 million :)

Warlord 05-15-2002 02:32 AM

No problem lifesourcerec, but I was only quoting FWC, he deserves the thanks. ;)


*starts muttering about those [darn-didly-darn] word filters*

Anyone have a solution to concept and my problem about the subforums?

concept 05-15-2002 03:49 AM

yeah i was just about to post that haha it was set for 6 and i fixed that also....

FWC 05-15-2002 04:30 AM

Quote:

Originally posted by Warlord
No problem lifesourcerec, but I was only quoting FWC, he deserves the thanks. ;)
You're welcome. :)

concept 05-15-2002 04:32 AM

yeah i never really looked over all the posts i loked aorund with my friend for a long ime tryign to get this code to work hahahaha then we realized the colspan thing

tweak 05-15-2002 05:10 AM

THANX alot GREAT HACK

lifesourcerec 05-15-2002 05:31 AM

Quote:

Originally posted by FWC
You're welcome. :)
U DA MAN!! :)

Warlord 05-15-2002 05:58 AM

I don't think you guys understand my problem... (either that or I'm not understanding your solution.)

Ok, I have this hack set up the way vbulletin.org has it installed, so that it shows the users browsing a forum in the forum description. On the forumhome page (the main page) i.e.

http://www.superherochat.com/vb

the "(1 user browsing)" etc aligns to the right in the forum description. This is the way I want it.

However when I go into subforums, i.e.

http://www.superherochat.com/vb/foru...php?forumid=10

the "(1 users browsing)" doesn't align to the right in the forum description. I've used the same code in both instances, why does it not work in the subforums?

Warlord 05-15-2002 05:16 PM

bump

Warlord 05-16-2002 08:09 AM

BUMP GODDAMMlT! :p

Ihsahn 05-16-2002 10:54 AM

Quote:

Originally posted by Warlord
I don't think you guys understand my problem... (either that or I'm not understanding your solution.)

Ok, I have this hack set up the way vbulletin.org has it installed, so that it shows the users browsing a forum in the forum description. On the forumhome page (the main page) i.e.

http://www.superherochat.com/vb

the "(1 user browsing)" etc aligns to the right in the forum description. This is the way I want it.

However when I go into subforums, i.e.

http://www.superherochat.com/vb/foru...php?forumid=10

the "(1 users browsing)" doesn't align to the right in the forum description. I've used the same code in both instances, why does it not work in the subforums?


May u share your code for the forumhome ... it doesn't work for me ... pleaze :)

Thx
Ihsahn

Wolf42 05-16-2002 11:01 AM

Works great, thx neo!

Boofo 05-19-2002 01:53 AM

FWC,

I had to rework this a little to get it to still have the full box mouse-over, but I figured it out and it works great, thanks!

Now, I know this is a little off topic, but if you can do this, then moving the "Report this Post to Moderator" and "IP Logged" to the bottom of the message box, should be easy for you. :) How about it? :)

Quote:

Originally posted by FWC
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.


FWC 05-19-2002 05:22 AM

Quote:

Originally posted by Boofo
Now, I know this is a little off topic, but if you can do this, then moving the "Report this Post to Moderator" and "IP Logged" to the bottom of the message box, should be easy for you. :) How about it? :)


I took the easy way out. I replaced the links with images and moved them to the bottom of the post bit next to the Edit and Quote buttons. :)

Boofo 05-19-2002 06:02 AM

I know, I thought of doing that myself, but wouldn't it make you feel good just to do it so you can say you did it? (Is any of this working in my favor?) :)

desi 06-04-2002 10:11 PM

could some pls post an update code to to add ( users browsing )
in the forum like it is at vbulletin.org

thankx for the help :)

desi

Warlord 06-05-2002 12:18 AM

The template for forumhome_forumbit_level2_post should look like this for it to appear the same way vbulletin.org has it set up...

Code:

<tr align="center">
        <td bgcolor="{secondaltcolor}" valign="top"><img src="{imagesfolder}/$forum[onoff].gif" border="0" alt=""></td>
        <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>($count members browsing)</smallfont></td>
</tr>
<td colspan="2">
<smallfont>$forum[description]</smallfont>
</td>
</tr>
</table>
</td>
        <td bgcolor="{secondaltcolor}"><normalfont>$forum[replycount]</normalfont></td>
        <td bgcolor="{firstaltcolor}"><normalfont>$forum[threadcount]</normalfont></td>
        <td bgcolor="{secondaltcolor}"><smallfont>$forum[lastpostinfo]</smallfont></td>
        <td bgcolor="{firstaltcolor}"><smallfont>$forum[moderators]</smallfont></td>
</tr>


desi 06-05-2002 05:14 AM

will try it out right now thankx :)

Boofo 06-05-2002 05:23 AM

I feel stupid for even asking this, but what template do you edit to have this display in the subforums? I tried to put it in the forumhome_forumbit_level1_post but it didn't show up in the subforums. :nervous:

Quote:

Originally posted by Warlord
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="#13486D">
<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


desi 06-05-2002 06:30 AM

damn my board got all screwed up ..... i got this message after doing the above

Database error in vBulletin 2.2.5:

Invalid SQL: SELECT userid,username
FROM user
WHERE userid<>
AND (usergroupid=5
OR usergroupid=6
OR usergroupid=7
OR usergroupid=2)
ORDER BY RAND()
LIMIT 1
mysql error: You have an error in your SQL syntax near 'AND (usergroupid=5
OR usergroupid=6
' at line 4

mysql error number: 1064

HELP!!!!!!!!!!!!!!!!!!!!

Warlord 06-06-2002 09:02 AM

For some reason it doesn't work right in the sub-forums. I couldn't tell you why, I tried everything I could think of to make it work, but couldn't so I only have it installed on the main page....

and desi... to fix it, just do the opposite of what you did to cause that error.

Boofo 06-06-2002 10:25 AM

Chen,

Do you know of a way of doing this on the subforums, too? (If anyone could do it, you could) :)

Quote:

Originally posted by Warlord
For some reason it doesn't work right in the sub-forums. I couldn't tell you why, I tried everything I could think of to make it work, but couldn't so I only have it installed on the main page....


Wildthinks 06-06-2002 11:23 AM

is there a possibility to count how many guests are in the forum? I have read the "Left Join", but the query is not complete ...any hints?

Warlord 06-07-2002 12:26 AM

I believe that was discussed somewhere in this thread (sorry don't know what page). I think it was Firefly who said you can't do it.

And I don't know if you can do the # of users in the subforum listings, as you can see Firefly hasn't done it here at vbulletin.org, and if it were possible I would think he'd be the one who'd know how to do it...

Boofo 06-07-2002 05:22 AM

Quote:

Originally posted by Warlord
And I don't know if you can do the # of users in the subforum listings, as you can see Firefly hasn't done it here at vbulletin.org, and if it were possible I would think he'd be the one who'd know how to do it...
That's just what I said above. Just because it isn't done here on vb.org, doesn't mean it can't be done. Firefly doesn't run every hack available here. :)

TaP 06-10-2002 09:42 PM

okay this might have been brought up before, but how can i fix this?!!

Boofo 06-10-2002 09:58 PM

It was right under your nose all the time. :)

https://vborg.vbsupport.ru/showthrea...402#post246402

Quote:

Originally posted by TaP
okay this might have been brought up before, but how can i fix this?!!

TaP 06-11-2002 02:17 AM

No...its not showing 0 members online...i dont want it to the right, i just want it to say 0...no number is showing up!

Boofo 06-11-2002 03:20 AM

Next time it might help to explain a little more of what you want, then. And shouting in your message won't get you a lot of help either.

Do you have this as the code in there for getting the number?

Code:

$browsers members browsing
Quote:

Originally posted by TaP
No...its not showing 0 members online...i dont want it to the right, i just want it to say 0...no number is showing up!

TaP 06-11-2002 04:19 AM

bleh...online talk, shouting? i was exaggerating that no number was showing up, but if you took that offensivly :) okey...anyways

here is my forumhome_forumbit_level2_post

PHP Code:

<tr align="center">
    <
td bgcolor="{secondaltcolor}" valign="top"><img src="{imagesfolder}/$forum[onoff].gif" border="0" alt=""></td>
    <
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]<br><b>Moderated by$forum[moderators]</b></smallfont> <smallfont>($browsers members browsing)</smallfont> </td>
    <
td bgcolor="{secondaltcolor}"><normalfont>$forum[replycount]</normalfont></td>
    <
td bgcolor="{firstaltcolor}"><normalfont>$forum[threadcount]</normalfont></td>
    <
td bgcolor="{secondaltcolor}"><smallfont>$forum[lastpostinfo]</smallfont></td>
</
tr


Boofo 06-11-2002 08:38 AM

Did you also install the following hack? It won't work without it. :)

https://vborg.vbsupport.ru/showthrea...ers+forum+home

TaP 06-11-2002 03:16 PM

ya...

Boofo 06-11-2002 03:21 PM

Well, sir, then you have got me boggled on this one. I would say to re-install the hack and see if maybe you missed something along the way. Sometimes that fixes things. If you are still not seeing it after that, I will take a look at the code you entered for the hack and see if I can figure something out for you. :) Sorry I couldn't be of more help.

Quote:

Originally posted by TaP
ya...

Felix 06-23-2002 11:30 AM

I got the same problem (screenshot). I'm using vbb226. Installed the hack without the template modifications and added the template modification to keep the info at the right site, but it doesn't show up an number. Not even 0! The query did run though.

Help is appreciated,
thx :lick:

Felix 06-23-2002 11:50 AM

Ok I found the error.

DON'T (!) use

PHP Code:

$browsers members browsing 

instead use:

PHP Code:

$count members browsing 

Now it should work :D

Boofo 06-23-2002 12:07 PM

You are exactly right. I just checked my code and that is what I have. I must have changed it somewhere and forgot to notate it. Sorry about the mis-information. I'll double check next time before I post an answer. :)

Quote:

Originally posted by Felix
Ok I found the error.

DON'T (!) use

PHP Code:

$browsers members browsing 

instead use:

PHP Code:

$count members browsing 

Now it should work :D


Mathiau 06-25-2002 03:48 AM

hey m8, installed and all is well EXCEPT!:



how can i get my tables to extend to the end?

i had this prob with my True Stat area, but fixed it no prob, but i can not seem to get this part fixed.....? HELP!


thnx :D

got it fixed

Mathiau 06-25-2002 03:48 AM

double post..

Robert9 06-28-2002 02:56 AM

ok im sorry if i piss anyone off but im lost theres 8 pages with many different codes all i want to do is add this next to chit chat www.ecforums.com/forums go there and see what chit chat is if u dont know, ok i want it to say Chit Chat [new thread] top right corner of that same area i want it to say (# user browsing forum) im so sorry if its been mentioned but i tried alot of different ways that were on here but i cant get it to work maybe if i post this and get new posts after mine i might get something out of it

Sho 08-22-2002 04:52 AM

Guys, I can't get this to work. It always shows "0", no matter what I do. I followed the instructions again and again, read through the whole thread, tried FireFly's code, Neo's code, what Nakkid posted in the "recap" posting - all I get is "0". How do I test? Well, I use a second computer, login as a different user, visit a forum and reload index.php on the first computer. "0"

Help! :)


All times are GMT. The time now is 04:16 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.01905 seconds
  • Memory Usage 1,848KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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