Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Alt tags for seo effects  (Read 7094 times)

0 Members and 1 Guest are viewing this topic.

aftab1003

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 67
    • PictureRating Site for Teens
Alt tags for seo effects
« on: May 10, 2008, 01:10:10 pm »

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
Logged

artoonie

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: Alt tags for seo effects
« Reply #1 on: May 11, 2008, 10:19:57 pm »

Is the function theme_html_picture() in your theme.php file? If not, copy/paste it there.
Then, find:
Code: [Select]
$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
Code: [Select]
{$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
Code: [Select]
alt=\"\"
To
Code: [Select]
alt=\"{$CURRENT_PIC_DATA['title']}\"


Find
Code: [Select]
        $pic_html = "<a href=\"{$picture_url}\" target=\"_blank\" class=\"document_link\"><img src=\"".$pic_thumb_url."\" border=\"0\" class=\"image\" /></a>\n<br />";
Change
Code: [Select]
class=\"image\" />
To
Code: [Select]
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.
Logged

aftab1003

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 67
    • PictureRating Site for Teens
Re: Alt tags for seo effects
« Reply #2 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
Logged

aftab1003

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 67
    • PictureRating Site for Teens
Re: Alt tags for seo effects
« Reply #3 on: May 13, 2008, 05:26:31 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
Logged

artoonie

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: Alt tags for seo effects
« Reply #4 on: May 14, 2008, 02:41:52 am »


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]
Logged

aftab1003

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 67
    • PictureRating Site for Teens
Re: Alt tags for seo effects
« Reply #5 on: May 14, 2008, 09:10:09 pm »

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
Logged

artoonie

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: Alt tags for seo effects
« Reply #6 on: May 16, 2008, 03:24:58 am »

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


Quote from: 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
You need them both on thumbnails and large pictures?
Like I said, this mod is only for the large pictures.


Quote from: aftab1003
if 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: aftab1003
and 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: aftab1003
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.
Search engines will look for specific keywords?
Well, yeah. That is happening though, just not with thumbnails.

Quote from: aftab1003
may 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.
Logged

aftab1003

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 67
    • PictureRating Site for Teens
Re: Alt tags for seo effects
« Reply #7 on: May 16, 2008, 09:04:43 pm »

You need them both on thumbnails and large pictures?
YES

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..

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..


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.
Logged

artoonie

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: Alt tags for seo effects
« Reply #8 on: May 17, 2008, 02:05:26 am »

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


Quote
You 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.


Quote
offcourse, 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.


Quote
You 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.



Quote
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.
No.



Quote
pleas any one help me regarding my issue.
I did.








:)
Logged

aftab1003

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 67
    • PictureRating Site for Teens
Re: Alt tags for seo effects
« Reply #9 on: May 17, 2008, 01:00:58 pm »

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 ???
Logged

guilinexpat

  • Guest
Re: Alt tags for seo effects
« Reply #10 on: March 26, 2009, 03:40:18 am »

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?
Logged

guilinexpat

  • Guest
Re: Alt tags for seo effects
« Reply #11 on: March 26, 2009, 03:43:43 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Alt tags for seo effects
« Reply #12 on: March 26, 2009, 07:53:52 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Alt tags for seo effects
« Reply #13 on: March 26, 2009, 12:52:32 pm »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 19 queries.