View Single Post
  #799  
Old 06-26-2012, 04:37 PM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doubleclick View Post
Hello -

A couple of quick questions.

1. Where is the code for the News, Arcade Champions, etc. I'd like to change the order in which they appear.

2. How can I display one of those blocks like the News and events in the forum sidebar?

3. Can you point me to some resources that would help me figure out how to display these arcade boxes in a column on existing pages outside the vbulletin folder?
1. Here is the section of code from the v3ARCADE_MAIN template which displays all the arcade sidebar. The bits in bold highlight the start and finish of each block.

Code:
<!-- Side Bar -->
<div style="float: <vb:if condition="$vboptions['fliparcade']">left<vb:else />right</vb:if>; width: 200px">
    <div class="collapse">
        <h3 class="blockhead">
            <a href="#top" class="collapse" id="collapse_v3_userblock"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="" title="{vb:rawphrase collapse_this_category}" /></a>
            {vb:rawphrase loggedinas}
        </h3>
        <div class="blockbody v3_block" id="v3_userblock">
            <div class="blockrow" align="center">
                <div class="v3_strong">{vb:raw player.username}</div>
                <vb:if condition="$player['usertitle']">
                    <div>{vb:raw player.usertitle}</div>
                </vb:if>
                <vb:if condition="$player['rank']">
                    <div>{vb:raw player.rank}</div>
                </vb:if>
                <vb:if condition="$show['avatar']">
                    <div>
                        <vb:if condition="!$player['userid']">
                            <img class="v3_gameicon" src="{vb:raw player.avatarurl}" alt="" border="0" />
                        <vb:else />
                            <a href="{vb:link member, {vb:raw bbuserinfo}}<vb:if condition="$vboptions['friendlyurl'] < 3">&amp;<vb:else />?</vb:if>tab=v3arcade_stats"><img class="v3_gameicon" src="{vb:raw player.avatarurl}" alt="" border="0" /></a>
                        </vb:if>
                    </div>
                </vb:if>
            </div>
        </div>
    </div>
    
    <div class="collapse">
        <h3 class="blockhead">
            <a href="#top" class="collapse" id="collapse_v3_search"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="" title="{vb:rawphrase collapse_this_category}" /></a>
            {vb:rawphrase gamesearch}
        </h3>
        <div class="blockbody v3_block" id="v3_search">
            <div class="blockrow">
                <input type="text" class="textbox" name="gamestring" onkeyup="gamesearch(this.value)" />
            </div>
            <div class="blockrow" id="searchtable">
                {vb:rawphrase searchresultsappearbelow}
            </div>
        </div>
    </div>

    <vb:if condition="$vboptions['arcade_newslimit']">
        <div class="collapse">
            <h3 class="blockhead">
                <a href="#top" class="collapse" id="collapse_v3_news"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="" title="{vb:rawphrase collapse_this_category}" /></a>{vb:rawphrase newsandevents}
            </h3>
            <div class="blockbody v3_block" id="v3_news">
                {vb:raw newsbits}
            </div>
        </div>
    </vb:if>
        
    <vb:if condition="$arcadechamps">
        <div class="collapse">
            <h3 class="blockhead">
                <a href="#top" class="collapse" id="collapse_v3_champs"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="" title="{vb:rawphrase collapse_this_category}" /></a>
                {vb:rawphrase arcade_champions}
            </h3>
            <div class="blockbody v3_block" id="v3_champs">
                {vb:raw arcadechamps}
                <vb:if condition="$show['lb_link']">
                    <div class="blockrow">
                        <a href="arcade.php?{vb:raw session.sessionurl}do=leaderboard">{vb:rawphrase view_leaderboard}</a>
                    </div>
                </vb:if>
            </div>
        </div>
    </vb:if>
        
    <vb:if condition="$latestscorebits">
        <div class="collapse">
            <h3 class="blockhead">
                <a href="#top" class="collapse" id="collapse_v3_newscores"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="" title="{vb:rawphrase collapse_this_category}" /></a>{vb:rawphrase latest_scores}
            </h3>
            <div class="blockbody v3_block" id="v3_newscores">
                {vb:raw latestscorebits}
            </div>
        </div>
    </vb:if>
        
    <vb:if condition="$mcbits">
        <div class="collapse">
            <h3 class="blockhead">
                <a href="#top" class="collapse" id="collapse_v3_newchallenges"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="" title="{vb:rawphrase collapse_this_category}" /></a>{vb:rawphrase recent_challenges}
            </h3>
            <div class="blockbody v3_block" id="v3_newchallenges">
                <div class="blockrow">
                    <table cellpadding="2" cellspacing="0" width="100%">
                        {vb:raw mcbits}
                    </table>
                </div>
            </div>
        </div>
    </vb:if>
    
    <div class="collapse">
        <h3 class="blockhead">
            <a href="#top" class="collapse" id="collapse_v3_viewmode"><img src="{vb:stylevar imgdir_button}/collapse_40b.png" alt="" title="{vb:rawphrase collapse_this_category}" /></a>{vb:rawphrase viewingmode}
        </h3>
        <div class="blockbody v3_block" id="v3_viewmode">
            <div class="blockrow">
                <table cellpadding="4" cellspacing="0" width="100%">
                    <tr>
                        <td width="50%" align="{vb:stylevar right}" style="padding-{vb:stylevar right}: 2px">
                            <img src="{vb:raw vboptions.arcadeimages}/slim{vb:raw barstatus.1}.gif" border="0" alt="" align="{vb:stylevar left}" />
                            <vb:if condition="$barstatus[0]">
                                <a href="arcade.php?{vb:raw session.sessionurl}barsize=1<vb:if condition="$categoryid">&amp;categoryid={vb:raw categoryid}</vb:if>">{vb:rawphrase mode_miniature}</a>
                            <vb:else />
                                <em>{vb:rawphrase mode_miniature}</em>
                            </vb:if>
                        </td>
                        <td width="50%" align="{vb:stylevar left}" style="padding-{vb:stylevar left}: 2px">
                            <img src="{vb:raw vboptions.arcadeimages}/thick{vb:raw barstatus.0}.gif" border="0" alt="" align="{vb:stylevar right}" />
                            <vb:if condition="$barstatus[1]">
                                <a href="arcade.php?{vb:raw session.sessionurl}barsize=0<vb:if condition="$categoryid">&amp;categoryid={vb:raw categoryid}</vb:if>">{vb:rawphrase mode_standard}</a>
                            <vb:else />
                                <em>{vb:rawphrase mode_standard}</em>
                            </vb:if>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
<!-- / Side Bar End -->
2 and 3 - If you check the code in my CMS/Forum Sideblock add-on it may give you some ideas of what code is required to make the blocks; you basically need the database query to pull the information (usually found within either arcade.php or v3arcade_functions.php) and then generate a template to display it.

https://vborg.vbsupport.ru/showthread.php?t=261177
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01291 seconds
  • Memory Usage 1,804KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete