PDA

View Full Version : Add-On Releases - Extend and Customise "Mobile" Style Options


dartho
06-16-2008, 10:00 PM
This is an add-on for (and thus requires) the Mobile, Cell, Phone, PDA, iPhone Style (https://vborg.vbsupport.ru/showthread.php?t=174375).

It adds options to your vBulletin Options for customizing:

Optionally adds links to default style (in footer or navbar)
Optionally add 'Posted Via Mobile' message to new posts/threads (message can be customised)
Optionally display "What's Going On" box in forum home
Optionally display Style Chooser in footer
Set 'Home' link URL (rather than editing templates)
Can hide mobile style from Style Chooser
More as suggested ....


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 (https://vborg.vbsupport.ru/showthread.php?t=174375) to be installed!

AliMadkour
06-17-2008, 01:50 AM
Thanks ,
But I want Hide Mobile Style , I meant if the member login from PC he can't use mobile style and Contrarily

dartho
06-17-2008, 02:26 AM
You can already do that.

Install your mobile style of choice and make sure that it is checked as user selectable.
Set your vbulletin options so that the user can not change styles.
Install and configure the Mobile Autodetect add-on (https://vborg.vbsupport.ru/showthread.php?t=173239) which forces detected mobile users to the mobile style specified .

This however will not work if you have multiple styles which you allow your users to select - its all or nothing

AliMadkour
06-17-2008, 02:47 AM
You can already do that.

Install your mobile style of choice and make sure that it is checked as user selectable.
Set your vbulletin options so that the user can not change styles.
Install and configure the Mobile Autodetect add-on (https://vborg.vbsupport.ru/showthread.php?t=173239) which forces detected mobile users to the mobile style specified .

This however will not work if you have multiple styles which you allow your users to select - its all or nothing

Thanks I 'll try that ,
but if i have more that style !!

dartho
06-17-2008, 02:49 AM
I'll look into a way to hide a style form the style chooser, but can't promise anything

tekguru
06-17-2008, 04:23 PM
Installed!

Hornstar
06-17-2008, 08:14 PM
Thanks, this is great now!

Amiga Harrison
06-17-2008, 09:10 PM
Thank you for this. This adds most of the bits I wanted to change about the mobile style. :)

A couple of additional things I would like to see added are:

* Ability to change the title of the style from "*** Forum Mobile" to something else. For example I am not using the mobile skin for use on mobile devices, but instead as a lightweight skin for users accessing the forum on old Commodore Amiga computers.

* Ability to change the name of the default skin link "PC Link" that can be added to the mobile skin via this mod. I would like the ability to change this to something such as "Back to full forum" or something similar.

* The ability to add additional links in the footer of the skin. For example, as I'm using the auto redirect mod for the mobile skin I would like to add a link in the footer that links back to the other domain for the main forum style.

callumbush
06-17-2008, 10:50 PM
Hi Dartho

Haven't installed this yet, will soon :)
Does it provide an option to remove the vBulletin branding from the style template? ..Would make updating the style a much more enjoyable experience ;)

dartho
06-17-2008, 11:02 PM
No sorry, it doesn't - yet.

Fireproof
06-17-2008, 11:17 PM
Awesome work as always, dartho! :)

Hornstar
06-18-2008, 07:37 AM
I was just thinking, maybe if you included a spot to enter in around 10 extra links to the navbar, it would be great. thanks.

Jase2
06-18-2008, 10:52 AM
Wow -- thanks! :)

Venturing
06-22-2008, 08:07 AM
Very handy. Thanks!

dartho
06-24-2008, 07:28 AM
Updated:
0.0.3
Added ability to Hide mobile style from style chooser
Fixed bug in display 'Posted via Mobile Device' message

BeerLuver
06-24-2008, 06:41 PM
Thanks on this one as well for the updates :). Much appreciated dartho.

dommo_g
06-26-2008, 08:00 PM
Is there any way to have an option to allow images in threads?

dartho
06-26-2008, 09:08 PM
You can enable images by removing all the 'Replacement Variables' defined in this style...

I'll look into making it an option.

Roxie
07-08-2008, 11:19 AM
The ability for images would be nice. :)

Hornstar
07-12-2008, 12:51 AM
I am using a donation hack and it shows the donation bar status on the forum home: www.gamerzneeds.net/forums

However I dont want this showing on the mobile style. I am assuming it is auto adding it to the template, however it would be good if this style did not have these hooks, and if you wanted the modification you would need to do it either with an option or manually.

Are there any ways I can easily just remove this from showing on my mobile style tho?

dartho
07-12-2008, 10:53 AM
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...

Nevets2329
07-15-2008, 02:00 PM
Not marking installed because does not work

dommo_g
07-15-2008, 03:35 PM
I seem to be getting a lot of page timeouts when accessing the mobile style. :dunno:

Patrick Melton
07-17-2008, 02:44 AM
Is there a way to use this with a mobile style I've already developed?

talkinweb
07-17-2008, 04:20 AM
Thanks!

dartho
07-17-2008, 06:33 AM
Is there a way to use this with a mobile style I've already developed?

I spotted your request over here: https://vborg.vbsupport.ru/showthread.php?p=1501495#post1501495, then visited you site, and thought you were dead so didn't reply :o

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.

MissKalunji
07-17-2008, 01:27 PM
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

dartho
07-18-2008, 01:35 AM
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

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";
}


to


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";
}


Change the XX to be the style ID of your iPhone style and "Posted via iPhone" to what ever message you want, or $vbulletin->options['mo37_post_text'] if you want the same message applied as from other mobile devices

dartho
07-18-2008, 03:36 AM
*** 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.

MissKalunji
07-18-2008, 01:44 PM
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

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";
}


to


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";
}


Change the XX to be the style ID of your iPhone style and "Posted via iPhone" to what ever message you want, or $vbulletin->options['mo37_post_text'] if you want the same message applied as from other mobile devices

Thanks :) i did it.

but i wanted the UA too so here's what i did for those who'll be asking in the future

if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "____________________ Wirelessly Posted (" . $vbulletin->options['mo37_post_text']. ")" . "\n";
}
if (($styleid==152) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "____________________ Wirelessly Posted (" . $vbulletin->options['mo37_post_text']. ")" . "\n";
}

Thanks for this perfect mod!!

Tralala
07-22-2008, 06:37 PM
Right now the UserCP -> Edit Options for "Number of Posts to Show Per Page" applies to all styles.

I would like to see some customization, so for example, when a user has chosen the desktop style, they can choose to load 50 posts per page. But when they are using the mobile style, users default to loading / seeing 20 posts per page. This makes sense as they are on the go with a slower connection.

Could this mod help with that?


EDIT: nevermind, found this... (https://vborg.vbsupport.ru/showthread.php?t=174376)

Dartho, you rock!

Fireproof
07-26-2008, 03:09 PM
Getting a weird error at the bottom navbar and there's no link to switch to default style, even though I have that enabled.

It shows:

Log Out Search Array['mo37_default_link']

can you help?

dartho
07-26-2008, 10:23 PM
Fireproof, could you try editing the footer template and replace $vbulletin->options['mo37_default_link'] with {$vbulletin->options['mo37_default_link']}

Thanks!

Fireproof
07-27-2008, 02:34 PM
Fireproof, could you try editing the footer template and replace $vbulletin->options['mo37_default_link'] with {$vbulletin->options['mo37_default_link']}

Thanks!

Okay, that fixed it - my link now shows correctly. However, clicking on it appears to just refresh the index page, it doesn't switch styles. Am i the only one with this problem?


Also - Feature Request - Do you think it would be easy (or useful) to add in the Mobile Style Options the ability to append signatures when people post via mobile device?

dartho
07-27-2008, 09:39 PM
Are you using the autodetect add-on? If so, links to the default style will not work as the autodetect addon overrides any user choice

Fireproof
07-28-2008, 01:18 AM
Are you using the autodetect add-on? If so, links to the default style will not work as the autodetect addon overrides any user choice

Oh, yes, that makes perfect sense. Duh.

Thank you. :)

dartho
07-28-2008, 02:43 AM
Thanks, Fireproof - Mobile Style (https://vborg.vbsupport.ru/showthread.php?t=174375)updated to version 0.0.10a to fix bug you found.

I'll look at the signature thing - signatures should be in there anyway even if not displayed with in the mobile style...

dartho
08-01-2008, 04:38 AM
Updated - added a new option where you can enter in PHP code to disable certain addons with in the mobile style.

Included sample code to disable MCG CHatbox and Cyb Chatbox by default. This won;t be useful for ALL addons, but will hopefully nelp with some and remove the need for manually editing plugins. If you have an addon which you want disabled in the mobile style, post a link here and I'll see if I can help.

**I have however only tested with Cybernetec Paypal Donate - works with that OK.

cygy2k
08-01-2008, 06:34 PM
Would it be something that could prevent vBAdvanced modules from showing up when integrated using vBA's integration settings?

dartho
08-01-2008, 10:33 PM
Possibly. Integrating the forums with vBadvanced in the manner you have is not standard vbadvanced (that I know of) - if you point me in the direction of the instructions you followed to do it or PM me admincp access details as I suggested a couple weeks ago, I could look into this for you. It would likely only require some template edits.

Hornstar
08-02-2008, 03:21 AM
Do you include the sample code for Cybernetec Paypal Donate?

dartho
08-02-2008, 03:45 AM
//Disables Cybernetec Paypal Donate
$vbulletin->options['cybpaypal_enable']=0;

:up:

EvilJohn
08-09-2008, 01:38 AM
Thanks, installed

EvilJohn
08-18-2008, 10:02 PM
My users are requesting that I remove this mod from the mobile style.
https://vborg.vbsupport.ru/showthread.php?t=174445&highlight=Albums+homepage

Any help on the phrase to add?

dartho
08-19-2008, 12:47 AM
EvilJohn - if you add the following code to teh 'Code to disable add-ons' section, it might disable it for the mobile style...

//disables Latest Album Pictures - Forum Home
$vbulletin->options['afm_onoff']=0;

EvilJohn
08-20-2008, 03:03 AM
Thank you, I will try this and get back with you.

Edit: Thanks, that did the job.

omanmoon.net
08-21-2008, 07:45 AM
hello
am installed in vb 3.7.2 pl2
but not working
when use mobile still defult style!!
whats wrong?!
all options is okay

dartho
08-21-2008, 09:04 AM
did you also install the Mobile style to go with this? https://vborg.vbsupport.ru/showthread.php?t=174375

Additionally, you need the autodetect add-on here https://vborg.vbsupport.ru/showthread.php?t=173239 if you want mobile devices to automatically get the mobile style

omanmoon.net
08-21-2008, 10:32 AM
did you also install the Mobile style to go with this? https://vborg.vbsupport.ru/showthread.php?t=174375

Additionally, you need the autodetect add-on here https://vborg.vbsupport.ru/showthread.php?t=173239 if you want mobile devices to automatically get the mobile style

yes
am install [product-mobdetect37.xml] from:
https://vborg.vbsupport.ru/showthread.php?t=173239

and [vbulletin-mobile-style-0.0.10a.xml] & [wireless.css] from :
https://vborg.vbsupport.ru/showthread.php?t=174375

then enable Product in Mobile Device Detection Option
also select style for mobile device
:confused:

still not work
it's work with me before upgrade to last version of vbulletin .

dartho
08-21-2008, 11:28 AM
Is the mobile style user selectable? Let me know its style id number so I can test

omanmoon.net
08-21-2008, 03:07 PM
Is the mobile style user selectable? Let me know its style id number so I can test

i set [yes] in the [Allow User Selection] from control panel > Style Manager > edit settings style
but the style not allow in the quick style chooser in the forum home page and mobile

mobile style:
http://www.omanmoon.net/vb/index.php?styleid=84

dartho
08-21-2008, 09:47 PM
OK - assuming you have the mobile detect add-on configured correctly, there could be a plugin conflict.

Try changing the exectution order of the detect mobile device plugin to 10...

If you are willing to PM me admin credentials with plugin and style manager access I could log on to your site have a look...

TimberFloorAu
08-21-2008, 10:46 PM
Mate we use your mobile style, its brill.

But we also installed that auto detect thing.

Man that caused MAJOR issues, ppls styles were getting mixed up, they couldnt log in.

Im not sure if that was a 3rd party mod to yours, but we just could not get our heads round it.

Ste

dartho
08-22-2008, 12:18 AM
G'day,
Not had any reports of issues which couldn't be rectified - was always config issues or conflicts with other addons. Let me know if you're up for having another crack at it and I can help out if needed - I'm Perth, so time zones aren't much of an issue. BTW, the latest version of teh mobile style + this mod together add a few things which make it easier on users when you don;t use the autodetect add-on such as having a link back to your default style when in the mobile style

TimberFloorAu
08-22-2008, 12:38 AM
Gday Dartho.

We use:


vbulletin-mobile-style-0.0.10a

wireless css

product-mobdetect37

iphoneskin

The issue was with mobdetect and iphoneskin.

Only a few of our guys use this, but love your mobile style, it truly is exceptional.

The mobdetect was ditched, it caused page refresh issues, login issues..

Perhaps its a conflict with our other mods, i hasten to say, its no great loss, as the skin is just great. Ppl who use pda/blackberry/iphone can still use your skin, and are more than capable of navigating to and from diff skins.

The only I WANT we needed was :posted from Mobile

That would have been great.

Ste

dartho
08-22-2008, 01:36 AM
This addon adds the "Posted by Mobile" facility :)

dartho
08-22-2008, 01:58 AM
and there's a stand alone version here: https://vborg.vbsupport.ru/showthread.php?t=185987

TimberFloorAu
08-22-2008, 02:50 AM
Mate lol... whats that about, I didnt understand the appending strings etc.. will have another play around, as our site is quiet today :)

TimberFloorAu
08-22-2008, 02:53 AM
Ok.

We have vbulletin-mobile-style-0.0.10a

Im at a loss as to where and how we enable , posted from Mobile.

Strike that ( your products have such similar tags i missed that this is an addon ) apologies

omanmoon.net
08-22-2008, 10:41 AM
Try changing the exectution order of the detect mobile device plugin to 10...


hi ,, sorry but i didnt get the point of this :)

TimberFloorAu
08-24-2008, 09:35 PM
Okies.

Our Blackberry users, are fine.

Says Posted From Mobile in their posts...

IPhone users, doesnt say anything ( apologies if im a bit thick lol )

What do I need to do, to amend this please?

dartho
08-25-2008, 09:09 AM
OK - you use different styles for blackberry and iPhone users. A little plugin editing should be able to work around this.

edit both the Mobile Device Thread Footer and Mobile Device Post Footer plugins and change

if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != ''))
to
if (($styleid==xx)||($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != ''))

where xx is the styleid number of your other mobile style - keep adding more ($styleid==xx)|| if needed...

(untested :D)

omanmoon.net
08-27-2008, 07:12 PM
Finaly it's work :)
after upgrade to 3.7.3
Done ^^
thanks

punchbowl
08-31-2008, 10:30 AM
So is there any way to only allow certain user groups use a mobile style? I understand we can hide it from the list but it's still user selectable.

3.5 ver https://vborg.vbsupport.ru/showthread.php?t=95910

thanks

dartho
09-02-2008, 08:07 AM
Punchbowl - Have you tried that product? Posts in the thread say it works with 3.7.2 ...

Ransack
09-06-2008, 06:41 AM
I see the "Mobile post text" attached to the bottom of my posts. But I don't see "Mobile Style Page Title?" anywhere nor do I see the link from "Add a link to the default style?" whether I set header or footer.

Thanks for the tip on Replacement Variables though, at least I can see images on my iPhone now.

dartho
09-06-2008, 11:09 AM
Can you let me know your site (PM if you don;t want public) so I can have a look?

Ransack
09-06-2008, 06:25 PM
Can you let me know your site (PM if you don;t want public) so I can have a look?

Sorry I'm thick. I was using this with the Mobile Device Detection plugin which was using the wrong style. I have since disbled the Mobile Device Detection plugin altogether and now use only this plguin. Added a link called "PDA" to my default navbar to "index.php?styleid=X" (X is this style id)

Note I'm running 3.6.x so it complains on install, need to check the ignore version box, it works fine for me on this older version.

Fantastic plugin/style. I've struggled with various mobile skins / plugins and never found one that worked the way I wanted until now.

I did still tweak the replacement variables so I can view images in mobile mode and tweaked some threadbit templates to add "New" before threads with new posts and indent the "by: user" line below the thread title.

Oh and thanks for the quick response here too.

Marking installed. Highest rating. Great job.

masterweb
09-07-2008, 07:14 AM
Installed and working, thanks dude.-

CrashPush
09-15-2008, 10:14 PM
I got it working but I'm not quite pleased how it looks.

It looks like this:
==========================
Test post.
Wirelessly posted (BlackBerry8300/4.2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/102)
==========================

But I want it to look like this, with the UA on top and a space before the actual post:
==========================
Wirelessly posted (BlackBerry8300/4.2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/102)

Test post.
==========================

How can I achieve this look?

dartho
09-15-2008, 10:30 PM
untested, but you can try editing the Mobile Device Thread Footer and Mobile Device Post Footer plugins and change

if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "" . $vbulletin->options['mo37_post_text']. "" . "\n";
}

to
if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] ="" . $vbulletin->options['mo37_post_text']. "" . "\n\n" . $vbulletin->GPC['message'] ;
}

CrashPush
09-15-2008, 10:53 PM
untested, but you can try editing the Mobile Device Thread Footer and Mobile Device Post Footer plugins and change

if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "" . $vbulletin->options['mo37_post_text']. "" . "\n";
}

to
if (($styleid==$vbulletin->options['mo37_mobile_style']) && ($vbulletin->options['mo37_post_text'] != '')){
if ($vbulletin->options['mo37_post_text']=="UA") $vbulletin->options['mo37_post_text'] = $_SERVER['HTTP_USER_AGENT'];
$vbulletin->GPC['message'] ="" . $vbulletin->options['mo37_post_text']. "" . "\n\n" . $vbulletin->GPC['message'] ;
}

Perfect! You're the man! :):up:

cavern
09-16-2008, 08:28 PM
I tried searching this but, the 'PC Mode' link does not change the style, on my BlackBerry it stays on the mobile version.

Am I missing the post showing how to fix this?

GodlyChaos
09-16-2008, 08:32 PM
Thanks a bunch!!

dartho
09-16-2008, 09:22 PM
I tried searching this but, the 'PC Mode' link does not change the style, on my BlackBerry it stays on the mobile version.

Am I missing the post showing how to fix this?

How are you selecting the style in the first place? If you are using teh autodetect mobile device add-on, this 'forces' teh style and it can not be switched away from

cavern
09-16-2008, 09:28 PM
How are you selecting the style in the first place? If you are using teh autodetect mobile device add-on, this 'forces' teh style and it can not be switched away from

