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)
-   -   Profile Enhancements - GamerCards Block in Profile Sidebar and Postbit (https://vborg.vbsupport.ru/showthread.php?t=232033)

K4GAP 08-23-2010 07:28 AM

Quote:

Originally Posted by Noctavia (Post 2083636)
Now that I have this new right side location to display the Gamer ID's on my users profile, is there any way I could add additional info to it?

For example, I want to add my own html, or move some of the other user profile field's to that side as well. Is that possible?

I AM NOT coder just another user but in my experience with side blocks content I have found you can add your own content to end or before the intended content as long as the type of code is the same. Does that make sense?

Noctavia 08-23-2010 10:00 AM

Quote:

Originally Posted by GaryT (Post 2088162)
I AM NOT coder just another user but in my experience with side blocks content I have found you can add your own content to end or before the intended content as long as the type of code is the same. Does that make sense?

I need to know where to add it. What template.

BaziCenter 08-24-2010 07:59 AM

Quote:

Originally Posted by Noctavia (Post 2088215)
I need to know where to add it. What template.

To add a new block at the bottom of the right sidebar, edit the memberinfo_block_gamercards template.
find this:
Code:

<vb:if condition="$newsidebar">
    <vb:comment>sidebar-gamerids</vb:comment>   
</div>
</vb:if>

BEFORE </div> you can put your own profile block with this structure:
Code:

<div class="block">   
    <h5 class="blocksubhead smaller">NAME OF THE BLOCK</h5>
    <div class="blockbody">
            <div class="blockrow">
            <div>YOUR HTML OR CONDITIONAL CODE!</div>
            </div>
    </div>
</div>
<div class="underblock"></div>


STORMS 08-24-2010 11:11 PM

Can anyone tell me or give me the correct coding to make this plugin appear in the postbit like this:
https://vborg.vbsupport.ru/external/2010/08/18.png

I don't care for the images, I just want people to be able to post their ID's in a very simple and convenient way.

Any help?

BaziCenter 08-26-2010 02:57 PM

Edit the postbit_gamercards template and replace this code with a original code:
Code:

<vb:if condition="$gamerid['gamertag'] OR $gamerid['psnid'] OR $gamerid['xfireid'] OR $gamerid['steamid'] OR $gamerid['wiicode']">
<!-- Gamer IDs -->
<dl class="userinfo_extra">
    <vb:if condition="$gamerid['gamertag']">
    <dt>{vb:rawphrase bc_gamercards_postbit_gamertag}</dt>
    <dd>
        <a href="javascript://" onclick="openWindow('gamercard.php?do=xboxlive&amp;u={vb:raw post.userid}',440,345); return false;">{vb:raw gamerid.gamertag}</a>
    </dd>
    </vb:if>
    <vb:if condition="$gamerid['psnid']">   
    <dt>{vb:rawphrase bc_gamercards_postbit_psnid}</dt>
    <dd>
        <vb:if condition="$euversion">       
        <a href="javascript://" onclick="openWindow('gamercard.php?do=psn&amp;u={vb:raw post.userid}',600,170); return false;">{vb:raw gamerid.psnid}</a>
        <vb:else />
        <a href="javascript://" onclick="openWindow('gamercard.php?do=psn&amp;u={vb:raw post.userid}',300,200); return false;">{vb:raw gamerid.psnid}</a>   
        </vb:if>
    </dd>           
    </vb:if>
    <vb:if condition="$gamerid['xfireid']">   
    <dt>{vb:rawphrase bc_gamercards_postbit_xfireid}</dt>
    <dd>   
        <a href="javascript://" onclick="openWindow('gamercard.php?do=xfire&amp;u={vb:raw post.userid}',480,235); return false;">{vb:raw gamerid.xfireid}</a>
    </dd>   
    </vb:if>
    <vb:if condition="$gamerid['steamid']">   
    <dt>{vb:rawphrase bc_gamercards_postbit_steamid}</dt>
    <dd>
        <a href="javascript://" onclick="openWindow('gamercard.php?do=steam&amp;u={vb:raw post.userid}',330,364); return false;">{vb:raw gamerid.steamid}</a>
    </dd>   
    </vb:if>
    <vb:if condition="$gamerid['wiicode']">   
    <dt>{vb:rawphrase bc_gamercards_postbit_wiicode}</dt>
    <dd>
        {vb:raw gamerid.wiicode}
    </dd>   
    </vb:if>       
</dl>
<!-- / Gamer IDs -->
</vb:if>

If you use and like this mod please mark as installed.

owning_y0u 08-26-2010 06:28 PM

Quote:

Originally Posted by BaziCenter
4) You can use these optional Regular Expressions (regex) for the fields:
XBOX Live Gamertag: ^([A-Za-z0-9 ]+)?$
PlayStation Network ID: ^([A-Za-z0-9-_]+)?$
Wii Friend Code: ^([0-9]{4}[- ][0-9]{4}[- ][0-9]{4}[- ][0-9]{4})?$
XFIRE Username: ^([a-z0-9]+)?$
Steam ID: ^([A-Za-z0-9-_]+)?$

doens't this have to be

XBOX Live GamerTag: ^([A-Z|-a-z|0-9]+)?$
PlayStation Network ID: ^([A-Z|a-z|0-9-_]+)?$
XFIRE Username: ^([A-Z|-a-z|0-9]+)?$
Steam ID: ^([A-Z|-a-z|0-9]+)?$

Cause without the pipeline you i get an error

sematopdemir 08-27-2010 06:58 AM

Works great. Installed.

ESKORPION 09-04-2010 02:30 PM

Works great! Installed!

Cluvdowns 09-06-2010 09:55 PM

Thanks Bazi. Great mod.

Canis Firebrand 09-08-2010 05:13 PM

Great mod.

I just want to use it in my member profile.
Is it possible to add two small images or links below the XBox gamer tag.

One would be to send a friends request. The other would be to send an xbox live message.


All times are GMT. The time now is 03:16 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.01549 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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