MisterWebNet

<<< Coding for the future >>>

Home Coding PHP _1 in title of Joomgallery images
_1 in title of Joomgallery images PDF Print E-mail
Written by Administrator   
Tuesday, 07 December 2010 16:14

JoomGalleryThe Problem: When a user uploads images in JoomGallery, there is a _1 in the title. For some reason, JoomGallery inserts it to distinguish a user uploaded image from an admin uploaded image. I presume there is some setting in the config panel to remove it, but me being me, I could'nt find it. So I did things the old fashioned way (and harder way). If somebody got an easier solution (or knows where the option is in the config panel) please leave a comment!

To solve, open up components/com_joomgallery/helpers/upload.php

Find the lines (around line 350):

// Add counter number if set in backend

if($this->_config->get('jg_useruploadnumber'))

{

// $row->imgtitle = $row->imgtitle.$this->imgname_separator.$filecounter;
}

 

Change to:

// Add counter number if set in backend

if($this->_config->get('jg_useruploadnumber'))

{

$row->imgtitle = $row->imgtitle;

}

 

User uploaded pictures should no longer display _1 in the title. This solution only works for pictures that will be uploaded from now on. It does not apply retrospectively!

 

 

Last Updated on Tuesday, 07 December 2010 16:23
 

Comments  

 
0 #1 2011-02-25 22:27
Exatly what annoyed me, thanks very much for the idea.
Quote
 

Add comment

We reserve the right to remove comments without notice. Users are responsible for their own comments and the contents contained within.


Security code
Refresh

ThugVillage.com
Mens Entertainment Magazine with girls, gadgets, indepth analysis, videos and much more
Best Flash Games
The best flash games on the net - 100% free!
HiredMedia
Off beat, deep-web, alternative videos