TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 648
  • Total: 648

World of Warcraft Recruitment Block

Started by Moocat, October 31, 2007, 08:36:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HaxXxoR

I know that this is old as hell, but im trying to find the ws_tootip file and its no where to be found. Anyone have an idea?

Thanks for the help ahead of time.

HaX

HaxXxoR

Never mind im an idiot.

Thanks anyways.

ecofish

I've run into a problem with the code. There is too much space in some of the mouseovers (the ones with few rows).

Example: Fine vs Too Much Space.

The code is here:

http://www.furious-resurrection.com/frtest/wz_tooltip/wz_tooltip.js


Code (The Block itself) Select
//***********TP: WOW RECRUITMENT BLOCK BY MOOCAT****************
//Version 0.1                                                  *
//                                                             *
//Requires wz_tooltip on your server inside folder "wz_tooltip"*
//in your forum directory.                                     *
//wz_tooltip can be found at:                                  *
//http://www.walterzorn.com/tooltip/tooltip_e.htm              *
//                                                             *
//Enjoy. Modify the code as you see fit.                       *
//**************************************************************

global $user_info;

//*******************CONFIGURATION SECTION*********************

//--Individual Class Need Rating--//
//Place the need for each class to the right of the equals sign.
//0 = closed
//1 = low
//2 = med
//3 = high
//4 = open (just in case people still like the open/closed wording)
$dk_need = 0;
$druid_need = 0;
$hunter_need = 0;
$mage_need = 0;
$paladin_need = 0;
$priest_need = 0;
$rogue_need = 0;
$shaman_need = 0;
$warlock_need = 0;
$warrior_need = 0;




//--Quantity needed of each spec!--//
//To the right of the = sign, type the # you need of that spec!
//Here you can be much more specific than simply "High," "Medium," or "Low."

//Death Knight
$tank_dk = Closed;
$dps_dk = Closed;

//Druid
$balance_druid = Closed;
$feraltank_druid = Closed;
$feraldps_druid = Closed;
$resto_druid = Closed;

//Hunter one spec
$any_hunter = Closed;

//Mage one spec
$any_mage = Closed;


//Paladin
$holy_paladin = Closed;
$prot_paladin = Closed;
$ret_paladin =  Closed;

//Priest
$disc_priest = Closed;
$holy_priest = Closed;
$shadow_priest = Closed;

//Rogue one spec
$any_rogue = Closed;

//Shaman
$elemental_sham = Closed;
$enhance_sham = Closed;
$resto_sham = Closed;

//Warlock one spec
$any_warlock = Closed;

//Warrior
$furyarms_war = Closed;
$prot_war = Closed;

//--COLORS--//
/*
$closed_color = 'red';
$low_color = 'green';
$medium_color = 'orange';
$high_color = 'red';
$open_color = 'green';
*/




//--LOCALIZATION--//
//LANGUAGE VARIABLES FOR EACH SPEC

$blood_spec = 'Blood (Tank):';
$dps_spec = 'Unholy/Frost (DPS):';

$balance_spec = 'Balance:';
$feraltank_spec = 'Feral (Tank):';
$feraldps_spec = 'Feral (DPS):';
$resto_spec = 'Restoration:';

$anyhunter_spec = 'Any Spec:';

$anymage_spec = 'Any Spec:';

// holy taken from priest
$prot_spec = 'Protection:';
$ret_spec = 'Retribution:';

$disc_spec = 'Discipline:';
$holy_spec = 'Holy:';
$shadow_spec = 'Shadow:';


$anyrogue_spec = 'Any Spec:';

// resto taken from druid
$enhance_spec = 'Enhancement:';
$elemental_spec = 'Elemental:';

$anywarlock_spec = 'Any Spec:';

$furyarms_spec = 'Fury/Arms:';
$prot_spec = 'Protection:';


//************************END CONFIG****************************




//*************************FUCNTIONS****************************



function printClassStatus($className)
{
   switch($className)
   {
      case 0: return '<font color="red">Closed</font>';
      case 1: return '<font color="green">Low</font>';
      case 2: return '<font color="orange">Medium</font>';
      case 3: return '<font color="red">High</font>';
      case 4: return '<font color="green">Open</font>';
   }
}
function displayTT($class="",$specName1="",$spec1="",$specName2="",$spec2="",$specName3="",$spec3="",$specName4="",$spec4="")
{
   return '
<script type="text/javascript" src="./wz_tooltip/wz_tooltip.js"></script>
   <a href="javascript:void(0);" onmouseover="Tip(\'<table width=100%><tr><td><font color=black>' .$specName1 .  '</font></td><td><font color=black>' . $spec1 . '</font></td></tr><tr><td><font color=black>' . $specName2 . '</font></td><td><font color=black>' . $spec2 . '</font></td></tr><tr><td><font color=black>' . $specName3 . '</font></td><td><font color=black>' . $spec3 . '</font></td></tr><tr><td><font color=black>' . $specName4 . '</font></td><td><font color=black>' . $spec4 . '</font></td></tr></table>\')" onmouseout="UnTip()">' . printClassStatus($class) . '</a>';

}


//**********************END FUNCTIONS****************************

// add             <td width="10%"> </td> last if needed



echo'
<center><a href="http://www.furious-resurrection.com/"<img src="http://www.furious-resurrection.com/frtest/Themes/inferno_20rc3/images/RecruitmentDetails.png"></a><br><br>
<a href="http://www.furious-resurrection.com/"<img src="http://www.furious-resurrection.com/frtest/Themes/inferno_20rc3/images/ApplyNow.png"></a></center><br>

<table width="100%">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/dk_icon.gif" />Death Knights</font></td>
            <td valign="bottom"><strong>' . displayTT($dk_need,$blood_spec,$tank_dk,$dps_spec,$dps_dk) . '</strong></td>
        </tr>
    </tbody>
</table>
<table width="100%">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/druid_icon.gif" />Druid</font></td>
            <td valign="bottom"><strong>' . displayTT($druid_need,$balance_spec,$balance_druid,$feraltank_spec,$feraltank_druid,$feraldps_spec,$feraldps_druid,$resto_spec,$resto_druid) . '</strong></td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/hunter_icon.gif" />Hunter</td>
            <td valign="bottom"><strong>' . displayTT($hunter_need,$anyhunter_spec,$any_hunter) . '</strong></td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/mage_icon.gif" />Mage</td>
            <td valign="bottom"><strong>' . displayTT($mage_need,$anymage_spec,$any_mage) . '</strong></td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/paladin_icon.gif" />Paladin</td>
            <td valign="bottom"><strong>' . displayTT($paladin_need,$holy_spec,$holy_paladin,$prot_spec,$prot_paladin,$ret_spec,$ret_paladin) . '</a></strong></td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/priest_icon.gif" />Priest</td>
            <td valign="bottom"><strong>' . displayTT($priest_need,$disc_spec,$disc_priest,$holy_spec,$holy_priest,$shadow_spec,$shadow_priest) . '</strong></td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/rogue_icon.gif" />Rogue</td>
            <td valign="bottom"><strong>' . displayTT($rogue_need,$anyrogue_spec,$any_rogue) . '</strong></td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/shaman_icon.gif" />Shaman</td>
            <td valign="bottom"><strong>' . displayTT($shaman_need,$elemental_spec,$elemental_sham,$enhance_spec,$enhance_sham,$resto_spec,$resto_sham) . '</strong></td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/warlock_icon.gif" />Warlock</td>
            <td valign="bottom"><strong>' . displayTT($warlock_need,$anywarlock_spec,$any_warlock) . '</strong></td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/warrior_icon.gif" />Warrior</td>
            <td valign="bottom"><strong>' . displayTT($warrior_need,$furyarms_spec,$furyarms_war,$prot_spec,$prot_war) . '</strong></td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
             <td class="tbcphp"><center>Insert any extra comments</center>
             </td>
        </tr>
        <tr>';
if($user_info['is_guest'])
{
echo'
            <td class="tbcphp"><br />
            <div align="center"><a href="/index.php?action=register">Please Register before Applying</a><br />
            </div>
            </td>';
}
else
{
echo'

            <td> <br />
            <div align="center"><a href="/forum/index.php?page=3"">Apply Here</a><br />
            </div>
            </td>';
}
echo'
        </tr>
    </tbody>
</table>
</font>
';


I need to get rid of the space so that all the tooltips look like the "fine" one :) Any help is appreciated! Thanks <3

ZarPrime

ecofish

Please Read and Follow the Posting Guidelines and be sure to use the posting template at the bottom of that post, specifically we need to know what versions of SMF and TinyPortal you are using in order to help you.

ZarPrime

ecofish

Thanks ZarPrime,

I doubt the problem is related to neither my portal software (SimplePortal) nor SMF. But rather the block code or the tooltip code itself -- which I've found in this very thread.

But I'll post the details anyways :)

Link to my site: http://www.furious-resurrection.com/frtest
SMF version: SMF 2.0 RC3
TP version: Using SimplePortal 2.3.2. The reason I am addressing my question here is that the specific block code is found here; and I don't think it's a bug more than just a tweak.
Theme name and version: Dzinerstudio - Inferno
Browser Name and Version: Firefox/3.6.3
Mods installed: Only SimplePortal.
Related Error messages: None; I am asking for a tweak to the block code found in this thread :)

Freddy

Sorry I don't know javavscript so can't help here.

ZarPrime

ecofish,

If you are seeking help for a block code snippet that was written to work with TinyPortal but you are not even using TinyPortal, why would you seek support here on TinyPortal to make it work right on your site?  Does anyone else see a problem with this picture? :o :buck2:

In any case, the code has standard php calls and no database calls to TP functions so it should work fine whether you are using TinyPortal or not.  I looked at your site, and it looks fine to me even though there is a little bit of a larger gap under a couple of the tooltips.  I don't think this has anything to do with the code.  It seems to be the way the wz_tooltips was written but I can't be sure.  However, even if I was a javascript guru and thought I had the knowledge to troubleshoot it, it seems that the site that has (or had) wz-tooltips.js on it is no longer available.  For this reason, I can't even test your code on one of my test sites.

If it is a problem for you, I would suggest seeking out Walter Zorn for his advice on fixing the issue.

ZarPrime

ecofish

Quote from: ZarPrime on May 20, 2010, 10:45:53 PM
ecofish,

If you are seeking help for a block code snippet that was written to work with TinyPortal but you are not even using TinyPortal, why would you seek support here on TinyPortal to make it work right on your site?  Does anyone else see a problem with this picture? :o :buck2:

As I stated above, I posted my question here as the code comes from this very thread and because there are no conflicts with the portal software in the issue. I appreciated you helping me anyways :)

Quote from: ZarPrime on May 20, 2010, 10:45:53 PMIn any case, the code has standard php calls and no database calls to TP functions so it should work fine whether you are using TinyPortal or not.  I looked at your site, and it looks fine to me even though there is a little bit of a larger gap under a couple of the tooltips.  I don't think this has anything to do with the code.  It seems to be the way the wz_tooltips was written but I can't be sure.  However, even if I was a javascript guru and thought I had the knowledge to troubleshoot it, it seems that the site that has (or had) wz-tooltips.js on it is no longer available.  For this reason, I can't even test your code on one of my test sites.

If you wish to test the script all you have to do is save the text file from my first post in notepad and save it as a ".js-file".

Quote from: ZarPrime on May 20, 2010, 10:45:53 PMIf it is a problem for you, I would suggest seeking out Walter Zorn for his advice on fixing the issue.

ZarPrime

Sadly his site is down.

Thanks for all your help anyhow, I really appreciate it :) I'll try to post this on an expert site; I'll make sure to post back here if I find a solution!

Thanks in advance!

ZarPrime

Quote from: ecofish on May 24, 2010, 05:42:02 PM
Thanks for all your help anyhow, I really appreciate it :) I'll try to post this on an expert site; I'll make sure to post back here if I find a solution!

Please do.  As I said, that small gap wouldn't be a concern for me but to each his own.

ZarPrime

garou

For those that still use this script, Walter Zorn passed away in 2009. His family has resurrected his sites, unfortunately help is not available through the site any more but the WZ tooltip script is available at... walterzorn.de/en/tooltip/tooltip_e.htm (you may have to add the www but I can not post links).

This website is proudly hosted on Crocweb Cloud Website Hosting.