how to change alt of images to be sef ???? how to change alt of images to be sef ????
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

how to change alt of images to be sef ????

Started by cong, August 25, 2007, 10:55:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cong

hello,

I haven't any image indexed in google image search

so I want to make some seo tips for images like make alt for all images i searched in forums and i found topics like

    * http://forum.coppermine-gallery.net/index.php?topic=28786
    * http://forum.coppermine-gallery.net/index.php?topic=31277.0
    * http://forum.coppermine-gallery.net/index.php?topic=42879.0

but i am very beginner in php language and previous topics seem to be professionals in php and i understand with find and replace method

so please say to me how to make alts to all images of gallery and especially intermediate images with find and replace method please.

and if any one know tips for image search provide it here and make this topic as reference for gallery and seo when other members search for this matter.

Thank you in advance great team support.

cong

why there is not any reply ?

please if any body from coppermine great support team can help me i am waiting for him

and i know that all team are busy but when you have any spare time reply me

thanx in advance

Hein Traag

Quote from: cong on August 27, 2007, 02:30:17 PM
why there is not any reply ?

please if any body from coppermine great support team can help me i am waiting for him

and i know that all team are busy but when you have any spare time reply me

thanx in advance

You said it yourself, team members are busy. Do not expect an answer within a few days. Give it a week at least. The people from the dev team and other supporters are all doing this in their spare time and unpaid. Patience is a virtue here  ;D

zeppo

Hello cong,

Your question helped me to solve the alt tag problem! :) (With the links you provided a your first post.)

So I try to help you forward although I am not any expert on this.

You have to change your Coppermine files, that are in your server with find and replace method.

Go to to your server with a FTP-software, find your Coppermine files there. Open folder "include".

Inside the folder include find the file: "themes.inc.php". Open it with a text editor software. And now you can edit this with find and replace if you want Coppermine to write alt text with normal and intermediate images.

I wanted to write both title and keywords to the image alt tag, (I do not know if this is a smart move for google image search. but I hope it is... :) )

So I searched following lines from "themes.inc.php":

$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";

            $pic_html .= "</a>\n";

        } else {

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


And replaced it with:

$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\" {$CURRENT_PIC_DATA['title']}, keywords: \n {$CURRENT_PIC_DATA['keywords']}\" />";
            $pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\" {$CURRENT_PIC_DATA['title']}, keywords: \n {$CURRENT_PIC_DATA['keywords']}\">\n";


After you have made this find and replace action, you have to move/save the modified file to your web server.

Good luck!


cong

hello zeppo

first thanks for your suupport

I applied what you said but nothing changed small thumbnails have alt but intermediate images havn't any alt

Stramm

your second link in your first post of this very thread contains the answer... (posts 2-4 there)

cong

hello Stramm

I review it but i said i am beginner and i can't do this so i want find and replace method ( this is very good method and good for beginners like me )

example i cant determine the end of the function in editor

so please help me and beginners with find and replace method