This plugin has an option for it? 'Add a link to the default style' I have selected: 'Link in Top NavBar'. Default Style Text?: 'Full Version'.

This creates the text on the mobile style called 'Full Version', with a link to the styleid that PC's use.

dartho
09-16-2008, 10:03 PM
Sorry - my question should have been: How did you select the Mobile style in the first place? Are you using the Mobile detection add-on?

cavern
09-16-2008, 10:22 PM
Sorry - my question should have been: How did you select the Mobile style in the first place? Are you using the Mobile detection add-on?

I see what you are getting at, this function will not work if you are using the Mobile Detection/Enforcement addon as it is overriding the users selection.

dartho
09-16-2008, 10:51 PM
Yep - that's right...

NoPretender
09-18-2008, 08:41 PM
So is this addon supposed to detect that it's a mobile device, set the style as the Mobile style, and then users are able to switch to PC View if needed? I've been playing with this addon for about 30 minutes now because it's not going straight to mobile version on my blackberry. Figured I should ask to see if it's supposed to or not.

I'm hoping it's like the Auto-Force mobile addon that's available, but I like that you can switch out to the default style among the other options this has available.

dartho
09-18-2008, 09:01 PM
Sorry - this has no mobile detection - it only adds a few customisable options the the mobile style. If you also want autodetection, you will need to use thjis one https://vborg.vbsupport.ru/showthread.php?t=173239 for now.

magnaromagna
09-27-2008, 12:25 PM
Hello,
nice hack, installed.
I'd like to add a php code to the mobile style, like the adsense for mobile as example:

<?php

$GLOBALS['google']['ad_type']='text_image';
####
$GLOBALS['google']['format']='mobile_double';
$GLOBALS['google']['https']=$_SERVER['HTTPS'];
$GLOBALS['google']['host']=$_SERVER['HTTP_HOST'];
$GLOBALS['google']['ip']=$_SERVER['REMOTE_ADDR'];
$GLOBALS['google']['markup']='xhtml';
$GLOBALS['google']['oe']='utf8';
$GLOBALS['google']['output']='xhtml';
$GLOBALS['google']['ref']=$_SERVER['HTTP_REFERER'];
$GLOBALS['google']['url']=$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$GLOBALS['google']['useragent']=$_SERVER['HTTP_USER_AGENT'];
$google_dt = time();
google_set_screen_res();

function google_append_url(&$url, $param, $value) {
$url .= '&' . $param . '=' . urlencode($value);
}

function google_append_globals(&$url, $param) {
google_append_url($url, $param, $GLOBALS['google'][$param]);
}

function google_append_color(&$url, $param) {
global $google_dt;
$color_array = split(',', $GLOBALS['google'][$param]);
google_append_url($url, $param,
$color_array[$google_dt % sizeof($color_array)]);
}

function google_set_screen_res() {
$screen_res = $_SERVER['HTTP_UA_PIXELS'];
$delimiter = 'x';
if ($screen_res == '') {
$screen_res = $_SERVER['HTTP_X_UP_DEVCAP_SCREENPIXELS'];
$delimiter = ',';
}
$res_array = explode($delimiter, $screen_res);
if (sizeof($res_array) == 2) {
$GLOBALS['google']['u_w'] = $res_array[0];
$GLOBALS['google']['u_h'] = $res_array[1];
}
}

function google_get_ad_url() {
$google_ad_url = 'http://pagead2.googlesyndication.com/pagead/ads?';
$google_scheme = ($GLOBALS['google']['https'] == 'on')
? 'https://' : 'http://';
foreach ($GLOBALS['google'] as $param => $value) {
if ($param == 'client') {
google_append_url($google_ad_url, $param,
'ca-mb-' . $GLOBALS['google'][$param]);
} else if (strpos($param, 'color_') === 0) {
google_append_color($google_ad_url, $param);
} else if ((strpos($param, 'host') === 0)
|| (strpos($param, 'url') === 0)) {
google_append_url($google_ad_url, $param,
$google_scheme . $GLOBALS['google'][$param]);
} else {
google_append_globals($google_ad_url, $param);
}
}
google_append_url($google_ad_url, 'dt',
round(1000 * array_sum(explode(' ', microtime()))));
return $google_ad_url;
}

$google_ad_handle = @fopen(google_get_ad_url(), 'r');
if ($google_ad_handle) {
while (!feof($google_ad_handle)) {
echo fread($google_ad_handle, 8192);
}
fclose($google_ad_handle);
}

?>

How can I add it? Thanks! :)

Moreover, where to test the style (sites like ready.mobi) ?

dartho
09-27-2008, 12:38 PM
see here: https://vborg.vbsupport.ru/showthread.php?p=1531419#post1531419 for mobile adsense integration sample.

Say3
10-11-2008, 03:41 AM
hi , i what to remove VBSeo archive from mobile style footer , but i don't want to stop VBSeo on mobile style , i mean just disable archive footer links , how ? can you help me plz ?

and can you add an option for do that in next release.

thanx man.

dartho
10-11-2008, 08:20 AM
I don't have vbseo - So I'm unsure how it adds to the footer. Is there a vbseo setting to disable archive footer links? If so, you may be able to disable this but adding some php to the 'Disable Addons' section to re-set the option ...

profanitytalker
10-20-2008, 08:41 AM
reserve

MikeTrin
10-26-2008, 10:50 AM
Is it possible to disable vBadvanced CMPS using the "code here to disable addons" feature? I spent a while looking around and couldn't find xml to disable the product.

My goal is to remove the sidebar I've integrated into the forum when using the mobile style.

dartho
10-27-2008, 11:11 PM
I can;t see anything yet to do this - I think by the time it gets to style selection VBAdvanced is already integrated.

You could ask at vbadvanced.com if there is a way to turn off integration for a specific style?

rcadden
11-02-2008, 09:03 PM
Is there a way to easily put a logo as the header, instead of a text description?

dartho
11-02-2008, 09:37 PM
Yes. By default, teh mobile style removes image tags and replaces them with links to teh image. You can choose to remove the replacement variables from teh style and show all images or you could use a slighly diffferent IMG tag so it doesn;t get replaced. For example you can edit the header templates and put in images. However, when using the IMG tag, use in the format of:

<img border="0" src="image.jpg" />

unicorn2433
11-11-2008, 01:50 PM
do I do this through products or through styles?

