View Single Post
  #1  
Old 03-21-2012, 02:41 AM
  Warwick's Avatar 
Warwick Warwick is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Somewhere on the web through European connection
Posts: 868
 

Question Add popup window - can't get it to work

I have found several threads about this subject, getting a popup window to appear but can't get it to work.

In a .tpl file I added the following:
---
<a href="popup_info.php?action=templatename" onclick="javascript: return typeof(window.popupOpen) == 'undefined' || !popupOpen('popup_info.php?action=templatename', '{$title|wm_remove|escape:javascript}');" class="popup-link" target="_blank"><img src="{$ImagesDir}/spacer.gif" alt="{$lng.lbl_popup_help|escape}" /></a>
---

With this code the x-cart questionmark icon is shown and it is clickable, opening a popu which should hold the content of hlp_templatename.tpl;
So in skin1/help/ I created the hlp_templatename.tpl file which is called.
But I keep on getting a popup (so at least that part works) but with a message the page can't be found or isn't accessable. I have read several posts about this but can't find an answer.

Any idea what could be going wrong?
__________________
Installs: X-Cart 4.1.x - 4.4.x ∙∙ MySQL version: 5.0.45 ∙∙ Apache version: 2.2.8 (Unix) ∙∙ PHP version: 5.25
X-Cart add-ons: all ∙∙ Mods: A lot; too many ∙∙ Skin templates: Many
∙∙ Experience: Somewhere beyond newbie
-----------------------------------
------------------------------------------------------------------------------------------------------
Looking for the best dutch language pack? 4.1.x - 4.6.x compatibel, native speaker translation! More info
Reply With Quote