vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - World of Warcraft Class Recruitment Status module (db backend) (https://vborg.vbsupport.ru/showthread.php?t=137670)

elricstorm 05-02-2007 06:37 PM

yer welcome - it's a nice addition you made. I was getting asked by numerous people to change my old recruitment status module and wanted something simple enough that even a monkey could edit it. This was simple, effective, and nicely polished.

turnipofdoom 05-02-2007 07:00 PM

Quote:

Originally Posted by elricstorm (Post 1239969)
yer welcome - it's a nice addition you made. I was getting asked by numerous people to change my old recruitment status module and wanted something simple enough that even a monkey could edit it. This was simple, effective, and nicely polished.

Hey look at that Stamford, I am up in Old Saybrook, near New London, a fellow CT person!

Also can I get your apache and php version info?

idwf 05-03-2007 09:15 PM

... [please delete]

NightPhoenix 06-03-2007 03:52 AM

Came back to try this again... and it worked.... Installed

I have php5, but still needed to make the changes you have listed for php4 to prevent the errors from popping up.

Do you know what might be causing the issue in the attached screenshot? My website is www.shuhalo.com

It would be nice if I could figure how to get the blue section to blend in better.

turnipofdoom 06-05-2007 12:01 AM

Do you recall what the errors were ? Was it a keyword error ? Can you change it back and post the fatal error ? That would really help. Can you also post the HTML source for the blue background page.

SuprSurfr 06-15-2007 09:01 PM

Hey would it be possible to modify the code so that it only shows what classes that are open for recruitment on the page?

Example:

If I had 0 or closed in the field dont show the Class at all on the page.
If I had 1 or greater or Open in the field it would show the class on the fron page.

Is this doable and if so how difficult?

Thanks.

turnipofdoom 06-15-2007 09:35 PM

Quote:

Originally Posted by SuprSurfr (Post 1269279)
Hey would it be possible to modify the code so that it only shows what classes that are open for recruitment on the page?

Example:

If I had 0 or closed in the field dont show the Class at all on the page.
If I had 1 or greater or Open in the field it would show the class on the fron page.


Is this doable and if so how difficult?


Thanks.

You can do something like
PHP Code:

<if condition="$druid > 0">
<
div><img src="../../forum/images/wow/Druid.gif" width="20" height="20"Druid$druid</div>
</if> 

Inside your display template. You would need to do one if condition for each class

SuprSurfr 06-16-2007 01:19 PM

Quote:

Originally Posted by turnipofdoom (Post 1269309)
You can do something like
PHP Code:

<if condition="$druid > 0">
<
div><img src="../../forum/images/wow/Druid.gif" width="20" height="20"Druid$druid</div>
</if> 

Inside your display template. You would need to do one if condition for each class

Awsome!
Thats what i needed!

I used this code:

Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
        <thead>
        <tr>
                <td class="tcat">
                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('functions_recruit')"><img id="collapseimg_functions_recruit"

src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_functions_recruit.gif" alt="" border="0" /></a>
                <span class="smallfont"><strong>$vba_style[portal_blockbullet] Recruitment</strong></span></td>
        </tr>
        </thead>
        <tbody id="collapseobj_functions_recruit" style="$collapseobj_functions_recruit">
       
<tr>
<td class="$getbgrow">
    <if condition="$assassin <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Assassin.gif" width="20" height="20"> Assassin: $assassin</div>
    </if>
          <if condition="$berserker <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Berserker.gif" width="20" height="20"> Berserker: $berserker</div>
      </if>
        <if condition="$brigand <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Brigand.gif" width="20" height="20"> Brigand: $brigand</div>
    </if>
        <if condition="$bruiser <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Bruiser.gif" width="20" height="20"> Bruiser: $bruiser</div>
    </if>
        <if condition="$coercer <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Coercer.gif" width="20" height="20"> Coercer: $coercer</div>
    </if>
        <if condition="$conjuror<> "Closed"">
        <div><img src=".././images/avatars/EQ2/Conjuror.gif" width="20" height="20"> Conjuror: $conjuror</div>
    </if>
        <if condition="$defiler <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Defiler.gif" width="20" height="20"> Defiler: $defiler</div>
    </if>
        <if condition="$dirge <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Dirge.gif" width="20" height="20"> Dirge: $dirge</div>
    </if>
        <if condition="$fury <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Fury.gif" width="20" height="20"> Fury: $fury</div>
        </if>
        <if condition="$guardian <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Guardian.gif" width="20" height="20"> Guardian: $guardian</div>
        </if>
        <if condition="$illusionist <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Illusionist.gif" width="20" height="20"> Illusionist: $illusionist</div>
        </if>
        <if condition="$inquisitor <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Inquisitor.gif" width="20" height="20"> Inquisitor: $inquisitor</div>
        </if>
        <if condition="$monk <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Monk.gif" width="20" height="20"> Monk: $monk</div>
        </if>
        <if condition="$mystic <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Mystic.gif" width="20" height="20"> Mystic: $mystic</div>
        </if>
        <if condition="$necromancer <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Necromancer.gif" width="20" height="20"> Necromancer: $necromancer</div>
        </if>
        <if condition="$paladin <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Paladin.gif" width="20" height="20"> Paladin: $paladin</div>
        </if>
        <if condition="$ranger <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Ranger.gif" width="20" height="20"> Ranger: $ranger</div>
        </if>
        <if condition="$swashbuckler <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Swashbuckler.gif" width="20" height="20"> Swashbuckler: $swashbuckler</div>
        </if>
        <if condition="$shadowknight <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Shadowknight.gif" width="20" height="20"> Shadowknight: $shadowknight</div>
        </if>
        <if condition="$templar <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Templar.gif" width="20" height="20"> Templar: $templar</div>
        </if>
        <if condition="$troubador <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Troubador.gif" width="20" height="20"> Troubador: $troubador</div>
        </if>
        <if condition="$warden <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Warden.gif" width="20" height="20"> Warden: $warden</div>
        </if>
        <if condition="$warlock <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Warlock.gif" width="20" height="20"> Warlock: $warlock</div>
        </if>
        <if condition="$wizard <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Wizard.gif" width="20" height="20"> Wizard: $wizard</div>
        </if>
</td>
</tr>

        </td>
        </tr>
        </tbody>
</table>
<br />

All classes marked "Closed" will be hidden.
The only drawback is that it has to only be "Closed" and not "closed" for it to be hidden.
Any other value numeric or alpha will cause the class to be displayed on the list.

check it out here :D

turnipofdoom 06-16-2007 01:24 PM

Quote:

Originally Posted by SuprSurfr (Post 1269748)
Awsome!
Thats what i needed!

I used this code:

Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
        <thead>
        <tr>
                <td class="tcat">
                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('functions_recruit')"><img id="collapseimg_functions_recruit"

src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_functions_recruit.gif" alt="" border="0" /></a>
                <span class="smallfont"><strong>$vba_style[portal_blockbullet] Recruitment</strong></span></td>
        </tr>
        </thead>
        <tbody id="collapseobj_functions_recruit" style="$collapseobj_functions_recruit">
       
<tr>
<td class="$getbgrow">
    <if condition="$assassin <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Assassin.gif" width="20" height="20"> Assassin: $assassin</div>
    </if>
          <if condition="$berserker <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Berserker.gif" width="20" height="20"> Berserker: $berserker</div>
      </if>
        <if condition="$brigand <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Brigand.gif" width="20" height="20"> Brigand: $brigand</div>
    </if>
        <if condition="$bruiser <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Bruiser.gif" width="20" height="20"> Bruiser: $bruiser</div>
    </if>
        <if condition="$coercer <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Coercer.gif" width="20" height="20"> Coercer: $coercer</div>
    </if>
        <if condition="$conjuror<> "Closed"">
        <div><img src=".././images/avatars/EQ2/Conjuror.gif" width="20" height="20"> Conjuror: $conjuror</div>
    </if>
        <if condition="$defiler <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Defiler.gif" width="20" height="20"> Defiler: $defiler</div>
    </if>
        <if condition="$dirge <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Dirge.gif" width="20" height="20"> Dirge: $dirge</div>
    </if>
        <if condition="$fury <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Fury.gif" width="20" height="20"> Fury: $fury</div>
        </if>
        <if condition="$guardian <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Guardian.gif" width="20" height="20"> Guardian: $guardian</div>
        </if>
        <if condition="$illusionist <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Illusionist.gif" width="20" height="20"> Illusionist: $illusionist</div>
        </if>
        <if condition="$inquisitor <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Inquisitor.gif" width="20" height="20"> Inquisitor: $inquisitor</div>
        </if>
        <if condition="$monk <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Monk.gif" width="20" height="20"> Monk: $monk</div>
        </if>
        <if condition="$mystic <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Mystic.gif" width="20" height="20"> Mystic: $mystic</div>
        </if>
        <if condition="$necromancer <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Necromancer.gif" width="20" height="20"> Necromancer: $necromancer</div>
        </if>
        <if condition="$paladin <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Paladin.gif" width="20" height="20"> Paladin: $paladin</div>
        </if>
        <if condition="$ranger <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Ranger.gif" width="20" height="20"> Ranger: $ranger</div>
        </if>
        <if condition="$swashbuckler <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Swashbuckler.gif" width="20" height="20"> Swashbuckler: $swashbuckler</div>
        </if>
        <if condition="$shadowknight <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Shadowknight.gif" width="20" height="20"> Shadowknight: $shadowknight</div>
        </if>
        <if condition="$templar <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Templar.gif" width="20" height="20"> Templar: $templar</div>
        </if>
        <if condition="$troubador <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Troubador.gif" width="20" height="20"> Troubador: $troubador</div>
        </if>
        <if condition="$warden <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Warden.gif" width="20" height="20"> Warden: $warden</div>
        </if>
        <if condition="$warlock <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Warlock.gif" width="20" height="20"> Warlock: $warlock</div>
        </if>
        <if condition="$wizard <> "Closed"">
        <div><img src=".././images/avatars/EQ2/Wizard.gif" width="20" height="20"> Wizard: $wizard</div>
        </if>
</td>
</tr>

        </td>
        </tr>
        </tbody>
</table>
<br />

All classes marked "Closed" will be hidden.
The only drawback is that it has to only be "Closed" and not "closed" for it to be hidden.
Any other value numeric or alpha will cause the class to be displayed on the list.

check it out here :D

That's pretty funny, I use this for eq2 as well. I just modified it a little. What server you on ?

SuprSurfr 06-16-2007 01:29 PM

One other thing... Is it possible to have the configuration portion collapsable like the other templates?

here is a pic.

https://vborg.vbsupport.ru/

It kind of sticks out and I would like to be able to make it collapsed by default with Vbadvanced options.

Thanks


All times are GMT. The time now is 12:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01268 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete