vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Not Your Normal Marquee System (https://vborg.vbsupport.ru/showthread.php?t=105961)

Calisse 02-28-2006 06:13 PM

Absolutely fabulous ;)

ronoxQ 02-28-2006 07:13 PM

Just as an idea, Sezmar... maybe people should post up what they're using their marquee for, so others can get ideas?

I'm trying to get it to show the newest users, myself, but thus far it's not working.

NiTRoN 03-07-2006 08:09 PM

Quick suggestion.. Any way u can add option to turn the collors off.. so it will use default template colors. It is really hard to chose right color so it works on multiple skins on your board. My board has skins that have black and white backgrounds...

my 2cents Other than that its wonderfull.. :)

SmashinYoungMan 03-10-2006 10:14 PM

Quote:

Originally Posted by NiTRoN
Quick suggestion.. Any way u can add option to turn the collors off.. so it will use default template colors. It is really hard to chose right color so it works on multiple skins on your board. My board has skins that have black and white backgrounds...

my 2cents Other than that its wonderfull.. :)

Using custom CSS, you can get it to look however you like. I also duplicated the marquee and used <if> statements to show a different message for unregistered members.

http://www.gabshack.com/forum/

xOzzie 03-11-2006 03:51 PM

SmashinYoungMan, I like what you've done. Can you post an example of your "if" statement so I can see how you did that?

Thanks!

SmashinYoungMan 03-11-2006 08:15 PM

Quote:

Originally Posted by xOzzie
SmashinYoungMan, I like what you've done. Can you post an example of your "if" statement so I can see how you did that?

Thanks!

Sure. :)

HTML Code:

<if condition="in_array($bbuserinfo[usergroupid], array(6,7,2,5,10,11))">
<td width="50%" class="marqueebar">$marquee</td>
<else />
<td width="50%" class="marqueebar">$marquee2</td>
</if>

The array is all my registered usergroups, and $marquee shows the message I'd like them to see. The $marquee2, which is the duplicated marquee system, shows the unregistered/not-logged-in message.

xOzzie 03-11-2006 10:50 PM

Thanks!

OK, dumb question. Where did you put the code? I can't find 'marqueebar' used in any of the templates or in the .xml product file. :confused:

SmashinYoungMan 03-11-2006 11:12 PM

Quote:

Originally Posted by xOzzie
Thanks!

OK, dumb question. Where did you put the code? I can't find 'marqueebar' used in any of the templates or in the .xml product file. :confused:

The first thing you will need to do is duplicate the marquee system. Attached to this post is the zip file for the duplicate. Install it just as you would the original marquee system. After you install that, you will see in your vBulletin Options settings for the second marquee system.

Then you simply substitute this code for the "$marquee" you originally put in the header template:

HTML Code:

<if condition="in_array($bbuserinfo[usergroupid], array(6,7,2,5,10,11))">
$marquee
<else />
$marquee2
</if>

Remember to put the proper usergroup IDs in the array for your registered members.

SmashinYoungMan 03-11-2006 11:24 PM

One thing: Remember that whenever sezmar updates the marquee system, the duplicate will have to be upgraded as well. Duplicating the marquee system involves editing the original xml product file, so newbies to this sort of thing may not want to bother with this.

xOzzie 03-12-2006 10:03 AM

Great! Thanks for the detailed reply. This will be useful.


All times are GMT. The time now is 07:04 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.01795 seconds
  • Memory Usage 1,740KB
  • 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_html_printable
  • (3)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