MyBB Hacks

Full Version: Moderator option
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Code:
Modify Custom Thread Field(s)
You can use this option to modify XThreads' custom thread fields when this tool is executed. The current value (before setting) of the field can be denoted by {VALUE}. Variables/conditionals supported. NOTE: values here are NOT validated, and permissions are NOT checked! Example:
myfield=something
anotherfield={VALUE},something else


just exactly how do you use it, for instance how

myField=({VALUE}+1)

doesnt seem to work, but i might have to change the the type of field

You can try using this code:

Code:
myfield=<?=xthreads_phptpl_eval_expr({VALUE}.'+1')?>

nope, not working either, I just need to increment it by one

and its on an integer field
Edit the moderation tools. Can you see it inside the Modify Custom Thread Field(s) textarea?
No it seems to come and go, i put it in and it shows but after i save it its gone
Delete it or create a new tools, then try using the code given above.
Reference URL's