Alt Text and URL HELP!
-
Hi!
I’m using NextGEN Galley for over 2 years now. The only thing that bothered me is that it changes the image URL every time I edit the image Alt Text and also, you couldn’t leave the alttext box empty since it always showed that “ugly” picture_name_something title above the image in the Imagebrowser view. So, I did some minor “tweaking”, actually just removing the line:
$image->image_slug = nggdb::get_unique_slug( sanitize_title( $image->alttext ), 'image', $image->pid );
from ” // only uptade this field if someone change the alttext” section in manage.php file. I’ve updated it regularly up until v1.9.13 but since the v2.0.0 the complete code was changed and I couldn’t figure out how to make it work like the old one. When I update the NextGEN Gallery from v1.9.13 to v2.0.0 it regenerates all the URL’s, recreates all Alt Texts and creates a mess on my website.
The thing is, I need to make NextGEN Gallery behave like this: When I create a new gallery and upload images, it creates all the image slugs, generates Alt Texts (the “ugly” ones with dashes) and everything as it should. After that, I want to be able to delete the alttext and leave it empty (so when I view the image in the Imagebrowser view it will show no text above the image) and also, when I edit or delete the Alt Text, I want the image-slug (thus the URL of the image) to be unchanged (the same as it was created in the first place)
I know I almost wrote a novel here and I’m sorry about that. I was just trying to explain myself as much as possible.
Any help/ideas?
I’m pretty stuck here and I just can’t find the way to solve this. I’ve got my fingers crossed that the community will be able to help.
Thank you all in advance!
The topic ‘Alt Text and URL HELP!’ is closed to new replies.