vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Mobile Style Options 4.0 (https://vborg.vbsupport.ru/showthread.php?t=229044)

dartho 11-27-2009 10:00 PM

Mobile Style Options 4.0
 
1 Attachment(s)
This is an add-on for the 4.0 version of my Mobile style. If you do not have this style installed, it is of no use to you!

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

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
1.0.1 - Initial Release port from 3.x
1.0.2 - Fixed up 'Posted via Mobile' options
You can modify how the message displays by editing the "posted_by_mobile_device" template, you could even edit the hook location and have it display above the post
1.0.3 - Reality check for this with issues, no new functionality
1.0.4 - small install change which should stop timeouts on sites with large post tables

ARB4HOSTING.COM 11-28-2009 11:11 AM

1 Attachment(s)

C:\AppServ\www\vb\includes\adminfunctions_template .php
on line 2752

dartho 11-28-2009 11:41 AM

I don't know why it would truncate the options like that for you? Anyone else experience the same?

Biker_GA 11-28-2009 04:55 PM

Quote:

Originally Posted by dartho (Post 1922007)
I don't know why it would truncate the options like that for you? Anyone else experience the same?

No sir. Working just fine on my end.

Bounce 11-28-2009 07:50 PM

thank you :up:

SİMAR 11-29-2009 09:36 PM

thank you

Dr.osamA 11-30-2009 08:52 PM

try try try

thxxx man
________
Jeep Cherokee (Sj) History

Hasanudin 12-18-2009 02:16 AM

are there screenshot?

Stryker412 12-18-2009 12:45 PM

dartho, do you know how I can set it so that it defaults to mobile view for the Palm Pre? Currently it forces me to look at it in full view.

dartho 12-18-2009 10:31 PM

Have you installed https://vborg.vbsupport.ru/showthread.php?t=173239 and do you have the style set as User Selectable?

Robru 12-29-2009 12:04 PM

Thank you, very nice !! :)

movslow 12-29-2009 01:36 PM

Quote:

Originally Posted by dartho (Post 1933160)
Have you installed https://vborg.vbsupport.ru/showthread.php?t=173239 and do you have the style set as User Selectable?

I did that first, then installed this option with no luck. It didn't look/feel any different on my iPhone that it did before?
:confused:

Boots 12-30-2009 05:27 PM

doesn't seem to use the "Mobile post text" as far as I can tell.

dartho 12-30-2009 08:29 PM

@Boots - I'll look into that,

@movslow - it should look a lot different. Have you actually selected the style from your phone? If you want it to happen automcatically, try this:https://vborg.vbsupport.ru/showthread.php?t=173239

@stryker - https://vborg.vbsupport.ru/showthread.php?t=173239

Robru 12-31-2009 12:23 PM

Quote:

Originally Posted by Boots (Post 1942712)
doesn't seem to use the "Mobile post text" as far as I can tell.

Same problem here, the rest works perfectly!

lifetube 12-31-2009 01:49 PM

love this thanks, would be nice to have the 'Posted on mobile' text working - but no rush :)

dartho 12-31-2009 09:04 PM

I was working on a better way to do the "mobile text" under 3.8, so will try and implement that soon assuming it will work under 4.0

omanmoon.net 01-01-2010 06:22 AM

Thanks for the nice add-on bro :)
i lik it from 3.x.x ^^

struff 01-03-2010 04:36 PM

Quote:

Originally Posted by lifetube (Post 1943387)
love this thanks, would be nice to have the 'Posted on mobile' text working - but no rush :)

I second that.

dartho 01-04-2010 09:29 AM

working on my test site, just gotta get it to a release state and package it up

Boots 01-04-2010 04:49 PM

Looking forward to an update.

mobiledesign 01-06-2010 04:11 AM

Tested it in Japan on 3 carriers and there were no changes.

I noticed in your php array:

