vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=230)
-   -   Mobile, Cell, Phone, PDA, iPhone Style (https://vborg.vbsupport.ru/showthread.php?t=174375)

Mr. W 09-15-2009 06:51 AM

____I spoke too hastily in the last reply. If there is a soft-deleted thread, there will be a "Manage" link where a moderator can undelete a thread that was previously soft-deleted.

____I also learned that with Opera Mini, it's possible to edit posts. Just not with the regular Blackberry browser, at least not at this point in time.

____As for a moderator banning other users through a mobile phone, the only way I'm aware of is to use Opera Mini, don't use this special "mobile style" (instead use the "Default," or any other style you may have installed, and then navigate to either the ACP or the MCP (depending on permission levels).

Note: I also forgot to add that I tested this skin using version 3.8.4 .

dartho 09-15-2009 09:07 AM

Quote:

Originally Posted by Mr. W (Post 1871421)
If a moderator or administrator logs in, can he perform moderation duties? Like, edit posts, delete threads, and so on?

How about banning users?

If not then while this seems like a very cool idea, this would limit it's usefulness. My idea is this: Suppose I go on vacation? That way, I can keep logging in and perform moderation duties as if I was at home.

A variant for this that would instead work for the ACP and/or the MCP would be very cool. At least I have Opera on my Blackberry, but it's kind of slow and cumbersome.

Yes - a moderator or admin can log into the admincp or modcp by manually entering in the URL and then do anything they want same as on a desktop PC (dependent on their browsers capability)

You could add a modcp / admincp link in teh footer if you wished by editing it and adding

Code:

<if condition="$show['admincplink']"><a class="navbar" href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
perhaps after
Code:

<div class="navbar">

I don't have a blackberry, so can't test - but I don't know of any outstanding issues and I know there are quite a number of blackberry users with this style.

Joey Link 09-15-2009 04:44 PM

Any ETA for the 3.8 release?

dartho 09-16-2009 03:58 AM

This works well enough on 3.8 - just the social groups that have some dispaly issues.

I'm actually waiting on 4.0 release (it's currently in alpha testing) and hoping they implement a mobile friendly alternative natively - if they don't I'll put in some hours and get this one back up to scratch.I'd hate to put long hours into it now only to have it be made redundant a few weeks later.

Kottonmouth801 09-17-2009 08:05 PM

Hello.

Thank you for this code I have been using it for quite some time now.

I have not had any "Buggs" till now.

I was asked to install a registration "button" above the login boxes.

When I add the code it works and takes me to register.php.

But... when I register it gets to the rules page and then states that I left a area blank???

Can you help?

Thanks....! :D

dartho 09-17-2009 09:26 PM

I didn;t do any registration template work for this style - at a guess I'd say it was a captcha or recaptcha image viewing issue?

Edit: Just tried on your site - there's obviously an issue with the register template... try copying the contents of the default register template and overwriting the mobile one...

Kottonmouth801 09-18-2009 01:11 AM

Thanks...!

Ok....

I am going to do as you suggested.

But...

I noticed that when I disable the Mobile Device Detection.

"All skins work on moble devices to register"

So....

I am stumped.

I will try to turn captcha off and see if that helps.

I will keep you posted.

:)

Kottonmouth801 09-18-2009 01:19 AM

