Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Scrolling Arcade Awards & uShop Gifts & Ribbons Details »»
Scrolling Arcade Awards & uShop Gifts & Ribbons
Version: 1.20, by m0nde m0nde is offline
Developer Last Online: Jun 2021 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 07-09-2005 Last Update: 07-10-2005 Installs: 3
Template Edits
Re-useable Code Translations  
No support by the author.

This is a postbit template modification for those of you who have moved your User Info to the left side of posts with Otikeu's Postbit Modification and have uShop Gifts, Ribbons & the v3arcade's horizontal awards modification added.

You can use this modification even if you're not using the left side user info modification and it will just show the icons scrolling under the person's avatar picture.

If you move your User Info to the left side of posts, you'll see that you have much less space for these add-ons' icons.
My solution is to make these all scroll on one line.

First of all, I cannot find the modification to make the v3arcade awards show up horizontally. I found it here or on v3arcadegames at some point, but can't seem to locate it again. If you aren't using this modification, this modification will simply not show those in the scrolling line.

It goes without saying that this is an amalgamation of many ideas previously presented on vbulletin.org including, most importantly, BillyFischbach's v3arcade Scrolling Awards in Postbit modification


I assume you're using the left side user info, so

In your Admin Control Panel, go to Styles & Templates | Style Manager | Your Style | Edit Templates Click Go.

Now click the ? ? button near the words All Template Groups

Now find the postbit template by scrolling down in the left pane.
Double click on the postbit template to open it.

In the postbit template,

FIND:
HTML Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
BELOW THIS, ADD:
HTML Code:
<if condition="$post[arcadeawards] OR $post[ribbons] OR $post[gifts]"><div>
<MARQUEE loop="-1" scrollamount="2" vspace="5" behavior=scroll direction=right width="100%" onmouseover='this.stop()' onmouseout='this.start()'>
<span class="smallfont"><if condition="$post[ribbons]">$post[ribbons] - <strong>Awareness Ribbons</strong>&nbsp;&nbsp;</if><if condition="$post[gifts]">$post[gifts] - <strong>Gifts</strong>&nbsp;&nbsp;</if><if condition="$post[arcadeawards]">$post[arcadeawards] - <strong>Arcade Awards</strong>&nbsp;&nbsp;</if></span>
</MARQUEE></div></if>
THAT'S IT!
You'll notice that this sequence of conditionals checks for the existance of ANY of one of the add-on's mentioned at the top of this text.
It then scrolls each if it exists, one after the other, from left to right.

I chose to scroll from the left to right because of aesthetic reasons.

If you want it to scroll from right to left,
CHANGE:
HTML Code:
<MARQUEE loop="-1" scrollamount="2" vspace="5" behavior=scroll direction=right width="100%" onmouseover='this.stop()' onmouseout='this.start()'>
TO:
HTML Code:
<MARQUEE loop="-1" scrollamount="2" vspace="5" width="100%" onmouseover='this.stop()' onmouseout='this.start()'>
If you are looking for the scrolling arcade awards modification and cannot find it, do the following:
In your Admin Control Panel, go to Styles & Templates | Style Manager | Your Style | Edit Templates Click Go.

Now click the ? ? button near the words All Template Groups

Now find the arcade_awards_bit template by scrolling down in the left pane.
Double click on the arcade_awards_bit template to open it.

In the arcade_awards_bit template,

REPLACE THE CONTENTS WITH:
HTML Code:
<if condition="$award[icon]!=''"><a href="arcade.php?do=play&gameid=$award[gameid]"><img src="$stylevar[imgdir_arcade]/$award[icon]" alt="$award[gametitle] Champ, score: $award[highscore]" align="absmiddle" border=0></a>&nbsp;</if>
THAT'S IT!

Version History
v1.20 added instructions for scrolling arcade icons since this seems to have been lost with the closure of v3arcade.com
v1.10 added javascript to halt scrolling and allow users to see alt text and click on icons
v1.00 initial release

Please click Installed, if you use this modification.
Comments and criticism are encouraged; this is my first modification...

Note: To copy from the HTML boxes above, try clicking CTRL and clicking inside the box. This will highlight everything in that box.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-10-2005, 07:52 AM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great. Awesome job, *installs*
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03569 seconds
  • Memory Usage 2,212KB
  • Queries Executed 15 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete