TinyPortal

Development => Support => Topic started by: Mintschi on July 06, 2007, 03:25:31 PM

Title: Popup Link
Post by: Mintschi on July 06, 2007, 03:25:31 PM
Hi Folks,

I asked it before in the German Support Section in this Forum, but I couldn't get any Solution Tip, so far.
I want to open my Flashchat in a Popup Window over a Link in the Sitemap Block Navigation.
Is there a Way to do so?

regards,
Mintschi
Title: Re: Popup Link
Post by: IchBin on July 06, 2007, 10:38:12 PM
You can have it open a new window. Menu Manager > Edit link > Choose "Open link in a new window".
You can't however, control the size/shape of the pop-up. If you want to do that you have to create a custom menu.
Title: Re: Popup Link
Post by: Mintschi on July 07, 2007, 01:43:27 AM
Thx for the Reply, IchBin!

Quote from: IchBinâ„¢ on July 06, 2007, 10:38:12 PM
If you want to do that you have to create a custom menu.

How does it look like to create a custom menu? My PHP Knowledge is very poor.
Title: Re: Popup Link
Post by: IchBin on July 07, 2007, 01:55:24 AM
A quick search in the block code snippets for "menu" will bring you a few results. You can also look in the block code snipppets index sticky at the top of that board to find a link to one of the threads for custom menu's.
Title: Re: Popup Link
Post by: Mintschi on July 08, 2007, 02:50:07 PM
I tested the Simple & Professional Menu with Icons by YJ and build in a Javascript Popup Link for the Flashchat which works fine in my Html Editor, but in Tinyportal it opens everytime in a seperate Window with a Tab (Firefox). Why??!  :o

greetz,
Mintschi
Title: Re: Popup Link
Post by: tick on July 08, 2007, 03:13:06 PM
Can you post the code you are using for your link?  It will be hard for us to see what could be wrong if we can not see the code you are using.
Title: Re: Popup Link
Post by: Mintschi on July 08, 2007, 05:22:55 PM
I tested several Javascript Popup Codes, Tick.
Here are 3 Codes for example I've tried to getting work with TP:


<html>
<head>
<script language="JavaScript">
<!--
/* hier nichts ändern */
function popup(name,einstellungen)
{
window.open('',name,einstellungen);
}
//-->
</script>
</head>

<body>
<a href="datei.htm" target="popupname" onclick="javascript:popup('popupname','width=340,height=260,directories=no,toolbar=no,location=no,menubar=no,scrollbars=no,status=no,resizable=no,dependent=no')">Link öffnet neues Fenster</a>
</body></html>


The next one is a Menu Link from the Orion CMS (www.cback.de PHPBB based), but wasn't shown correctly in TP Menu Section:

<a href="javascript:void(0);" onClick="window.open('chat/flashchat.php','scrollbars=no,width=540,height=450')">Flashchat</a>

Code No. 3:

<html>
<head>
<title>Popup-Fenster mit JavaScript</title>
<script type="text/javascript">
function popup(url) {
fenster=window.open(url, "Popupfenster", "width=400,height=300,resizable=yes");
fenster.focus();
return false;
}
</script>
</head>
<body>
<p><a href="popupfenster.htm" target="_blank" onclick="return popup(this.href);">Fenster anzeigen</a></p>
</body>
</html>
Title: Re: Popup Link
Post by: Zetan on July 08, 2007, 05:38:55 PM
The popup window looks ok to me. You say the link isn't showing correctly?
I see one chat link on your site in it's own block.
Title: Re: Popup Link
Post by: Mintschi on July 08, 2007, 07:48:21 PM
Quote from: Zetan on July 08, 2007, 05:38:55 PM
I see one chat link on your site in it's own block.

Zetan, that's another Forum (MKPortal with PHPBB2). ;)
I'm testing TP & SMF on my local Xampp environment.
Currently I'm online, have a look under http://stay.kicks-ass.net/forum/smf/index.php (second Block, left side).

cheers,
Mintschi
Title: Re: Popup Link
Post by: Mintschi on July 09, 2007, 01:52:25 AM
I've found a Solution for the Popup Prob!
The Magic Word was "Scriptbox". Now, all the Stuff is working for me. :)
I like to thank you all for your helping hands. ;)

have a nice time,
Mintschi