|
|
#1 |
|
Junior Member
Join Date: Jun 2009
Posts: 4
Rep Power: 0 ![]() |
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 |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2008
Posts: 975
Rep Power: 25 ![]() |
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. |
|
|
|
|
|
#3 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,969
Rep Power: 115 ![]() |
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 |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jun 2009
Posts: 4
Rep Power: 0 ![]() |
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. |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Mar 2008
Posts: 975
Rep Power: 25 ![]() |
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.
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jun 2009
Posts: 4
Rep Power: 0 ![]() |
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 |
|
|
|
|
|
#7 |
|
Moderator
Join Date: Mar 2008
Posts: 975
Rep Power: 25 ![]() |
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 |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Jun 2009
Posts: 4
Rep Power: 0 ![]() |
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! |
|
|
|
|
|
#9 |
|
Moderator
Join Date: Mar 2008
Posts: 975
Rep Power: 25 ![]() |
No problem. It is all there as you get stuck into the code.
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |