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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-26-2005, 11:18 AM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can someone help with the popup menus in Vb?

You know how you click on a posters username in a post/thread to get their public profile/send a PM etc

Can anyone please help me add another option to that?
Reply With Quote
  #2  
Old 11-26-2005, 03:10 PM
tomf tomf is offline
 
Join Date: Nov 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what option do you want to add?

go to your style manager and edit the template postbits/postbit

find: <div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">

and in this table add some new <tr class="vbmenu_option"><td>your code</td></tr>
Reply With Quote
  #3  
Old 11-26-2005, 09:50 PM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tomf
what option do you want to add?

go to your style manager and edit the template postbits/postbit

find: <div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">

and in this table add some new <tr class="vbmenu_option"><td>your code</td></tr>
hi Tom i want to display the value of a custom form field from the users profile, but then it links to an external source with a variable that is the value entered into the form.
Reply With Quote
  #4  
Old 11-27-2005, 01:12 AM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sbryan
hi Tom i want to display the value of a custom form field from the users profile, but then it links to an external source with a variable that is the value entered into the form.
The code you should add would be (substitute field5 for the actual name of the profile field):

<if condition="$post[field5]">
<tr class="vbmenu_option"><td><a href="$post[field5]>$post[field5]</a></td></tr>
</if>

I hope I understood correctly what you need...
Reply With Quote
  #5  
Old 11-27-2005, 05:02 AM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok to summarise, basically to make myself clear as i have a habit of not explaining properly and confusing myself

I have a custom form field that has peoples Xbox Live gamertags that they enter. It used to display under their post count etc (if a value was entered) as Gamertag : XXXX (XXXX being the value entered).

What i would like to do now is put that back since upgrading to 3.5.1. It should only display if it has a value entered.

Then after it displays, it should have a VB menu style link on it that displays the following from xbox.com (external URL) :

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

(i hope the code displays as code properly)

So it needs to feed the form field value into the URL as well.

I've seen it done elsewhere so it can be done, but i'm just having issues getting it working since upgrading.

Any help appreciated!
Reply With Quote
  #6  
Old 11-27-2005, 01:07 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it's in the postbit just keep in mind that the value of the field is $post[field5] (substitute field5 for the actual name of the field)

Apart from that I didn't understand... You want to use an iframe on the postbit?????
Reply With Quote
  #7  
Old 11-27-2005, 07:32 PM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not actually in the postbit, only when you click on a link for it.

eg : Gamertag : Spagman

Spagman is the value of a custom form field, when you click on it, it would then use the nifty vbulletin popup menu system to then display the iframe content.
Reply With Quote
  #8  
Old 11-27-2005, 10:23 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Theres a mod released somewhere for xbox live gamertags for 3.5.x

Have a look around the 3.5.x forums or search for gamertag and I'm sure it will come up
Reply With Quote
  #9  
Old 11-27-2005, 10:27 PM
tomf tomf is offline
 
Join Date: Nov 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so if I'm right you want to add your own popup menu and not modify the "username popup" ?

where do you wanna add it?
Reply With Quote
  #10  
Old 11-27-2005, 10:38 PM
sbryan's Avatar
sbryan sbryan is offline
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, yeah its easy enough to add this to display but as mentioned, i would like it as a clickable option in a seperate popup menu from the 'username popup' so that nothing in the standard menus breaks or goes weird.
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 02:42 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.06907 seconds
  • Memory Usage 2,266KB
  • 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
  • (2)bbcode_quote
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete