TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,234
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 519
  • Total: 520
  • @rjen

Popup Link

Started by Mintschi, July 06, 2007, 03:25:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mintschi

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

IchBin

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.

Mintschi

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.

IchBin

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.

Mintschi

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

tick

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.

Mintschi

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>

Zetan

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.

Mintschi

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

Mintschi

#9
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

This website is proudly hosted on Crocweb Cloud Website Hosting.