Page 1 of 1

change file name after uploading

Posted: 05 Jul 2016, 07:17
by kerrymusic
I would like to ask how can I change the file name if I upload the image from frontend?

e.g. phoca_thumb_m to mysitename_thumb_m

Thanks
kerrymusic

Re: change file name after uploading

Posted: 05 Jul 2016, 11:12
by Jan
Hi, see:
https://www.phoca.cz/forum/viewtopic.php?f=1&t=23654#p89002

and similar posts

This needs to be customized directly in the code, there are many places where this system name is managed and there are many dependencies. So this needs to be searched and replaced in the code.

Jan

Re: change file name after uploading

Posted: 05 Jul 2016, 11:30
by kerrymusic
I want to change the code!

can I have the list of file need to change ? line no?

Re: change file name after uploading

Posted: 05 Jul 2016, 11:55
by Jan
Hi, try to see these files:

Code: Select all

components\com_phocagallery\controllers\category.php 
	Line 276 		
	Line 363 		
	Line 462 		
	Line 603 		
  components\com_phocagallery\controllers\user.php 
	Line 567 		
	Line 692 		
	Line 774 		
	Line 863 		
	Line 995 		
  components\com_phocagallery\models\user.php 
	Line 1025 		
  components\com_phocagallery\views\categories\view.html.php 
	Line 31 		
  components\com_phocagallery\views\category\view.html.php 
	Line 51 		
  components\com_phocagallery\views\commentimga\view.json.php 
	Line 109 						
  components\com_phocagallery\views\cooliris3dwall\view.html.php 
	Line 26 		
  components\com_phocagallery\views\detail\view.html.php 
	Line 37 		
  components\com_phocagallery\views\user\view.html.php 
	Line 40 		

  administrator\components\com_phocagallery\controllers\phocagalleryu.php 
	Line 35 		
  administrator\components\com_phocagallery\libraries\phocagallery\file\file.php 
	Line 68 		
	Line 107 		
	Line 116 		
	Line 154 		
  administrator\components\com_phocagallery\libraries\phocagallery\file\filefolder.php 
	Line 25 		
	Line 96 		
  administrator\components\com_phocagallery\libraries\phocagallery\file\filefolderlist.php 
	Line 41 		
  administrator\components\com_phocagallery\libraries\phocagallery\file\filethumbnail.php 
	Line 24 				
	Line 164 		
  administrator\components\com_phocagallery\libraries\phocagallery\file\fileupload.php 
	Line 42 		
	Line 318 		
	Line 475 		
  administrator\components\com_phocagallery\libraries\phocagallery\image\image.php 
	Line 24 			
  administrator\components\com_phocagallery\libraries\phocagallery\image\imagebgimage.php 
	Line 32 		
  administrator\components\com_phocagallery\libraries\phocagallery\image\imagefront.php 
	Line 23 		
	Line 70 		
	Line 122 		
	Line 190 		
	Line 225 		
	Line 332 		
	Line 369 		
  administrator\components\com_phocagallery\libraries\phocagallery\image\imagemagic.php 
	Line 151 					
  administrator\components\com_phocagallery\libraries\phocagallery\render\renderprocess.php 
	Line 28 		
	Line 247 			
  administrator\components\com_phocagallery\models\phocagalleryc.php 
	Line 1176 		
  administrator\components\com_phocagallery\models\phocagalleryefs.php 
	Line 216 		
  administrator\components\com_phocagallery\models\phocagalleryf.php 
	Line 58 		
  administrator\components\com_phocagallery\models\phocagallerym.php 
	Line 141 		
  administrator\components\com_phocagallery\views\phocagalleryf\view.html.php 
	Line 28 		
  administrator\components\com_phocagallery\views\phocagalleryimgs\view.html.php 
	Line 163 			
  administrator\components\com_phocagallery\views\phocagallerym\view.html.php 
	Line 37 		
  administrator\components\com_phocagallery\views\phocagalleryt\view.html.php 
	Line 108 		
  administrator\components\com_phocagallery\views\phocagalleryusers\view.html.php 
	Line 34 		

  administrator\components\com_phocagallery\libraries\phocagallery\file\filefolder.php 
	Line 43 					
	Line 59 					 
	Line 66 						
  administrator\components\com_phocagallery\libraries\phocagallery\file\filethumbnail.php
	Line 37 			
	Line 43 			
	Line 49 		
	Line 262 							
	Line 262 							
	Line 263 							
	Line 263 							
	Line 264 							
	Line 264 							
  administrator\components\com_phocagallery\libraries\phocagallery\image\imagefront.php 
	Line 271 	 
	Line 282 				
	Line 286 				
	Line 306 					
	Line 315 					
	Line 343 				
  administrator\components\com_phocagallery\libraries\phocagallery\image\imagemagic.php 
	Line 148 					
  administrator\components\com_phocagallery\libraries\phocagallery\render\renderfront.php 
	Line 678 			
  components\com_phocagallery\models\user.php 
	Line 1028 		
  components\com_phocagallery\views\category\view.html.php 
	Line 1032 						
	Line 1323 				
	Line 1323 				
	Line 1324 				
	Line 1324 				
	Line 1325 				
	Line 1325 				
	Line 1326 				
	Line 1332 				
	Line 1332 				
	Line 1333 				
	Line 1333 				
	Line 1334 				
	Line 1334 				
  components\com_phocagallery\views\user\view.html.php 
	Line 212 		
	Line 217 			
	Line 218

Re: change file name after uploading

Posted: 05 Jul 2016, 12:24
by kerrymusic
really thanks III I try now

Re: change file name after uploading

Posted: 05 Jul 2016, 12:38
by kerrymusic
ucovergirl.com/change_filename.zip

I think we are talking different files !!!!!!!

Re: change file name after uploading

Posted: 05 Jul 2016, 12:50
by kerrymusic
I just scroll down and there need to change lot of files!!!!

Re: change file name after uploading

Posted: 05 Jul 2016, 13:40
by Jan
Hi, Phoca Gallery is complex system developed over 9 years. In complex system you have a lot of dependencies, a lot of features. There are over 50.000 lines of code so yes there is a lot of code to customize and even you need to be aware of functionality - the name for the thumbnails was selected to be not in conflict in many search and replace functions (e.g. to prevent from replacing a part of path, etc.) :idea:

Jan

Re: change file name after uploading

Posted: 05 Jul 2016, 15:43
by kerrymusic
then I may not change it !!! thanks for your reply !!!!!!!!!!

I use your water mark feature to create a magazine cover !!!! look good !

http://ucovergirl.com/index.php?option= ... 32&lang=en

Re: change file name after uploading

Posted: 06 Jul 2016, 01:08
by Jan
Ok, yes it looks great.

Jan