Welcome Guest [Log In] [Register]

Welcome to Big Boards. Big Boards at one time offered the Zathyus network our long famous Resource Archives, our extensive search indexes, and our info-packed resource forums. Eventually, these were made redundant by upgrades to the documentations and expanded search features added to the ZetaBoards software, and this forum then lost relevancy and subsequently became inactive.

Our team then embarked on a new project called Planet Nexus, where a bold new experiment in forum promotion is taking place. We call it nexworking. NexusTree offers social networking pages for forums in a fully automated format. Your NexusTree page is created instantly when your join the nexus. Find out more by visiting Planet Nexus, and become part of the nexworking revolution.

Posted Image Posted Image
If you're already a member please log in to your account for additional access:

Username:   Password:
Closed Topic
ZB Pop-ups
Topic Started: Feb 10 2009, 12:53 PM (663 Views)
vibrant
Member Avatar
BB Zeta
[ *  *  *  *  *  * ]
Board URL: -PM me if you need it
What browser(s) are you using? FF3
Your Forum System (IF or ZB):ZB
Your Issue/Question: I have seen forums that when you click a link it has a pop-up. So my forum is still being messed with. When people type in the plain link without the /index/ it gives them a popup. So heres the difference.

Code:
 
http://s1.zetaboards.com/boardname

gives you a pop up

Code:
 
http://s1.zetaboards.com/boardname/index/
doesn't

Do you get what I want?
Posting For 1 Year Straight

My Goals
100 - 200 - 300 - 400 - 500 - 600 - 700 - 800 - 900 - 100
Posted Image
Offline
Profile
Goto Top
 
Morgan
Member Avatar
Safe Boating Is No Accident

Are you saying that you want a link to open in a new window? If so, you can use something like this for that effect (put your link where it says "URL" and the text you want users to click on where it says "Text"):
Quote:
 
<a target="_blank" href="URL">Text</a>

Or were you talking about a Javascript pop-up?
Posted Image

Posted Image
Offline
Profile
Goto Top
 
vibrant
Member Avatar
BB Zeta
[ *  *  *  *  *  * ]
JS Pop-Up
Posting For 1 Year Straight

My Goals
100 - 200 - 300 - 400 - 500 - 600 - 700 - 800 - 900 - 100
Posted Image
Offline
Profile
Goto Top
 
Morgan
Member Avatar
Safe Boating Is No Accident

All right, then I've found this code to work really well: http://www.yourhtmlsource.com/javascript/popupwindows.html

To add it, you copy and paste this either Below the Board or Above the Copyright in your board template:
Quote:
 
<script type="text/javascript">
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=400,width=200');
if (window.focus) {newwindow.focus()}
}
</script>
You can change the bolded numbers to alter the height and the width of the pop-up.

Then, for the links that you want to pop-up in a new window, you use this code:
Quote:
 
<a href="javascript:poptastic('URL');">Text</a>
Change the red text to the URL that you want to open (example: http://bigboardsresources.com/) and change the orange text to the text you want the user to click on.
Posted Image

Posted Image
Offline
Profile
Goto Top
 
vibrant
Member Avatar
BB Zeta
[ *  *  *  *  *  * ]
Where do I put the content?
Posting For 1 Year Straight

My Goals
100 - 200 - 300 - 400 - 500 - 600 - 700 - 800 - 900 - 100
Posted Image
Offline
Profile
Goto Top
 
Morgan
Member Avatar
Safe Boating Is No Accident

You put the first part in either the Below the Board or Above the Copyright of your board template.

You use the second part wherever you have links that you want to pop-up in a new window.
Posted Image

Posted Image
Offline
Profile
Goto Top
 
HelenaZF
Member Avatar
advanced techno-feeb

InkLock
Feb 15 2009, 06:02 AM
Where do I put the content?

If you mean where to put the stuff that you want to appear in the pop-up box, [see Morgans post next]
Posted Image Visit the Planet Nexus page!Posted Image

Posted Image
Download some of my graphic sets HERE
Offline
Profile
Goto Top
 
Morgan
Member Avatar
Safe Boating Is No Accident

^That's actually not the case. The "Text" is just the link. The "content" in that case would be on the separate page that is being linked to, where the URL is.

Example: Text <-- Just the link to a page.

InkLock, you never mentioned anything about what is in the pop-up box, but if that's what you're looking for, you could try using the webpage maker and just putting its URL in the code I gave you.
Posted Image

Posted Image
Offline
Profile
Goto Top
 
vibrant
Member Avatar
BB Zeta
[ *  *  *  *  *  * ]
Alright I will try. Sorry if I didn't explain enough.
Posting For 1 Year Straight

My Goals
100 - 200 - 300 - 400 - 500 - 600 - 700 - 800 - 900 - 100
Posted Image
Offline
Profile
Goto Top
 
Nurithobson
Member Avatar
BB Alpha
[ * ]
it even not work for me. why? :ermm:
Offline
Profile
Goto Top
 
Morgan
Member Avatar
Safe Boating Is No Accident

To which are you referring? Please post the code you are using.
Posted Image

Posted Image
Offline
Profile
Goto Top
 
Nurithobson
Member Avatar
BB Alpha
[ * ]
Code:
 
<script type="text/javascript">
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=400,width=200');
if (window.focus) {newwindow.focus()}
}
</script>
Offline
Profile
Goto Top
 
Morgan
Member Avatar
Safe Boating Is No Accident

For the links that you want to pop-up in a new window, did you format them like this?
Quote:
 
<a href="javascript:poptastic('URL');">Text</a>
Posted Image

Posted Image
Offline
Profile
Goto Top
 
Nurithobson
Member Avatar
BB Alpha
[ * ]
Yes and it stile not work.
Offline
Profile
Goto Top
 
Morgan
Member Avatar
Safe Boating Is No Accident

Would you mind giving a link to your page where the link is? You can PM it to me if you don't want to post it.
Posted Image

Posted Image
Offline
Profile
Goto Top
 
Nurithobson
Member Avatar
BB Alpha
[ * ]
Here how it looks
http://img16.imageshack.us/my.php?image=2223wi5.png
Offline
Profile
Goto Top
 
Morgan
Member Avatar
Safe Boating Is No Accident

It seems like you may be missing the "<" at the very beginning of the code. Copy and paste this exactly; make sure you highlight all the text:
Code:
 
<script type="text/javascript">
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=400,width=200');
if (window.focus) {newwindow.focus()}
}
</script>
Posted Image

Posted Image
Offline
Profile
Goto Top
 
Nurithobson
Member Avatar
BB Alpha
[ * ]
I do what you say And I Put the other code

Code:
 
<a href="javascript:poptastic('URL');">Text</a>


In the Edit Board Template - Javascripts.
But now it don't show noting :mellow:
Offline
Profile
Goto Top
 
Morgan
Member Avatar
Safe Boating Is No Accident

No, you put this code wherever you want the link to show:
Code:
 
<a href="javascript:poptastic('URL');">Text</a>

Where would you like to add the link? That's where you would put this part of the code. Be sure to replace the "URL" with the actual URL of the link as well, and "Text" with whatever you want the link to say.
Posted Image

Posted Image
Offline
Profile
Goto Top
 
Nurithobson
Member Avatar
BB Alpha
[ * ]
I see so it not pop ups. beacuse when I Try that it only show a link under my forum.
Offline
Profile
Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Global Support Archive · Next Topic »
Closed Topic