Support Forums

Old 04-02-2009, 09:48 AM   #1
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 120
Rep Power: 15
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)
frommarcq is offline   Reply With Quote
Old 04-02-2009, 09:51 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 4,130
Rep Power: 101
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by frommarcq View Post
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.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 04-02-2009, 10:24 AM   #3
Senior Member
 
frommarcq's Avatar
 
Join Date: Mar 2006
Location: Lille (France)
Posts: 120
Rep Power: 15
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)
frommarcq is offline   Reply With Quote

Bookmarks

Tags
ads, display, external, featured, website

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
Change Featured Display Fields nagrap2 v4 Questions & Support 2 09-10-2008 01:37 PM
Display Category name in Featured*listings hel68c v4 Questions & Support 0 08-06-2008 06:19 PM
Display Featured Ads on Forum outlook v4 Questions & Support 2 06-26-2008 07:47 PM
External.php of just featured ads? With images? Shinkaze v3.1 Questions & Support 5 01-09-2007 10:16 AM
Need help with Featured items display sedonagate v3.1 Questions & Support 2 09-18-2006 12:18 PM


All times are GMT -4. The time now is 07:37 AM.


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