Support Forums

Old 06-10-2009, 07:03 PM   #1
Junior Member
 
Join Date: Jun 2009
Posts: 4
Rep Power: 0
christianpeddler is on a distinguished road
Default URL Open in New Window

Hi. I'm pretty new to 68 Classifieds. I want to create a category that is a TOP category that when clicked it goes to a URL. No problem there. However... How do I get the URL to open in a new window? I dont want users to exit my 68 Classifieds site, I just want to present them with a new window of information.
Thanks
christianpeddler is offline   Reply With Quote
Old 06-10-2009, 07:52 PM   #2
Moderator
 
 
Join Date: Mar 2008
Posts: 975
Rep Power: 25
seymourjames has a spectacular aura about
Default

Please post your 68 Classifieds type (Designer, Developer), version (4.0.x, 4.1.x) and template in your postings asking for help. This information will help you get better answers for your posts. A great place to do this is in your signature!

It is not normally good practice to start opening new windows and is rarely a marketing benefit. I presume these urls however are sitting on another domain.

There are many ways to do this. A search on html will tell you how to do things like this. One easy way is to put target="_blank" in the link

<a href="http://gotothisothersite.com" target="_blank"">Go to this other site!</a>

However, you need to be more clear about what you are actually trying to do.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 06-10-2009, 07:53 PM   #3
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,969
Rep Power: 115
Eric Barnes is a jewel in the rough
Default

This would take the developer edition but open the includes/classes/kernel/Categories.php file and find this:
$rs['start_link']='<a href="'.$rs['cLink'].'" title="'.$rs['name'].'">';

Next add the target = blank:
$rs['start_link']='<a href="'.$rs['cLink'].'" title="'.$rs['name'].'" target="_blank">';
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 06-11-2009, 08:36 AM   #4
Junior Member
 
Join Date: Jun 2009
Posts: 4
Rep Power: 0
christianpeddler is on a distinguished road
Default URL Open in new window

Thanks for the info and your patience as I work through this stuff.

Developer Package V4.1

Web site using 68Class I'm trying to setup is ChristianPeddler.com. Two categories, Resources and Church Directory. I have those setup as TOP categories with a category link to another website we have. When those categories are clicked, I want the other website to open in a new window. Since these are just resource pages, I really dont want the user to leave the "main" site.

I'll try putting in the format you suggested in the category link and see how it acts.
<a href="http://gotothisothersite.com" target="_blank"">Go to this other site!</a>

Again THANK YOU for all your hellp.
Greatly appreciated.
christianpeddler is offline   Reply With Quote
Old 06-11-2009, 10:55 AM   #5
Moderator
 
 
Join Date: Mar 2008
Posts: 975
Rep Power: 25
seymourjames has a spectacular aura about
Default

Why don't you just put these links in the sidebar for example in layout.tpl . Call them what they are and then pop them if necessary. It is more likely to annoy people if a window pops open when they think they are clicking on a category. Many many people just bin websites if they start popping windows in a less than logical way.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 06-11-2009, 03:49 PM   #6
Junior Member
 
Join Date: Jun 2009
Posts: 4
Rep Power: 0
christianpeddler is on a distinguished road
Default URL open in a new window

Thanks again for the reply. Sidebar? The trouble there is making it happen. Do you have any code/info on creating it? I like the idea but I'm not too sure how to code it. I'll search the forums to see if there is info on it. I am using the default template.

Thanks
christianpeddler is offline   Reply With Quote
Old 06-11-2009, 04:13 PM   #7
Moderator
 
 
Join Date: Mar 2008
Posts: 975
Rep Power: 25
seymourjames has a spectacular aura about
Default

In your default template layout.tpl file, place your links in the sidebar.

Something like this like this

<ul class="sidemenu">
<li><a href="{$smarty.const.URL}/index.php">{$smarty.const.LANG_TPL_HOME}</a></li>
<li><a href="{$smarty.const.URL}/search.php">{$smarty.const.LANG_TPL_SEARCH}</a></li>
{foreach from=$templatepages item="entry"}
<li><a href="{$smarty.const.URL}/pages.php?pg={$entry.pURI}">{$entry.pPageTitle}</a></li>
{/foreach}

<li><a href="http://gotothisothersite.com" target="_blank"">Go to this other site!</a></li>
<li><a href="{$smarty.const.URL}/contactus.php">{$smarty.const.LANG_TPL_CONTACT}</a></li>

{modulehook function="tpl_layout_nav" options=""}
</ul>

They will then always be viewable.



put your link
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 06-11-2009, 04:45 PM   #8
Junior Member
 
Join Date: Jun 2009
Posts: 4
Rep Power: 0
christianpeddler is on a distinguished road
Default URL open in a new window

THANK YOU! I took your last advice and opened up the Layout.tpl. Found out where & how to add the links to the left side of the screen. Your code confirms I was on the right track.

Many THANKS for all your help!
christianpeddler is offline   Reply With Quote
Old 06-11-2009, 04:50 PM   #9
Moderator
 
 
Join Date: Mar 2008
Posts: 975
Rep Power: 25
seymourjames has a spectacular aura about
Default

No problem. It is all there as you get stuck into the code.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant open template files in cpanel fc2008 v4.1 Questions & Support 3 05-07-2009 11:55 AM
Please, CLARIFY --.. 99% of source code is open.. -- Stefanbg Pre Sales Questions 1 03-13-2009 10:51 AM
How can I open the smarty debug mode james v4.1 Questions & Support 2 03-03-2009 09:02 PM
Open Ads does not work after upgrade dawyatt v3.1 Questions & Support 0 10-19-2007 11:30 PM
Making a 'seller' sale without the site being officially open Chaslie Site Marketing 5 05-11-2006 09:57 AM


All times are GMT -4. The time now is 05:32 AM.


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