PDA

View Full Version : Mobile, Cell, Phone, PDA, iPhone Style


Pages : 1 2 [3] 4

dartho
03-14-2009, 08:51 PM
There's no ad stuff in this style (apart from the ad_location termplate hooks), not even any 'sample code'. I'd be checking my ad software and temapltes to see where the issue is.

Assuming they are hooking into the template hooks, and you don;t want to show ads in your mobile style, you could delete them from the templates. Search the Mobile templates for $ad_location and remove the template hooks

Alfa1
03-14-2009, 10:53 PM
Unfortunately this does not work in 3.8.1 for me. Asides that it does not support chat, blog & groups( which was to be expected), it also does not display profiles. Posting new threads or using quick reply does not work. Please consider to add a 3.8 version.

dartho
03-15-2009, 02:17 AM
Unfortunately this does not work in 3.8.1 for me. Asides that it does not support chat, blog & groups( which was to be expected), it also does not display profiles. Posting new threads or using quick reply does not work. Please consider to add a 3.8 version.

On my 3.8.1 site groups are the only native vBulletin component to no longer disaplay correctly (although individual group pages are OK)

Everything else is working as designed. I will be working on a 3.8 version when I get the time and opportunity

Alfa1
03-15-2009, 03:42 PM
Thats good news.
Do you have any idea what may be the problem with quick reply?

darkdan
03-15-2009, 07:54 PM
There's no ad stuff in this style (apart from the ad_location termplate hooks), not even any 'sample code'. I'd be checking my ad software and temapltes to see where the issue is.

Assuming they are hooking into the template hooks, and you don;t want to show ads in your mobile style, you could delete them from the templates. Search the Mobile templates for $ad_location and remove the template hooks

I went through and removed all the $ad_location, and they're still there.

There must be something I'm missing.

It's strange it only shows up on a phone, and not the PC using the mobile style.

v12kid
03-15-2009, 11:04 PM
got it installed but because of the chatbox and 3.8.1 updates I had to uninstall, look forward to an update and then a paypal donation :)

Sooner95
03-22-2009, 04:57 AM
This does not work for me either since going to 3.8.1 It was perfect before..now I don't know what happened.

Anyhow, I hope it gets corrected, was a nice addon for sure.

Biker_GA
03-22-2009, 07:23 AM
I'm running it on 3.8.1 and haven't had a single complaint from my users.

fbriceno97
03-23-2009, 02:34 PM
Hi Guys, i have vbulletin 3.8.1 with this style working just perfect!

i decided to install VBSEO and the problems began to happen:

when you reply via mobile, the Forum actually takes it but iit does not update/refresh the page to see the reply (it does not matter if you do a quick reply or not), it only does it when the reply must generate a new page, otherwise you have to manually refresh the page to see the replied done.

on the other hand, when you re-enter the thread containing new replies it does not update itself you have to manually update to see them.

This happen after getting VBSEO installed and running and ONLY with the Mobile Style, on the PC it works perfect... any advice about it?

Regards

swiftor
03-23-2009, 03:40 PM
I'm using 3.7.5 and have Cyb Chatbox on my main page.. but it loads as a grey box, is this intentional or is there a way to get it to work?

dartho
03-24-2009, 11:14 AM
you can eitehr modify teh chatbox plugins to not load under a specific style, alternatively Installing THIS (https://vborg.vbsupport.ru/showthread.php?t=182692) addon to this style, may help in disabling addons such as chatbox...

dartho
03-24-2009, 11:16 AM
Sorry - I know nothing about VBSEO - although otehrs may have opinions on what may be causing you issues ...


Hi Guys, i have vbulletin 3.8.1 with this style working just perfect!

i decided to install VBSEO and the problems began to happen:

when you reply via mobile, the Forum actually takes it but iit does not update/refresh the page to see the reply (it does not matter if you do a quick reply or not), it only does it when the reply must generate a new page, otherwise you have to manually refresh the page to see the replied done.

on the other hand, when you re-enter the thread containing new replies it does not update itself you have to manually update to see them.

This happen after getting VBSEO installed and running and ONLY with the Mobile Style, on the PC it works perfect... any advice about it?

Regards

fbriceno97
03-24-2009, 01:01 PM
Sorry - I know nothing about VBSEO - although otehrs may have opinions on what may be causing you issues ...

Thanks dartho in replying....

Biker_GA
03-24-2009, 01:02 PM
I'm using 3.7.5 and have Cyb Chatbox on my main page.. but it loads as a grey box, is this intentional or is there a way to get it to work?

Keep in mind this style is a "bare bones" style that allows most mobile devices to read and post on a site. Goodies such as the chatbox, arcade, etc., aren't designed to run on the majority of mobile devices and should be disabled when using this style.

Glynn58
03-29-2009, 07:18 AM
Eagerly awaiting the 3.8.1 version as this is sorely missed by my members since upgrading :up:

dartho
03-29-2009, 08:07 AM
Glynn, 3.8.1 forums work fine with this style - extras such as groups etc have some issues and other extras such as albums will probably never be supported....

Glynn58
03-29-2009, 09:36 AM
Glynn, 3.8.1 forums work fine with this style - extras such as groups etc have some issues and other extras such as albums will probably never be supported....

I must be missing something somewhere as it goes to the full forum for me.

Or could it be the Add On ( auto detect ) thats not compatible with 3.8.1

PS, only need it for new posts not bothered about the extras as such

Cheers :up:

dartho
03-29-2009, 10:15 AM
Both work fine! - must be a setting awry somewhere in teh autodetect adon, or possible a device which isn't recognised?

Glynn58
03-29-2009, 10:45 AM
Both work fine! - must be a setting awry somewhere in teh autodetect adon, or possible a device which isn't recognised?

Thanks dartho it was a setting in the auto detect i missed now its working great.

Cheers & thanks again :up:

Greek76
03-31-2009, 08:04 PM
Problem people who log in with FF through the internet are put in mobile style. Is their a fix to this?

dartho
03-31-2009, 09:53 PM
Problem people who log in with FF through the internet are put in mobile style. Is their a fix to this?

This is just a style - its browser independant.

Greek76
04-03-2009, 06:11 PM
Thanks for your response but one more question. Is there a way to make that users can't choose the mobile style as there default style on the forum while browsing from their computers? People are choosing it and then they can't choose a different style from the mobile theme..

dartho
04-03-2009, 11:08 PM
This addon - https://vborg.vbsupport.ru/showthread.php?t=183185 - will allow you to "hide" a style from the style chooser...

Greek76
04-04-2009, 10:34 AM
Thank you again but now I have some members complaining that they don't see the subforums while on mobile style. Any ideas?

dartho
04-04-2009, 09:49 PM
I've not come across this as an issue before - what is your site, I'll look ...

Se?or Ramos
04-06-2009, 07:41 PM
I couldn't find this posted anywhere, so I'll ask...

Where do I go to edit the color of the text, background, etc? I wanted to have white font with yellow links and a green background.

dartho
04-06-2009, 09:18 PM
You'll need to edit the CSS file to make colour changes

por4x4
04-10-2009, 03:17 AM
How can I post a small image at the top of the page? When I post an HTML image tag, it gets ignored? What about a javascript banner tag?

dartho
04-10-2009, 09:35 AM
If you wish to use an IMG tag, try and swap the parameters.

rather than <img src="mypic.jpg" alt="My Pic" /> use <img alt="My Pic" src="mypic.jpg" />

this shouldn't get replaced with an anchor tag

por4x4
04-10-2009, 04:50 PM
If you wish to use an IMG tag, try and swap the parameters.

rather than <img src="mypic.jpg" alt="My Pic" /> use <img alt="My Pic" src="mypic.jpg" />

this shouldn't get replaced with an anchor tag

Hmmm, this causes the alt text to show up, see attached screen shot. Is it possible to use javascript to show a banner? Last question, I've started reading through this monster thread, and I see that it is possible to show google ads but I'm not seeing where to enable that or put in the code?

Sorry for all the questions!

por4x4
04-10-2009, 07:46 PM
Ok, I came across another issue. LOL I just realized that there is no "Post" link... It is possibly to reply to a thread, but not possible to make a new post. What am I missing?

Lynne
04-10-2009, 07:50 PM
Hmmm, this causes the alt text to show up, see attached screen shot. Is it possible to use javascript to show a banner? Last question, I've started reading through this monster thread, and I see that it is possible to show google ads but I'm not seeing where to enable that or put in the code?

Sorry for all the questions!
If that causes the alt tag to show up, then you need to check your image path because it is wrong.

Ok, I came across another issue. LOL I just realized that there is no "Post" link... It is possibly to reply to a thread, but not possible to make a new post. What am I missing?
If you go into the forum, it should say "Threads: (New?)" near the top. Click on New? to start a new thread.

por4x4
04-11-2009, 02:33 PM
If that causes the alt tag to show up, then you need to check your image path because it is wrong.


If you go into the forum, it should say "Threads: (New?)" near the top. Click on New? to start a new thread.

Hi Lynne, yeah, I'm dumb, found the "Threads: (New?)".... However I'm positive my image path is correct, and only the alt shows up. Any advice is appreciated. I'll assume that javascript tags aren't possible since nobody has confirmed it is possible.

Lynne
04-11-2009, 03:01 PM
Hi Lynne, yeah, I'm dumb, found the "Threads: (New?)".... However I'm positive my image path is correct, and only the alt shows up. Any advice is appreciated. I'll assume that javascript tags aren't possible since nobody has confirmed it is possible.
Check your page source and see what is going on there.

sportwiz628
05-02-2009, 12:29 AM
It doesn't work for 3.8?

Biker_GA
05-02-2009, 12:36 AM
Works perfectly with 3.8.2.

amish_irish
05-19-2009, 07:55 PM
I am still getting a popup window that says Authentication Required every time. My forum is here. http://www.bluegoldnation.com/forums Just change the style to the correct one at the bottom to see what I am talking about.

I would appreciate any help. Is it a folder permission issue?

dartho
05-20-2009, 02:52 AM
HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
Internet Information Services (IIS)

I would hazard a guess that the wireless.css file is either not in your forum root, or is for some reason password protected? GIven its running under IIS - could be security attributes?

jilly
05-21-2009, 05:41 PM
Okay, I tested it on my board, and then I tried selecting it from my laptop, to see what it looked like, and I could see, very simple, but now how do I go back to the style that I used before, the 'default' style I have set for my forum? In the regular style, I have the select forum style drop down menu in the lower left corner of the screen, but it's gone from the mobile one, so I seem to be stuck in mobile! It there an easy way to put a lin or something down in that lower left corner that would say 'revert back to forum default' and it would take you back to the normal view?

Lynne
05-21-2009, 06:31 PM
Okay, I tested it on my board, and then I tried selecting it from my laptop, to see what it looked like, and I could see, very simple, but now how do I go back to the style that I used before, the 'default' style I have set for my forum? In the regular style, I have the select forum style drop down menu in the lower left corner of the screen, but it's gone from the mobile one, so I seem to be stuck in mobile! It there an easy way to put a lin or something down in that lower left corner that would say 'revert back to forum default' and it would take you back to the normal view?
Either add "&styleid=x" onto the end of your url to get back to styleid x or install this - Extend and Customise Mobile Style (https://vborg.vbsupport.ru/showthread.php?t=182692) and put the link to the default style on the bottom of the page.

amish_irish
05-23-2009, 11:27 PM
HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
Internet Information Services (IIS)

I would hazard a guess that the wireless.css file is either not in your forum root, or is for some reason password protected? GIven its running under IIS - could be security attributes?

Nice guess. I tried to add the likely suspects manually to the security permissions on the .css file but with no luck so I just added the everyone permission and success!! Thanks!

BlueChipEarth
05-27-2009, 02:55 PM
Does this not work with the Mobile Device Detection mod? It seems to not switch styles from a mobile phone... as though I tell it "hey switch styles" and then the MDD says "Oh no you don't!"

Any way around this?

Biker_GA
05-27-2009, 03:03 PM
The Mobile Phone / iPhone / PDA Detection and Style Assignment modification forces the mobile style. There is no option to use anything else when using that mod.

rrudeboy
05-27-2009, 03:53 PM
exactly what i was looking for... *w00t* :}

rrudeboy
05-27-2009, 07:41 PM
dartho, awesome mobile interface.... BUT (there's always a but :} i want the blue to be gray/grey, checked the css but so far unable to find it. that will be all i want to alter.

dartho
05-28-2009, 12:42 AM
edit the wireless.css file and I think its the titlebg, windowbg and windowbg2 classes that you need to modify. try this as your wireless.css for a few ideas

body
{
background: #333333;
color: #ffffff;
font: 6pt verdana;
margin: 0px;
padding: 0px;
}

.header
{
background-color: #222222;
color: #ffffff;
size:3;
}
.titlebg, .titlebg a, .titlebg a:link, .titlebg a:visited
{
background-color: #444444;
color: #000000;
text-decoration: none;
size:1;
}
.oldtitlebg, .oldtitlebg a, .oldtitlebg a:link, .oldtitlebg a:visited
{
background-color: #333333;
color: #000000;
text-decoration: none;
size:1;
}
.newtitlebg, .newtitlebg a, .newtitlebg a:link, .newtitlebg a:visited
{
background-color: #222222;
color: #C0C0C0;
text-decoration: none;
size:1;
}
.windowbg, .windowbg a, .windowbg a:link, .windowbg a:visited

{
background-color: #333333;
color: #FFFFFF;
size:1;
}
.newwindowbg, .newwindowbg a, .newwindowbg a:link, .newwindowbg a:visited
{
background-color: #333333;
color: #FFFFFF;
size:1;
}

.oldwindowbg, .oldwindowbg a, .oldwindowbg a:link, .oldwindowbg a:visited
{
background-color: #333333;
color: #FFFFFF;
size:1;
}

.windowbg2, .thread, .windowbg2 a, .windowbg2 a:link, .windowbg2 a:visited
{
background-color: #444444;
color: #FFFFFF;
size:1;
}
.Unreadwindowbg2, a:link.newwindowbg2, a:visited.newwindowbg2
{
background-color: #333333;
color: #000000;
size:1;
}
.Oldwindowbg2, a:link.Oldwindowbg2, a:visited.Oldwindowbg2
{
background-color: #444444;
color: #000000;
size:1;
}
.new, a:link.new, a:visited.new
{
background-color: #333333;
color: #000000;
size:1;
}
.thread_new, a:link.thread_new, a:visited.thread_new
{
background-color: #333333;
color: #000000;
size:1;
}
.thread_hot, a:link.thread_hot, a:visited.thread_hot
{
background-color: #333333;
color: #000000;
size:1;
}
.old, a:link.old, a:visited.old
{
background-color: #333333;
color: #000000;
size:1;
}
.navbar, a:link.navbar, a:visited.navbar
{
background-color: #333333;
color: #FFFFFF;
size:1;
}
.footer, a:link.footer, a:visited.footer
{
background-color: #333333;
color: #FFFFFF;
size:1;
}
.updated
{
color: #ff0000;
size:1;
}
.quote
{
background-color: #666666;
color: #000000;
size:1;
}
.sticky
{
background-color: #666666;
color: #FFFFFF;
size:1;
}
.announce
{
background-color: #666666;
color: #FFFFFF;
size:1;
}

rrudeboy
05-28-2009, 11:11 AM
edit the wireless.css file and I think its the titlebg, windowbg and windowbg2 classes that you need to modify. try this as your wireless.css for a few ideas

close... but not quite, i still want the background to be white. i can mess with it now that i know where :}

thanks.

BGObsession
05-29-2009, 01:50 AM
If you wish to use an IMG tag, try and swap the parameters.

rather than <img src="mypic.jpg" alt="My Pic" /> use <img alt="My Pic" src="mypic.jpg" />

this shouldn't get replaced with an anchor tag


For the newbie coder (learning), WHERE would that html snippet be placed - somewhere in the xml code and then reuploaded, or in a specific section of the template under the mobile style?

Thanks in advance.....

dartho
05-29-2009, 05:09 AM
template you want an image to show (ie. header template)! You can alternatively allow all images to be displayed by removing all the replacement variables (located at the very bottom of the style options screen) in the mobile style

BGObsession
05-29-2009, 11:10 PM
Thanks Dartho - got it, and appreciate the patience for us self-learners....

Fangs404
05-31-2009, 07:47 AM
I just installed this on a 3.8.2 install, and it seems to be working just fine. In the admin CP, I'm getting a message that says there are 34 templates that need to be updated/reverted, but other than that, it looks a-ok to me.

testbot
06-04-2009, 07:26 PM
OK - I think I have working properly now. Code for plugin below. Ads don;t show up all teh time and after a bunch of refreshes they go a way for a while. This is a google thing and I guess it depends on your sites content and who is advertising? Anyway - the following seems to work for me. It is set for showing ads just before the quick reply, but you can change the ad_location in the code to show them after first post by searching and replacing ad_showthread_beforeqr for ad_showthread_firstpost in the plugin code...



Get your mobile adsense PHP code - here's the code Google game me (DO NOT USE THIS - GET YOUR OWN)

<?php

$GLOBALS['google']['ad_type']='text';
$GLOBALS['google']['channel']='0000000000';
$GLOBALS['google']['client']='pub-0000000000000000';
$GLOBALS['google']['format']='mobile_single';
$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);
}

?>


I had to move al the functions to the top of the code block for it to work in a plug in I created a called "Google Adsense Mobile" on the showthread_start hook. Here is the working plugin code:

if ($styleid == xx) {
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;
}

$GLOBALS['google']['ad_type']='text';
$GLOBALS['google']['channel']='0000000000';
$GLOBALS['google']['client']='pub-0000000000000000';
$GLOBALS['google']['format']='mobile_single';
$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();

$find='"';
$replace="'";
$googlemad = '';

$google_ad_handle = @fopen(google_get_ad_url(), 'r');
if ($google_ad_handle) {
while (!feof($google_ad_handle)) {
$googlemad .= fread($google_ad_handle, 8192);
}
fclose($google_ad_handle);
}
$vbulletin->templatecache['ad_showthread_beforeqr'] = str_replace($find,$replace,$googlemad);

}


You'll see I wrapped the google code in a conditional if ($styleid == xx) { ... } where xx is the styleid of my mobile style - you will need to change this and removed the opening and closing php tags.

The other changes (after moving the functions to the top) were:
1. replace

$google_dt = time();
google_set_screen_res();


with

$google_dt = time();
google_set_screen_res();

$find='"';
$replace="'";
$googlemad = '';



2. replace
echo fread($google_ad_handle, 8192);
}
fclose($google_ad_handle);
}

with

$googlemad .= fread($google_ad_handle, 8192);
}
fclose($google_ad_handle);
}

$vbulletin->templatecache['ad_showthread_beforeqr'] = str_replace($find,$replace,$googlemad);


That's about it. You could modify and or duplicate this to work with other ad_locations. Current defined ad_locations in vBulletin 3.7 (and this style) and the likely best hook location for these ads are (i'm not so sure about the ones in blue - they should work there, but there may be a more efficient place to put them. Feedback welcomed!):

ad_footer_start - global_start
ad_footer_end - global_start
ad_forumdisplay_afterthreads - forum_display_start
ad_forumhome_afterforums - forum_home_start
ad_header_end - global_start
ad_header_logo - global_start
ad_navbar_below - global_start
ad_showthread_beforeqr - showthread_start
ad_showthread_firstpost - showthread_start

Hope this helps!



that seems like so much work. can't we just copy the ad code somewhere in the template?

m52
06-07-2009, 12:33 AM
installed, works a treat on 3.8.2. For my peace of mind though, I might make the font a touch bigger

l3it3r
06-07-2009, 05:23 PM
Very flipping sweet.

edytwinky
06-13-2009, 12:44 PM
How do I add a link on the line that says "Home New Posts User CP"

dartho
06-13-2009, 02:49 PM
edit the navbar template

1viking
06-17-2009, 11:51 AM
Anybody having problems getting this to work with people that have their default setting set to hybrid or threaded? The latest post is the only one to show up.

Lynne
06-17-2009, 03:23 PM
Anybody having problems getting this to work with people that have their default setting set to hybrid or threaded? The latest post is the only one to show up.
Easiest solution would probably be to write a plugin to disable threaded/hybrid mode when using this style.

dartho
06-17-2009, 09:12 PM
@1viking - I didn't consider threaded/hybrid mode when writing this, so I'm not suprised that there may be issues in these modes. I'll look into it when time permits

edytwinky
06-20-2009, 08:07 PM
Installed and works on 3.8.3

Any plans to release a version that is compatible with vb Blogs?

MissKalunji
06-21-2009, 12:49 AM
Hey iw as wonderinG HOW can i make it available to everyone BUT a certain user? is there an if statement or an extra setting you can add?

make everyone see the mobile style...

i know it would be something like if this user id do this else show this...but i don't know the proper syntax and where it should go? if that's even possible?

Thanks!

dartho
06-21-2009, 01:09 AM
So you wish to force a specific user to use use a specific style, or make a specific style unavailable to a specific user?

nhlchuck68
06-21-2009, 02:02 AM
Can anyone tell me why I post from my mobile device and then when I go back to the thread my post does not show. However if I come to my PC and check, my post is there and looks just fine.

Thanks!

MissKalunji
06-21-2009, 02:10 AM
So you wish to force a specific user to use use a specific style, or make a specific style unavailable to a specific user?

force a specific user to use a specific style :)

dartho
06-21-2009, 05:13 AM
a plugin on style_fetch hook with an execution order of say 10 should do it - something like:


if ($vbulletin->userinfo['userid']==x)
{
$styleid=y;
}


or if multiple for users:


if (in_array($vbulletin->userinfo['userid'], array('x1','x2','x3')))
{
$styleid=y;
}

Akakios1
06-21-2009, 11:29 PM
Is there a way to make images show up in the posts instead of the "image" link?

I went through most of the 38 pages and saw one post Dartho stating to remove the Replacement Variables but when I do that, I still have the word "image" and it's unlinked and the image doesn't show still.

Thanks in advance

dartho
06-22-2009, 03:58 AM
The replacement variables are the thing that creats that "Image" link - did you remove all of the replacement variables for the style?

MissKalunji
06-22-2009, 11:37 AM
a plugin on style_fetch hook with an execution order of say 10 should do it - something like:


if ($vbulletin->userinfo['userid']==x)
{
$styleid=y;
}


or if multiple for users:


if (in_array($vbulletin->userinfo['userid'], array('x1','x2','x3')))
{
$styleid=y;
}


Thank you!

rrudeboy
06-22-2009, 07:24 PM
I just installed this on a 3.8.2 install, and it seems to be working just fine. In the admin CP, I'm getting a message that says there are 34 templates that need to be updated/reverted, but other than that, it looks a-ok to me.

ditto here.... have been avoiding it, but it kinda bugs me :}

(even though everything works)

Akakios1
06-22-2009, 08:34 PM
The replacement variables are the thing that creats that "Image" link - did you remove all of the replacement variables for the style?


No, just the img src="http a href="http. I replaced it when it wasn't the result I was hoping for!

Is it possible to have image itself show?

dartho
06-22-2009, 09:29 PM
You need to remove all of the replacement variables in this style for images to show fully in line

Akakios1
06-23-2009, 12:25 AM
You need to remove all of the replacement variables in this style for images to show fully in line

Ahh.. ok thanks Dartho. Gonna give it a shot now

**Edit**

That's perfect Dartho!! Thanks very much!

rrudeboy
06-24-2009, 11:00 AM
oi dartho,

is there anyway you (or me if you tell me how :} can build-in a line break/wrap after x amount of characters, reason: if i post from my BB (me, and many other users) the post is like 2 feet wide which is kind of troublesome to proof read, re-read what you wrote.

if anybody else knows... chime in.

tks.

struff
06-28-2009, 01:38 AM
Is there a way to make it suppress users' avatars?

Thanks.

dartho
06-28-2009, 03:00 AM
Is there a way to make it suppress users' avatars?

Thanks.

where are avatars showing? They shouldn't be there!

s there anyway you (or me if you tell me how :} can build-in a line break/wrap after x amount of characters, reason: if i post from my BB (me, and many other users) the post is like 2 feet wide which is kind of troublesome to proof read, re-read what you wrote.


WHere is this happening?

rrudeboy
06-29-2009, 12:16 PM
WHere is this happening?

when a member posts using their Blackberry/Smartphone... it keeps going & going and never wraps, so 1. you don't see the entire reply until you submit and 2. it's troublesome to proof read and/or fix typos.

struff
06-29-2009, 04:11 PM
where are avatars showing? They shouldn't be there!


Just as a non-mobile style, people's avatars appear next to their names in messages that they post.

dartho
06-29-2009, 09:22 PM
@Struff:
That's not correct. Either you have somehow modified the postbit/postbit_legacy template (reverted it?), or an add-on is doing this.

The postbit is meant to look something like the 3rd screen shot.

Try re-installing the style.

rrudeboy
06-30-2009, 11:01 AM
@dartho: how about the word wrap, is that something that can be done ?

struff
06-30-2009, 02:14 PM
@Struff:
That's not correct. Either you have somehow modified the postbit/postbit_legacy template (reverted it?), or an add-on is doing this.

The postbit is meant to look something like the 3rd screen shot.

Try re-installing the style.

We've been running it for about five or six months (or more, I don't really remember) and we're quite sure it this has always been the case for us. We installed the "Extend and Customise "Mobile" Style Options" add-on but that shouldn't be an issue, right?

Could it be because we use more current versions of vBulletin? We are running it on vB v3.8.2 now (we update vB as soon as we can). Because we are running 3.8.3 now it won't let us reinstall your mobile style. :( Do you have any plans on releasing a version for 3.8 or is there a patch or anything available to use it on 3.8?

Is there a way that we can manually edit or replace that template?

Thanks.

rrudeboy
06-30-2009, 02:26 PM
i am running this on my v3.8.2 vB forum (see sig) and it does not nor did it ever show avatars....

(i want word wrap... plz :}

Biker_GA
06-30-2009, 10:43 PM
We've been running it for about five or six months (or more, I don't really remember) and we're quite sure it this has always been the case for us. We installed the "Extend and Customise "Mobile" Style Options" add-on but that shouldn't be an issue, right?

Could it be because we use more current versions of vBulletin? We are running it on vB v3.8.2 now (we update vB as soon as we can). Because we are running 3.8.3 now it won't let us reinstall your mobile style. :( Do you have any plans on releasing a version for 3.8 or is there a patch or anything available to use it on 3.8?

Is there a way that we can manually edit or replace that template?

Thanks.

I'm running this on 3.8.3 just fine. You wouldn't be running vBAdvanced, would you?

dartho
06-30-2009, 10:49 PM
Here is the postbit / postbit_legacy template code:

<div class="$post[statustitle]windowbg2" id="post$post[postid]">
<a name="post$post[postid]"></a>
<a href="member.php?userid=$post[userid]">$post[username]</a> $post[posttime] $post[postdate]
</div>
<div class="windowbg">$post[message]<br />

<!-- attachments -->
<if condition="$show['attachments']">
<div><span>Attached: </span>
<if condition="$show['thumbnailattachment']">
<span>$post[thumbnailattachments]<br /></span>
</if>

<if condition="$show['imageattachment']">
<span>$post[imageattachments]<br /></span>
</if>

<if condition="$show['imageattachmentlink']">
<span>$post[imageattachmentlinks]<br /></span>
</if>

<if condition="$show['otherattachment']">
<span>$post[otherattachments]<br /></span>
</if>

<if condition="$show['moderatedattachment']">
<span>$post[moderatedattachments]<br /></span>
</if>

</div>
<!-- / attachments -->
</if>
<if condition="$post['editlink']"><a href="$post[editlink]">[$vbphrase[edit]]</a></if>
<if condition="$post['replylink']"><a href="$post[replylink]">[$vbphrase[reply]]</a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]rel="nofollow">[!!]</a> </if>
</div>


@rudeboy - try editing the newreplay template and replacing

<textarea name="message" id="{$editorid}_textarea" rows="10" cols="15" style="width:100%; height:100px">$newpost[message]</textarea>

with

<textarea name="message" id="{$editorid}_textarea" rows="10" cols="15" style="width:100%; height:100px" wrap="virtual">$newpost[message]</textarea>

edytwinky
07-01-2009, 02:45 AM
How would one go about adding a style selector? Say a user doesn't want to view the Mobile style but would rather see the regular style.

dartho
07-01-2009, 03:19 AM
Installing the add-on to this style (here: https://vborg.vbsupport.ru/showthread.php?t=182692) gives you an option to have a link to the default style, or the style selector.

Alternatively you could edit a template (navbar? footer?) and manually add a link in to the default style.

rrudeboy
07-01-2009, 11:45 AM
@rudeboy - try editing the newreplay template and replacing

<textarea name="message" id="{$editorid}_textarea" rows="10" cols="15" style="width:100%; height:100px">$newpost[message]</textarea>

with

<textarea name="message" id="{$editorid}_textarea" rows="10" cols="15" style="width:100%; height:100px" wrap="virtual">$newpost[message]</textarea>


tried that, unfortunately does not work....

add: not fully understanding, i read that cols is the width of the input box so i changed it to 2 just to see what it does, nothing.. i thought maybe that will help the wrap (or lack there off), wonder why this does not work.

add#2: it works on my laptop when i go to my mobile site... but when i try it on my BlackBerry it does not wrap :]

struff
07-01-2009, 09:54 PM
Here is the postbit / postbit_legacy template code:

<div class="$post[statustitle]windowbg2" id="post$post[postid]">
<a name="post$post[postid]"></a>
<a href="member.php?userid=$post[userid]">$post[username]</a> $post[posttime] $post[postdate]
</div>
<div class="windowbg">$post[message]<br />

<!-- attachments -->
<if condition="$show['attachments']">
<div><span>Attached: </span>
<if condition="$show['thumbnailattachment']">
<span>$post[thumbnailattachments]<br /></span>
</if>

<if condition="$show['imageattachment']">
<span>$post[imageattachments]<br /></span>
</if>

<if condition="$show['imageattachmentlink']">
<span>$post[imageattachmentlinks]<br /></span>
</if>

<if condition="$show['otherattachment']">
<span>$post[otherattachments]<br /></span>
</if>

<if condition="$show['moderatedattachment']">
<span>$post[moderatedattachments]<br /></span>
</if>

</div>
<!-- / attachments -->
</if>
<if condition="$post['editlink']"><a href="$post[editlink]">[$vbphrase[edit]]</a></if>
<if condition="$post['replylink']"><a href="$post[replylink]">[$vbphrase[reply]]</a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]rel="nofollow">[!!]</a> </if>
</div>



I got it to work. Nice. Thanks.

rrudeboy
07-02-2009, 12:00 PM
is there anyway to FORCE the line break ? because what i have discovered that most if not all Windows Mobile phone do wrap, even older Curve's do...

