Go Back   cPanel Forums > General Discussion > cPanel Newbies

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2009, 11:29 PM
Registered User
 
Join Date: Jul 2009
Posts: 13
drdick is on a distinguished road
Editing or inserting ALT Attribute for Image

I'm using cpanel (hosted by Heritage web Design). I have a PHP gallery on my website. I am told by Heritage there is no way to put ALT Attributes on my images. I am a veterinarian who cares for lots of guide dogs. My blind clients have asked me to put ALT attributes on my images. Heritage tells me for $500.00 I can change the gallery type and be able to do that. Seems like a pretty basic thing to do (put in ALT attributes) and it would seem like it should be doable with cpanel.

Is there a way to do it through cpanel??

Thank you very much

Dick G.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-10-2009, 05:28 AM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,496
Infopro is on a distinguished road
Lightbulb

You should be able to edit your code from the File Manager in cPanel easy enough. Or use a good html editing application.

Your host sounds like he's asking for a lot of money for something that should be done by default in most galleries. I had a peek at their website and only see a flash gallery offered, doing anything in flash does require more work and knowledge.

Many hosts these days offer several forms of free galleries you can click to install and upload your images quite easily. Since you don't mention what gallery you're using, not really sure how the question can be answered properly.

If your host wants to charge you for everything he helps you with, it might be wise to find a new one that doesn't.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-10-2009, 10:34 AM
Registered User
 
Join Date: Jul 2009
Posts: 13
drdick is on a distinguished road
Thanks! & Gallery Type

They told me it was a "php gallery". I'm a dog doctor so I have no clue what that actually means. I can't seem to figure out how to get to the properties of the images to put the alt text into the field. Here's a link to one of the galleries (Which was not FREE!) on my web site ... maybe you can tell what it is and advise me on how to put in alt text.
sunnycrestanimalcare.com/childrens_gallery.html
Thanks again for the help. Really appreciate it.

dick

Last edited by Infopro; 07-10-2009 at 05:52 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-10-2009, 05:52 PM
Registered User
 
Join Date: Jul 2009
Posts: 13
drdick is on a distinguished road
thanks again

Thanks for taking the time to look. They called me back this morning from Heritage and told me the modified the captions.txt file so I can use it for alt codes. I did the first page in my client review gallery and it seems to work most of the time.

I don't know how to confirm that what I'm seeing when I mouse over the image is actually and ALT attribute that search engines will see. Hope it is.

I do like cPanel but it would be nice if I could edit keywords and headings, etc. I'm locked out from doing that it seems.

Regards,
dick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-10-2009, 05:52 PM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,496
Infopro is on a distinguished road
Lightbulb

Well I'm not sure I'm any help at all. Your host should be able to assist with something like this easy enough, if they made it though.

No clue who makes that gallery, it does have code in it from dynamicdrivedotcom and this small bit that gives us a hint; (InstanceBegin template="/Templates/default5.dwt") assuming URL="http://www.fileinfo.com/extension/dwt"].dwt[/URL] means dreamweaver template. Adobe - Dreamweaver Developer Center

The gallery already has alt tags in place. On the main page there are alt texts, but it's just pulling the image name. When you click an image for popup the alt tag is there still, but empty. So, when they say this:
Quote:
I am told by Heritage there is no way to put ALT Attributes on my images.
someone's not giving it to you straight.

IMO, if they can have it call an image name for the alt text on the main page, they could at least, add the same code to the popup page to pull the image name in the alt tag there as well.

Anyway, had a few minutes to kill. Sorry can't help more than that

This isn't a cPanel issue though, you'd need to speak to your gallery coder or host about this for help. Or, find a more robust gallery to use from somewhere else that you'll have full control over.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-10-2009, 08:16 PM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,496
Infopro is on a distinguished road
Wink

Quote:
Originally Posted by drdick View Post
Thanks for taking the time to look. They called me back this morning from Heritage and told me the modified the captions.txt file so I can use it for alt codes. I did the first page in my client review gallery and it seems to work most of the time.

I don't know how to confirm that what I'm seeing when I mouse over the image is actually and ALT attribute that search engines will see. Hope it is.
The ones that end in .jpg are not the correct alt tags, if that helps.

Quote:
Originally Posted by drdick View Post

I do like cPanel but it would be nice if I could edit keywords and headings, etc. I'm locked out from doing that it seems.

Regards,
dick
Probably not. But if you're not sure what you're doing you could make a mess I'm sure.

If you open cPanel File Manager and navigate to public_html, click once on the index.html then click edit, you should see your main page's html to do with what you like. Same on the gallery, find the client_gallery.html and open it in the editor. That's your gallery page of course.

You might want to check your pages here The W3C CSS Validation Service and here The W3C Markup Validation Service as well. Fixing a few of those can help your site work it's best for bots and guests.

Best of luck to you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-10-2009, 08:30 PM
Registered User
 
Join Date: Jul 2009
Posts: 13
drdick is on a distinguished road
CSS errors

I did that validation after Heritage did the website and asked them to fix all the errors. Just checked again and there are still 18 errors. I noticed since I started using Google Chrome formatting is not right when using that browser. Thanks for all the good advice. I'll see if I can get heritage to fix the errors again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-10-2009, 08:39 PM
Registered User
 
Join Date: Jul 2009
Posts: 13
drdick is on a distinguished road
Editing HTML

Looks like the edit button is disabled by my host. I click on it and nothing happens. guess they are protecting me from myself<G>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-10-2009, 08:45 PM
Registered User
 
Join Date: Jul 2009
Posts: 13
drdick is on a distinguished road
Correction

It doesn't work for the gallery but it does work for the index file. I started with the gallery since I didn't want to mess up anything major. I think I'm safe taking out a few keywords since I'm told I have too many.

Again thanks for all the help...if you ever have any pet questions I hope I can reciprocate!

Dick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 07-11-2009, 03:17 AM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
Exclamation

Dick:

If you read my posts, you'll see that I am extremely busy not only with
my own business schedule and regular life but I also spend a great deal of
time helping a lot of people on here and at other sites as much as I can.

