Support Forums

Hi everybody

This is a discussion on Hi everybody within the Technical Support forums, part of the Technical Support Forums category; Somebody can help me? I have 68C V.4.1.5 I wonder if i can to put some links in my index ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 08-16-2009, 04:35 AM   #1
Customer
 
lowis's Avatar
 
Join Date: Aug 2009
Location: Sweden
Posts: 54
Rep Power: 9
lowis is on a distinguished road
Default Hi everybody

Somebody can help me?
I have 68C V.4.1.5 I wonder if i can to put some links in my index page, but those link open with a poopu, please somebody what code i have to use and where can to put the.

I have this code, but the mainpage doesnt appear.

Layout.tpl
{literal}
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=200,width =150');
if (window.focus) {newwindow.focus()}
return false;
}

// -->
</script>
{/literal}

the in the language swedish.php file I had to put this:

<a href="popupex.html" onclick="return popitup('popupex.html')"
>Link to popup</a>


I dont know if I wrong, or what can i do for fix .
lowis is offline  
Old 08-16-2009, 05:21 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,229
Rep Power: 80
seymourjames is a jewel in the rough
Default

First of all, you should have started a new thread rather than posting onto the end of a different subject. I have taken the liberty of moving your post and making a new thread. No harm done.

Secondly, using popups is considered bad practice as it just annoys. Also many people just use popup blockers. You may be better off just using a normal link with target="_blank" in the link.

However, you are nearly there. You need to put your first lot of code (I modified it slightly) into the top of your layout.tpl file.

{literal}
<script language="javascript" type="text/javascript">
{literal}
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=200,width =150');
if (window.focus) {newwindow.focus()}
return false;
}

// -->
{/literal}
</script>


Your second lot of code <a href="popupex.html" onclick="return popitup('popupex.html')"
>Link to popup</a> goes into in the template file that you wish to use the link in. For example, you could put it into the home.tpl file if you want the link to appear on your home page. You would again put it into the layout.tpl file if you want it to appear on every page etc.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Closed Thread

Thread Tools
Display Modes



All times are GMT -4. The time now is 03:43 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0