This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
Powered Tooltips Guide
Post Reply
Return to board index
Post by
Lockslap
Wtf i cant even get this straight i have tried over 10 different tooltips mods, armory, wowhead, and other @#$%, and none is working, and i cant find what im doing wrong :S I have even repeated the same step over and over, and reading it slower and slower but still cant get the fault.. cant get it to work.. The best i could get it to is that its only viewable as a link, there is no damn color change, there is no damn Tooltip. I had the same problem with doing it on the DKP site, but the forum.. well its making me wanna #$%^ing cry, i spent alot on time to get it to work on DKP site and now on the forum, double the time! and i still havent got it to work.
www.anautocenter.se/SGP/forum
PHP v.5
Curl not supported
And i dont knwo what to do now then wait and look for help. Have read almost every single post on this thread and still nothing is working.
If you have access to lightly modify your forums then you can give my script a shot. It supports PHP 5.x, and cURL is not required (but it makes things quicker). You can check it out from the link in my signature.
Post by
TimosHUN
Thanks a lot! I love tooltips :)
Post by
septor
For e107:
The below assumes you are using version 0.7.11 of e107 and using the default header template file. In fact, any 0.7.* version should work and if you're using a modified or different header template file you probably know what you're doing enough to make the changes mentioned below just fine.
NOTE: BACKUP ALL YOUR EXISTING CORE FILES.
------
Open up the
header_default.php
file located inside the e107_themes/templates folder.
Find line 88 (should read <head>) directly below it add:
<script type='text/javascript' src='
http://www.wowhead.com/widgets/power.js'></script>
Save and close
header_default.php
.
Open up the
bbcode_handler.php
file located inside the e107_handlers folder.
Line 30 starts the
$core_bb
array. After
'hide'
add:
, 'wowhead'
. The entire variable should read:
$core_bb = array(
'blockquote', 'img', 'i', 'u', 'center',
'_br', 'color', 'size', 'code',
'html', 'flash', 'link', 'email',
'url', 'quote', 'left', 'right',
'b', 'justify', 'file', 'stream',
'textarea', 'list', 'php', 'time',
'spoiler', 'hide', 'wowhead'
);
Save and close
bbcode_handler.php
.
Create a new file and insert the following code into it:
// USAGE:
// Gather the type of item you want to link and then it's ID:
// ID
//
// Example:
//
// 16941
//
// The above would return a link to the Druid's Brutal Impact skill.
//
if(strtolower($parm) == "spell" || strtolower($parm) == "item" || strtolower($parm) == "quest"){
$url = "
http://www.wowhead.com/?"
.$parm."=".$code_text;
$html = file_get_contents($url);
preg_match('/(?<=<title>).*?(?=<\\/title>)/is', $html, $matches);
$title = array_shift($matches);
$title_a = explode(" - ", $title );
if(strtolower($parm) == "item"){
if(stristr($html, '<b class="q6">'.$title_a.'</b>')){
$rarity = "#c8cc80";
}else if(stristr($html, '<b class="q5">'.$title_a.'</b>')){
$rarity = "#ff8000";
}else if(stristr($html, '<b class="q4">'.$title_a.'</b>')){
$rarity = "#a335ee";
}else if(stristr($html, '<b class="q3">'.$title_a.'</b>')){
$rarity = "#0e63dd";
}else if(stristr($html, '<b class="q2">'.$title_a.'</b>')){
$rarity = "#1eff00";
}else if(stristr($html, '<b class="q1">'.$title_a.'</b>')){
$rarity = "#ffffff";
}else if(stristr($html, '<b class="q0">'.$title_a.'</b>')){
$rarity = "#9d9d9d";
}
return "<a href='".$url."'><span style='color:".$rarity."'>."]</span></a>";
}else{
return "<a href='".$url."'>."]</a>";
}
}else{
return "";
}
Save the above as
wowhead.bb
inside the e107_files/bbcode folder.
-----
Now anyone can add item, quest, and spell links just by using the bbcode outlined in the above files comment section. Item/spell/quest names as well as item rarity are all fetched without any user assistance. Said user only needs the type of item as well as it's ID to display it, like said before, anywhere e107 accepts bbCode.
Post by
17684
This post was from a user who has deleted their account.
Post by
219816
This post was from a user who has deleted their account.
Post by
marcimi
Change it to:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<script src="
http://www.wowhead.com/widgets/power.js"></script>
</head>
Post by
219645
This post was from a user who has deleted their account.
Post by
219816
This post was from a user who has deleted their account.
Post by
kuzichev
Я бы не об этом думал как.. и что написано на 1 странице подробно...
Но сложность в том зачем нам это надо если теперь нужно по русски...
А русскую часть отдают в UTF-8 но сложность я не нашел ни одного форума с поддержкой..
IPB нет
VBULLITEN нет
PHPBB нет
Post by
kingturtel
Почему, есть для IPB
Post by
kuzichev
а можно ссылку?
Post by
marcimi
What about keeping this thread in english? I can not help you guys if you speak in russian to me :/
Post by
kuzichev
At me it is very bad with English
Easier, to you to learn Russian. As it will be fast us here thousand and millions
But the question in that that all forums that is known by me work with codings WIN-1251 and to translate them on UTF-8 practically not probably, I fight about a wall a week in search of a good, functional forum and with support utf-8...
And many write to experts in forums that they are not present, or a number of functions there does not work.
Therefore and to use a script there is no possibility as it looks simply awfully
Post by
marcimi
I guess you are looking for an utf-8-supported message-board software?
I've created a
search for utf-8-powered message-boards
on
www.forummatrix.org
.
Maybe this will help you. You can refine the search by clicking the features in the left list and select your value for that feature.
Greetings,
Marc
Post by
219816
This post was from a user who has deleted their account.
Post by
Banthar
Hello, I am trying to isert a list of icons linked to Wowhead data base but the problem is that when cursor is over the icon, the script shows another icon and its description. How can I prevent to show the second (on mouse hover) image icon? I use this code to insert the icon with the same style like Wowhead:
<div class="iconmedium" style="background-image: url(../img/inv_misc_flower_02.jpg);">
<div class="tile"><a href="
http://es.wowhead.com/?item=2447"></a></div>
</div>
I have seen in
http://es.wowhead.com/?items=7.9
that the image icon desapear when you put the cursor over the icon list.
Regards, Banthar.
Post by
226379
This post was from a user who has deleted their account.
Post by
150509
This post was from a user who has deleted their account.
Post by
17684
This post was from a user who has deleted their account.
Post by
227852
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.