View Full Version : VB code help.
Coldplay
09-08-2008, 11:29 PM
I need this code to be able to display a different message to a user depending if they are logged in or not;
<if> $bbuserinfo="member" {
<FLASH SRC="member.swf" \>
<else \>
<FLASH SRC="guest.swf" \>
</if>
Decode
14-08-2008, 11:22 AM
Ive never used vBulletin before and this proberbly isn't the correct way to do it but try this-
<?php
if ( $bbuserinfo == "member" ) {
echo ('<embed src="member.swf" width="x" height="x" \>');
}
else {
echo ('<embed src="guest.swf" width="x" height="x" \>');
}
?>
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.