The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Extend and Customise "Mobile" Style Options Details »» | ||||||||||||||||||||||
Extend and Customise "Mobile" Style Options
Developer Last Online: Oct 2023
This is an add-on for (and thus requires) the Mobile, Cell, Phone, PDA, iPhone Style.
It adds options to your vBulletin Options for customizing:
Install the latest Mobile style (should have same version number as this addon, but may have a different alpha char on end of version number) Install this add-on and set your options Version History 0.0.1 Initial Release 0.0.2 Can't remember what change I made 0.0.3 Added ability to Hide mobile style from style chooser Fixed bug in display 'Posted by..' message 0.0.10 Synchonised the version number to be the same as the Mobile style version Added ability to customise link names Added option to append USERAGENT string to new posts YOU WILL NEED TO UPDATE TO VERSION 0.0.10 OF THE MOBILE STYLE 0.0.10a Added section where you can input PHP code to disable some add-ons which you do not wish to run under the mobile style. 0.0.10b Fixed possibly HTML injection vulnerability. *This will not work with other styles - it requires Mobile, Cell, Phone, PDA, iPhone Style to be installed! Show Your Support
|
Comments |
#22
|
|||
|
|||
There in lays the pitfalls of addins that perform automatic template edits. It may not be hooks doing them, it could be appending data to a template which can not be controlled by this style. What you will need to do is modify the plugin that is doing the template edit and wrap it in conditionals so it doesn;t perform the edits for the mobile style.
If it's an add-on here at vb.org. point me towards it and I'll try and let you know what you need to do... |
#23
|
|||
|
|||
Not marking installed because does not work
|
#24
|
|||
|
|||
I seem to be getting a lot of page timeouts when accessing the mobile style. :dunno:
|
#25
|
|||
|
|||
Is there a way to use this with a mobile style I've already developed?
|
#26
|
|||
|
|||
Thanks!
|
#27
|
|||
|
|||
Quote:
You're looking just for the "Posted via Mobile" portion? I can wrap this up as a standalone plugin if you like. Actually, I think you could probably use this as is to add that functionality. Other options such as Home link, Style title, What's going on won't work, but the 'Posted via Mobile' type footers should work with any style. The next release of this will allow a generic message such as "Posted via Mobile" or simply adding the UserAgent string to the footer of the post. |
#28
|
||||
|
||||
how can i add a second style to the options?
to the posted via mobile device / iphone cause i have a second skin only for iphone/ipod..... Thanks |
#29
|
|||
|
|||
Most of the options would not be compatible with other styles as my Mobile style is coded with this in mind. Which aspects did you wish to apply to your other mobile style?
Edit: Sorry - I jest re-read your post. You could do this by manually editing 2 plugins newreply_post_start and newthread_post_start Change the code from Code:
if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){ $vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n".$vbulletin->options['mo37_post_text']."\n"; } Code:
if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){ $vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n".$vbulletin->options['mo37_post_text']."\n"; } if ($styleid==XX) { $vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "Posted via iPhone" ."\n"; } |
#30
|
|||
|
|||
*** UPDATED with many suggestions. Be sure to update tehj mobile style also if installing a newer version of this. Both the style and this add-on have the same version numbers as of 0.0.10.
|
#31
|
||||
|
||||
Quote:
but i wanted the UA too so here's what i did for those who'll be asking in the future Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|