:(

Ok I turned off the Captch and it is still conflicting on registration.

So there is a bugg with the Mobile detection MOD.

Not your skin....

I am going to head to the Mobile Detection Forum to see if I can find any help there...

Dartho...

Thanks again...!!!!:D

dartho 09-18-2009 08:10 AM

I thought it may be a captcha issue - but it arises before a captcha image or other default human verification system kicks in... not sure. I could *possibly* work out the problem if I had admin access to your site if you wish to go down that path

Joey Link 09-18-2009 06:57 PM

I know this is somewhat unrelated but I guess it is a style based question. Anyone know how to remove the chatbox from the mobile version of the site?

http://m.northwestfirearms.com/forum/index.php

dartho 09-18-2009 09:29 PM

Install this: https://vborg.vbsupport.ru/showthread.php?t=182692 - it has an area where you can enter code to disable mods - it is pre-populated with the code to disable MGC and Cyb chat box.

brettxw 09-28-2009 03:46 AM

hey guys, I'm trying to install this style but i get this error :

This file was created using a different version of vBulletin from the one you are running.

Your version: 3.8.3
File version: 3.7.2

Everyone seems to be saying it works for 3.8.x but I cant get it :( Any suggestions?

Thanks guys.

dartho 09-28-2009 09:08 AM

check the option to ignore version. A little more info on this can be found here https://vborg.vbsupport.ru/showthrea...05#post1607905

brettxw 09-28-2009 06:28 PM

Thank you so much dartho!!!

brettxw 09-28-2009 09:53 PM

Hi Dartho, I have that vbseo livestats tab on the side of my site and it shows up on the mobile version. How can I disable that?

dartho 09-28-2009 11:09 PM

This one https://vborg.vbsupport.ru/showthread.php?t=218216 ?

If you have the 'Extend Mobile Style' mod installed, you could try adding:

Code:

// VBSEO Live STats
$vbulletin->options['ls_access']='a:0:{}';

to teh disable add-ons code section ..

MikesSite 09-30-2009 11:39 PM

Hello. I use this on my forum but sometimes members get a 404 error for any page they try to access when using this skin. Unfortunately that's all the information I can provide because I can't duplicate the error.

I also have Zoints SEO installed.

Any ideas?

Thanks.

dartho 10-01-2009 02:18 AM

seems unlikely that a 404 would be related to this - it's just a style. a 404 indicates that the page itself (regardless of style) can not be found

MikesSite 10-01-2009 02:37 AM

I forgot to mention I have some SEO stuff installed. That's probably the reason

wacnstac 10-10-2009 02:17 PM

Has anyone ever figured out how to get Google ads for mobile devices to run in this style?

testbot 10-10-2009 03:02 PM

yea, it's in this thread. it takes some plugin and template tweaking but it works. we've received some pretty good revenue from it.

wacnstac 10-10-2009 08:11 PM

Hmmm, I don't see a plugin for it.

testbot 10-10-2009 09:31 PM

you have to create it.

here. below is my setup. you should only have to change the styleid to your mobile styleid (this will make it so the plugin only runs when it's mobile - less is better) and your google options. i marked the parts you should change.

Create Plugin
Product: vBulletin
Hook Location: global_start
Title: Mobile AdSense Top
Execution Order: 5
Plugin PHP Code:
Code:

/*** Change to your mobile style id ***/
if ($styleid==20){
/*** End Change to your mobile style id ***/
        function read_global($var) {
          return isset($_SERVER[$var]) ? $_SERVER[$var]: '';
        }

        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 = read_global('HTTP_UA_PIXELS');
          if ($screen_res == '') {
            $screen_res = read_global('HTTP_X_UP_DEVCAP_SCREENPIXELS');
          }
          if ($screen_res == '') {
            $screen_res = read_global('HTTP_X_JPHONE_DISPLAY');
          }
          $res_array = split('[x,*]', $screen_res);
          if (sizeof($res_array) == 2) {
            $GLOBALS['google']['u_w'] = $res_array[0];
            $GLOBALS['google']['u_h'] = $res_array[1];
          }
        }

        function google_set_muid() {
          $muid = read_global('HTTP_X_DCMGUID');
          if ($muid != '') {
            $GLOBALS['google']['muid'] = $muid;
          }
          $muid = read_global('HTTP_X_UP_SUBNO');
          if ($muid != '') {
            $GLOBALS['google']['muid'] = $muid;
          }
          $muid = read_global('HTTP_X_JPHONE_UID');
          if ($muid != '') {
            $GLOBALS['google']['muid'] = $muid;
          }
          $muid = read_global('HTTP_X_EM_UID');
          if ($muid != '') {
            $GLOBALS['google']['muid'] = $muid;
          }
        }

        function google_get_ad_url() {
          $google_ad_url = 'http://pagead2.googlesyndication.com/pagead/ads?';
          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, 'url') === 0) {
              $google_scheme = ($GLOBALS['google']['https'] == 'on')
                  ? 'https://' : 'http://';
              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;
        }
/**** YOUR SETTINGS ***/
        $GLOBALS['google']['ad_type']='text_image';
        $GLOBALS['google']['channel']='xxxx';
        $GLOBALS['google']['client']='pub-xxxx';
        $GLOBALS['google']['color_border']='336699';
        $GLOBALS['google']['color_bg']='FFFFFF';
        $GLOBALS['google']['color_link']='0000FF';
        $GLOBALS['google']['color_text']='000000';
        $GLOBALS['google']['color_url']='008000';
        $GLOBALS['google']['format']='mobile_single';
        $GLOBALS['google']['https']=read_global('HTTPS');
        $GLOBALS['google']['ip']=read_global('REMOTE_ADDR');
        $GLOBALS['google']['markup']='chtml';
        $GLOBALS['google']['oe']='utf8';
        $GLOBALS['google']['output']='chtml';
/*** END YOUR SETTINGS ***/       
        $GLOBALS['google']['ref']=read_global('HTTP_REFERER');
        $GLOBALS['google']['url']=read_global('HTTP_HOST') . read_global('REQUEST_URI');
        $GLOBALS['google']['useragent']=read_global('HTTP_USER_AGENT');       
        $google_dt = time();
        google_set_screen_res();
        google_set_muid();

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


Styles & Templates> Style Manager>Ad Location Templates>ad_navbar_below & ad_footer_start
Code:

<div>
        <!-- Mobile Ad -->
        $mobile_ad_top
        <!-- /Mobile Ad -->
</div>


wacnstac 10-13-2009 02:37 AM

This thing rocks. Probably the best hack/style I've ever seen. I am however having several nagging issues.

I am running the latest version of this style, the browser detect, and the mobile options hack. I have the boxes checked next to both my PC style and the mobile style in the style manager. Everything works for the most part. I have two forums using this:

http://www.michigan-sportsman.com/forum/
http://www.ohiosportsman.com/forum/
and both are properly detected and shown on the default BB browser. Using Opera Mini, only the first site gets detected properly.

Also several PC users are complaining that they are seeing the mobile style (it is getting automatically detected for them). I have no idea how to track down what user agent they are using.

Mr. W 10-13-2009 02:54 AM

Wacnstac,

____ I have a couple of questions for you.

Quote:

Originally Posted by wacnstac (Post 1898934)
and both are properly detected and shown on the default BB browser. Using Opera Mini, only the first site gets detected properly.

____ Curious. Can you tell me what model of Blackberry you are using? Using a Pearl 8120, I find that certain buttons don't show up, although they primarily have to do with buttons that have to do with moderation actions. This is even when I log in using user accounts with sufficient permissions, such as a Super Mod or Administrator account.

____ However, when I use Opera Mini, I'm then I am able to see all of those buttons.

____ One thing I should note though, is that I haven't tried installing the auto-detect thing, although it's something I plan on doing.

Quote:

Originally Posted by wacnstac (Post 1898934)
Also several PC users are complaining that they are seeing the mobile style (it is getting automatically detected for them). I have no idea how to track down what user agent they are using.

____ Now that is strange. Does it ever happen to you personally? I'd recommend trying it with Firefox, IE, and Opera. Or at least Firefox and IE. Those are the most common browsers. If you can, it might not be a bad idea to try Safari as well. It's less common, but probably the most common after FF, IE, and Opera.

____ Also, have you tried asking the users what browsers they are using? That's what I'd do.

wacnstac 10-13-2009 03:09 AM

Don't quite understand your question about Opera Mini. The first URL renders fine in it (the mobile style), The second URL renders the full site with images and everything. Opera does not get detected.

Would love to know how to get my hands on the "useragent" data so I could tell exactly what browser a user is using.

dartho 10-13-2009 03:46 AM

G'day , get your users to visit http://vbdev.org/test-mob-detect.php and to copy and paste what shows up on the screen to you. This will tell you whether the browser is being detected as a mobile device, and also give you useragent info.

wacnstac 10-13-2009 10:41 AM

Well the device that doesn't render one of the websites properly shows:
Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912/756; U; en)
Presto/2.2.0

Don't know what part(s) of that I need to enter to get it auto recognized.....

wacnstac 10-13-2009 12:08 PM

So here's what one user who gets the mobile style shows for a user agent:

HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; PalmSource/Palm-D062; Blazer/4.5) 16;320x320
HTTP_ACCEPT: text/html, application/vnd.wap.xhtml+xml, application/xhtml+xml, text/vnd.wap.wml , image/png, image/jpeg, image/gif, image/bmp, image/vnd.wap.wbmp, application/octet-stream, image/pjpeg, */*;q=0.1, */*,text/html;q=0.062,image/gif;q=0.062,image/x-jng;q=0.062,video/x-mng;q=0.062,image/x-mng;q=0.062,image/bmp;q=0.062,image/x-bmp;q=0.062

