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,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 588
  • Total: 589
  • @rjen

Warhammer Online Recruitment Block

Started by dreadkgt, August 24, 2008, 02:20:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dhighet

Quote from: Phathoms on September 01, 2008, 03:37:03 AM
Yeah, it's probably something minor in what Dekthro posted.  What I did to solve my problem was just cut and pasted the orginal code and then carefully deleted all referrences to Order, as was originally suggested.  This is what I thought was done in the Dekthro post for a quick copy and paste, but seems something is a little off.
Not sure what I might of missed, was a direct copy from what I was using at the time. I'd repost what I got but I've hacked it up considerably, compared to the original display. lol.

varzues


Smoothbrain

Very very nice, I might keep this in mind for using as a modified roster of sorts, unless... you would happen to have a mod for a roster somewhere up your sleeve *hint hint*

Feel free to visit our site, we are Order of the Hammer guild from TTH, and I am Smoothbrain

http://orderofthehammer.net/forum

TiKi-Cobra

would someone be kind enough to give me the code for an order only version of this bloc?

dreadkgt

Be sure to download the one file since it contains the CSS I use.

Code (Order Only) Select

$warlink= 'http://www.therisenguild.net/war_recruit';
$registerlink=  '';

global $user_info, $context;

//*******************CONFIGURATION SECTION*********************
//o = Open
//l = limited
//empty is closed

//ORDER CLASS NEEDS
$swordmaster = 'o';
$brightwizard ='l';
$witchhunter = '';
$engineer = 'o';
$runepriest = 'l';
$ironbreaker = 'o';
$shadowwarrior = 'l';
$archmage = '';
$swordmaster = 'o';
$whitelion = 'l';


// Code START

$r = "o";
$l = "l";

//ORDER Classes

if ($warriorpriest == $r){
$warriorpriest = "<b><font color='green'>Open</font></b>";
}
elseif ($warriorpriest == $l) {
$warriorpriest = "<b><font color='orange'>Limited</font></b>";
}
else{
$warriorpriest = "<b><font color='red'>Closed</font></b>";
}


if ($brightwizard ==$r){
$brightwizard = "<b><font color='green'>Open</font></b>";
}
elseif ($brightwizard == $l) {
$brightwizard = "<b><font color='orange'>Limited</font></b>";
}
else{
$brightwizard = "<b><font color='red'>Closed</font></b>";
}

if ($witchhunter ==$r){
$witchhunter = "<b><font color='green'>Open</font></b>";
}
elseif ($witchhunter == $l) {
$witchhunter = "<b><font color='orange'>Limited</font></b>";
}
else{
$witchhunter = "<b><font color='red'>Closed</font></b>";
}

if ($engineer ==$r){
$engineer = "<b><font color='green'>Open</font></b>";
}
elseif ($engineer == $l) {
$engineer = "<b><font color='orange'>Limited</font></b>";
}
else{
$engineer = "<b><font color='red'>Closed</font></b>";
}

if ($runepriest ==$r){
$runepriest= "<b><font color='green'>Open</font></b>";
}
elseif ($runepriest == $l) {
$runepriest = "<b><font color='orange'>Limited</font></b>";
}
else{
$runepriest = "<b><font color='red'>Closed</font></b>";
}

if ($ironbreaker ==$r){
$ironbreaker = "<b><font color='green'>Open</font></b>";
}
elseif ($ironbreaker == $l) {
$ironbreaker = "<b><font color='orange'>Limited</font></b>";
}
else{
$ironbreaker = "<b><font color='red'>Closed</font></b>";
}

if ($shadowwarrior ==$r){
$shadowwarrior = "<b><font color='green'>Open</font></b>";
}
elseif ($shadowwarrior == $l) {
$shadowwarrior = "<b><font color='orange'>Limited</font></b>";
}
else{
$shadowwarrior = "<b><font color='red'>Closed</font></b>";
}

if ($archmage ==$r){
$archmage = "<b><font color='green'>Open</font></b>";
}
elseif ($archmage == $l) {
$archmage = "<b><font color='orange'>Limited</font></b>";
}
else{
$archmage= "<b><font color='red'>Closed</font></b>";
}

if ($swordmaster ==$r){
$swordmaster = "<b><font color='green'>Open</font></b>";
}
elseif ($swordmaster == $l) {
$swordmaster = "<b><font color='orange'>Limited</font></b>";
}
else{
$swordmaster = "<b><font color='red'>Closed</font></b>";
}

