The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#5
|
|||
|
|||
![]() Quote:
--------------- Added [DATE]1347032342[/DATE] at [TIME]1347032342[/TIME] --------------- one more question... how would i go about adding the if/else in this Code:
$template_hook['forumhome_above_forums'] .= "". --------------- Added [DATE]1347034575[/DATE] at [TIME]1347034575[/TIME] --------------- nope i tried this ty u guys for you patience with me.. Code:
$template_hook['forumhome_above_forums'] .= "".if (isset($shirtid)) { echo $itemshirt; } else { echo "put a shirt on"; }." </div>"; } okay so i give up here is my plugin Whats wrong here???? Code:
$shirtid = "". $decode[items][shirt][id] .""; $itemshirt = "<a href=\"http://www.wowhead.com/item=".$shirtid."\" rel=\"item=".$shirtid."\"><img class=\"wowequipimg\" src=\"".$bliziconurl."/".$shirticon.".jpg\"></a>"; if (isset($shirtid)) { $template_hook['forumhome_above_forums'] .= "". $itemshirt .""; } else { $template_hook['forumhome_above_forums'] .= "put a shirt on"; } Getting Close i can feel it... im not getting any errors but This works! I tested Code:
if (isset($shirtid)) { $template_hook['forumhome_above_forums'] .= "". $itemshirt .""; } Code:
else { $template_hook['forumhome_above_forums'] .= "put a shirt on"; } --------------- Added [DATE]1347036765[/DATE] at [TIME]1347036765[/TIME] --------------- End Result Which works!!!! Code:
if ($shirtid == NULL) { $template_hook['forumhome_above_forums'] .= "". $missingshirt .""; } else { $template_hook['forumhome_above_forums'] .= "". $itemshirt .""; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|