dartho
11-11-2008, 08:12 PM
this is a product which allows customisation (without template edits) of this (https://vborg.vbsupport.ru/showthread.php?t=174375)style.

omanmoon.net
11-22-2008, 06:02 AM
mmmmm
now it's not work after upgrade to 3.7.4 PL1

after sign in the page change to white color only !!

before logged in the forum showing no problem ! @_@

caliman
11-28-2008, 01:56 PM
I cannot find these plugins: newreply_post_start and newthread_post_start

I have this mod, mobile style and detection installed. All are working properly. Can someone tell me where to find them?

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

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";
}


to


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";
}


Change the XX to be the style ID of your iPhone style and "Posted via iPhone" to what ever message you want, or $vbulletin->options['mo37_post_text'] if you want the same message applied as from other mobile devices

caliman
12-02-2008, 06:05 AM
How do I change 'Posted via Mobile Device' to 'Posted via iPhone,' 'Posted via Blackberry,' etc.?

dartho
12-02-2008, 06:48 AM
delete the text in this field in AdminCP (which in effect disables it) and install THIS (https://vborg.vbsupport.ru/showthread.php?t=185987)add-on

caliman
12-02-2008, 06:55 AM
delete the text in this field in AdminCP (which in effect disables it) and install THIS (https://vborg.vbsupport.ru/showthread.php?t=185987)add-on


Thanks a lot!

I cannot find these plugins: newreply_post_start and newthread_post_start

I have this mod, mobile style and detection installed. All are working properly. Can someone tell me where to find them?

Found them.

viper357
12-27-2008, 07:44 PM
Installed and working perfectly on 3.6.12

Thanks for the good work.

serpents.guild
01-06-2009, 03:51 AM
First I want to thank you for this awesome config addon ... Got this working beautifully @ wap.serpents-guild.com

I was just wondering if you had any further info about disabling addons within the mobile options ... I've added several to teh main page but I just want to clean up the output ... no need for the mobile browser to load wowhead/wardb mouseover scripts and image resizer scripts :)

dartho
01-06-2009, 03:56 AM
That depends a lot on the addon and how it's implemented. WHich addon's are you using - if you point me at them I can likely work out how to disable them for the mobile style...

serpents.guild
01-06-2009, 04:03 AM
The 2 I'm using are:

The Image Resizer (https://vborg.vbsupport.ru/showthread.php?t=184571)

and

Wowhead Item Tooltips (https://vborg.vbsupport.ru/showthread.php?t=163987)

dartho
01-06-2009, 04:22 AM
Add the following in teh disable addons code area to stop the ncode stuff. the tooltips doesn't have a simple enable/disable switch ...

$vbulletin->options['ncode_imageresizer_enabled']=0;

serpents.guild
01-06-2009, 04:33 AM
*bam!* like a charm! Thank you so much!

serpents.guild
01-06-2009, 08:08 PM
so basically what I can do for further addons is to do a search for "$vbulletin->options" in the product.xml to see if I can disable them in the mobile option page?

dartho
01-06-2009, 08:47 PM
With installed products, if it has an option to enable/disable it, you need to find the variable that corresponds to this and then you can set that accordingly.

For example - if an add-on has an option "Enable This Addon", search the xml product file for "Enable This Addon" - you'll find this in teh phrases section - check the phrase name - it will start with "setting" and end with "title" eg. setting_enable_this_addon_title. The variable name will then be enable_this_addon

You can then add a line in teh disable addons code area of:
$vbulletin->options['enable_this_addon']=0;

Be wary that the add-on author may have posed teh question "disable this addon" - in which case we would have.

$vbulletin->options['disable_this_addon']=1;

There are other ways to disable products that don;t have a global enable/disable switch, but it's a bit of a manual process or wrapping conditionals around plugins.

edytwinky
01-30-2009, 06:22 PM
Is there a way to enable blogs?

dartho
01-30-2009, 08:46 PM
I've not redone any blogs templates in the style, so they will show up using your default style

vol_freak
02-21-2009, 04:34 AM
Does this work correctly in 3.8?

dartho
02-21-2009, 09:28 AM
Is for me...

CrashPush
02-24-2009, 01:07 PM
I had to reinstall this modification and forgot how to add "Wirelessly posted (BlackBerry8300/4.2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/102)" to the post. Can I get a hint on how to do it again.

dartho
02-25-2009, 02:16 AM
First, install the latest version - updated today - overwriting existing (whilst looking at this I noticed a possibly HTML injection vulerability)
Set Mobile post text to be "UA"
Edit Mobile Device Post Footer and Mobile Device Thread Footer plugins and change:

$vbulletin->options['mo37_post_text'] = $ua_str;

to

$vbulletin->options['mo37_post_text'] = "Wirelessly posted (" . $ua_str . ")";


or something like that :)

omanmoon.net
02-25-2009, 02:27 AM
Hello

i will try,,

Thanks :)

Hornstar
02-25-2009, 03:56 AM
Thanks for the update.

Derek_Trotter
02-25-2009, 07:35 AM
I update, and it works perfectly on 3.8 !
Is it possible to add option to see who is online?

dartho
02-25-2009, 08:45 AM
I update, and it works perfectly on 3.8 !
Is it possible to add option to see who is online?

You can choose to enable the "What's Going On" box in forum home which will show you who is online.

Also, there is a 'mobile firendly' (although rather simple) who's online page (there's just no longer a link to it) you can manually type/click in online.php to view or possible edit the footer template to add a link?

SuperJETT
02-25-2009, 09:40 AM
Thanks for the security update.

CrashPush
02-26-2009, 01:40 AM
First, install the latest version - updated today - overwriting existing (whilst looking at this I noticed a possibly HTML injection vulerability)
Set Mobile post text to be "UA"
Edit Mobile Device Post Footer and Mobile Device Thread Footer plugins and change:

$vbulletin->options['mo37_post_text'] = $ua_str;

to

$vbulletin->options['mo37_post_text'] = "Wirelessly posted (" . $ua_str . ")";


or something like that :)

Perfect again! Thanks very much for your help.

But one more thing. The update changed the code somewhat and I can't figure out how to make the UA post look like this:

Wirelessly posted (BlackBerry8300/4.2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/102)

With the original post/message here.

dartho
02-26-2009, 01:53 AM
ah - try soemthing like this:

change

$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "" . $vbulletin->options['mo37_post_text']. "" . "\n";

