11
toddherrold
Re: xcgal pagetitle hack ..improve the searchability of your site!

thanks! this is great!

12
kerkyra
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2007/5/23 8:45

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hallo there and thanks for the great hack. I'm trying to alter the xcgal_display.html file so that when a picture is displayed the alt text would show the title of the picture the description and the album name.

so far i only managed to show the pic_title. Any hints on how to show the album title as well as the picture description.

this is the change i did in the file
Quote:

alt="<{$pic_title}> - <{$pic_caption}> - <{$album_name}>"


This is essential for improving the searchability of the our sites as till now the xcgal module in the alt text for every picture, displays the text 'Click for full size' or something like that. So google sees only that message for every pic and doesnt index any of them.

If anybody could tell how to show the album name and picture description that would be great. Thanks
whttp://www.guidemap.gr - Beta is out...

13
Anonymous
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2007/5/23 22:08

  • Anonymous

  • Posts: 0

  • Since:


wow kerkyra very nice hack for alt text.

We need more great ideas for xcgal module until this module be 100% SEO friendly.

14
kerkyra
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2007/5/24 6:05

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


You can also include one key word of your site in front of all those variables and one in the end. Like "keyword - variable - variable - another keyword".

Xcgal for me is excellent BUT, the main problem of the module is the way it shows the pictures. Before the alt text you can see that it only shows watermark.php (if you are using watermarking) for each picture and if you try to save it in mozilla, it will be saved as watermark.php where as if you try the same in ie it will be saved as watermark.php.jpg.

I think it is essential to show the type of the picture and the path where it is stored so that google will not see this as duplicate data too.

And one more idea is to show toolbars or resize the picture in case its too big to show when, open in full size (new window).

Apart from those details for usability and SEO xcgal rocks

I also did one hack to edit the details of the picture you are viewing only so that you wont have to edit all of the album images to edit just one. Its not perfect but its working...i can send it to you if you are interested. perhaps you can make it even better Cheers
whttp://www.guidemap.gr - Beta is out...

15
stuie200
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2007/9/17 9:40

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


Hi Guys,

Is anybody able to offer any help as to why the code below does not work as this would be a great SEO addition to XCgal.

Quote:

so far i only managed to show the pic_title. Any hints on how to show the album title as well as the picture description.

this is the change i did in the file
Quote:

alt="<{$pic_title}> - <{$pic_caption}> - <{$album_name}>"



Many thanks

Stuart
"I'm as confused as a baby in a topless bar."

16
kerkyra
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2007/9/29 23:36

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


You have to pass those variables from the php file to the html to work.

So far i managed to display the pic_title and the pic_caption as those are already passed to the html file! I wasnt able to work out the album name though!
whttp://www.guidemap.gr - Beta is out...

17
mesol
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2007/11/23 7:41

  • mesol

  • Not too shy to talk

  • Posts: 168

  • Since: 2006/4/19


using ' | ' is better in SEO compared to ' - ' as separator

18
nachenko
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2007/11/23 9:19

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Quote:
using ' | ' is better in SEO compared to ' - ' as separator


How do you know this?

19
ianez
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2007/11/23 17:43

  • ianez

  • Not too shy to talk

  • Posts: 188

  • Since: 2006/1/26


if you want also category name in page title,
you can try this:

in index.php at the bottom after
main_menu();

insert:
if ($cat == '') {
$xoopsTpl->assign('xoops_pagetitle'$xoopsModule->getVar('name'));
}
else {
$xoopsTpl->assign('xoops_pagetitle'$xoopsModule->getVar('name').' - '.$CURRENT_CAT_NAME);
}



and in thumbnails.php after
do_footer();
$album_name get_album_name($album);
$xoopsTpl->assign('xoops_pagetitle'$xoopsModule->getVar('name').' - '.$CURRENT_CAT_NAME.' - '.$album_name);



this way in the module's home you'll have normal title but going in a category index (yoursite/modules/xcgal/index.php?cat=x)
you'll see the cat name in the title. And the same for thumb view...

have a look on the effect this site which I'm working on... http://www.mariocresci.com (the module has been renamed to 'Portfolio')

Ian

20
skenow
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2007/11/23 22:17

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Specifically, '-' is the operand for NOT in a search phrase.

Using any logic operand in your page titles may have an impact on your search results. Colon (:) and »t (>>) are usually considered safer characters to use as separators.

Login

Who's Online

335 user(s) are online (269 user(s) are browsing Support Forums)


Members: 0


Guests: 335


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits