The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Pop up link with a difference
Im working on something due to be released soon and i need something but not sure how. I asked over at vbulletin.com and got told it requires editing files which i dont believe it does but blah, here is what i posted there
I would like to add a simple little link in the users postbit template that when they click brings up a small pop up screen, which would display some certain information grabbed with variables, fo instance their post count and where they live etc etc. Yet i have no idea how to do so, im guessing i would create the template that appears inside the pop up, in the templates section in the admincp, that way i can use the variables etc, but if thats correct, after that i am lost. |
#2
|
|||
|
|||
all you'd need to do is create a new php file that grabs the information you want from the database, and fetches that new template.
then in the postbit you just have make a link to it that pops up. here's the html way of doing it, you can also use javascript if you want more control on the size of the window, status bars etc... HTML Code:
<a href="http://yourforums.com/forum/newphppage.php" target="_blank">Popup Info</a> |
#3
|
||||
|
||||
Even easier would be a pure DHTML popup that could be draggable, and would use the info already on the page ... a tempalte would be all you would need - no file edits really as the javascript would be placed into headinclude, or in the postbit itself...
Check out dynamicdrive.com for the kind of scripts I'm talking about EDIT: you'd be adding the template to the end of your postbit template, wrapped in a Code:
<div id="thefunk" style="display:none"> ..... </div> Code:
display:none; The link you refered to would be Code:
<a href="#" title="Click for great funky lookin information" onclick="bringTheFunk('thefunk');return false;">Bring the funk</a> Code:
<script type="text/javascript> <!-- function bringTheFunk(id) { ..... funky javascript popup here ..... } //--> </script> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|