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: 674
  • Total: 674

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.

darthmactis

well i fix mine a diff. way,LOL  i used a JS editer and changed the default setting, it worked,lol

notask

woopsies. typo fixed. Sorry about that. I was in a hurry when i edited the code and missed it!

pagey

#22
Hi there,

I have uploaded the graphics, created a new script block, pasted your code and saved it, but I just get a block on the left that is mainly code, the graphics load though, what am i missing?

It is as if TinyPortal is not recognising the code

help appreciated

EDIT: argh, PHPBOX, nevermind!

Omala

#23
I have tried... and tried...

my forum is installed in /root/forum/

put wz_tooltip.js in

/root/forum/wz_tooltip/wz_tooltip.js

IE = Error on Page:
Object Expected
Fails in Firefox also... the tooltip just fails to load.

I'm doing it wrong... but how?

CHMOD on folder is 755


EDIT:

Had the wrong version installed  :uglystupid2:

IchBin

Did you try with the files in your root?

Inny

This coding gives "Operation Aborted" in IE7. Works fine for Firefox and Opera.

I used it in a phpbox aswell. Some links around this post load fine with IE. Any hints on fixing it?

My guild page is www.epu-wow.com

neon401

For some reason, when I install the block it just screws up the board, I really don't understand what I'm doing wrong. I have installed the .js properly.

www.nalum.no/ai2

garou

#27
I updated this for the new World of Warcraft expansion, Wrath of the Lich King and Death Knights.

The downside is Death Knight wont fit in a standard size block so I shortened it to D. Knight. If you want to use a wider block then default the go ahead and replace D. Knight with Death Knight.

Also attached an Icon for the Death Knight.

//***********TP: WOW RECRUITMENT BLOCK BY MOOCAT****************
//Version 0.1                                                  *
//***********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)
$deathknight_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
$blood_deathknight = 0;
$frost_deathknight = 0;
$unholy_deathknight = 0;

//Druid
$feral_druid = 0;
$resto_druid = 0;
$balance_druid = 0;

//Hunter
$needed_hunter = 0;

//Mage
$arcane_mage = 0;
$fire_mage = 0;
$frost_mage = 0;


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

//Priest
$holy_priest = 0;
$shad_priest = 0;

//Rogue
$needed_rogue = 0;

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

//Warlock
$needed_warlock = 0;

//Warrior
$prot_war = 0;
$arms_war = 0;
$fury_war = 0;

//--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:';
$frostdk_spec = 'Frost:';
$unholy_spec = 'Unholy:';

$feral_spec = 'Feral:';
$resto_spec = 'Restoration:';
$balance_spec = 'Balance:';

$hunter_spec = 'Needed:';

$arcane_spec = 'Arcane:';
$fire_spec = 'Fire:';
$frost_spec = 'Frost:';

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

$prot_spec = 'Protection:';
$ret_spec = 'Retribution:';

$rogue_spec = 'Needed:';

$enhance_spec = 'Enhancement:';
$elemental_spec = 'Elemental:';

$warlock_spec = 'Needed:';

$arms_spec = 'Arms:';
$fury_spec = 'Fury:';


//************************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="/scripts/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****************************





echo'
<center>Hover over the recruitment level for details</center>

<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="/images/wow_class_icons/deathknight_icon.gif" />D. Knight</td>
            <td valign="bottom"><strong>' . displayTT($deathknight_need,$blood_spec,$blood_deathknight,$frostdk_spec,$frost_deathknight,$unholy_spec,$unholy_deathknight) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="/images/wow_class_icons/druid_icon.gif" />Druid</font></td>
            <td valign="bottom"><strong>' . displayTT($druid_need,$resto_spec,$resto_druid,$feral_spec,$feral_druid,$balance_spec,$balance_druid) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="/images/wow_class_icons/hunter_icon.gif" />Hunter</td>
            <td valign="bottom"><strong>' . displayTT($hunter_need,$hunter_spec,$needed_hunter) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="/images/wow_class_icons/mage_icon.gif" />Mage</td>
            <td valign="bottom"><strong>' . displayTT($mage_need,$mage_spec,$needed_mage,$arcane_spec,$arcane_mage,$fire_spec,$fire_mage,$frost_spec,$frost_mage) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="/images/wow_class_icons/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>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="/images/wow_class_icons/priest_icon.gif" />Priest</td>
            <td valign="bottom"><strong>' . displayTT($priest_need,$holy_spec,$holy_priest,$shadow_spec,$shad_priest) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="/images/wow_class_icons/rogue_icon.gif" />Rogue</td>
            <td valign="bottom"><strong>' . displayTT($rogue_need,$rogue_spec,$needed_rogue) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="/images/wow_class_icons/shaman_icon.gif" />Shaman</td>
            <td valign="bottom"><strong>' . displayTT($shaman_need,$resto_spec,$resto_sham,$elemental_spec,$elemental_sham,$enhance_spec,$enhance_sham) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="/images/wow_class_icons/warlock_icon.gif" />Warlock</td>
            <td valign="bottom"><strong>' . displayTT($warlock_need,$warlock_spec,$needed_warlock) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="/images/wow_class_icons/warrior_icon.gif" />Warrior</td>
            <td valign="bottom"><strong>' . displayTT($warrior_need,$prot_spec,$prot_war,$arms_spec,$arms_war,$fury_spec,$fury_war) . '</strong></td>
            <td width="10%"> </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>
';

Thecrom

#28
Hello,

I changed the code for german users:

//***********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)

$druid_need = 0;
$hunter_need = 1;
$mage_need = 2;
$paladin_need = 3;
$priest_need = 4;
$rogue_need = 0;
$shaman_need = 1;
$warlock_need = 2;
$warrior_need =3;
$deathknight_need = 4;



//--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."
//Druid
$needed_druid = 0;
$feral_druid = 0;
$resto_druid = 0;
$balance_druid = 0;

//Hunter
$needed_hunter = 0;
$tier_hunter = 0;
$treff_hunter = 0;
$leben_hunter = 0;

//Mage
$needed_mage = 0;
$frost_mage = 0;
$fire_mage = 0 ;
$arcan_mage = 0;

//Paladin
$needed_paladin = 0;
$holy_paladin = 0;
$prot_paladin = 0;
$ret_paladin =  0;

//Priest
$needed_priest = 0;
$holy_priest = 0;
$shad_priest = 0;
$disc_priest = 0;

//Rogue
$needed_rogue = 0;
$meuch_rogue = 0;
$kampf_rogue = 0;
$taeusch_rogue = 0;

//Shaman
$needed_sham = 0;
$resto_sham = 0;
$enhance_sham = 0;
$elemental_sham = 0;

//Warlock
$needed_warlock = 0;
$gebr_warlock = 0;
$daem_warlock = 0;
$zerst_warlock = 0;


//Warrior
$needed_war = 0;
$prot_war = 0;
$arms_war = 0;
$fury_war = 0;

//Death Knight
$needed_deathknight = 0;
$blood_deathknight = 0;
$frost_deathknight = 0;
$unholy_deathknight = 0;

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

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

$druid_spec = 'Gesamt:';
$feral_spec = 'Wilder Kampf:';
$resto_spec = 'Wiederherstellung:';
$balance_spec = 'Gleichgewicht:';

$hunter_spec = 'Gesamt:';
$tier_spec = 'Tierherrschaft:';
$treff_spec = 'Treffsicherheit:';
$leben_spec = 'ÃÅ"berleben:';

$mage_spec = 'Gesamt:';
$frost_spec = 'Frost:';
$fire_spec = 'Feuer:';
$arcane_spec = 'Arkan:';

$paladin_spec = 'Gesamt:';
$holy_spec = 'Heilig:';
$prot_spec = 'Schutz:';
$ret_spec = 'Vergeltung:';

$priest_spec = 'Gesamt:';
$heil_spec = 'Heilig:';
$disz_spec = 'Heilig:';
$shadow_spec = 'Schatten:';

$rogue_spec = 'Gesamt:';
$meuch_spec = 'Meucheln:';
$kampf_spec = 'Kampf:';
$taeusch_spec = 'Täuschung:';

$sham_spec = 'Gesamt:';
$elemental_spec = 'Elementar:';
$enhance_spec = 'Verstärkung:';
$resto_spec = 'Wiederherstellung:';

$warlock_spec = 'Gesamt:';
$gebr_spec = 'Gebrechen:';
$daem_spec = 'Dämonologie:';
$zerst_spec = 'Zerstörung:';

$warior_spec = 'Gesamt:';
$arms_spec = 'Waffen:';
$fury_spec = 'Furor:';
$rot_spec = 'Schutz:';

$death_spec = 'Gesamt:';
$blood_spec = 'Blut:';
$frostdk_spec = 'Frost:';
$unholy_spec = 'Unheilig:';


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




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



function printClassStatus($className)
{
switch($className)
{
case 0: return '<font color="grey">unnötig</font>';
case 1: return '<font color="red">wenig</font>';
case 2: return '<font color="orange">mittel</font>';
case 3: return '<font color="yellow">dringend</font>';
case 4: return '<font color="green">sehr dringend</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****************************





echo'
<script type="text/javascript" src="./wz_tooltip/wz_tooltip.js"></script>
<center>Geh über den Dringlichkeitsgrad für Details</center>


<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/druid_icon.gif" />Druide</font></td>
            <td valign="bottom"><strong>' . displayTT($druid_need,$resto_spec,$resto_druid,$feral_spec,$feral_druid,$balance_spec,$balance_druid) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/hunter_icon.gif" />Jäger</td>
            <td valign="bottom"><strong>' . displayTT($hunter_need,$tier_spec,$tier_hunter,$treff_spec,$treff_hunter,$leben_spec,$leben_hunter) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/mage_icon.gif" />Magier</td>
            <td valign="bottom"><strong>' . displayTT($mage_need,$frost_spec,$frost_mage,$fire_spec,$fire_mage,$arcane_spec,$arcan_mage) . '</strong></td>
            <td width="10%"> </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>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/priest_icon.gif" />Priester</td>
            <td valign="bottom"><strong>' . displayTT($priest_need,$holy_spec,$holy_priest,$disz_spec,$disc_priest,$shadow_spec,$shad_priest) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/rogue_icon.gif" />Schurke</td>
            <td valign="bottom"><strong>' . displayTT($rogue_need,$meuch_spec,$meuch_rogue,$kampf_spec,$kampf_rogue,$taeusch_spec,$taeusch_rogue) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/shaman_icon.gif" />Schamane</td>
            <td valign="bottom"><strong>' . displayTT($shaman_need,$resto_spec,$resto_sham,$enhance_spec,$enhance_sham,$elemental_spec,$elemental_sham) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/warlock_icon.gif" />Hexer</td>
            <td valign="bottom"><strong>' . displayTT($warlock_need,$gebr_spec,$gebr_warlock,$daem_spec,$daem_warlock,$zerst_spec,$zerst_warlock) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/warrior_icon.gif" />Krieger</td>
            <td valign="bottom"><strong>' . displayTT($warrior_need,$arms_spec,$arms_war,$fury_spec,$fury_war,$prot_spec,$prot_war) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
            <td width="70%" class="tbcphp"><img alt="" src="wow/deathknight_icon.gif" />Todesritter</td>
            <td valign="bottom"><strong>' . displayTT($deathknight_need,$blood_spec,$blood_deathknight,$frostdk_spec,$frost_deathknight,$unholy_spec,$unholy_deathknight) . '</strong></td>
            <td width="10%"> </td>
        </tr>
    </tbody>
</table>
<table width="100%" height="8">
    <tbody>
        <tr>
             <td class="tbcphp"><center><i>Natürlich darfst Du dich unabhängig von dem was wir gerade suchen, immer bewerben.</center></i>
             </td>
        </tr>
        <tr>';
if($user_info['is_guest'])
{
echo'
            <td class="tbcphp"><br />
            <div align="center"><a href="/forum/index.php?action=register">Bitte registriere Dich zuerst!</a><br />
            </div>
            </td>';
}
else
{
echo'

            <td> <br />
            <div align="center"><a href="/forum/index.php?board=3.0">Bewirb dich hier</a><br />
            </div>
            </td>';
}
echo'
        </tr>
    </tbody>
</table>
</font>
';


Preview: preview on my homepage


PS. onmouse event is fixed (next post) thanks a lot  Inny  ;)

Inny

German code translation is missing the onmouseout event.

Fix can be found Here

This website is proudly hosted on Crocweb Cloud Website Hosting.