Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 11-28-2005, 09:39 PM
tomf tomf is offline
 
Join Date: Nov 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i still don't get it...maybe you can post a screenshot and mark the place
Reply With Quote
  #12  
Old 11-28-2005, 10:25 PM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here you go Tomf, thanks

I want to display the custom form field that contains members Xbox Live Gamertag value under their post info as Gamertag : XXXXvalueXXXX

Then when it is clicked it displays the following code in a small popup.

<iframe src="http://gamercard.xbox.com/insertgamertaghere.card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>


insertgamertaghere.card will need to be XXXXvalueXXXX, the value from the custom form field.

as mentioned, before 3.5.1 i already had the gamertag value displaying in the postbit, not linked though as this is a new feature from Microsoft for Xbox Live gamers.

*EDIT*

i've worked out how to get those custom fields displaying in postbit_legacy again with this code

<if condition="$post[field7]!=''">
<span class="smallfont"><b>Playing:</b> $post[field7]</span>
</if>
<br>
<if condition="$post[field8]!=''">
<span class="smallfont"><b>Gamertag:</b> $post[field8]</span>
</if>

now i just need to link in the Gamertag using the popup VB menu system with that Xbox Live Gamercard URL/Iframe code in it. If someone can help that would be incredible
Attached Images
File Type: jpg xbw_gamertag.jpg (41.1 KB, 0 views)
Reply With Quote
  #13  
Old 11-28-2005, 10:52 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What your looking for is to have like a window that opens and closes right? sorta like what I did with the collapsable postbit / rpg menus?
Reply With Quote
  #14  
Old 11-28-2005, 11:08 PM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep thats it! ive got the stuff displaying now, just need to link the gamertag one with the snazzy vb menus and the iframe.
Reply With Quote
  #15  
Old 11-28-2005, 11:38 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, my site is down so I can't test this.

This code uses a combination of my rpg menu hack and the collapsable postbit, with a code fix from Oblivion.

I'm totally guessing here but PLEASE let me know if it works. Because if it does I'll likely be able to do my collapsable postbit without a code edit

So, just add this where you want it.

Code:
<!-- ##### START HACK - Gamertag Info ##### -->
<if condition="$post[field8]!=''">
<span class="smallfont"><b>Gamertag:</b> <div id="gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>">$post[username]<script type="text/javascript"> vbmenu_register("gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>", true); </script>
</div>
<div class="vbmenu_popup" id="gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>_menu" style="display:none">
 <iframe src="$post[field8]" scrolling="no" frameBorder="0" height="140" width="204"></iframe>
</div>
<br />
</if>
<!-- ##### END HACK - Gamertag Info ##### -->
I suck at html so I'm really not sure how the iframe and div will interact.

Also, I'm guessing that field8 they put the full url in?
Reply With Quote
  #16  
Old 11-28-2005, 11:57 PM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no field8 is just their gamertag so i need the URL in the iFrame

which i assume will be as follows?

<iframe src="http://gamercard.xbox.com/$post[field8].card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>

lemme give it a shot

I used this :

<!-- ##### START HACK - Gamertag Info ##### -->
<if condition="$post[field8]!=''">
<span class="smallfont"><b>Gamertag:</b> <div id="gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>">$post[username]<script type="text/javascript"> vbmenu_register("gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>", true); </script>
</div>
<div class="vbmenu_popup" id="gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>_menu" style="display:none">
<iframe src="http://gamercard.xbox.com/$post[field8].card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>
</div>
<br />
</if>
<!-- ##### END HACK - Gamertag Info ##### -->

And it displays as :

Gamertag :
Shane

(the actual value of $post[field8] for me should be Spagman)

you can see it on my site at : http://www.xboxworld.com.au/forum/sh...579#post526579

i will change it back to normal for now.
Reply With Quote
  #17  
Old 11-29-2005, 12:38 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, it's because the DIV forces a carriage return.

Hmm.. well, I'm not sure how to do it with keeping the gamertag and username separate, but this will work for certain, though it won't have the indention that you were looking for in your screenie.

Code:
<!-- ##### START HACK - Gamertag Info ##### -->
<if condition="$post[field8]!=''">
<div id="gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>"><b>Gamertag:</b> $post[field8]<script type="text/javascript"> vbmenu_register("gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>", true); </script>
</div>
<div class="vbmenu_popup" id="gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>_menu" style="display:none">
<iframe src="http://gamercard.xbox.com/$post[field8].card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>
</div>
<br />
</if>
<!-- ##### END HACK - Gamertag Info ##### -->
Try that
Reply With Quote
  #18  
Old 11-29-2005, 12:48 AM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow that works!!! looks awesome!

thanks heaps Cyricx.

can i ask one last thing, when you mouse over it and click it works fine, but the mouse pointer doesnt change. is there a way to do that / and / or underline the Gamertag so that its visually noticeable as a link?

sorry to bug you further!
Reply With Quote
  #19  
Old 11-29-2005, 03:38 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, that's the only thing thats bug me about this code is the whole noticable link thing.

This will underline the gamers tag

Code:
<!-- ##### START HACK - Gamertag Info ##### -->
<if condition="$post[field8]!=''">
<div id="gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>"><b>Gamertag:</b> <u>$post[field8]</u><script type="text/javascript"> vbmenu_register("gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>", true); </script>
</div>
<div class="vbmenu_popup" id="gamertagpostmenu_<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>_menu" style="display:none">
<iframe src="http://gamercard.xbox.com/$post[field8].card" scrolling="no" frameBorder="0" height="140" width="204"></iframe>
</div>
<br />
</if>
<!-- ##### END HACK - Gamertag Info ##### -->
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 01:37 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.04357 seconds
  • Memory Usage 2,270KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete