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

  • tom0360

  • Just popping in

  • Posts: 12

  • Since: 2006/4/16


Thanks for the post Bandit-x,

I searched through my index.php file in my mylinks folder and the closest I could come up with to what you had posted was ''' => $myts->makeTboxData4Show($l').$new.$pop


I don't see anything in the index.php file with 'title' but had this code $chtitle = $myts->makeTboxData4Show($ele[''']);

The viewcart does have this: title' => $myts->makeTboxData4Show($ltitle).$new.$pop

Do you think maybe my index.php may be messed up, should that be changed to what viewcart.php has?


thanks again for the help.

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

its 4 lines from the bottom of index.php. (~Line 110) its a really long line. and if its not there then maybe editing and uploading a new index.php file would be good.

i think $chtitle is the subcategory names
CBB / LatestNews / Publisher / XM-Spotlight

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

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

  • tom0360

  • Just popping in

  • Posts: 12

  • Since: 2006/4/16


I replaced the index.php file as I noticed that there was differences in my index.php and a fresh installed index.php. Made the chances you suggested and bam, it works.

Would you mind explaining what

ltitle' => $myts->makeTboxData4Show($ltitle), is doing?





thanks again, I really appreciate the help
Tom

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

$ltitle is the link title.

and 'ltitle' is just a key i used for the link array. like 'title' .

so $link.ltitle will show the title. since

ltitle = $myts->makeTboxData4Show($ltitle)

and what does the stuff on the right mean? im not sure. im not really a php programmer. but i think it just makes the text look right in html. like those really weird characters.


$myts =& MyTextSanitizer::getInstance(); // MyTextSanitizer object

makeTboxData4Show is a XOOPS function

function makeTboxData4Show($text, $smiley=0)
{
$text = $this->htmlSpecialChars($text);
return $text;
}
CBB / LatestNews / Publisher / XM-Spotlight

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

15
tom0360
Re: Customizing Mylinks - trying to add alt tags
  • 2006/4/22 12:32

  • tom0360

  • Just popping in

  • Posts: 12

  • Since: 2006/4/16


Thanks again Bandit-x.

I am just starting to get into php myself. I joined lynda.com about a week ago and will be watching their tutorials on php as well as others, and have started reading through online tutorials to help get a grasp on using php better.

Hopefully someday I can contribute back more to the XOOPS community.



Tom

Login

Who's Online

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


Members: 0


Guests: 117


more...

Donat-O-Meter

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

Latest GitHub Commits