1
tom0360
Customizing Mylinks - trying to add alt tags
  • 2006/4/16 12:48

  • tom0360

  • Just popping in

  • Posts: 12

  • Since: 2006/4/16


Hello all,

I am in the process of trying to customize the mylinkss module on my site. I was wondering if anyone knows if there is a way to get the image from the screenshot to display the text adding for the link title.

I tried alt ="<{$link.title}>" in the mylinks_lnks.html template but it adds the actual link, was thinking maybe it should be something like alt ="<{$lang.title}>" or something that may be predefined to pace the alt tags.

I am no php programmer an new to XOOPS so any advice is welcome.

Also has anyone run into problems with the images not showing up in internet explorer for mylinks screenshots. It does it with either my modified template or the default on.

site I am working on is http://www.justhotdeals.net/games it is in its beggining stages.


Thanks for any help or advice,

Tom

2
gestroud
Re: Customizing Mylinks - trying to add alt tags
  • 2006/4/16 19:12

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


see what happens if you use a title= tag.

Yes, I've had problems with images not appearing in Internet Explorer. Usually has to do with something in the stylesheet. Anyone here a little more versed in css than I am should be able to give you a hand.

3
msdana
Re: Customizing Mylinks - trying to add alt tags
  • 2006/4/16 20:26

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

4
tom0360
Re: Customizing Mylinks - trying to add alt tags
  • 2006/4/16 21:14

  • tom0360

  • Just popping in

  • Posts: 12

  • Since: 2006/4/16


Thanks for the replies,

I fixed the image not appearing problem by hard coding the actual image size in the template. Seems it was coming up with width=""


I have tried a few different tags for the alt, including defining my own, but I am not really sure what I am doing with the php.

I may just be putting it in wrong or there may be something else like a > or } needed. PHP seems fussy about that stuff. :)

There seems to be references to lang_title and I thought that might work, but no luck.




Thanks again,
Tom

5
danielmd
Re: Customizing Mylinks - trying to add alt tags
  • 2006/4/17 15:00

  • danielmd

  • Just popping in

  • Posts: 12

  • Since: 2006/4/17


Hi just visited your site, i can't seem to add any comments? do i need to register to comment the games? where do i do that? Thanks

6
tom0360
Re: Customizing Mylinks - trying to add alt tags
  • 2006/4/17 15:26

  • tom0360

  • Just popping in

  • Posts: 12

  • Since: 2006/4/16


Sorry danielmd,

The site is still in very early stages of design. I had some things not yet enabled. It should work now.


Thanks

Tom

7
danielmd
Re: Customizing Mylinks - trying to add alt tags
  • 2006/4/17 15:32

  • danielmd

  • Just popping in

  • Posts: 12

  • Since: 2006/4/17


That is OK :)

Just want to say your site is looking very cool

8
tom0360
Re: Customizing Mylinks - trying to add alt tags
  • 2006/4/17 15:53

  • tom0360

  • Just popping in

  • Posts: 12

  • Since: 2006/4/16


Thanks danielmd,

I am open for any ideas or suggestions you or anyone may have. This site is just a stepping stone to help me start working with php.

Still a lot of work to do.




Thanks again,

Tom

9
tom0360
Re: Customizing Mylinks - trying to add alt tags
  • 2006/4/17 22:11

  • tom0360

  • Just popping in

  • Posts: 12

  • Since: 2006/4/16


Never did get the Alt tags to use the website title for the link, but did manage to get the link.description to work in the for the alt tags.

Also added a script to click to zoom images.

Let me know what you think.

http://www.justhotdeals.net/games



Thanks
Tom

10
iHackCode
Re: Customizing Mylinks - trying to add alt tags

mylinks hack for title in alt tag.

mylinks folder::

edit index.php: (near the bottom) look for
'title' => $myts->makeTboxData4Show($ltitle).$new.$pop,

add
'ltitle' => $myts->makeTboxData4Show($ltitle),


should now look like
'title' => $myts->makeTboxData4Show($ltitle).$new.$pop'ltitle' => $myts->makeTboxData4Show($ltitle),

the same goes with the viewcat.php file (~line 142 )

edit the template file for this php file. mylinks_link.html

just add <{$link.ltitle}> where you want the title to show.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

Login

Who's Online

300 user(s) are online (256 user(s) are browsing Support Forums)


Members: 0


Guests: 300


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