vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Split Useronline on Forumhome (https://vborg.vbsupport.ru/showthread.php?t=243233)

consolegaming 09-05-2010 04:53 PM

That would work as well lol.

Eazy1 09-07-2010 03:46 PM

1 Attachment(s)
Quote:

Originally Posted by consolegaming (Post 2093176)
Use the CSS that's in the initial post lol (under the heading Template Edit). I think I'm going to create a separate css template and auto include it because this seems to cause confusion for people installing it /upgrading vb. I'll probably get that done over the next couple of weeks.

Well, I had that done (I've now updated to your newest version)... I'm curious how to remove just the last comma in each line:

https://vborg.vbsupport.ru/external/2010/10/19.jpg

pedroenf 09-09-2010 02:17 PM

How to make this work in CMPS?

consolegaming 09-10-2010 07:18 AM

Quote:

Originally Posted by Eazy1 (Post 2095079)
Well, I had that done (I've now updated to your newest version)... I'm curious how to remove just the last comma in each line:

https://vborg.vbsupport.ru/external/2010/10/19.jpg

EDIT:

Hmm, what I was just suggesting wouldn't work lol. Not really got a simple fix that could do it. I was going to suggest using the trim function on it but that wouldn't work. Not how I was thinking anyway.

If it's going to be done it would need to be within the Display plugin (i.e. once the variables have been fully populated). I was thinking of using the trim function to remove the trailing , but it'll be ending more like this: ,</li> but removing that and re-adding the li back in might be a bit messy.

@ Pedro: I've never used VB Advanced (that's what your talking about yea?) so I don't know how that works.

pedroenf 09-10-2010 08:28 AM

Quote:

Originally Posted by consolegaming (Post 2096118)
@ Pedro: I've never used VB Advanced (that's what your talking about yea?) so I don't know how that works.


Yes it was. That's a pity :(
It would be great to make this work in VBA

buurman 09-11-2010 05:54 PM

Quote:

Originally Posted by pedroenf (Post 2096128)
Yes it was. That's a pity :(
It would be great to make this work in VBA

Indeed it would, im using vb advanced CMPS on VB 4.0.6.
I have the CMS also, but disabled it, I think it aint that great...

This is the PHP code for the usersonline for the VB Advanced module: (maybe you can see what to change)

PHP Code:

<div class="blocksubhead">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</div>
<
div class="blockrow vba_spacer">
    <
vb:if condition="$activeusers">
        <
ol class="commalist">{vb:raw activeusers}</ol>
    <
vb:else />
        {
vb:rawphrase no_x_online, {vb:rawphrase members}}
    </
vb:if>
</
div>
<
div class="blockrow">{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</div


consolegaming 09-11-2010 09:00 PM

Well that's actually the template code, mostly html with vb's own variable system built into it. The actual PHP code is held within the plugins. My plugin alters the activeusers variable which is still being used there as you can see but my pkugin code is not getting executed.

Which to me suggests that the Plugin Hooks that have been used for my Product aren't being implemented here in their code. I did try installing it and taking a bit of a look around. But I didn't really get anywhere and disliked the cmps system lol.

EDIT: I think to get any further with CMPS usage I'd need to get all the vB files on my pc and search for where the plugin hooks (the ones I use) are defined and try and work out why they're not being used in the cmps files. Not doing that today though lol.

pedroenf 09-11-2010 09:38 PM

Quote:

Originally Posted by buurman (Post 2096823)
Indeed it would, im using vb advanced CMPS on VB 4.0.6.
I have the CMS also, but disabled it, I think it aint that great...

This is the PHP code for the usersonline for the VB Advanced module: (maybe you can see what to change)

PHP Code:

<div class="blocksubhead">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</div>
<
div class="blockrow vba_spacer">
    <
vb:if condition="$activeusers">
        <
ol class="commalist">{vb:raw activeusers}</ol>
    <
vb:else />
        {
vb:rawphrase no_x_online, {vb:rawphrase members}}
    </
vb:if>
</
div>
<
div class="blockrow">{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</div


The code i also know. But it's not that simple. It needs to be hard coded ;)

Taurus1 09-25-2010 12:57 PM

1 Attachment(s)
This is great. Thanks. But I have the following problems. Everything is in one line, and also those extra commas don't look good. Please help.

Attachment 122317

DeadRabbit 09-26-2010 02:35 PM

i cannot find split_online.css


All times are GMT. The time now is 09:09 PM.

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.01158 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_php_printable
  • (5)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
  • (10)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