to

$vbulletin->GPC['message'] = "" . $vbulletin->options['mo37_post_text'] . "\n" . ."\n" . "" . $vbulletin->GPC['message'];

in the same 2 plugins as before

rowitech
03-01-2009, 10:40 AM
Could you please give me a hint how to install it? It's some days ago since I installed it :sorry:.
Best regards
Rolf

dartho
03-01-2009, 08:45 PM
Save the product-moboptions37-0.0.10b.xml file to your local computer
Go into your sites AdminCP
Navigate the Product Manager in the Plugins and Products section
At the end of that page (in the right pane) click on the [Add/Import Product] link
In the Import Product screen, click the Browse button and then locate and open where you save the XML file
Click the Yes radio control in the Allow Overwrite option
Click teh Import button


I think that's about it - you should now have a new section in vBulletin Options called Mobile Style Options where you can set and modify options

jiffylb1
03-03-2009, 02:13 AM
after uploading new 3.8.1 the reply button is gone in the mobile verison for us on www.clearwaterbiker.biz (http://www.clearwaterbiker.biz) what can we do to fix it such a popular mod

dartho
03-03-2009, 07:58 PM
I can see both Reply and New Thread links (as a guest)...

rowitech
03-04-2009, 06:11 PM
:up: Thank you very much, works like a charm!


Save the product-moboptions37-0.0.10b.xml file to your local computer
Go into your sites AdminCP
Navigate the Product Manager in the Plugins and Products section
At the end of that page (in the right pane) click on the [Add/Import Product] link
In the Import Product screen, click the Browse button and then locate and open where you save the XML file
Click the Yes radio control in the Allow Overwrite option
Click the Import button


I think that's about it - you should now have a new section in vBulletin Options called Mobile Style Options where you can set and modify options

yeku
03-07-2009, 10:45 PM
Hello

You can tell me how to turn off MGC_Chatbox_v1.5 will not appear on the style for the mobile

//Disables MGC Chatbox
$vbulletin->options['mgc_cb_evo_active']=0;
//Disables Cyb Chatbox
$vbulletin->options['cybchatbox_enable_product']=0;

thx

dartho
03-09-2009, 04:58 AM
You mean you *want* the chatbox to show?

delete those lines you quoted above (or add a double slash ( "//" ) to the start of the each line)

edytwinky
03-09-2009, 07:06 AM
How would I go about disabling VBmoods?

dartho
03-09-2009, 10:15 AM
You mean this one https://vborg.vbsupport.ru/showthread.php?t=41883

I can;t even download that to look at it?!

Edit:

Maybe try ading

$vbulletin->options['vmoods_active']=0;

edytwinky
03-09-2009, 05:35 PM
I'm sorry, I should have been specific. I meant this one:
vMoods aka Mood Manager: https://vborg.vbsupport.ru/showthread.php?t=178020

rcadden
03-09-2009, 05:57 PM
ah - try soemthing like this:

change

$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "" . $vbulletin->options['mo37_post_text']. "" . "\n";

to

$vbulletin->GPC['message'] = "" . $vbulletin->options['mo37_post_text'] . "\n" . ."\n" . "" . $vbulletin->GPC['message'];

in the same 2 plugins as before

You've got that slightly wrong. Replace it with this:


$vbulletin->GPC['message'] = "" . $vbulletin->options['mo37_post_text'] . "\n". "" . $vbulletin->GPC['message'];


(The correction being yours had an extra . "/n" that threw up an error.)

How can I get it to skip a line between the UA and the person's post, though (I'm still learning this stuff)

For a sample, you can check out www.symbian-guru.com/forum from your phone (using the auto-detect plugin, too)

dartho
03-09-2009, 09:23 PM
with an extra "\n" - I actually had an extra ".", not an extra "\n"

Try:

$vbulletin->GPC['message'] = "" . $vbulletin->options['mo37_post_text'] . "\n" . "\n" . "" . $vbulletin->GPC['message'];

dartho
03-09-2009, 09:25 PM
I'm sorry, I should have been specific. I meant this one:
vMoods aka Mood Manager: https://vborg.vbsupport.ru/showthread.php?t=178020

$vbulletin->options['vmoods_active']=0; should do it

