Support Forums

external listing

This is a discussion on external listing within the TemplateCodes forums, part of the Third Party Support category; What version of 68 Classifieds are you running? V4.2.1 Designer [b]What template are you using?evo red hi just put the ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

Reply
 
Thread Tools Display Modes
Old 03-30-2011, 12:01 PM   #1
Customer
 
Join Date: Nov 2009
Posts: 44
Rep Power: 9
ccs is on a distinguished road
Default external listing

What version of 68 Classifieds are you running?
V4.2.1 Designer

[b]What template are you using?evo red

hi just put the external listing code onto another site I am building and I have a mental block on how to get it to open in a new page.
I ahve pasted the following
<iframe width="1000" height="307" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://customcarsales.com.au/modules.php?mod=external&number=7&type=featured&ti tleLength=60"> </iframe>

I am sure I am just not thinking but please hep
ccs is offline   Reply With Quote
Old 03-30-2011, 12:35 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,460
Rep Power: 88
seymourjames is a jewel in the rough
Default

its an iframe and you put that code into another site so it appears on it. Google iframe for all the things you can do with them. I am not seeing your issue.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Old 03-30-2011, 06:24 PM   #3
Customer
 
Join Date: Nov 2009
Posts: 44
Rep Power: 9
ccs is on a distinguished road
Default

NSW Custom Car Club

is the page I hav it on and it does show up but when u click on it it opens up on the page not at the 68c site
ccs is offline   Reply With Quote
Old 03-30-2011, 06:48 PM   #4
Customer
 
Join Date: Mar 2011
Posts: 53
Rep Power: 5
TheTechGuru is on a distinguished road
Default

You might just need to add a target the the links inside the plugin itself.

For instance:

Quote:
<a href="yada"></a>
Becomes:

Quote:
<a href="yada" target="_blank"></a>
Or if you want it to open in the same browser window:

Quote:
<a href="yada" target="_parent"></a>
Although I dont think _parent works with iframes, Im not sure, I havent used an iframe in a bit.

More info: HTML TARGET - HTML Code Tutorial

Again this would have to be done in the plugin itself, for both the link attached to the image, and the link attached to the text.

I could be wrong, but its worth a shot I guess.
TheTechGuru is offline   Reply With Quote
Old 03-30-2011, 07:10 PM   #5
Customer
 
Join Date: Mar 2011
Posts: 53
Rep Power: 5
TheTechGuru is on a distinguished road
Default

Im sorry seymourjames, I just realized that I posted in your section for support. Im pretty sure this is not for anyone but TC to do. I didnt realize it at the time, I just clicked on the topic without looking at the section.
TheTechGuru is offline   Reply With Quote
Old 03-30-2011, 07:44 PM   #6
Customer
 
Join Date: Nov 2009
Posts: 44
Rep Power: 9
ccs is on a distinguished road
Default

the _blank tagrget doesn't seem to work . I tried _top as well
ccs is offline   Reply With Quote
Old 03-30-2011, 09:22 PM   #7
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,460
Rep Power: 88
seymourjames is a jewel in the rough
Default

No problem Techguru.


I just use this and it brings up another page.

HTML Code:
<iframe src ="http://demo.templatecodes.com/modules.php?mod=search_results&searchtext=&type=&city=&state=&country=&minprice=&maxprice=&submit=Search" width="690" height="1130" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe> 
example: My Classifieds Blog
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Old 03-30-2011, 09:26 PM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,460
Rep Power: 88
seymourjames is a jewel in the rough
Default

Check you have something like this in your searchresults.tpl file. The template you have is quite old now and I do not remember if this module was updated.

Code:
<td{if $entry.class<>""} class="{$entry.class}"{/if}><a href="{$entry.link}" target="_blank" title="{$entry.title}">{if $entry.image != ""}<img src="thumbs/small_{$entry.image|escape:"url"}" border="0" alt="{$entry.title}" />{else}<img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophotosmall.gif" border="0" alt="{$entry.title}" />{/if}</a></td>
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Old 03-31-2011, 09:21 AM   #9
Customer
 
Join Date: Nov 2009
Posts: 44
Rep Power: 9
ccs is on a distinguished road
Default

/public_html/templates/Evo-Red/search.tpl

This file did not have the line you refer to. Where do I plave it in the code below

{*$Revision: 345 $*}
<script type="text/javascript" src="javascript/jquery/date_input/jquery.date_input.min.js"></script>
<link rel="stylesheet" href="javascript/jquery/date_input/date_input.css" type="text/css">
<script language="javascript" type="text/javascript">
<!--
{literal}
$(document).ready(function() {

$("#type").change(function()
{
$("#response").show()
//alert($('#type option:selected').val());
$.ajax({
url: 'ajax.php',
data: 'action=extra_listing_fields&do=search§ion=' + $('#type option:selected').val(),
type: 'post',
success: function (msg) {
$("#response").html(msg);
}
});
});

$("#parent").change(function()
{
$("#response").show()
//alert($('#section option:selected').val());
$.ajax({
url: 'ajax.php',
data: 'action=extra_listing_fields§ion=' + $('#type option:selected').val(),
type: 'post',
success: function (msg) {
$("#response").html(msg);
}
});
});

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

{modulehook function="tpl_search_head" options=""}

<form name="searchform" id="form" method="get" action="searchresults.php">

<fieldset>
<legend>{$smarty.const.LANG_SEARCH}</legend>

<p id="searchtext">
<label for="searchtext">{$smarty.const.LANG_SEARCH_TEXT}{ $smarty.const.LANG_COLON}</label>
<input name="searchtext" id="searchtext" value="{$searchtext}" type="text" size="{$smarty.const.FIELD_SIZE}" />
</p>

<p id="category">
<label for="type">{$smarty.const.LANG_SEARCH_INCAT}{$smar ty.const.LANG_COLON}</label>
<select name="type" id="type">
<option value=''>{$smarty.const.LANG_SEARCH_ALLCAT}</option>
{foreach from=$getcats item=cat}
<option {if $cat.parent_id == 0}class="parent" {/if}value="{$cat.id}"{if $type==$cat.id} SELECTED{/if}>{$cat.name}</option>
{/foreach}
</select>
</p>

{if $sCity=="Y"}
<p id="city">
<label for="city">{$smarty.const.LANG_CITY}{$smarty.const .LANG_COLON}</label>
<select name="city">
<option value=''>{$smarty.const.LANG_SEARCH_ALLCAT}</option>
{section name=i loop=$cities}
<option value="{$cities[i].city}">{$cities[i].city}</option>
{/section}
</select>
</p>
{/if}

{if $sState=="Y"}
<p id="state">
<label for="state">{$smarty.const.LANG_STATE}{$smarty.con st.LANG_COLON}</label>
<select name="state" id="state">
<option value=''>{$smarty.const.LANG_SEARCH_ALLCAT}</option>
{section name=i loop=$states}
<option value="{$states[i].state}">{$states[i].state}</option>
{/section}
</select>
</p>
{/if}

{if $sCountry=="Y"}
<p id="country">
<label for="country">{$smarty.const.LANG_COUNTRY}{$smarty .const.LANG_COLON}</label>
<select name="country" id="country">
<option value=''>{$smarty.const.LANG_SEARCH_ALLCAT}</option>
{section name=i loop=$countries}
<option value="{$countries[i].country}">{$countries[i].country}</option>
{/section}
</select>
</p>
{/if}

{if $sPrice=="Y"}
<p id="price">
<label for="minprice">{$smarty.const.LANG_SEARCH_PRICE_RA NGE}{$smarty.const.LANG_COLON}</label>
{html_input_price name="minprice" size="10"}
 {$smarty.const.LANG_TO} 
{html_input_price name="maxprice" size="10"}
</p>
{/if}

{modulehook function="tpl_search_form" options=""}
<div id="response"></div>
<div id="optResponse"></div>

<p class="continue" style="margin-left:250px"><input type="submit" name="submit" value="{$smarty.const.LANG_SEARCH_BUTTON}" /></p>


</fieldset>
</form>

{modulehook function="tpl_search_footer" options=""}
ccs is offline   Reply With Quote
Old 03-31-2011, 09:34 AM   #10
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,460
Rep Power: 88
seymourjames is a jewel in the rough
Default

searchresults.tpl . It is in the templates folder for the module itself.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline   Reply With Quote
Reply

Tags
external listings

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
external listing module jason1971 TemplateCodes 1 03-30-2010 09:50 AM
v4.0.7 external.php $listing['title'] set to 'One & Two' ksuralta Technical Support 2 08-06-2008 11:31 AM
External RSS seymourjames Technical Support 3 05-05-2008 08:42 PM
external url anna245 Technical Support 1 05-02-2008 03:55 PM


All times are GMT -4. The time now is 05:10 PM.


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