Tooltip PHP Fusion Help

Post Reply
6 posts
By Scourne at 2012-03-02 15:59:06
Anyone out there know how to add the tooltip script to a php fusion site?
By Scourne at 2012-03-02 22:42:15
bump for still needing help
By Scourne at 2012-03-03 04:13:50
moar bump i have this question out on 5 websites and not a single reply thats useful has been made.... Im thinking of completely redoing my site to something more supported.....
By fewyn at 2012-03-03 10:06:04
I don't know PHPFusion at all but if there is some kind of template system all you "should" have to do is add it to the header somewhere.
By Adelena at 2012-06-05 03:24:19

Since i use PHP Fusion as well, i worked my way around it a tiny bit.

In your themes/templates/header.php you have to add the following line.
echo "<script type='text/javascript' src='http://tor.zamimg.com/tooltips.js'></script>\n";

This line must be added before echo "</head>\n<body>\n";
For me this was on line 48, but probably for you on a different line.
It looks a bit different with the one Torhead gives, but i think its a slight different coding PHP Fusion uses. ( not an expert )
this makes the tooltip pop up on the site/forum now after you CTRL+F5 refreshed your site.

Only thing is, its the item name in the colors on your site without an icon, there is an test on our forum and site atm
http://www.warbound.eu so you can see what i mean.

at the moment im struggling with <script>var framehead_tooltips = { "colorlinks": true, "iconizelinks": true }</script>
so i can use the icons and colors from torhead on our site as well. but its a start.

oh and the code to ask up the item on your site is as follow.
on the site : <a href="javascript:void(0)" data-torhead="item=1zPrntT">test</a> test you can replace with the origional item name.
on the forum : [^url=http://www.torhead.com/item/9IG9X25]Champion War Hero Force-Mystic's Lightsaber[/url] without ^ ofcourse.

hope i helped you a bit, and just what i said, im not an expect. but trial and error <3
and if you find more out than that i know, would love to hear it :)

Greetings Fred aka Adelena.

By Adelena at 2012-06-05 03:58:01

I came a bit further at the moment by adding
echo "<script>var framehead_tooltips = { ".colorlinks.": true, ".iconizelinks.": true, ".renamelinks.": true }</script>\n";
above echo "<script type='text/javascript' src='http://tor.zamimg.com/tooltips.js'></script>\n";
in the header.php what i said before,

only weird thing is now i get the name in collors plus icon with the name from left to right but also from top to down o.O
just what i said, trial and error :)

Editing my own post,
echo "<script>var framehead_tooltips = { ".colorlinks.": true, ".iconizelinks.": true, ".renamelinks.": false }</script>\n";
is the good one, its working now how it should be.
instead of true it should be false ( for renamelinks )

if you have questions id be here to help.

Post Reply

You are not signed in. Please sign in to post a reply.