XF 1.x Footer button - help

bosss

Registered
Hello the best of the best!

I made one button on advance footer on gamer time ... "Register Now" (modifing your code )

PHP:
<label id="SignupButton"><a href="http://www.mysite.com/xenforo/index.php?register/" class="inner"><b>Register Now!</b></a></label>

Works ... but i want that button only shows to guests - not logged members or users - can You help me with code to show only to guests?

will attach picture - better explanation!
regards

bosss

I know that is customization and no panic - when you have time you can answer.
 

Attachments

  • footer_button.png
    footer_button.png
    121.6 KB · Views: 5

Russ

Pixel Exit Staff
Unfortunately you can't use conditionals in our style properties (or other XF properties). So remove the code from the Style Properties -> [XB] Custom Footer -BLock 1 and open the template:

xb_footer_Block1Helper

Past your code in that template at the end, and wrap your code in the following conditional:
Code:
<xen:if is="!{$visitor.user_id}">your code here</xen:if>
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.