21
Anonymous
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2008/1/15 22:23

  • Anonymous

  • Posts: 0

  • Since:


I think the smart idea by replace:
<img src="<{$picture_url}>" <{$image_size}> class="image" border="0" alt="" /><br />

with:
<img src="<{$picture_url}>" <{$image_size}> class="image" border="0" alt="<{$xoops_sitename}> - <{$xoops_pagetitle}>" /><br />

because pagetitle is active now after this hack

Demo: SaudiGear Magazine

22
stuie200
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2008/6/28 18:49

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


Hi kerkyra,

I know its over a year since you requested adding additional alt text to images displayed by xcgal_display.html but i thought i should add it here. It may be of use to somebody.

I thought i would revisit this and i have found an answer to make what you are after work.

in xcgal_display.html set the alt text of the main image to:

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


Next step is to open displayimage.php and find the following line near the bottom, there are two lines like this so make sure you choose the second one
include XOOPS_ROOT_PATH."/header.php";


add the following code directly after the line above
$xoopsTpl->assign('album_title'$album_title);
$xoopsTpl->assign('pic_caption'$pic_caption);


It should all be working as you requested now one you upload the changes and update the module in the control panel.

demo Here

Regards
Stuart

EDITED to correct mistake as pointed out by mrphilong below (that will teach me to retype text properly rather than copy and pasting stuff)
"I'm as confused as a baby in a topless bar."

23
mrphilong
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2008/6/29 5:05

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


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


$album_name should be album_title

24
Anonymous
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2008/6/29 8:36

  • Anonymous

  • Posts: 0

  • Since:


@Stuie

That's a fab lightbox effect - how did you do it?

@everyone else
Seems to me that lots of folks are making some very worthwhile additions and hacks to xcgal.

There's v2.0.4RC available and some additions that others have made separately. How about we all get together in the dev forge, revive the project, pool all our resources and have a definitive 2.0.5 release?

This must be better than having several different versions

25
stuie200
Re: xcgal pagetitle hack ..improve the searchability of your site!
  • 2008/6/29 9:37

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


Hi John,

The lightbox is quite a simple to add to xcgal.
Im working on getting it working 100% as i can not at present get the "Previous" and "Next" feature functioning correctly.

I will start a new thread soon with information on how far i have got and attach the relevant files for others to try.

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

Login

Who's Online

242 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 242


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