vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   postbit drop down for V3Arcade awards (https://vborg.vbsupport.ru/showthread.php?t=104107)

350Chevy 12-30-2005 10:00 PM

postbit drop down for V3Arcade awards
 
I got sick of looking at that horrid arcarde awards list of icons in showthread.php and used to have something simular to this in v3.0.x but I could not find one for v3.5.x so here is a simple one. If you want to change it or add to it go right ahead. I will try to support as much as possible but I've been extremely busy and these edits shouldn't be that hard to do! :p

* Tested and works for V3Arcade.

This may work for postbit as well as postbit_legacy but I would not know as I don't use that template and haven't tested it on it. Sorry.

replace all the contents in arcade_award_bit with:
Code:

<tr><td class="vbmenu_option"><a href="arcade.php?do=play&gameid=$award[gameid]"><img src="$vboptions[arcadeimages]/$award[miniimage]" align="absmiddle" border=0> <span class="smallfont">$award[title] Champion!</span></a></tr></td>
in postbit_legacy scroll all the way down and find:

Code:

<!-- v3 Arcade -->
        <if condition="$post['arcadeawards']">
        <tr><td class="thead"><phrase 1="$post[username]">$vbphrase[xs_arcade_awards]</phrase></a></td></tr>
        $post[arcadeawards]
        </if>
        <if condition="($post['arcadeoptions'] & 1) AND $post['userid']!=$bbuserinfo['userid']">
        <tr><td class="thead">$vbphrase[arcade]</a></td></tr>
        <tr><td class="vbmenu_option"><a href="arcade.php?do=newchallenge&userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[challenge_x_in_the_arcade]</phrase></td></tr></if>
<!-- /v3 Arcade -->

And DELETE it!

Again in postbit_legacy find:

Code:

                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>

And BELOW that ADD:

Code:

<!-- v3 Arcade -->
<div>
<div id="postmenu_arcade_$post[postid]">
<script type="text/javascript"> vbmenu_register("postmenu_arcade_$post[postid]", true); </script>
Arcade Awards
    <div class="vbmenu_popup" id="postmenu_arcade_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
          <tr>
            <td class="thead">$post[username]'s Awards</td>
          </tr>
          <if condition="$post[arcadeawards]!=''">
              $post[arcadeawards]
          <else />
          <tr>
          <td class="vbmenu_option" title="nohilite">
              $post[username] has no awards.</td>
          </tr>
          </if>
        </table>
    </div>
</div>
<!-- /v3 Arcade -->

I've attached images of the outcome.. Not a great profile, but 150% better than what the v3Arcade install gives you.

mholtum 12-31-2005 04:56 PM

which arcade or does it work with both of them?

Kihon Kata 12-31-2005 05:01 PM

How many queries did it add?

350Chevy 12-31-2005 05:19 PM

Quote:

Originally Posted by mholtum
which arcade or does it work with both of them?

Sorry I forgot to specify. This is for V3Arcade.

Quote:

Originally Posted by TonysDesigns
How many queries did it add?

Shouldn't add any extra queries. It just sorts the games in a drop down instead of across the bottom of the screen.

Dark_D 01-01-2006 02:44 AM

I put it in......nice, thanks. Any idea on how to add the hand when hovering over the link?

Rickie3 01-01-2006 02:50 AM

Quote:

Originally Posted by 350Chevy
Sorry I forgot to specify. This is for V3Arcade.



i tested works for ibproarcade as well

350Chevy 01-01-2006 03:48 PM

Quote:

Originally Posted by Rickie3
i tested works for ibproarcade as well

Great! I'll update the thread then. Thanks! :)

Seej 01-01-2006 09:54 PM

Instead of adding the "Arcade Awards" link, is there a way to add this to the menu that pops up when you click on the trophy?

350Chevy 01-02-2006 04:02 AM

Quote:

Originally Posted by Seej
Instead of adding the "Arcade Awards" link, is there a way to add this to the menu that pops up when you click on the trophy?

Find the code for the image and replace it with something like this:

Code:

<!-- v3 Arcade -->
<div>
<div id="postmenu_arcade_$post[postid]">
<script type="text/javascript"> vbmenu_register("postmenu_arcade_$post[postid]", true); </script>
<img src="$vboptions[arcadeimages]/trophy.gif" align="absmiddle" alt="Arcade Awards" border="0" /a>
    <div class="vbmenu_popup" id="postmenu_arcade_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
          <tr>
            <td class="thead">$post[username]'s Awards</td>
          </tr>
          <if condition="$post[arcadeawards]!=''">
              $post[arcadeawards]
          <else />
          <tr>
          <td class="vbmenu_option" title="nohilite">
              $post[username] has no awards.</td>
          </tr>
          </if>
        </table>
    </div>
</div>
<!-- /v3 Arcade -->

That is not tested however so let me know how it goes.

XtremeOffroad 01-02-2006 04:35 AM

Very Nice, Clicks install


All times are GMT. The time now is 02:13 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.01713 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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