wacnstac 10-13-2009 12:42 PM

I am experiencing the following error now while browsing the mobile style:

"Warning: preg_match() [function.pre-match]: unknown modifier 'M' in [path]/global.php(238) : eval()'d code on line 117

This error started occurring after I tried to add J2ME/MIDP to the list of mobile browsers in the XML file that does the auto detect. I have since removed it and the error went away. Any thoughts on how to add J2ME/MIDP?

dartho 10-13-2009 11:59 PM

This conversation should probably be moved to teh autodetect add-on thread as it is outside the scope of this style.

As an aside - anyone get the email from Jelsoft today re: presales of vb4.0 ? Had and intersting tidbit at the end

Quote:

Originally Posted by Jelsoft
We are investing in exciting development areas such as new products and services for 'Big Boards' and mobile applications and look forward to helping you grow your community.

I'm guessing this means they'll be looking at having a mobile friendly version built in - Yay!

rasp187 10-14-2009 07:10 AM

When a person's OS "isn't working," and they visit http://vbdev.org/test-mob-detect.php, what part of the information that site replies back with do we add to "Custom/User Defined Useragent String" to get it to work? It seems like a user running Bold's 5.0 OS is having some trouble, though others seem to be fine with it. I'm awaiting his response back from that link but I'm not sure exactly what part of if to put in that box. Thanks.