if ($whitelion ==$r){
$whitelion = "<b><font color='green'>Open</font></b>";
}
elseif ($whitelion == $l) {
$whitelion = "<b><font color='orange'>Limited</font></b>";
}
else{
$whitelion = "<b><font color='red'>Closed</font></b>";
}




echo '
<html>
<head>

<link rel="stylesheet" type="text/css" href="', $warlink, '/rstyle.css" />


</head>
<body>
<center>
<img src="', $warlink, '/order.png");"
/>
<BR>
</center>
<center>


<table width="175px" cellpadding="0" cellspacing="0">
<tr class="tdrace"><td colspan="3" valign="center"><img src="', $warlink, '/order/empire.png" align="center"><font color="#ffffff"> EMPIRE</font></td></tr>
<tr class="tr1"><td class="tdicon"><img src="', $warlink, '/order/warriorpriest.png"></td><td class="tdtext">Warrior Priest</td><td class="tdstatus">' . $warriorpriest. '</td></tr>
<tr class="tr2"><td class="tdicon"><img src="', $warlink, '/order/brightwizard.png"></td><td class="tdtext">Bright Wizard</td><td class="tdstatus">' . $brightwizard. '</td></tr>
<tr class="tr1"><td class="tdicon"><img src="', $warlink, '/order/witchhunter.png"></td><td class="tdtext">Witch Hunter</td><td class="tdstatus">' . $witchhunter. '</td></tr>

<tr class="tdrace"><td colspan="3" valign="center"><img src="', $warlink, '/order/dwarf.png" align="center"> <font color="#ffffff"> DWARVES</font></td></tr>
<tr class="tr1"><td class="tdicon"><img src="', $warlink, '/order/engineer.png"></td><td class="tdtext">Engineer</td><td class="tdstatus">' . $engineer. '</td></tr>
<tr class="tr2"><td class="tdicon"><img src="', $warlink, '/order/runepriest.png"></td><td class="tdtext">Runepriest</td><td class="tdstatus">' . $runepriest. '</td></tr>
<tr class="tr1"><td class="tdicon"><img src="', $warlink, '/order/ironbreaker.png"></td><td class="tdtext">Ironbreaker</td><td class="tdstatus">' . $ironbreaker. '</td></tr>

<tr class="tdrace"><td colspan="3" valign="center"><img src="', $warlink, '/order/highelf.png" align="center"><font color="#ffffff"> HIGH ELVES</font></td></tr>
<tr class="tr1"><td class="tdicon"><img src="', $warlink, '/order/swarrior.png"></td><td class="tdtext">Shadow Warrior</td><td class="tdstatus">' . $shadowwarrior. '</td></tr>
<tr class="tr2"><td class="tdicon"><img src="', $warlink, '/order/archmage.png"></td><td class="tdtext">Archmage</td><td class="tdstatus">' . $archmage. '</td></tr>
<tr class="tr1"><td class="tdicon"><img src="', $warlink, '/order/swordmaster.png"></td><td class="tdtext">Sword Master</td><td class="tdstatus">' . $swordmaster. '</td></tr>
<tr class="tr2"><td class="tdicon"><img src="', $warlink, '/order/whitelion.png"></td><td class="tdtext">White Lion</td><td class="tdstatus">' . $whitelion. '</td></tr>
</table>
<BR>


<BR><HR>';

if ($context['user']['is_guest'])
echo 'Please register before applying<BR>
  <a href="'. $scripturl .'?action=register">APPLY HERE</a>';

  if ($context['user']['is_logged'])
    echo' Hi  <B>', $context['user']['name'] ,  
    '<BR></b> Fill out the registration:<BR>
    <a href="'. $registerlink .'">Join us here</a>';


echo '
</body>
</html>
';

dpmagyari

Thank you for making this available to others. Your hard work is appreciated as well as admired. Keep up the great work and thank you!
The download link seems to just take me to your sites forum index. I have registered an account there and still cannot find a way to access the download. Any help would be greatly appreciated.

ZarPrime

dpmagyari,

I suggest you post your questions on that directly to Dread as he has installed SMF 2.0 on his site, which keeps him from being able to even use TP right now, especially since he hasn't checked in here since around the end of December of last year.  His TP Downloads are no longer working since he isn't using TP right now.

ZarPrime

dpmagyari

Thanks for the reply. (mental note to self..... Check the dates on post before asking questions!)

This website is proudly hosted on Crocweb Cloud Website Hosting.