vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Can someone help with the popup menus in Vb? (https://vborg.vbsupport.ru/showthread.php?t=101588)

sbryan 11-26-2005 11:18 AM

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?

tomf 11-26-2005 03:10 PM

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>

sbryan 11-26-2005 09:50 PM

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.

Lea Verou 11-27-2005 01:12 AM

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...

sbryan 11-27-2005 05:02 AM

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

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!

Lea Verou 11-27-2005 01:07 PM

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?????

sbryan 11-27-2005 07:32 PM

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.

peterska2 11-27-2005 10:23 PM

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

tomf 11-27-2005 10:27 PM

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?

sbryan 11-27-2005 10:38 PM

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.


All times are GMT. The time now is 04:06 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.01774 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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