dartho 10-14-2009 09:31 AM

The 'trick' is to find a unique part of the user agent string to add to the Custom area. For example if it reported:

HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; PalmSource/Palm-D062; Blazer/4.5) 16;320x320

You'd guess that eitehr Palm or PalmSource or maybe Blazer would be unique to mobile devices, so you could add one or all of them

or with

Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912/756; U; en)
Presto/2.2.0
You maty want to try Mini or Presto (as it turns out, J2ME and MIDP are already keywords - but doubling up doesn;t have any bad side effects)

All this mobie detection stuff should really be posted over here: https://vborg.vbsupport.ru/showthread.php?t=173239 as it has nothing to do with this style.

rasp187 10-14-2009 11:30 AM

Yeah, sorry, I got mixed up with the threads since I'm using both this and your auto-detector. Since you responded here, I guess the key is just to find something unique about the useragent and add that?

dartho 10-14-2009 11:39 AM

That's right - and try to stay away from punctuation or non alphanumeric characters - I didn;t account for them :o

aliramazani 10-14-2009 02:39 PM

work on the 3.8?

ra7lty 10-15-2009 07:50 PM

i used it for 3.7 it was good , now i do upgrade my forum to 3.8.4 and there is more than 35 template foul up can you make it to work in 3.8.4 ,,
regards

Mr. W 10-19-2009 12:55 AM

Quote:

Originally Posted by aliramazani (Post 1899704)
work on the 3.8?

____It seems to work, including moderation actions for those with the permissions to do so.

Quote:

Originally Posted by ra7lty (Post 1900513)
i used it for 3.7 it was good , now i do upgrade my forum to 3.8.4 and there is more than 35 template foul up can you make it to work in 3.8.4 ,,
regards

____It seems to work anyway, despite those errors.

lowlight 10-19-2009 03:18 AM

Is there a way to increase the amount of subforums shown?

rrudeboy 10-21-2009 01:58 AM

so i moved from domain_x to domain_z and suddenly it no longer detects if it's a mobile device..

anybody ?


All times are GMT. The time now is 05:18 AM.

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.01965 seconds
  • Memory Usage 1,856KB
  • 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
  • (5)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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