Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / [RESOLVED] Images in RSS feeds

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

[RESOLVED] Images in RSS feeds

More
11 years 7 months ago - 11 years 7 months ago #700 by yavor50
[RESOLVED] Images in RSS feeds was created by yavor50
There was a very nice solution to show images in RSS feeds under AdsManager 2.5. However, it does not work with the current version. Any ideas how images can be shown in feeds under 2.9? I use RSS Graffiti to share ads in the FB fan page of my website and showing the correct image of the ad is essential.
Last edit: 11 years 7 months ago by tompap.
More
11 years 7 months ago #703 by Ads4ever
Replied by Ads4ever on topic Images in RSS feeds
Hello,

in file :
ROOT_URL/components/com_adsmanager/views/list/view.feed.php

add this code after line 88 :
// display image  (BEGIN)
			$baseurl = JURI::base();
			$img ="";
 
			$imgArray =  $row->images  ;
 
			 if (isset($imgArray[0]))
			 {
				 $img = "<img src='".$baseurl."images/com_adsmanager/ads/".$imgArray[0]->thumbnail."' border='0' /> ";
			 }
			 else
			 {
				 $img = "<img src='".$baseurl."components/com_adsmanager/images/nopic.gif' />";
			 }
 
			 $item->description 	.= '<br />'.$img ;
 
			// display image  (END)


Also I think that there is a bug in that file, because I faced an error and I fixed that by :

change line 88 from this
$item->author		= $author;

to be this :
$item->author		= $user->name;

Founder of ITechnoDev
The following user(s) said Thank You: yavor50
More
11 years 7 months ago #724 by Ads4ever
Replied by Ads4ever on topic Images in RSS feeds
if you want the image before description you can change the line :
$item->description 	.= '<br />'.$img ;

to be like this :
$item->description =  '<br />'.$img.'<br />'.$item->description  ;

Founder of ITechnoDev
The following user(s) said Thank You: yavor50
Moderators: perry
Time to create page: 0.176 seconds
Powered by Kunena Forum