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 / Image name

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

Image name

More
11 years 2 months ago #13610 by raph17
Image name was created by raph17
When i upload an image to an ad the image name is adimage_adid

How can i change this to a ad_field_adid?

Thank you
More
11 years 2 months ago #13618 by tompap
Replied by tompap on topic Image name
There is no option for that you will have to hack the code, everything is in the administrator/components/com_adsmanager/tables/contents.php
The following user(s) said Thank You: raph17
More
11 years 2 months ago #13625 by raph17
Replied by raph17 on topic Image name
Can you please tell me if this is the right code to modify?
jimport( 'joomla.filter.output' );
		//True to force transliterate
		$imgtitle = TTools::stringURLSafe($row->ad_headline,true);
		if ($imgtitle == "") {
			$imgtitle="image";
		}
 
   		foreach($this->data['images'] as &$image) {	
			$src  =$dir.$image->image;
			$dest =$dirfinal.$imgtitle."_".$contentid."_".$image->index.".jpg";			 
			JFile::move($src,$dest);
			$image->image = $imgtitle."_".$contentid."_".$image->index.".jpg";
 
			$src  =$dir.$image->thumbnail;
			$dest =$dirfinal.$imgtitle."_".$contentid."_".$image->index."_t.jpg";		
			JFile::move($src,$dest);
			$image->thumbnail = $imgtitle."_".$contentid."_".$image->index."_t.jpg";	
 
			$src  =$dir.$image->medium;
			$dest =$dirfinal.$imgtitle."_".$contentid."_".$image->index."_m.jpg";		
			JFile::move($src,$dest);
			$image->medium = $imgtitle."_".$contentid."_".$image->index."_m.jpg";
 
			$current_images[]= $image;
		}
More
11 years 2 months ago #13632 by tompap
Replied by tompap on topic Image name
Yes

line like this

$dest =$dirfinal.$imgtitle."_".$contentid."_".$image->index.".jpg";
The following user(s) said Thank You: raph17
More
11 years 2 months ago - 11 years 2 months ago #13719 by raph17
Replied by raph17 on topic Image name
Solved

Thank you
Last edit: 11 years 2 months ago by raph17.
More
11 years 2 months ago #13730 by tompap
Replied by tompap on topic Image name
Great !
The following user(s) said Thank You: raph17
Moderators: perry
Time to create page: 0.070 seconds
Powered by Kunena Forum