The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Block - Users Online Details »» | |||||||||||||||||||||||||||||
This is a block for your forum sideblocks to show the Current Users Online.
You will need to Create a new Template (block_users_online), Cache the template, Create a new Block (Users Online), and then, optionally, remove the Currently Active Users list from the bottom of the page. 1.1 2010-06-12: Added in Most users ever online. Updated for 4.0.3. 1.2 2010-06-23: Updated to work for 4.0.4. 1.3 2011-11-17: Fixed template and block code for use in 4.1.8. 1.4 2012-06-05: Fixed template for use in 4.2.0. Installation instructions for 4.2.0, 4.1.8 and pre-4.1.8 are included in the 1.4 download. Please make sure you use the correct Installation Instructions as both the block code and the template code are different depending on the version you are running. Read them carefully!!! Download Now
Screenshots
Show Your Support
|
Благодарность от: | ||
BCP Hung |
Comments |
#222
|
||||
|
||||
You would just add an extra <br /> where you want an extra line.
HTML Code:
<br /><span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw content.numberregistered}, {vb:raw content.numberguest}}</span><br /></p> <p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw content.recordusers}, {vb:raw content.recorddate}, {vb:raw content.recordtime}}<br /></p> |
#223
|
|||
|
|||
Quote:
|
#224
|
||||
|
||||
Then add two of them instead of one.
|
#225
|
|||
|
|||
Like so?
Quote:
|
#226
|
||||
|
||||
I would put it with the others I had added:
Code:
<br /><span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw content.numberregistered}, {vb:raw content.numberguest}}</span><br /><br /></p> <p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw content.recordusers}, {vb:raw content.recorddate}, {vb:raw content.recordtime}}<br /><br /></p> |
#227
|
|||
|
|||
Quote:
Code:
<br /><span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw content.numberregistered}, {vb:raw content.numberguest}}</span></p> <p><br />{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw content.recordusers}, {vb:raw content.recorddate}, {vb:raw content.recordtime}}</p> <br /><ol class="commalist"> <vb:each from="content.activeusers" value="loggedin"> Code:
Most users ever online was {1}. <br />{2} at <span class="time">{3}</span>. |
#228
|
||||
|
||||
Thanks for this Lynne!
Anyone using the Sidebar Anywhere by BOP5 if you want this block to work on other pages follow the steps below: REPLACE TEMPLATE CODE: Code:
<vb:if condition="$show['loggedinusers']"> <li> <div class="block smaller"> <div class="blocksubhead"> <a class="collapse" id="collapse_block_html" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_html"/></a> <span class="blocktitle"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</span> </div> <div id="block_html" class="blockbody floatcontainer"> <div class="blockrow"> <p>{vb:rawphrase there_are_x_y_online_link, {vb:raw content.totalonline}, {vb:raw session.sessionurl_q}} <br /><span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw content.numberregistered}, {vb:raw content.numberguest}}</span></p> <p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw content.recordusers}, {vb:raw content.recorddate}, {vb:raw content.recordtime}}</p> <ol class="commalist"> <vb:each from="content.activeusers" value="loggedin"> <li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}{vb:raw loggedin.comma}</li> </vb:each> </ol> </div> </div> </div> <div class="underblock"></div> </li> </vb:if> WITH: Code:
<li> <div class="block smaller"> <div class="blocksubhead"> <a class="collapse" id="collapse_block_html" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_html"/></a> <span class="blocktitle"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</span> </div> <div id="block_html" class="blockbody floatcontainer"> <div class="blockrow"> <p>{vb:rawphrase there_are_x_y_online_link, {vb:raw content.totalonline}, {vb:raw session.sessionurl_q}} <br /><span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw content.numberregistered}, {vb:raw content.numberguest}}</span></p> <p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw content.recordusers}, {vb:raw content.recorddate}, {vb:raw content.recordtime}}</p> <ol class="commalist"> <vb:each from="content.activeusers" value="loggedin"> <li>{vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}{vb:raw loggedin.comma}</li> </vb:each> </ol> </div> </div> </div> <div class="underblock"></div> </li> |
Благодарность от: | ||
Lynne |
#229
|
||||
|
||||
Thanks for posting that Lee Roberts.
|
Благодарность от: | ||
Lee Roberts |
#230
|
|||
|
|||
Hi Lynn, I have attempted this twice. I correctly followed all the steps to the best of my knowledge and the block shows up on my page. It was minus the actual numbers of online users ect. However my bigger issue is that as soon as I enable the plugin I get this errror code at the top of my header. BTW I am running 4.2.2
Parse error: syntax error, unexpected 'is' (T_STRING) in /home/cafeflir/public_html/includes/class_bootstrap.php(1419) : eval()'d code on line 145 Warning: Cannot modify header information - headers already sent by (output started at ..../includes/class_bootstrap.php(1419) : eval()'d code:145) in ..../includes |
#231
|
||||
|
||||
That is an error with the caching of the template. But, there is no "is" in the block_users_online template. Could you have accidentally added a line break in the middle of a word? Did you remember to enter that template under "Template to Use" in the Block configuration page?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|