$mobilebrowsers = array(
"320x240",

These are the majority sizes in Japan so it should work, i thought. but it did not.
The top part that shows a problem is the "register", "help", "User login info" and the "search" part are all overlapping the top part of the device view. Everything else is ok. Design-wise, red!?

So I added the devices we use in Japan:

"panasonic"
"docomo"
"softbank"
"sony"
"samsung"
"panasonic"
"sanyo"
"sharp"
"vodafone"
"casio"
"au-mic"


and now i can see the mobile version on my Casio in Japan, BUT i see an error in both the mobile device and my PC site:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/USER/public_html/forum/includes/class_bootstrap.php(748) : eval()'d code on line 75

Is there a way that you can fix this?
Thank you

dartho 01-06-2010 11:01 AM

This add-on adds a few options to my mobile style. It has no style or detection options itself. You don;t even have this add-on marked as "Installed"

Now assuming the issues lay with the Mobile Device Detection addonWhere did you add the list of devices above to the "Custom/User Defined Useragent String" section? If so, you should add them comma seperate with no quotes. eg panasonic,docomo,softbank,sony,samsung,panasonic,s anyo,sharp,vodafone,casio,au-mic

if the "Red?" comment is to do with my Mobile style - I don't recall actually using red?

I'm happy to help where I can - but it is easiest for me to do so when questions etc are placed against the actual addon causing the issue. Thanks

Stryker412 01-06-2010 03:05 PM

Quote:

Originally Posted by dartho (Post 1933160)
Have you installed https://vborg.vbsupport.ru/showthread.php?t=173239 and do you have the style set as User Selectable?

Yes I have that installed, but still no luck with the Pre.

mobiledesign 01-15-2010 02:49 PM

Yea, im forcing them to use a particular style. perhaps the problem.

Also using the "Mobile Device Detection".

Ill clear the style forcing and see what happens. Thank you for your reply to this.




Quote:

Originally Posted by dartho (Post 1948642)
This add-on adds a few options to my mobile style. It has no style or detection options itself. You don;t even have this add-on marked as "Installed"

Now assuming the issues lay with the Mobile Device Detection addonWhere did you add the list of devices above to the "Custom/User Defined Useragent String" section? If so, you should add them comma seperate with no quotes. eg panasonic,docomo,softbank,sony,samsung,panasonic,s anyo,sharp,vodafone,casio,au-mic

if the "Red?" comment is to do with my Mobile style - I don't recall actually using red?

I'm happy to help where I can - but it is easiest for me to do so when questions etc are placed against the actual addon causing the issue. Thanks


ngkong 01-16-2010 04:10 AM

since the style doesnt work for CMS, is there a way to redirect mobile user to forum instead of CMS when accessing vbull root? thanks

tweakmonkey 02-04-2010 03:40 PM

Also not seeing the "posted by mobile" text anymore (4.0.1) , but thanks again.

dartho 02-04-2010 10:22 PM

Quote:

Originally Posted by ngkong (Post 1957122)
since the style doesnt work for CMS, is there a way to redirect mobile user to forum instead of CMS when accessing vbull root? thanks

See here: https://vborg.vbsupport.ru/showthrea...17#post1962817

dartho 02-04-2010 10:23 PM

Quote:

Originally Posted by tweakmonkey (Post 1974755)
Also not seeing the "posted by mobile" text anymore (4.0.1) , but thanks again.

I know - I have to re-implement that, I have the code ready to go,it's just a matter of putting it in and releasing... I may release as a seperate mod and remove from this one actually as it has relevance to others also ...

testbot 02-06-2010 10:03 PM

looking forward to the posted by mobile thing too ;)

tini_lam 02-07-2010 10:32 AM

hi, I post a thread by firefox 3.6. But in post have "Posted via Mobile Device". this mod mistake?

dartho 02-08-2010 04:06 AM

1 Attachment(s)
Do you have your default style configured as your mobile style in the mobile options?

BTW - been looking at the Posted by Mobile Device thing - this look OK - if you float over the "Posted By Mobile Device" text, it shows user agent as shown in the attached

Attachment 111852

It now stores info in the DB as opposed to just appending text to the post as in previous versions. It still only kicks in if people are using the mobile style

testbot 02-08-2010 05:03 PM

Quote:

Originally Posted by dartho (Post 1977183)
Do you have your default style configured as your mobile style in the mobile options?

BTW - been looking at the Posted by Mobile Device thing - this look OK - if you float over the "Posted By Mobile Device" text, it shows user agent as shown in the attached

Attachment 111852

It now stores info in the DB as opposed to just appending text to the post as in previous versions. It still only kicks in if people are using the mobile style

How did you get the mobile sig to show up there?!

dartho 02-08-2010 08:34 PM

Quote:

Originally Posted by testbot (Post 1977604)
How did you get the mobile sig to show up there?!

With the latest version I just posted up :)

Gene Steinberg 02-08-2010 09:00 PM

Quote:

Originally Posted by Robru (Post 1943325)
Same problem here, the rest works perfectly!

Your mobile style puts up a message that it won't import in vBulletin 4.0.1.

So when is that going to be updated?

Peace,
Gene

testbot 02-08-2010 09:08 PM

very cool!

testbot 02-08-2010 09:39 PM

still doesn't work for me. i even uninstalled it and installed the newest one but nothing.

Gene Steinberg 02-08-2010 09:45 PM

Quote:

Originally Posted by testbot (Post 1977813)
still doesn't work for me. i even uninstalled it and installed the newest one but nothing.

Installed style and plugin. Doesn't work on my iPhone.

Peace,
Gene

testbot 02-08-2010 10:13 PM

the style works for me... just not the mobile signature part. unfortunately, that's my fav part.

dartho 02-08-2010 10:18 PM

@Gene - In what way does this plugin not work on your iPhone?

@testbot - can you point me at some samples where it should be be displaying post vai mobile


All times are GMT. The time now is 06:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03124 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete