The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[ REQUEST ] vB 3 pop up
Hello,
I am looking for a way to have a Pop Up be displayed when someone views the index page. Wanting to display Ad stuff or Announcements. I know there are scripts out there that do this but I am wanting one that is friendly with vB 3. Does anyone know how to go about doing this? Thanks, Itworx4me |
#2
|
||||
|
||||
Template FORUMHOME
Code:
<script type="text/javascript"> window.open('http://www.your-add.url','popup',''); </script> You can also specifiy various parameters (width, height, scrollbars, etc.) with the 4th parameter. |
#3
|
||||
|
||||
What if I wanted to do text in a popup box? How would I go about doing that?
Thanks for the the ad part. I will definetly use it. Thanks, Itworx4me |
#4
|
||||
|
||||
For static text just use an HTML-file and the url in place.
For dynamic content you could do smth like Code:
<script type="text/javascript"> var popup = window.open('', 'popup', ''); popup.document.open('text/html', 'replace'); popup.document.write('$stylevar[htmldoctype]<HTML><HEAD><TITLE>$vboptions[bbname] Greeting</TITLE></HEAD><BODY>Welcome $bbuserinfo[username]</BODY></HTML>'); popup.document.close(); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|