With this replacement tag you're able to open an article in a new popup window. If you want to you can also specify the width and height of the new window.
Usage this tage like this:
[POPUP:IDorAlias]LinkName[/POPUP]
or
[POPUP:IDorAlias:Width:Height]LinkName[/POPUP]
Read more here and see it in action
http://phpwcms.pixelpeter.de/index.php?popupwindow
PopUp-Window Replacement Tag
-
- Posts: 45
- Joined: Fri 27. Feb 2004, 16:00
There's actually a "feature" on some systems (didn't evaluate it deeper) causing this not to work by using the php-function is_int
- In front.func.inc.php search for the function get_article_jslink
- Search the line "if( is_int($article_id) )"
- and replace it with "if( is_numeric($article_id) )"
Maybe this helps !!
This doesn't change the behavior for aliases: Please try using simple aliases containing only a-z and test if this solves the problem.
- In front.func.inc.php search for the function get_article_jslink
- Search the line "if( is_int($article_id) )"
- and replace it with "if( is_numeric($article_id) )"
Maybe this helps !!
This doesn't change the behavior for aliases: Please try using simple aliases containing only a-z and test if this solves the problem.
ich hab das tool jetzt eingebaut, aber er zeigt mir folgenden Fehler:
was könnte da der fehler sein??
Code: Select all
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/www/web57/html/include/inc_front/front.func.inc.php on line 1756
Einen Fehler bekomme ich zwar, nicht, aber es öffnet sich nicht alleine der Artikel, sondern die ganze seite mit dem artikel als popup. eigentlich logisch. aber interessanter wäre ein tag mit dem man externe seiten einbinden kann.
ich helfe mir z.b. hiermit:
<a href="#" onClick="window.open('quiz.php', 'NewWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=250,
height=340')">Quiz</a>
wäre das nicht eine Idee für einen neuen Tag?
ich helfe mir z.b. hiermit:
<a href="#" onClick="window.open('quiz.php', 'NewWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=250,
height=340')">Quiz</a>
wäre das nicht eine Idee für einen neuen Tag?
visit me: http://www.content-solutions.net
pixelpeter, nice mod - thx. I'll try to modificate it a little bit, to get only article in a different template layout than it was declared on structure.
BTW. you don't have to modificate these two files to get it work. Just put the code into phpwcms_template/inc_script/frontend_render/ and for example popup_window.php - it should work fine.
BTW. you don't have to modificate these two files to get it work. Just put the code into phpwcms_template/inc_script/frontend_render/ and for example popup_window.php - it should work fine.