I cannot guarantee a lot of free time but if you ask me, I'll take a look
at your server when I can and help you insert your ALT tags without the
$500 that your provider is asking you (that's ridiculous incidentally!)

Alt tags (alternate text descriptions) are very easy to add as far as
basic HTML is concerned and only a little more complex when dealing
with dynamic content but the underlying output generation is basically
the same as regular static pages and goes something like this:

Original Image:
Code:
<img src="/path/image.jpg" width="xxx" height="yyy">
ALT Added Image:
Code:
<img src="/path/image.jpg" width="xxx" height="yyy" alt="My Image Text">
As someone pointed out here, they already added "ALT" images to your
image files, just filled in the "alt=" tags with the filenames instead of
a more descriptive message. That would suggest that you can indeed
add ALT tags to your images.

Call it more a case of laziness not wanting to synchronize which picture
goes with which ALT tag or just greed wanting more money than reasonable
for what is not really that difficult of a task but either way, your provider
is asking too high a price tag to insert those for you.

Most image gallery scripts actually have built in support for ALT tags
and though I didn't see what you were using underlying with the sample
URL you provided, your comments suggest you may be using one of the
standard image gallery programs as PHP Gallery, PHP Album, 4 Images, and
Coppermine are all photo gallery programs written in PHP and all of those
have ALT tag descriptions control built right into the menu interface
to make managing ALT tags ridiculously easy plus all of these programs
are open source or similar and are free programs and don't cost anything
to install, setup, or operate. In fact all of these can be installed fully
automatically from a popular 3rd party Cpanel extension called Fantastico
and some of these can also be installed automatically directly from
Cpanel alone without the need for any additional program. All of these
can also be downloaded and installed manually as well and are very
easy to install so if your provider charged you heavily to install your
image gallery, you have definitely been taken for a ride.

Last edited by Spiral; 07-11-2009 at 03:22 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 07-11-2009, 11:05 AM
Registered User
 
Join Date: Jul 2009
Posts: 13
drdick is on a distinguished road
May have figured it out

I really appreciate your offer to help me. With the kind help from this forum I may have figured out how to get the alt attributes in ... it's a bit cumbersome since I have so many but it is doable.

I found a file in the gallery directory called index.php. I found a setting in there:

$text_display = "caption";
/*
Options are "alt", "filename", "caption", and "none" to determine what text displays underneath the
thumbnail image. If set to "caption," the text will be taken from the file "captions.txt" in
the image directory. That file should have one caption per line, with each line formatted
as filename|caption, as follows:


I changed the value from "caption" to "alt".

There is another file called captions.txt. which had a sample in it. The format is:
filename|alt text goes here.

It seems to work because now when I run the mouse over the image I see what I put in the captions.txt file.

The Big Question I have is: Will the search engines see these alt atributes if they are in a php gallery? The reason I ask is because when I run those free SEO tools and the results come up the number of images found is WAY less than the number I have.

Next project is to find out why my formatting is weird in Chrome but ok in Mozilla and Explorer.

Thanks for the help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 07-11-2009, 09:16 PM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
Quote:
Originally Posted by drdick View Post
The Big Question I have is: Will the search engines see these alt atributes if they are in a php gallery? The reason I ask is because when I run those free SEO tools and the results come up the number of images found is WAY less than the number I have.
Yes absolutely! Contrary to popular belief, the search engines don't
really tell any difference between static or dynamic content and will
index your pages and embedded text like ALT tags irregardless.

It does not matter how the pages are actually built behind the scenes.

What does matter is if your pages are behind some sort of password
protection or user authentication or openly viewable by the public
as this does make a difference on search engine indexing.

(I should know since I wrote one of the major engine crawling robots )

Now regarding what is listed in the engines, it takes a little while for
your site to be re-crawled and updated by the various search engines
and depending on your submission methods, how many people search
for keywords that may be relevant to your site, and other factors,
it may take anywhere from a few days to six months before the
search engines have the new information from your ALT tags.

If you are using submission tools, I would go ahead and re-submit
your site and also do a few searches for your site in place like Google
and others to go ahead and get the process started.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 07-11-2009, 09:28 PM
Registered User
 
Join Date: Jul 2009
Posts: 13
drdick is on a distinguished road
Thanks for that information. I'd hate to think I was spending all this time on the ALT attributes for nothing.

Any other tips would be appreciated. I'll resubmit. When I searched images for Sunnycrest some of the client reviews I just put in the alt attribute are coming up already.

Really appreciate the help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 07-12-2009, 05:25 PM
Registered User
 
Join Date: Jul 2009
Posts: 13
drdick is on a distinguished road
Angry ALT attrib. don't show up in Chrome or Firefox

Since ALT Attributes don't show up in Chrome or Firefox do I need to try to change it to a TITLE? If I do that do the search engines still see the text I put in?

Sorry for the "lame" questions!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 07-12-2009, 05:27 PM
Registered User
 
Join Date: Jul 2009
Posts: 13
drdick is on a distinguished road
No Title option

Could I use "caption" instead of "title"? Are they the same thing?

Thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
image alt attributes

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
alt port nileshparmar Mail 1 03-14-2009 04:08 PM
[MailScanner] Removing the ALT attribute for Web Bug images spiff06 Developer Discussions 0 08-30-2006 05:31 PM
Putty and file attribute mahdionline cPanel and WHM Discussions 3 05-01-2006 03:59 AM
auto inserting webbhost cPanel and WHM Discussions 17 03-05-2004 08:36 PM
auto inserting webbhost cPanel and WHM Discussions 3 03-05-2004 01:36 PM


All times are GMT -5. The time now is 05:57 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc