How to avoid security token

i updated to the cleanblue fluid template and have this problem when users search the forum. is there a fix for this without reverting to default, which messes up the navbar? thanks!
 
gjcomputer said:
i updated to the cleanblue fluid template and have this problem when users search the forum. is there a fix for this without reverting to default, which messes up the navbar? thanks!

You do not need to revert all the templates just edit them,

click on the link to see what templates need updating
each template has 3 options:
-Edit
-View history
-Revert

click on the view history
then on the next page click compare

the left side is the new template changes, the right is your style

now go back to the template list (leaving the compare page open)
right click on edit template and open in new tab or window
(if you simply click it, it will open in the compare page which you dont want to happen)

now go back to the compare page find all the edits that need to be done and change them

Red = missing code (new code added by vB)
Yellow = code changes (code changes by vB)
Green = code differences (mainly the original designers added code)

If you have a heavily modded or a style very different to the default style look at the code changes very carefully because some code may not be need to be edited as its simply somewhere else in the template to where vb thinks it should be or its the original designers code which probably dosent need editing.

The main edits you need to worry about are the one in red with "security token" in them but it is advisable to do them all.

Happy editing..;)
 
Code:
Run this query it will show you all php files to edit
SELECT templateid , title , styleid FROM template WHERE template_un NOT LIKE '%<input type="hidden" name="s" value="$session[sessionhash]" />%<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />%' AND template_un LIKE '%<input type="hidden" name="s" value="$session[sessionhash]" />%' ORDER BY title ASC, styleid ASC;

Or be lazy and in ACP replace this by empty line
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
empty line

After that replace 
 <input type="hidden" name="s" value="$session[sessionhash]" />
with
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
 
Back
Top