The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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? |
#2
|
|||
|
|||
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> |
#3
|
||||
|
||||
Quote:
|
#4
|
|||
|
|||
Quote:
<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... |
#5
|
||||
|
||||
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! |
#6
|
|||
|
|||
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????? |
#7
|
||||
|
||||
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. |
#8
|
|||
|
|||
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 |
#9
|
|||
|
|||
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? |
#10
|
||||
|
||||
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.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|