iPhone / iPod Touch Optimized Skin

cryrichter

New Member
iPhone / iPod Touch Optimized Skin
Code:
http://www.vbulletin.org/forum/showthread.php?t=171947
thanks go vbteam.info
please move to style request section i posted in wrong section sorry
 
free to use it.

Note:
To show a message to all your iPod / iPhone users, you just need to add something like this in your navbar template (in your default style).

<script type="text/javascript">
if ((navigator.userAgent.indexOf('iPhone') != -1) ||
(navigator.userAgent.indexOf('iPod') != -1)) {
document.write("<a href=\"$_SERVER[PHP_SELF]?<if condition="$_SERVER['QUERY_STRING']">$_SERVER[QUERY_STRING]&</if>styleid=XX\">iPhone Style</a>")
}
</script>

(Change XX to your iPhone style number and write whatever you want instead of "iPhone Stlye")
 
is a quick way to patch the security token issue for this style, do a search in this style for:
<input type="hidden" name="s" value="$session[sessionhash]" />
And in each template that it finds WHICH HAS ALSO BE CUSTOMIZED FOR THE STYLE, add this underneath:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
If you just do a search and replace, it will replace all instances of the searched term, even those where the correct style was inherited from the default, which would leave you with duplicates of that added line.
 
Back
Top