Fungsten
03-10-2009, 05:14 PM
after uploading new 3.8.1 the reply button is gone in the mobile verison for us on www.clearwaterbiker.biz (http://www.clearwaterbiker.biz) what can we do to fix it such a popular mod

Same here.

yeku
03-10-2009, 06:35 PM
You mean you *want* the chatbox to show?

delete those lines you quoted above (or add a double slash ( "//" ) to the start of the each line)

Sorry, No, I do not want to be active

thank

ArnyVee
03-13-2009, 02:07 AM
I just had someone test out the site from their Blackberry and they couldn't display the vBadvanced homepage on www.WaltDisneyBoards.com

Is there something special that needs to be done in order to display the 'home' page correctly? Any help would be appreciated. :up:

Biker_GA
03-18-2009, 05:53 PM
I disabled the ability for mobile devices going to the portal page because it doesn't render well on some devices. Dartho posted some code here (https://vborg.vbsupport.ru/showthread.php?t=174375&page=32) that allows you to skip the portal page. Make sure you modify the code for your site parameters.

The Dawg
03-25-2009, 01:55 PM
Great mod. * Installed *

Can you tell me the code to disable the Cyb Advanced Forum Stats in the mobile version?

Thanks

Lynne
03-25-2009, 02:16 PM
Great mod. * Installed *

Can you tell me the code to disable the Cyb Advanced Forum Stats in the mobile version?

Thanks
It's whatever option name is used to turn the plugin on in the options page. Just look in the page source and you'll see the option name.

dartho
03-26-2009, 04:28 AM
Yep - as Lynne mentioned, you can check the source for most add-ons if they have a 'enable / disable' option to work it out.

In the case of Cyb Advanced Forum Stats, you'd use:

// disable Cyb Advanced Forum Stats
$vbulletin->options['cybtopstats_enable_global'] = 0;

to try and disable it with in the mobile style.

Glynn58
03-29-2009, 11:15 AM
Just installed this dont know how i missed it before but its a great add-on

Thanks

omanmoon.net
03-31-2009, 07:24 AM
Hello

firest thanks for add-on

but i have a qutsion

why it's not work with Sony Erecson Phone?

there is way to do that?

Thanks

dartho
03-31-2009, 10:05 AM
Neither this addon (or the style it 'extends') have any phone dependencies. Your issue lies elsewhere ...

cory_booth
05-13-2009, 12:58 PM
Any idea how to disable a specific CMPS module?
I have a flash slide show player as a module....
I have tried:
$vbulletin->options['collapseobj_module_89_enable']=0;
$vbulletin->options['module_89_enable']=0;

dartho
05-13-2009, 10:16 PM
Sorry - no idea. It may be worth asking on the vbadvanced site?

BlueChipEarth
05-27-2009, 02:34 PM
I was going to ask if there is a way to make moderators not see the mobile style because a client of ours needs to be able to moderate from his blackberry.

This mod will take care of that because now he can just switch to the normal view and moderate as he always did before!

Thanks, great mod!

Installed!

abrecher
05-28-2009, 08:45 PM
Users are directed to a custom CMS I have running on index.php on my site. How can I force the mobile users to go to forum.php ?

Fastbird
05-28-2009, 10:32 PM
Is there any way to reduce the information that the UA string pulls from the browser? There's a ton of info in there I could care less for.

dartho
05-28-2009, 10:34 PM
@abrecher - is your custom CMS integrtaed with vB ? If so, check for the $styleid and if it is your mobile style, redirect them to forum.php

dartho
05-28-2009, 10:39 PM
Fastbird - the UA string just pulls the User Agent string as passed by the browser - you could change the plugin to modify this string and truncate it or something

Fastbird
05-28-2009, 11:40 PM
Thanks for the fast reply, my next question is how can you insert an image file into the message?

I've been trying like crazy for the last 2 hours but my knowledge of PHP blows and I just cant get it.

Any helps?

Edit: I want to put a little cell phone image into the "Posted via Mobile Device" message. I can't seem to figure out the code to accomplish this. :/

dartho
05-29-2009, 12:31 AM
In teh vbulletin options screen where you get to type in what you want to have dispalyed, insert an image tag eg. (not tested)
<img src="mobile.png" border="0" alt="Posted via Mobile" />Posted via Mobile Device

Fastbird
05-29-2009, 12:49 AM
Just posted the img link, no pic posted :(

A for effort though, I never thought of trying that.

dartho
05-29-2009, 01:03 AM
Ah - but it should work with BBCode though

https://vborg.vbsupport.ru/Posted via Mobile Device

Fastbird
05-29-2009, 01:06 AM
THIS!

You're money dude. I spent almost 4 hours and you got it. <3

Only thing is, if you put an image with BBCode in, you can't use the "UA" letters to pull the info.

I guess I can live without it.

dartho
05-29-2009, 01:30 AM
You'd have to edit the Mobile Device Thread Footer and Mobile Device Post Footerplugins code and search for "[size=1][i]" and replace with "http://domain.com/path/to/phone.png [size=1][i]" to add the image for custom text or UA ...

Fastbird
05-29-2009, 01:48 AM
Ok, thanks! I'll take a peek at it tomorrow. You've been super helpful. If I could click install 10 times I would.

I should note I'm doing this all on vb 3.8.2, so you could technically repost the product in the 3.8 section for more installs. :)

sflmkv
05-29-2009, 04:19 AM
Dartho, quick question.. would you know an Image resizer that works on the iPhone? I have a custom style and I notice that it stretches images slightly off. i would like to have them resize. is there any other way you can think of doing this?

dartho
05-29-2009, 05:17 AM
Sorry, no I don't, but if its a case of images being wider than the screen and not scaling to how you want them, you can set a maximum image width in CSS - just add


img
{
max-width: 250px
}


to your additional CSS declaration in teh style properties and all images wider than 250px will be automatically scaled down to 250px wide...

Fastbird
05-30-2009, 03:25 AM
Ok dartho, so let's suppose I wanted to 'move' the location of the message. Here's what I mean:
FROM HERE:

http://armorysound.com/mobile_1.gif

TO:

http://armorysound.com/mobile_2.gif


Is there any easy way to do this? I know I'm asking a lot and I appreciate all your help. If it can be done, that would be amazing and exactly what I want. If it can't be done, I understand. thanks again for all your help!

dartho
05-30-2009, 04:34 AM
so that's in the subject section? I'd have to spend a bit of time on that - it's not a 'simple edit'

Fastbird
05-30-2009, 01:14 PM
Yeah that's what I thought :/

Well thanks for all the help! :)

sflmkv
05-31-2009, 08:09 PM
Sorry, no I don't, but if its a case of images being wider than the screen and not scaling to how you want them, you can set a maximum image width in CSS - just add


img
{
max-width: 250px
}


to your additional CSS declaration in teh style properties and all images wider than 250px will be automatically scaled down to 250px wide...

the only problem with that is every image including buttons are using the img tag and they resize along. How can I define it only within posts per say? Thanks.

rrudeboy
06-04-2009, 01:46 AM
@ dartho: before the "posted from mobile device" i want at least 1 and maybe 2 line breaks, tried some code but does not seem to work, where can i edit that ?

(ps. the gal with the Curve resolved the issue on her side... un- and re-installed the browser, so everybody's happy.. tks.)

dartho
06-04-2009, 02:02 AM
Edit the Mobile Device Thread Footer and Mobile Device Post Footer plugins and replace "\n". "[size=1][i]" with "\n\n\n". "[size=1][i]" (hint: \n = new line)

Good to hear curvy girl all sorted :)

rrudeboy
06-04-2009, 02:09 AM
Edit the Mobile Device Thread Footer and Mobile Device Post Footer plugins and replace "\n". "[size=1][i]" with "\n\n\n". "[size=1][i]" (hint: \n = new line)


yea, found the earlier post where you mention this, but i'm not sure where to find Mobile Device Thread Footer and Mobile Device Post Footer plugins..


Good to hear curvy girl all sorted :)

whahahaha... yea, me too :}

sflmkv
06-04-2009, 09:30 PM
dartho any ideas on what I asked?

dartho
06-05-2009, 04:47 AM
no, no other suggestion sflmkv. The max-width CSS tag will only change a width if it is greater than the specified width (250px in the example above) - all others won't be touched. A button is only about 100px and wouldn't be affected.

Rudeboy - you'll find the plugins that need editing in your AdminCP, "Plugins and Products", "Plugin Manager"

rrudeboy
06-05-2009, 11:15 AM
*NSIP*
Rudeboy - you'll find the plugins that need editing in your AdminCP, "Plugins and Products", "Plugin Manager"