but not the Storm :(

Biker_GA
07-02-2009, 01:13 PM
There is no difference between browsers on the various Blackberry's. As your Storm is having issues where other devices do not indicates it's a setting on your Blackberry. Ensure all your browser settings are turned on for the device.

rrudeboy
07-02-2009, 01:36 PM
There is no difference between browsers on the various Blackberry's. As your Storm is having issues where other devices do not indicates it's a setting on your Blackberry. Ensure all your browser settings are turned on for the device.

i beg to differ, members of my forum with "older" Curve's have no issue and it word wraps for them, i tried all "simulators" in the Storm's browser (Blackberry, Firefox and Internet Explorer) and in none of them does it word wrap.

all browser settings ?

tks.

Biker_GA
07-02-2009, 05:19 PM
Under Options/Advanced Options/Browser double check your settings and make sure your default browser settings are configured for the Internet.

rrudeboy
07-02-2009, 06:27 PM
Under Options/Advanced Options/Browser double check your settings and make sure your default browser settings are configured for the Internet.

that's all good, and like i said i messed with most settings to test..

shirubia
07-02-2009, 11:32 PM
Hello this is awesome thanks! I installed this and it looks fine when I view it under style manager from my PC, but for some reason when I point my phone to my forum URL, it doesn’t work.. is this compatible with 3.8.3? I also installed Mobile, Cell, Phone, PDA, iPhone Style 0.0.10a..

dartho
07-03-2009, 08:09 AM
shirubia - you need to select the style, or install an add-on which will detect that your usinga phone and automatically select the style for you.

Try this https://vborg.vbsupport.ru/showthread.php?t=173239 and see if that helps

RoxyTheImpreza
07-08-2009, 03:04 PM
any way to get this to work with 3.8?

rrudeboy
07-08-2009, 03:13 PM
any way to get this to work with 3.8?

yup, i use it on v3.8.2... no problems.

MissKalunji
07-08-2009, 04:36 PM
same here 3.8.1

CR_TurboGuy
07-09-2009, 05:19 PM
How would one go about adding a style selector? Say a user doesn't want to view the Mobile style but would rather see the regular style.

Check out my post here (https://vborg.vbsupport.ru/showpost.php?p=1819823&postcount=283) where I show how I added that option on my board.

--JOsh

filmking
07-12-2009, 07:25 PM
This style for mobile viewing "out of the box" is real good. I just uploaded it.

I don't think this has been suggested, but I haven't read the 40+ pages of posts:

To make viewing better for mobile users I suggest you add the following as the first line in the style's "header" template.

<meta name="viewport" content="width=device-width,user-scalable=no" />

MissKalunji
07-13-2009, 11:58 AM
Is this to make sure it keeps the size of the screen?

filmking
07-14-2009, 02:01 AM
Is this to make sure it keeps the size of the screen?

Yes, if you want the display to look like the screenshots then add that line----- it'll format according to the screen size of the particular mobile device, from a basic cell phone, to an Iphone or smart phone.

30et
07-17-2009, 06:17 AM
Hi there,
I am running vbulletin using a mobile template. When a user wants to view a poll, they click the poll title and they expect to be taken to the form where they enter their vote. This is how it works on my default vbulletin installation. But on the mobile template, the user is taken to the last post for the poll.

The link from the mobile template /forums/showthread.php?p=3902301#post3902301

The same link from the default template goes to /forums/showthread.php?t=252960

What can I change so that the mobile template works the way the default template does?

dartho
07-17-2009, 09:34 AM
I assuem you are talking about another style as polls work fine in this one, you should check with the author.

zeus_r6
07-20-2009, 12:48 AM
I'm running this style and images that are in image tags do not show up, neither do links to the images...I would like the images to show up if they are in image tags....ideas?

dartho
07-20-2009, 07:20 AM
delete all the replacement variables (end of the style options page) for this style, and images will appear inline as normal

jbeam
07-21-2009, 01:36 AM
I have a couple odd issues.

I am running;

Mobile Device Detection 1.0.0
Mobile Style Options 0.0.10b
vbulletin-mobile-style-0.0.10a

I am running these on two different sites, it works perfect on one site, but the other is having some issues.

Works - http://www.thenewx.org/forum/index.php?styleid=7
Problems - http://first.thexterra.org/forum/index.php?styleid=6

1. There is no color.
2. There are no "image" links.

Anyone have any ideas?

MissKalunji
07-21-2009, 01:47 AM
color...did you upload the css at the right place?

As for image which images are you talking about? if i recall he removed all the images and replaced the smiles with letters instead like :-) instead of showing the image

Keep in mind it's a mobile....very low bandwich to load as fast as possible...

flowermama
07-21-2009, 06:08 AM
This is really working great on my board. Thank you!

Quantnet
08-02-2009, 02:56 AM
I use VB Ad Management mod which display an ad after the first post on each thread. how do I remove the ad in this mobile style.

dartho
08-02-2009, 04:05 AM
If you have the add-in which extends this style (https://vborg.vbsupport.ru/showthread.php?t=182692) placing the following code in teh disable add-ons code section:

// Disable "vB Ad Management" https://vborg.vbsupport.ru/showthread.php?t=131150
$vbulletin->options['adintegrate_onoff']=0;


might work ...

Quantnet
08-02-2009, 12:37 PM
Thanks, but this works

// Disable "Forum Ad Management"
$vbulletin->options['vbam_forum_onoff']=0;

dartho
08-02-2009, 10:22 PM
Glad you worked it out, but thats a different product, the previous will should still work with 'vB Ad Management'

RaceJunkie
08-05-2009, 03:20 AM
Worked fine on my other Blackberry but now I have a new one and it's all white with blue text.

Blackberry Curve with Verizon v4.5.0.77

JamesN
08-05-2009, 09:14 AM
Does this work with vBulletin 3.8.3 guys?

Biker_GA
08-05-2009, 10:25 AM
As the numerous posts in this thread state... Yes!

Lynne
08-05-2009, 03:45 PM
Yes, it works with 3.8.3. However, if you want to use Social Groups on your phone/pda, you should edit those templates unless you just want to use default vb.

fenderf4i
08-06-2009, 12:26 PM
I don't see where I'm supposed to find the replacement variables at the bottom of the style options to enable images. Can someone point it out to me? Thanks!

Lynne
08-06-2009, 01:38 PM
I don't see where I'm supposed to find the replacement variables at the bottom of the style options to enable images. Can someone point it out to me? Thanks!
Styles & Templates Manager > Replacement Variable Manager

fenderf4i
08-07-2009, 12:43 PM
Thank you! That worked very well. I have one final question.

What do I have to change so that when there is a new post in a thread, the thread title is in bold, but NOT in bold after the new post within it is read? The main page behaves this way with the categories-if there's a new post somewhere, the category title will be in bold.

I tried deleting all of the font-weight: bold lines out of the css file, but it didn't have any effect on anything! Thank you!!

Quantnet
08-10-2009, 11:49 AM
I use this with the Mobile Option mod. I added a style switcher on the top. When I click on that, it goes to the forum home instead of the post/thread I was using with the mobile style. Is there anyway we can keep the same location and just switch the styleid?

dartho
08-11-2009, 10:18 AM
@Quantnet - You could try editing the navbar template and replacing:

<if condition="$vbulletin->options['mo37_default_style_link']==1">
<a class="navbar" href="{$vbulletin->options['mo37_navbar_home']}?$session[sessionurl]styleid={$vbulletin->options['mo37_default_style']}">{$vbulletin->options['mo37_default_link']}</a>
</if>


with


<if condition="$vbulletin->options['mo37_default_style_link']==1">
<a class="navbar" href="{$_SERVER[REQUEST_URI]}&amp;styleid={$vbulletin->options['mo37_default_style']}">{$vbulletin->options['mo37_default_link']}</a>
</if>


There may be some issue I'm not sure of (you *should* in theory clean all server vars before using them, but this *seems* safe (insert wordy disclaimer here) - use at your own risk, if you have knowledge of such this - you input is welcome!

dartho
08-11-2009, 10:19 AM
Thank you! That worked very well. I have one final question.

What do I have to change so that when there is a new post in a thread, the thread title is in bold, but NOT in bold after the new post within it is read? The main page behaves this way with the categories-if there's a new post somewhere, the category title will be in bold.

I tried deleting all of the font-weight: bold lines out of the css file, but it didn't have any effect on anything! Thank you!!

try loggin out and then logging back in and seeing if it still remains bold. thx

Quantnet
08-11-2009, 11:09 AM
@Quantnet - You could try editing the navbar template and replacing:

<if condition="$vbulletin->options['mo37_default_style_link']==1">
<a class="navbar" href="{$vbulletin->options['mo37_navbar_home']}?$session[sessionurl]styleid={$vbulletin->options['mo37_default_style']}">{$vbulletin->options['mo37_default_link']}</a>
</if>


with


<if condition="$vbulletin->options['mo37_default_style_link']==1">
<a class="navbar" href="{$_SERVER[REQUEST_URI]}&amp;styleid={$vbulletin->options['mo37_default_style']}">{$vbulletin->options['mo37_default_link']}</a>
</if>


There may be some issue I'm not sure of (you *should* in theory clean all server vars before using them, but this *seems* safe (insert wordy disclaimer here) - use at your own risk, if you have knowledge of such this - you input is welcome!

This seems to work. I'll def let you know when my users notify me of something wrong ;)
Thanks


Edit: When I keep switching back and forth between the styles, I notice that the styleid var is being added to the site url over and over
?styleid=23&styleid=35&styleid=23&&styleid=35&styleid=23..................

dartho
08-11-2009, 09:59 PM
that doesn't suprise me - not much to do about it with this method (other than to not sit idly changing styles :) ) Should be back to a standard uri as soon as you follow a link

Hornstar
08-11-2009, 10:10 PM
dartho, I noticed it has been a year without any updates. Are you planning on doing any updates to this skin? Since I find it is the better of the phone skins available to the public currently.

dartho
08-11-2009, 11:21 PM
I've been planning on doing updates, and have made tweaks along the way on my own site - I just need to incorporate these and release a new package for 3.8. There have been no major changes however...

Quantnet
08-12-2009, 12:06 AM
Can't wait for the updates, dartho.

One thing in my wishlist would be a way to override the Detect Mobile and Style Assignment mod. I like the idea of giving mobile users the default mobile style but giving them an option to switch back.

Currently your style does not work with with that mod.

The second thing would be the User CP template. Right now, I have to scroll down past the User CP menu item to get to the PM. Somehow the layout is just off.

Quantnet
08-12-2009, 01:33 AM
And vb 3.8.4 released today and I have 32 out of date templates found, all from this mobile style ;)

It's a perfect time to release a 3.8.x upgrade, dartho :)

Biker_GA
08-12-2009, 10:11 AM
If it bothers you that much, just go in to the xml file and replace the version with 3.8.4.

Quantnet
08-12-2009, 12:04 PM
If it bothers you that much, just go in to the xml file and replace the version with 3.8.4.
What were you thinking?
The templates for 3.7.2 are nowhere compatible to 3.8.4. It's not about changing the version letter in the xml

Biker_GA
08-12-2009, 10:31 PM
If they're not compatible, they wouldn't work now, would they? It's working just fine with 3.8.x.

BGObsession
08-13-2009, 09:33 PM
Hey Dartho, been working great on my board, but one member using a blackberry with Opera minibrowser that "when selecting a thread that has multiple pages, if you are beyond the first page and you try to navigate to the first page. When clicking the arrow back and number the page refreshes instead."

Any idea on what's going on here or a possible fix?

Thanks again for a great mobile mod!

BGObsession
08-15-2009, 10:28 PM
Bump for possible assistance?

dartho
08-16-2009, 12:24 AM
sorry, BG - if it's only affecting a single user I have no idea where to start.

Mr. W
08-21-2009, 03:31 AM
This sounds cool. But I'm wondering about something.

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.

Baldilocks
08-29-2009, 05:40 AM
The update looks awesome! Now this one looks nearly as good as the iPhone custom skin that I use.

Dan!
09-07-2009, 01:20 PM
beautiful thankyou!

installed!

CR_TurboGuy
09-08-2009, 11:37 AM
Can't wait for the updates, dartho.

One thing in my wishlist would be a way to override the Detect Mobile and Style Assignment mod. I like the idea of giving mobile users the default mobile style but giving them an option to switch back.

Currently your style does not work with with that mod.

The second thing would be the User CP template. Right now, I have to scroll down past the User CP menu item to get to the PM. Somehow the layout is just off.

Check out my post here for something that may take care of that first part for you:
https://vborg.vbsupport.ru/showpost.php?p=1819823&postcount=283

--JOsh

Quantnet
09-08-2009, 12:13 PM
Josh,
Most welcome news. Will check that out.
Thanks

Mr. W
09-15-2009, 06:41 AM
This sounds cool. But I'm wondering about something.

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.

____Alright, so I'm basically replying to myself. However, I found out the answer to some of the things that I was wondering about.

____If a moderator logs in, using this skin on his mobile phone, he will be able to delete threads. However, there doesn't seem to be a way for a moderator to undelete a previously soft-deleted thread. Not with this skin.

____Unfortunately, the functionality for editing posts doesn't seem to work right. There's no button to save the changes after making the edits. So, basically this means that moderators who log in using this skin will not be able to edit posts.

____In addition, there's no way for a moderator to ban another user while using his mobile phone. At least not with this skin, in it's current state.

____Another thing I noticed is that there could be some conflicts, or otherwise odd behavior if you install this skin, and have certain other modifications installed. For example, a shoutbox. It probably won't work too well on a mobile phone anyway, so you may need to make some changes so that a shoutbox, if you have one, won't show up on this skin.

____I realize that this skin is not yet perfect. It hasn't even reached the first version. However, it nevertheless is a very cool idea. With a little more work, it can be a lot better. But that's just my opinion.

Note: I performed this testing using a Blackberry Pearl, using the default browser that Blackberries have. I'll try to do some more testing, again with a Blackberry Pearl, but instead with Opera Mini.

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
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

<if condition="$show['admincplink']"><a class="navbar" href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if> perhaps after
<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/showthread.php?p=1607905#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:


// 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:

/*** 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

<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.

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.


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

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
work on the 3.8?

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

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 ?

dartho
10-21-2009, 02:00 AM
wrong thread - this is about the style, not detection. However - I have no idea....

rrudeboy
10-21-2009, 02:05 AM
i may have found it.

jjrambo
10-23-2009, 04:44 AM
I noticed that sometime on certain phones it still switches back to this style even when there is no detection in it.

I did notice that it has some stuff in the xml about webtv, I would like to remove all browser detection that it has. If someone could me know how to do that I would appreciate it.

Mr. W
10-23-2009, 05:02 AM
I noticed that sometime on certain phones it still switches back to this style even when there is no detection in it.

____ Do you mean, without the auto-detection modification? Or with it? If you mean with, then you might wish to use that other thread. Anyway, can you tell us what phones have that issue? How did you learn about it? Personal experience, or what others have said? I just want to see if I can rule out user error (possible for those who aren't as tech savvy).

dartho
10-23-2009, 05:47 AM
This style is just a style and has no 'detection' in it. the WebTV references are in the default vBulletin style and I left it there. Your problems lay elsewhere ...

jjrambo
10-23-2009, 07:26 AM
____ Do you mean, without the auto-detection modification? Or with it? If you mean with, then you might wish to use that other thread. Anyway, can you tell us what phones have that issue? How did you learn about it? Personal experience, or what others have said? I just want to see if I can rule out user error (possible for those who aren't as tech savvy).
the problem occurs at times on my BB Curve, I click a link on one style and then when it goes to that link it then switchs over to this style... weird.

and no I haven't installed any detection scripts or anything, I don't want that as I need to be able to switch around.

I really do like this skin but I have had it swap on my 3 times so far, kind of annoying.

The first time I cleared the phones cache and everything else. still did it later on.

Mr. W
10-23-2009, 04:59 PM
the problem occurs at times on my BB Curve, I click a link on one style and then when it goes to that link it then switchs over to this style... weird.

____ Alright. Well, I don't have a Curve, although I do have a Pearl 8120. While I haven't had the exact problem that you are describing, I found that the original browser that my BB has doesn't display certain things in this style. In particular, things that relate to certain moderation actions (if you log in with an account with sufficient privileges). Specifically, editing posts from what I remember.

____ As a workaround, I tried using Opera Mini. Using that, I find that everything that seems to be in this style, shows up as it should. Have you tried using Opera Mini? http://www.opera.com/mini/download/

jjrambo
10-23-2009, 10:38 PM
____ Alright. Well, I don't have a Curve, although I do have a Pearl 8120. While I haven't had the exact problem that you are describing, I found that the original browser that my BB has doesn't display certain things in this style. In particular, things that relate to certain moderation actions (if you log in with an account with sufficient privileges). Specifically, editing posts from what I remember.

____ As a workaround, I tried using Opera Mini. Using that, I find that everything that seems to be in this style, shows up as it should. Have you tried using Opera Mini? http://www.opera.com/mini/download/
wow, opera is a much nicer program! Thanks for the heads up on this man! It works with the regular skins a lot better as well. Still trying to sort out all the functions as it is now but damn does it work a lot better.

I think I figured out why it does the switching, it seems that if you switch skins like I do you have to do it 2 times for the skin you want in order for the browser to recognize that it needs to stay on that skin you selected.

I have BB OS 4.5 on my phone which is a major improvement but Opera displays the pages much better but it's missing simple things like cut and paste and the navigation on it needs improvement for the BB also putting in symbols is kind of a pain in the butt. But the display is a lot better.

I tried 4.2 which was ok, but 5.0 beta is nicer but still missing some of the basic functions that it should have.

dartho
10-24-2009, 01:03 AM
Some good news over at vbulletin.com (http://www.vbulletin.com/forum/showthread.php?316938-Mobile-version-of-VB4)

You'd figure in this era, that vBulletin would have a mobile version all ready to go out of the box.

With so many people using mobile browsers as their main internet, it should be a no-brainer
This is one of several new things that are in the works.

Byggahus
10-25-2009, 08:34 PM
Thanks for a very good, lean and fast mobile skin! I can view it as an admin on http://www.byggahus.se/forum?styleid=17
But for some reason I can not get this style to show for non admins. I have figured out that my problem has to do either by a rewrite in .htaccess or a settings in vBSEO Control Panel. Please help!

dartho
10-25-2009, 10:40 PM
I would hazard a guess that you either do not have your site configured to allow users to select change styles (AdminCP->vBulletin Options->Style and Language Settings->Allow Users To Change Styles), and/or you have not marked teh additional styles as user selectable (AdminCP->Styles & Templates->Style Manager and "tick" the boxes of teh styles you wish to allow users to access)

Byggahus
10-26-2009, 08:31 AM
Thank you dartho! After I changed the "Allow Users To Change Styles" from No to Yes it works. :-)

jjrambo
10-27-2009, 02:23 AM
One thing I would like to see on this setup is the link to the admin panel in both user profile and at bottom of page. This would help when I need to ban a retard and I'm not near a computer. I really do like the layout though, it's such a help to have a nice clean mobile layout, the color coding for stickies and such is a really nice add as well.

My users have been sending me PMs left and right about how they like it.

Props to the coder/designer. Thanks for taking the time to do this and making it so clean and simple.

Abizaga
10-28-2009, 04:11 PM
The save button won't appear when I try to edit a post with this skin on my blackberry. why won't it work?

Bulent Tekcan
10-29-2009, 07:48 AM
Hello,

I installed this style,but I have a problem.

I have a 5 style but only 2 used and active.In Firefox I saw only 2 style (is it correct) but in IE8 with Windows7 I saw every style.But I don't use other 3 how can I hide this.I think this is not compatible IE8 and Win7

Thanks

dartho
10-29-2009, 09:06 AM
That sounds more like a vBulletin issue?

This is just a style, it is vBulletin php routines/files that build the "Style Chooser", not this style. Perhaps investigate more and lodge a bug report?

Mr. W
10-30-2009, 07:21 PM
The save button won't appear when I try to edit a post with this skin on my blackberry. why won't it work?

____ I am uncertain. Earlier I've asked the very same question, and the designer doesn't know. He said that he didn't have access to a Blackberry to figure this out. I also use a Blackberry, and the work-around I've found is to use Opera Mini. While that browser doesn't work perfectly, everything in this style will show up as it should. The only real downside is the way text is entered using Opera Mini, but once you get used to it, it's not so bad. You should give it a try.

MissKalunji
10-30-2009, 07:54 PM
I don't seem to have this problem....

dartho
10-30-2009, 08:53 PM
____ I am uncertain. Earlier I've asked the very same question, and the designer doesn't know. He said that he didn't have access to a Blackberry to figure this out. I also use a Blackberry, and the work-around I've found is to use Opera Mini. While that browser doesn't work perfectly, everything in this style will show up as it should. The only real downside is the way text is entered using Opera Mini, but once you get used to it, it's not so bad. You should give it a try.

Try this (just a hunch)

Edit the editpost template for this style, find

$messagearea
</div>
<div>
<input type="hidden" name="s" value="$session[sessionhash]" />

replace with

$messagearea
</div>
<input type="hidden" name="s" value="$session[sessionhash]" />


Then find

<input type="submit" class="button" name="sbutton" value="$vbphrase[save]" accesskey="s" tabindex="1" />
</div>
</form>

replace with

<input type="submit" class="button" name="sbutton" value="$vbphrase[save]" accesskey="s" tabindex="1" />
</form>


and let me know what happens. If it unlkely makes thinks worse, just revert that template.

Mr. W
10-30-2009, 09:55 PM
Try this (just a hunch)

Edit the editpost template for this style, find

$messagearea
</div>
<div>
<input type="hidden" name="s" value="$session[sessionhash]" />

replace with

$messagearea
</div>
<input type="hidden" name="s" value="$session[sessionhash]" />


Then find

<input type="submit" class="button" name="sbutton" value="$vbphrase[save]" accesskey="s" tabindex="1" />
</div>
</form>

replace with

<input type="submit" class="button" name="sbutton" value="$vbphrase[save]" accesskey="s" tabindex="1" />
</form>


and let me know what happens. If it unlkely makes thinks worse, just revert that template.

____ Great news. This change seems to permit the edit function to work using the standard browser that comes on every Blackberry. Better yet, it still works within Opera Mini.

____ Now will this still work in Pocket IE or Mobile Firefox? That I don't know because I don't have a Windows Mobile device that I can use. I will just have to rely on someone else to tell me.

dartho
10-31-2009, 07:26 AM
This should not affect functionality in any other browser, I'm pretty sure both versions are vaild html, just the BB browser obviously didn't like it.

Abizaga
10-31-2009, 10:37 PM
Try this (just a hunch)

Edit the editpost template for this style, find

$messagearea
</div>
<div>
<input type="hidden" name="s" value="$session[sessionhash]" />

replace with

$messagearea
</div>
<input type="hidden" name="s" value="$session[sessionhash]" />


Then find

<input type="submit" class="button" name="sbutton" value="$vbphrase[save]" accesskey="s" tabindex="1" />
</div>
</form>

replace with

<input type="submit" class="button" name="sbutton" value="$vbphrase[save]" accesskey="s" tabindex="1" />
</form>


and let me know what happens. If it unlkely makes thinks worse, just revert that template.

Doesn't seem to really do much. Still not showing, plus no delete option is showing, either.

Andyrew
10-31-2009, 11:11 PM
I have this and Different Domain, Different Style running when i view my forums only the home page works, as soon as i click to go in to a forum it goes back to the default style. ?

brettxw
11-01-2009, 04:30 AM
Hey Dartho,

Where can I edit the template(s) used? I want to make font appear under certain links, rather then right next to them.

dartho
11-01-2009, 08:06 AM
I'm not too sure what you mean by "I want to make font appear under certain links, rather then right next to them.", but you can edit all template in the style manager.

dartho
11-01-2009, 08:30 AM
I have this and Different Domain, Different Style running when i view my forums only the home page works, as soon as i click to go in to a forum it goes back to the default style. ?

What's your site?

Doesn't seem to really do much. Still not showing, plus no delete option is showing, either.

Nice to see Blackberrys have standardised there browsers :S

Abizaga
11-01-2009, 02:10 PM
What's your site?



Nice to see Blackberrys have standardised there browsers :S
No kidding. What a beautiful thing. It won't show certain images, too. These are images that I made and uploaded for members.

Andyrew
11-01-2009, 08:25 PM
What's your site?

It's OK, i found the problem to be the VBSEO addon. As soon as i turn this of your style works as it should. :up:

Just need to find a fix now. :(

brettxw
11-01-2009, 10:41 PM
I can't believe I asked where to edit the templates. Unbelievable. I remember posting that question and then I woke up in the morning saying "seriously? why the hell did I ask then, I know where to edit them.." Wow. hah. Sorry.

Who else has a BlackBerry site?

brettxw
11-02-2009, 12:26 AM
Alright Dartho, real question this time. I am trying to add our logo to the top of the forums (mobile version)..I believe it needs to be added to the header template, correct? When removing all "home, new post.." coding (option coding) and inserted <img> code but the image does not appear. Ideas?

dartho
11-02-2009, 01:30 AM
when you add the image, format thye code:

<img alt="My Website" src="pathto/myimage.jpg" />

otherwise it will get swapped out for a link rather than an image.

If you actually want all images to show up in your mobile style, remove all the replacement variables in the styles options.

brettxw
11-02-2009, 01:35 AM
No, I just want my main logo to appear at the top. I put that code inside Header, right?

brettxw
11-02-2009, 01:50 AM
Awesome. Works. I have a few more questions, I am going to PM you if you don't mind.

dartho
11-02-2009, 08:14 AM
Awesome. Works. I have a few more questions, I am going to PM you if you don't mind.

Not much point if I can't PM you back! ;)

Clean your inbox out!

Abizaga
11-02-2009, 11:43 AM
I also got my image problem working. Thank you. :)

Quantnet
11-06-2009, 01:02 AM
Dartho,
When click on New Posts, how do I edit to show the forum the latest posts are coming from? It would be easier to recognize since many of our threads are similar in name but under different forums. Think of several threads of same title HW1 under Class 1 forum, Class 2 forum, etc

dartho
11-06-2009, 10:19 AM
You could edit the threadbit template and search and reaplce

<strong>$thread[threadtitle]</strong>
with
<strong>$thread[forumtitle]&raquo;$thread[threadtitle]</strong>

But this will apply to ALL thread bits, not just search results

Biker_GA
11-06-2009, 11:00 AM
Dartho, are you planning on updating this and your other mobile style/detection mods to work with vB4? While we're anxiously awaiting the release of vB4 Beta, we've determined that there are two mods that will be show stoppers if they're not available, and yours is one of them.

Quantnet
11-06-2009, 12:36 PM
and what is the other ;)

dartho
11-06-2009, 08:25 PM
If vBulletin don't add a mobile style of their own (they have hinted that they will on vBulletin.com! (http://www.vbulletin.com/forum/showthread.php?p=1815764)), I will attempt to update this enough so that forums work - groups, blogs, albums and other 'social' aspects will be lower down on my list of things to do

m0rgulvale
11-06-2009, 11:13 PM
hi does this work on 3.8 series?

thanks!

Mr. W
11-06-2009, 11:21 PM
hi does this work on 3.8 series?

thanks!

___ It works for me, on 3.8.4 .

m0rgulvale
11-06-2009, 11:45 PM
it works, but one problem

how do you change the style back? i am not able to access and set option such as the default skin used from within this template, so forced to stick with this one once changing

also don't think its working right with vbseo.. if u click a members username to view their profile, it says they aren't registered on the forum.. might be something w/ rewriting the urls and not working in this template idk

note: want anyone to be able to choose this skin, and switch back to any other skin.. dont want to use the mod to force mobile users to view this based on user agent string

Mr. W
11-07-2009, 12:58 AM
it works, but one problem

how do you change the style back? i am not able to access and set option such as the default skin used from within this template, so forced to stick with this one once changing


Try:

http://www.yoursitenamehere.tld/forum_root/?styleid=1

____Assuming you didn't remove the default style, that's the ID number of the default style. That is, the one that came with VBulletin before you install any extra stuff. If you like, and happen to know the style ID of any other styles you may have installed, you can substitute in that number for the "1."

____Can't remember what the different style IDs are? Just go into the ACP, and then under the Styles & Templates section.


also don't think its working right with vbseo.. if u click a members username to view their profile, it says they aren't registered on the forum.. might be something w/ rewriting the urls and not working in this template idk

____I don't know what to tell you about that, as I don't use VBSEO. Sorry.


note: want anyone to be able to choose this skin, and switch back to any other skin.. dont want to use the mod to force mobile users to view this based on user agent string

____Then don't. It's optional. If you don't install the auto-detection thing, then this style will act like the others. In which case, it would be accessed by a URL similar to the following:

http://www.yoursitenamehere.tld/forum_root/?styleid=X

____Where X is the style ID of the mobile style. It's different for each forum that has it installed, so the only way to get the ID number is to log into your ACP. But after you do, then a link similar to that of what I just typed is what your users can use to access the mobile style in particular.

dartho
11-07-2009, 01:34 AM
Just as Mr. W says

You could additionally install https://vborg.vbsupport.ru/showthread.php?t=182692 which adds a few more options to this style which can be configured via vBulletin Options

Biker_GA
11-07-2009, 04:40 AM
If vBulletin don't add a mobile style of their own (they have hinted that they will on vBulletin.com! (http://www.vbulletin.com/forum/showthread.php?p=1815764)), I will attempt to update this enough so that forums work - groups, blogs, albums and other 'social' aspects will be lower down on my list of things to do

That's all my users really care about at the moment (the forums). :)

dartho
11-09-2009, 09:05 AM
I have it from a good source that this mobile style is pretty much operational on VB4!

Well usable with a few issues out of the box, but it is almost all the way there and It shouldn;t take me too long to fix up. This applies to forums only - not CMS/Groups/Albums etc. ...

sailnet
11-14-2009, 01:27 PM
where does the css file get uploaded to? (what subdirectory)

thanks

dartho
11-14-2009, 07:33 PM
your forum root directory

howarde
11-14-2009, 08:42 PM
I have it from a good source that this mobile style is pretty much operational on VB4!

Well usable with a few issues out of the box, but it is almost all the way there and It shouldn;t take me too long to fix up. This applies to forums only - not CMS/Groups/Albums etc. ...

Pretty much... yup

wacnstac
11-16-2009, 02:55 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:

/*** 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

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


I added this plugin and modified templates in my mobile style exactly as described but see no mobile ads. How doe the $mobile_ad_top get connected with the plugin? That might be the part I am missing.

testbot
11-16-2009, 04:24 PM
I added this plugin and modified templates in my mobile style exactly as described but see no mobile ads. How doe the $mobile_ad_top get connected with the plugin? That might be the part I am missing.

with the line
$mobile_ad_top .= fread($google_ad_handle, 8192);

it's already there so don't worry about it.

the ads don't show up right away. check on it once in a while and see if it starts showing soon.

wacnstac
11-16-2009, 05:14 PM
Ok, this is what I ended up with:


/*** Change to your mobile style id ***/
if ($styleid==104){
/*** 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']='6003111928';
$GLOBALS['google']['client']='pub-6979534990239193';
$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();

$find='"';
$replace="'";
$googlemad = '';
google_set_muid();

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

$vbulletin->templatecache['ad_showthread_beforeqr'] = str_replace($find,$replace,$googlemad);

}


and in my templates ad_footer_start, ad_navbar_below

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


But still no cigar. Don't know what I am doing wrong.

testbot
11-16-2009, 05:55 PM
i'm not sure why you had to change anything except for what's marked to change in the code. either way, mine didn't start showing until the next day for some reason.

gluck.

Byggahus
11-21-2009, 01:08 PM
Thanks for a great mobile skin dartho! But everything becomes tiny when viewing it from an iPhone. How can I make the text size in the forum in a more readable size (without needing to resize it with two fingers myself)? http://mobil.byggahus.se

Byggahus
11-21-2009, 07:13 PM
...while the text wraps better and is more readable on my sons small Sony Ericsson W890i mobile screen.

dartho
11-21-2009, 09:28 PM
try editing the wireless.css file, and remove all the "size" declarations

doing a search and replace on "size:1;" for NULL (ie. nothing) should do that for you pretty easily

Byggahus
11-22-2009, 10:23 AM
I tried that. Replaced "size:1;" with NULL at 22 places in wireless.css. It didn't work. The result is the same both in the iPhone (and on my sons W890i). Any other clues?

The problem seems to be that Safari in the iPhone thinks that the width of the page is twice the width of the longest named forum.

halkum
11-22-2009, 07:59 PM
Desperately need this and different domain, different style for vb4 when it goes gold. Can't check my forums from my phone at work now.

:( Sadness.

dartho
11-22-2009, 08:55 PM
I tried that. Replaced "size:1;" with NULL at 22 places in wireless.css. It didn't work. The result is the same both in the iPhone (and on my sons W890i). Any other clues?

The problem seems to be that Safari in the iPhone thinks that the width of the page is twice the width of the longest named forum.
Try editing the headinclude template and adding the following to the top:

<meta name="viewport" content="width=device-width,initial-scale=1.0" />

Desperately need this and different domain, different style for vb4 when it goes gold. Can't check my forums from my phone at work now.

:( Sadness.

This will be updated to work with vb4 - at least the Forum part of it will be. DDDS should be too.

halkum
11-22-2009, 09:23 PM
Try editing the headinclude template and adding the following to the top:

<meta name="viewport" content="width=device-width,initial-scale=1.0" />



This will be updated to work with vb4 - at least the Forum part of it will be. DDDS should be too.

I love you.

Seriously, I work 16 hour days and like 14 of them I have no internet access other then my phone which is a Samsung Messenger. It's not that fancy so this was the perfect skin/framework to keep up with my stuff.

Byggahus
11-23-2009, 06:12 AM
Thank you dartho, now the style works fine on an iPhone.

dartho
11-24-2009, 11:08 AM
Ignoring the arthritis and carpal tunnel flare ups, I've spent the last couple days running through the forum templates and updating to VB4.

I will release here as soon as one or two others have given it a quick once over.

Anyone here got a test site running want to give it a run? reply here

robdawg
11-24-2009, 11:14 PM
Anyone able to get this to work with the new vbAdvanced? I am having problems getting this to work on in a subdirectory (/forum/).

Some of the adv_portal template edits do not seem to be helping.

Any help would be greatly appreciated.

Byggahus
11-26-2009, 11:40 AM
We will most likely wait with vb4 until release 4.1 so I can unfortunately not test your vb4 update until later on.

dartho
11-26-2009, 11:46 AM
thanks, byggahus. I got a few testers, and am moving ahead. Ready to release now pretty much!

Byggahus
11-27-2009, 08:50 AM
You probably have full control. But anyway - don't forget the <meta name="viewport" content="width=device-width,initial-scale=1.0" />-fix (or something similar) in the header template. ;)

Biker_GA
11-27-2009, 10:59 AM
Ignoring the arthritis and carpal tunnel flare ups, I've spent the last couple days running through the forum templates and updating to VB4.

I will release here as soon as one or two others have given it a quick once over.

Anyone here got a test site running want to give it a run? reply here

I have a test bed set up... Gimme! :D

dartho
11-27-2009, 08:54 PM
I just put it up today - https://vborg.vbsupport.ru/showthread.php?t=228986

Biker_GA
11-28-2009, 05:57 AM
Sweet! Many thanks!