vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Xbox Gamercards [NXE enabled] (https://vborg.vbsupport.ru/showthread.php?t=196144)

Distance 12-03-2008 11:10 AM

Quote:

Originally Posted by Forum Lover (Post 1664770)
Great thing. Is there any way to restrict over user group? Lets say for example usegroup called "senior members" will be allowed to put their gamecards?

You would do this by finding which usergroups you wish to view this and use the following conditional below;

Code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)">
.

Replacing X Y Z with the relative usergroup IDs.

Then simply add </if> to the end of the code and you're done. :)

GamingFusion 12-10-2008 03:34 AM

Quote:

Originally Posted by Distance (Post 1677705)
You would do this by finding which usergroups you wish to view this and use the following conditional below;

Code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)">
.

Replacing X Y Z with the relative usergroup IDs.

Then simply add </if> to the end of the code and you're done. :)

Thanks for adding this! I'll add it to the main post and give you credit! Thanks again! =]

SSC streezer 01-10-2009 08:20 PM

can somebody help me witz this mod? id doesnt work on mine seems not to work. i made it like in the instructions (more than once)

here is my code which i pastet in my template - is this correct?
PHP Code:

<div>$post[icqicon$post[aimicon$post[msnicon$post[yahooicon$post[skypeicon] <if condition="$post[field5]"><fieldset><legend>XBox LIVE Gamercard</legend>
<
div>
<
center><img src="http://card.mygamercard.net/DE/geothermal/gray/$post[field5].png" width="200" height="90">
</
center>
</
div>
</
fieldset></if></div

regards

GamingFusion 01-11-2009 12:52 PM

Quote:

Originally Posted by SSC streezer (Post 1707744)
can somebody help me witz this mod? id doesnt work on mine seems not to work. i made it like in the instructions (more than once)

here is my code which i pastet in my template - is this correct?
PHP Code:

<div>$post[icqicon$post[aimicon$post[msnicon$post[yahooicon$post[skypeicon] <if condition="$post[field5]"><fieldset><legend>XBox LIVE Gamercard</legend>
<
div>
<
center><img src="http://card.mygamercard.net/DE/geothermal/gray/$post[field5].png" width="200" height="90">
</
center>
</
div>
</
fieldset></if></div

regards

Version 2.00 is now released fixing all sizing issues and makes it much more compact and out of the way!

That is really weird.. that does look correct. Try this code instead (same location) and tell me if this works for you.. if not let me know. I copied and pasted this from my site so just replace the "field5" with your field for your gamertag. (I also sent this to your PM). I just checked your site... you are using "postbit" try going to vBulletin Options in your admincp and click Style & Language Settings. Change it to legacy and hit Save. Check your forum and see if the gamercard is there now. If it is, great.. if not, try replacing the code above with the code I have provided below (in the same place):

Code:

<if condition="$post['field5']">
<div id="gamertagmenu_$post[postid]"><a href="#"><b>Xbox LIVE</a>&nbsp;<img src="http://forum.swisssoldiersclan.ch/images/misc/menu_open.gif"></b>
<script type="text/javascript"> vbmenu_register("gamertagmenu_$post[postid]", true); </script>
</div>
<div class="vbmenu_popup" id="gamertagmenu_$post[postid]_menu" style="display:none"><iframe src="http://gamercard.xbox.com/$post[field5].card" scrolling="no" frameBorder="0" height="140" width="204">$post[field5]</iframe> </div>
</if>

Hope this helps! =]

SSC streezer 01-11-2009 06:53 PM

thx - i didn't get a PM from you :s

yeah if the settings are changed to the option you said it works :D thanks dude - but i got a problem with the size - its pretty warped.... see here: http://forum.swisssoldiersclan.ch/sh...5190#post15190

GamingFusion 01-11-2009 09:25 PM

Quote:

Originally Posted by SSC streezer (Post 1708857)
thx - i didn't get a PM from you :s

yeah if the settings are changed to the option you said it works :D thanks dude - but i got a problem with the size - its pretty warped.... see here: http://forum.swisssoldiersclan.ch/sh...5190#post15190

Hahaha I got this:
(I know a little German lol so it was pretty easy to pick up on it.. before I realized you wrote it in English as well! HAHA)

Quote:

Das Forum ist auf Grund von Wartungsarbeiten vor?bergehend geschlossen.

Bitte haben Sie Verst?ndnis und versuchen Sie es sp?ter noch einmal.

Our forum is currently under maintenance. Thank you for your appreciation.
I'm guessing you are talking about the dimensions... easy to fix.. just add after the source in the image you are using the following

Code:

WIDTH="NUMBER" HEIGHT="NUMBER">
Replace NUMBER with dimensions until you find the right set... I usually just divide the width and height by 1/3 then subtract that number by the normal size. There you go! :) If you need more help let me know... or if I need to say that better lol.

Nephalim 01-11-2009 11:51 PM

hi i put in the code but immediately get template errors.
i put the code in like this...
$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon] --->RIGHT HERE!!
after i do it there's two - if - conditions in a row. that is not correct right? </if></if>

help please

SSC streezer 01-12-2009 06:16 AM

if i type in a width or height - it doesn't have any effect to the size which is showed (see printscreen)

GamingFusion 01-12-2009 09:25 AM

Quote:

Originally Posted by SSC streezer (Post 1709380)
if i type in a width or height - it doesn't have any effect to the size which is showed (see printscreen)

Okay I think you are using a different picture for your Gamercard... they can be a little glitchy with this code but can you remove the WIDTH/HEIGHT and retake a picture so I can see how it looks? Thanks.

SSC streezer 01-12-2009 09:42 AM

see printscreen above...


All times are GMT. The time now is 02:50 PM.

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.01217 seconds
  • Memory Usage 1,759KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)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