The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Notice: Criteria Custom Profil Field
Hi!
I need an Addon for 3.8.x and need help or anyboady to just solve my problem. :-) What? I want to show a Notice by the criteria of a custom field. Why? My users have to choese between 8 given regions in their profil, wich I created as custom fiels. Each region should get thier own Notice. Based on this Addon it should be easy. Something like this? Code:
notices_check_criteria "$bbuserinfo[field7] == 'Junkyard'" I did a short work around by pasting PHP Code:
This is my work till now. Any ideas? PHP Code:
|
#2
|
||||
|
||||
Shouldn't need the options at all.
Here's what I came up with (untested): PHP Code:
|
#3
|
|||
|
|||
Thanks.
Why shouldn't need the options at all? After 6 hours I still can't get it running. As I found out: hooknames should be notices_list_criteria and notices_check_criteria Everyone gets following error and the notice, when Option is chosen. Quote:
PHP Code:
WTF is line 3? --------------- Added [DATE]1256061410[/DATE] at [TIME]1256061410[/TIME] --------------- PHP Code:
Code:
if ($bbuserinfo['field$conditions[0]'] != $conditions[1]) if ($_bbuserinfo['field$conditions[0]'] != $conditions[1]) if ($userinfo['field$conditions[0]'] != $conditions[1]) if ($post['field$conditions[0]'] != $conditions[1]) etc. |
#4
|
||||
|
||||
Try this:
PHP Code:
|
#5
|
|||
|
|||
Code:
parse error, expecting `']'' in D:\htdocs\forum\includes\functions_notice.php(296) : eval()'d code on line 3 PHP Code:
--------------- Added [DATE]1256114123[/DATE] at [TIME]1256114123[/TIME] --------------- Found it: $vbulletin ->userinfo is ending the brake <![CDATA[if Different idea: Can it be a problem, that my field7 (wich I'm trying to catch) is a Single-Selection Menu? Maybe the options are counted No1, No2... --------------- Added [DATE]1256115842[/DATE] at [TIME]1256115842[/TIME] --------------- Found this in advanced search with firebug HTML Code:
<option value="1">XY1</option> <option value="2">XY2</option> --------------- Added [DATE]1256116922[/DATE] at [TIME]1256116922[/TIME] --------------- Wrong idea. The value of the option is a text! :erm: --------------- Added [DATE]1256117359[/DATE] at [TIME]1256117359[/TIME] --------------- I quit! can a moderator pleas move this thread to Modification Requests (Unpaid) Thanks a lot Wired1! |
#6
|
|||
|
|||
Can anyone solve the problem for me?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|