Hi there, there is something I'm tryging to achieve but I haven't get the right solution.
To add a button lets say in
item.php, if I use:
<?php if(function_exists('im_contact_button')) { im_contact_button(); } ?>
And also I pretty much understand what @frosticek said
<?php if(osc_is_web_user_logged_in()) { ?>
.... button code, form code, whatever ...
<?php } ?>
But I don't want to hide that button from not registered users, instead I want them to see it it and encourage them to register before using "send a message."
something like posting an ad that requires registration, you can actually see the button, once you click it, redirects you to register/login form.
How can that be done?