The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Mobile, Cell, Phone, PDA, iPhone Style Details »» | ||||||||||||||||||||
vBulletin 4.0 version here: https://vborg.vbsupport.ru/showthread.php?t=228986
A very cut back style with very low bandwidth usage which renders well on pretty much all small screen devices from old Nokias to new iPhones.
Notes
Release Information
Install Instructions
Show Your Support
|
Comments |
#132
|
|||
|
|||
I've looked through the vBulletin js files and pulled out he script needed to make the quick style chooser work - this will of course only work on mobile devices that support javascript and if teh style is not being force by an add-on.
Add the following to the very top of your footer template: Code:
<if condition="$show['quickchooser']"> <script type="text/javascript"> <!-- var is_regexp=(window.RegExp)?true:false; function switch_id(C,E){var F=C.options[C.selectedIndex].value;if(F==""){return }var B=new String(window.location);var A=new String("");B=B.split("#");if(B[1]){A="#"+B[1]}B=B[0];if(B.indexOf(E+"id=")!=-1&&is_regexp){var D=new RegExp(E+"id=\\d+&?");B=B.replace(D,"")}if(B.indexOf("?")==-1){B+="?"}else{lastchar=B.substr(B.length-1);if(lastchar!="&"&&lastchar!="?"){B+="&"}}window.location=B+E+"id="+F+A} // --> </script> <div> <select name="styleid" onchange="switch_id(this, 'style')"> <optgroup label="$vbphrase[quick_style_chooser]"> $quickchooserbits </optgroup> </select> </div> </if> Just add: Code:
<if condition="$show['quickchooser']"> <div class="windowbg2">Style Chooser</div> <span> <select name="styleid"> <optgroup label="$vbphrase[quick_style_chooser]"> $quickchooserbits </optgroup> </select> </if> </span> <br /> Code:
<div> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="submit" class="button" value="$vbphrase[save_changes]" accesskey="s" /> <input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" /> </div> |
#133
|
|||
|
|||
Dartho, are your adsense ads appearing yet? I have nothing.
|
#134
|
|||
|
|||
No - having played with it a little more, I think something is not quite right with it. Also I noticed that at one stage I got the ads, but after a couple refreshes the ads vanished and I was back to only having comments?
|
#135
|
|||
|
|||
OK - I think I have working properly now. Code for plugin below. Ads don;t show up all teh time and after a bunch of refreshes they go a way for a while. This is a google thing and I guess it depends on your sites content and who is advertising? Anyway - the following seems to work for me. It is set for showing ads just before the quick reply, but you can change the ad_location in the code to show them after first post by searching and replacing ad_showthread_beforeqr for ad_showthread_firstpost in the plugin code...
Get your mobile adsense PHP code - here's the code Google game me (DO NOT USE THIS - GET YOUR OWN) PHP Code:
PHP Code:
The other changes (after moving the functions to the top) were: 1. replace PHP Code:
PHP Code:
PHP Code:
PHP Code:
ad_footer_start - global_start ad_footer_end - global_start ad_forumdisplay_afterthreads - forum_display_start ad_forumhome_afterforums - forum_home_start ad_header_end - global_start ad_header_logo - global_start ad_navbar_below - global_start ad_showthread_beforeqr - showthread_start ad_showthread_firstpost - showthread_start Hope this helps! |
#136
|
|||
|
|||
That works great, dartho. Thanks!
|
#138
|
|||
|
|||
I'm looking at making a product to go along with this style so some aspects of it may be turned on/off.
Some examples are:
What other options do you think would be good in such a product? |
#139
|
|||
|
|||
Quote:
|
#140
|
|||
|
|||
Titles should be fixed (ie. same as default style) as of the last version.
What do you suggest for meta tags? |
#141
|
|||
|
|||
Quote:
For the Description, use the first 100 characters of the first posting in the page - this is what VbSEO does (although they use 150 characters by default. For categories, use the category description. For the keywords, perhaps use the tags and/or title without the stop words. Or just use tags where they exist and leave it blank if they don't. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|