Alt tags for seo effects Alt tags for seo effects
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Alt tags for seo effects

Started by aftab1003, May 10, 2008, 01:10:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aftab1003

Hi good day to u all.

i am here, to know that how i can add file TITLE as alt tags, (title that we write when upload a file) and in second line the image file NAME.. like this.

the picture of my friend at trip
image001.jgp


and it show be every where, where these pictures shows in thumb mode or full size.

thanks

artoonie

Is the function theme_html_picture() in your theme.php file? If not, copy/paste it there.
Then, find:
$pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\"


In the alt tag, change
{$lang_display_image_php['view_fs']}

To
Quote{$CURRENT_PIC_DATA['title']}: {$lang_display_image_php['view_fs']}




Find
Quote$pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\"\" /><br />\n";

Change
alt=\"\"

To
alt=\"{$CURRENT_PIC_DATA['title']}\"



Find
        $pic_html = "<a href=\"{$picture_url}\" target=\"_blank\" class=\"document_link\"><img src=\"".$pic_thumb_url."\" border=\"0\" class=\"image\" /></a>\n<br />";

Change
class=\"image\" />

To
class=\"image\" alt=\"{$CURRENT_PIC_DATA['title']}\" />






I have this running on my site, but I haven't captioned the thumbnails and can't figure out how atm.
I'll let you know if I do.

aftab1003

i have done all suggestions, but still there is no change, i am using latest updates 1.4.18 and can be viewd on this

http;//www.picturerating.us/picture-gallery

aftab1003

Quote from: aftab1003 on May 13, 2008, 05:23:06 PM
i have done all suggestions, but still there is no change, i am using latest updates 1.4.18 and can be viewd on this

http;//www.picturerating.us/picture-gallery


sorry the link is not working , try this...
http://www.picturerating.us/picture-gallery

artoonie

Quote from: aftab1003 on May 13, 2008, 05:26:31 PM

sorry the link is not working , try this...
http://www.picturerating.us/picture-gallery
It works fine for me.


And I think I forgot to mention, but:
Judging by the topic name, you're trying to optimize SEO. Having the filename in the alt tag won't help much, if at all. Also, alt tags can only have one line (as far as my knowledge goes).

Right click on any image (not thumbnail) in the gallery, and look under "alternate text", it works fine :) [in firefox...in IE, just hold your mouse over the image]

aftab1003

i need all these functions started from thubnails to larg pictures, and you are working only on larg pictures nor thumbnails, in my view, if you search the images on google or yahoo, u can also find the thumbnails, and one thing more when we upload new images, and goole or any search engine cache our main index pages, that time all text, headings ,comments and alt tags of any type wil also help to catch specific keywords with these alt tags, so i need it starts from thumbnails to all pictures.
may be i have less knowledge than you regarding alt tags, if yes then pleas let me know know and do as i wish.
thanks

artoonie

I'm going to try to understand this...


Quote from: aftab1003i need all these functions started from thubnails to larg pictures, and you are working only on larg pictures nor thumbnails, in my view
You need them both on thumbnails and large pictures?
Like I said, this mod is only for the large pictures.


Quote from: aftab1003if you search the images on google or yahoo, u can also find the thumbnails
This is true, but you don't need to return thumbnails in a search. Google makes the thumbnails for you anyway, it'd be a waste.


Quote from: aftab1003and one thing more when we upload new images, and goole or any search engine cache our main index pages
Yes, as well as all other pages being linked to

Quote from: aftab1003that time all text, headings ,comments and alt tags of any type wil also help to catch specific keywords with these alt tags, so i need it starts from thumbnails to all pictures.
Search engines will look for specific keywords?
Well, yeah. That is happening though, just not with thumbnails.

Quote from: aftab1003may be i have less knowledge than you regarding alt tags, if yes then pleas let me know know and do as i wish.
I'm not really sure, you seem to have some knowledge, but I couldn't understand most of your post.





If you're saying you want them on thumbnails, I really don't think that would benefit you SEO'ly.

aftab1003

Quote from: artoonie on May 16, 2008, 03:24:58 AM
You need them both on thumbnails and large pictures?
YES

Quote from: artoonie on May 16, 2008, 03:24:58 AM
This is true, but you don't need to return thumbnails in a search. Google makes the thumbnails for you anyway, it'd be a waste.
You are right, but a thumbnail also give a visit to your site from a search engine..

Quote from: artoonie on May 16, 2008, 03:24:58 AM
Search engines will look for specific keywords?
offcourse, we dont know 100% of search term and keywords, and may a alt tag hit from a keyword..


Quote from: artoonie on May 16, 2008, 03:24:58 AM
If you're saying you want them on thumbnails, I really don't think that would benefit you SEO'ly.
but i think, and i precticed this technique, and give me 45% more traffic than ever.. and you should analyze your pages, and then u find that that analyzers five information about your alt tags of images.

but
pleas any one help me regarding my issue.

artoonie

QuoteYES
That was a translation. I explained why I can't/won't.


QuoteYou are right, but a thumbnail also give a visit to your site from a search engine..
How will having visitors seeing a 100x100pixel thumbnail benefit your site?
It's really not worth it, and I'm not going to waste my time making it. If you want it, ask someone else or figure it out yourself. Sorry. I've explained why I won't do it and I'm telling you it won't be that beneficial.


Quoteoffcourse, we dont know 100% of search term and keywords, and may a alt tag hit from a keyword..
The same keywords are on the large pictures anyway.


QuoteYou are right, but a thumbnail also give a visit to your site from a search engine..
If someone searches for "hello" and your image comes up, the thumbnail would probably make the real image less likely to get clicked. So, in a way, it's NOT beneficial.



Quotebut i think, and i precticed this technique, and give me 45% more traffic than ever.. and you should analyze your pages, and then u find that that analyzers five information about your alt tags of images.
No.



Quotepleas any one help me regarding my issue.
I did.








:)

aftab1003

i think we are out of way, and not discussing on our issue, so pleas to the real point.

any way, where is the ADMIN team....

@ ADMINs , help me ???

guilinexpat

Great, that was what I was searching for.

Could I possibly replace the  {$CURRENT_PIC_DATA['title']}  with {$CURRENT_PIC_DATA['keywords']}  to use the keywords as alt tags?

guilinexpat

Sorry, one more question: I could only find theme.inc.php Is this the file meant?

Joachim Müller

No, never edit include/themes.inc.php. Only edit themes/yourtheme/theme.php. If a particular function or variable definition that you want to see modified in your custom theme doesn't exist there, copy the corresponding section (and only that section) from themes/sample/theme.php.
This has been explained many times over and is being covered in the docs.
Additionally, we have a strict "one question per thread" policy and a policy that you mustn't attempt to hijack other's threads. You did all that, so please read up board rules and respect them in the future. Thanks.

Locking

Joachim Müller

guilinexpat by PM:
Quote from: guilinexpat
Sorry, but the second question was just a clarification on the instruction on the top.  Shall I open an extra thread for that?

Furthermore, if you don' t want people to post on older threads, you could lock it after a few days inactivity

I do not expect to get professional help from a free software, but "Freundlichkeit hat noch niemandem geschadet"

So long

Respecting board rules doesn't hurt either.
Quote from: guilinexpat
Der moderator,

please delete my account. I do not wish to participate in this community anymore

Thank you
Did as suggested and deleted the account. Just not using the account any longer would have done the same though.