Support Forums

Display Featured Ads on external websites

This is a discussion on Display Featured Ads on external websites within the Technical Support forums, part of the Technical Support Forums category; Hi, I'm upgrading from v4.0.9 to 4.1.x. With a modification I've made with v4.0.x, I 'm displaying on several websites ...


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 04-02-2009, 09:48 AM   #1
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 111
Rep Power: 21
frommarcq is on a distinguished road
Default Display Featured Ads on external websites

Hi,

I'm upgrading from v4.0.9 to 4.1.x. With a modification I've made with v4.0.x, I 'm displaying on several websites (external from my server) some featured ads, displayed randomly, with thumbnail, title, price and link to my website.

I've created a .php file, using feature_listings_horizontal function.

The problem is that with v4.1.x, the URL of the displayed ads isn't correct (it doesn't redirect to my ad website, 'cause the URL is just 'viewlisting.php?view=...')

How can I display the complete URL in feature_listings_horizontal function ? Is there a mod for such a wish ?

Thanks for your help !

Regards
Pascal

PS : I've have already add 'URL' before 'viewlisting.php?view=' in feature_listings_horizontal (that's what I did with the previous version) without any success...

PHP Code:
$link=URL."/viewlisting.php?view=".$loop[$x][id]; 
__________________
68classifieds (V4.0.9Developer)

maison nord - appartement Lille - maison lens - meteo Lille - restaurants Lievin
frommarcq is offline  
Old 04-02-2009, 09:51 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,290
Rep Power: 130
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by frommarcq
PS : I've have already add 'URL' before 'viewlisting.php?view=' in feature_listings_horizontal (that's what I did with the previous version) without any success...

PHP Code:
$link=URL."/viewlisting.php?view=".$loop[$x][id]; 
If you add the complete URL in front of the existing quoted partial URL in your code snippet above there is no reason it shouldnt work.....


PHP Code:
$link=URL."http://mywebsite.com/viewlisting.php?view=".$loop[$x][id]; 
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 04-02-2009, 10:24 AM   #3
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 111
Rep Power: 21
frommarcq is on a distinguished road
Default

Hi Larry !

I hope that everything's ok for you. In the North of France, the crisis makes the economy go slower... and a national website proposes FOR FREE ads (Petites annonces gratuites d'occasion - leboncoin.fr), and catches the market of the little ad. So it's not easy...

I can't use an unique URL, because I've several ads websites with differents URL... That's why I wanted a dynamic URL...

I was wrong in my customization : I just have to change

PHP Code:
$link $modules->call_hook('listing_url'$loop[$x]); 
with

PHP Code:
$link URL.'/' $modules->call_hook('listing_url'$loop[$x]); 
and it works...

Have a nice day !

Regards
Pascal
__________________
68classifieds (V4.0.9Developer)

maison nord - appartement Lille - maison lens - meteo Lille - restaurants Lievin
frommarcq is offline  
Closed Thread

Tags
ads , display , external , featured , website

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Featured Display Fields nagrap2 Technical Support 2 09-10-2008 01:37 PM
Display Category name in Featured*listings hel68c Technical Support 0 08-06-2008 06:19 PM
Display Featured Ads on Forum outlook Technical Support 2 06-26-2008 07:47 PM


All times are GMT -4. The time now is 06:55 AM.


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