awesome dartho.... thanks once again. https://vborg.vbsupport.ru/external/2011/01/19.gif

davem
07-11-2009, 04:14 PM
I'll look at the signature thing - signatures should be in there anyway even if not displayed with in the mobile style...

Great stuff dartho - clicked "installed" on DDDS, Mobile style and this add-on. I've quoted post #37 of this thread above. Did you ever find a way to show the user's signature when posting from a mobile device?

Thanks,
Dave

Quantnet
07-23-2009, 11:49 PM
Yep - as Lynne mentioned, you can check the source for most add-ons if they have a 'enable / disable' option to work it out.

In the case of Cyb Advanced Forum Stats, you'd use:

// disable Cyb Advanced Forum Stats
$vbulletin->options['cybtopstats_enable_global']) = 0;

to try and disable it with in the mobile style.
this took me a bit to find out the code is not correct, it should be
// disable Cyb Advanced Forum Stats
$vbulletin->options['cybtopstats_enable_global']= 0;

You left an extra ) which cause an error message

ctimes
07-24-2009, 03:56 PM
this took me a bit to find out the code is not correct, it should be
// disable Cyb Advanced Forum Stats
$vbulletin->options['cybtopstats_enable_global']= 0;

You left an extra ) which cause an error message

Tried both of these options and I am still getting the Top Stats when using a mobile device for some reason. Any other ideas?

dartho
07-24-2009, 10:06 PM
is top stats and cyb advanced forum stats the same thing?

Quantnet
07-25-2009, 02:13 AM
i believe they are different

fenderf4i
08-06-2009, 04:16 AM
FYI, to disable the "Ultimate Side Columns" mod, since it was somewhat showing up in the mobile style, add:

$vbulletin->options['usc_enable_left']=0;
$vbulletin->options['usc_enable_right']=0;

to the disable addons box!

Baldilocks
08-29-2009, 01:14 PM
Currently posts look like this:

nice job baldi!
Posted via Mobile Device

How can I get it to look like this:

Posted via Mobile Device


nice job baldi!

thephoneclub
08-29-2009, 07:49 PM
Hello!
Could you tell me how to deactivate the products:
vB Ad Management
Forum Ad Management

Thanks!

dartho
08-29-2009, 11:57 PM
@thephoneclub - this *should* do it:
//disable vb ad management
$vbulletin->options['vbam_onoff']=0;

//disable forum ad management
$vbulletin->options['vbam_forum_onoff']=0;

@baldilocks - editing the Mobile Device Thread Footer and Mobile Device Post Footer plugins and changing:


$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "\n". "" . $vbulletin->options['mo37_post_text']. "" . "\n";


to


$vbulletin->GPC['message'] = "" . $vbulletin->options['mo37_post_text'] . "" . "\n" . "\n" . $vbulletin->GPC['message'] . "\n";



should do it

thephoneclub
08-30-2009, 10:15 AM
Thanks! Works great!

Baldilocks
08-31-2009, 06:53 PM
Thanks!!

Baldilocks
08-31-2009, 07:06 PM
Thanks!!

Kottonmouth801
09-21-2009, 11:17 PM
:up::up:

Kottonmouth801 Marks INSTALLED...!!!!!!!!!

Very nice mod....

:up::up:

ShackMaster
09-25-2009, 07:16 PM
Can a link be added to the Mobile Edition that takes the user to the regular site? Facebook for example, has a link at the bottom of the page that directs the mobile users to the regular site. The changes that I make when in the Mobile Edition don't take me out of the mobile edition.

dartho
09-25-2009, 09:45 PM
Can a link be added to the Mobile Edition that takes the user to the regular site?This add adds that facility as an option.

lowlight
10-19-2009, 02:09 AM
Great mod! Thanks

lowlight
10-19-2009, 08:24 AM
One thing, in the auto-sig section, we can either enter text, or "UA" but not a combination. Is there a way to change this? I'd like to just insert a small icon, with an alt tag of the user agent. This is because the user agent string is often very long.

dartho
10-19-2009, 08:44 AM
good idea - I'll look into that!

jjrambo
10-23-2009, 01:57 AM
why is the text size so big on BlackBerry phones, I looked in the setting and it says that the sizes are supposed to be 1 but they don't show up that way on the phone.

can I change the 1 for say 6pt?

jjrambo
10-23-2009, 02:07 AM
alright, I found the setting, I changed the 10pt at the top of the file to 6, works a lot better now.

jjrambo
10-23-2009, 02:22 AM
ok, how can I deactivate the browser detection in this skin. it may be good for most users but for me I still need to be able to switch to another skin so that I can access certain items and such.

I'm not familiar with the wireless detection so if anyone can help I'd appreciate it.

Kingdombuilder
10-31-2009, 12:23 AM
Great mod! I wanted to make a suggestion. Is it possible to make this where it will allow the thank you button to work as well?

Kingdombuilder
10-31-2009, 01:21 AM
I notice that once I set the settings it will not allow me to change them. Well it allows me to change in the settings menu but the change do not take affect. is there something else i need to do?

dartho
10-31-2009, 07:27 AM
no, nothing else to do. Not sure what the problem may be? Try uninstall, re install?

dxblouie
05-08-2010, 01:04 AM
Great add-on!
i got everything working perfectly, except the link to switch to default style doesn't work in conjunction with Mobile Device Detection..

Edit:
i got it to work by editing product-mobdetect37.xml and adding the following at the end of the php code block:

if ($_GET['styleid']!=""){
$styleid=$_GET['styleid'];
echo "<!-- Overriding mobile style-->";
}

CrashPush
05-19-2010, 10:37 PM
dartho,

Can you show me where exactly I can enable sub-forums on the forum home of the mobile style please and images that are uploaded as attachments.

Thanks so much for you help.

joeldaviddc
06-09-2010, 02:03 PM
Great add-on!
i got everything working perfectly, except the link to switch to default style doesn't work in conjunction with Mobile Device Detection..

Edit:
i got it to work by editing product-mobdetect37.xml and adding the following at the end of the php code block:

if ($_GET['styleid']!=""){
$styleid=$_GET['styleid'];
echo "<!-- Overriding mobile style-->";
}

it do not work for me...

i think this is a great produt but the idea must be: if a mobile device first i go in mobile style... but if i want... i must be capable to switch to a "normal style"

now is not posible..