![]() |
getFieldValue or similar query
I'm looking to edit a template to display something if a user has checked a Radio Button (custom field) in their UserCP.
So what I'm looking for is how I could do this: Code:
<if condition="radiobuttonischeckedyes"> Thanks, Danny. --------------- Added [DATE]1256155121[/DATE] at [TIME]1256155121[/TIME] --------------- BUMP - any help? --------------- Added [DATE]1256165702[/DATE] at [TIME]1256165702[/TIME] --------------- Anyone? |
Anyone?
|
What template are you wanting to put it in? Search in the Articles forums for "profile*" in "titles only" and you should find an article on how to add user profile fields into the postbit templates.
|
I think I got it, I added this to the PHP file for the portal (reason I was doing this):
Code:
<if condition="$post['field11'] == 'No'"> |
That is not going to work in a php file, no, cuz it's html. That should work in a template though.
|
It's outside of the <?php tag though.
|
I don't think the condition will work unless it's in a template. That is a special type of vbulletin only condition - it isn't regular html. Try it and you'll see what happens.
|
Wait, what if I changed the option in the ACP where it is "Change page type", what if I made it a template, and would it be accessible from there?
|
Change page type? I have no idea what option you are talking about there.
|
I'm using "vBadvanced CMPS", and there's an option to change page type in the ACP, and the options are "PHP", "HTML", "Template", and "BBCode", would changing the page type solve it?
--------------- Added [DATE]1256257017[/DATE] at [TIME]1256257017[/TIME] --------------- EDIT: I found the template for it, and the home template, I've added this script, however, should it go at the VERY top, or under the <html> tags, ect.? Code:
<if condition="$post['field11'] == 'No'"> |
All times are GMT. The time now is 04:58 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|