The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
![]()
Then from where comes that text? Or didn't you show the whole script?
|
#22
|
||||
|
||||
![]()
api.UserList and api.RoomList are how the info is pulled out. That's all I know about tthis as I got it from the ReahChat site in their documentation. And that is the full script.
|
#23
|
|||
|
|||
![]()
were you in the room when you did the last test marco asked for?
|
#24
|
||||
|
||||
![]()
Yes, sir, I was.
![]() |
#25
|
|||
|
|||
![]()
Well if the array is empty, then (if not using mroe code) there is no way the roomname and your membername are in $userCount.
Also you say this is the complete script, but i don't see a Template evaluated or outputed anywhere. So i guess this can't be all. |
#26
|
||||
|
||||
![]()
Ok, here is the COMPLETE code I am using in the forumhome_complete hook right now:
PHP Code:
HTML Code:
<tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activechatters')"><img id="collapseimg_forumhome_activechatters" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a> <a href="javascript:showwin('$vboptions[bburl]/chat/chat.php', 'width=700,height=600, top=50, left=50')" style="text-decoration: none;">$vbphrase[bh_realchat_who]</a>: <if condition="$userCount == '0'">No Users<else /><if condition="$userCount == '1'">$userCount User<else />$userCount Users</if></if> </td> </tr> </tbody> <tbody id="collapseobj_forumhome_activechatters" style="$vbcollapse[collapseobj_forumhome_activechatters]"> <tr> <td class="alt2"> <a href="javascript:showwin('$vboptions[bburl]/chat/chat.php', 'width=700,height=600, top=50, left=50')"><img class="inlineimg" src="$stylevar[imgdir_misc]/chat.gif" alt="$vboptions[bburl] $vbphrase[bh_realchat_rooms]" border="0" /></a></td> <td class="alt1" width="100%"> <div class="smallfont"> <div>$vbphrase[bh_realchat_available_rooms]: $roomList</div> <hr size="1" style="color:$stylevar[tborder_bgcolor]" /> <if condition="$userList == ''"> <div>$vbphrase[bh_realchat_users]: None</div> <else /> <div>$vbphrase[bh_realchat_users]: $userList</div> </if> </div> </td> </tr> </tbody> Now, here is the code I WAS using before (in the index.php on vB 3.0). It worked but it showed commas after the last room name at times but not all the time. It was sporadic. PHP Code:
|
#27
|
|||
|
|||
![]()
You are now executing the function 3 times, and you only posted 2 arrays. Please run again with the print of the array values, and while 1 or more people in the chat.
|
#28
|
||||
|
||||
![]()
You mean run this again?
PHP Code:
|
#29
|
|||
|
|||
![]()
yes..
|
#30
|
||||
|
||||
![]()
Here you go. I was in the chat rioom when I ran this.
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|