vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=247)
-   -   Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android) (https://vborg.vbsupport.ru/showthread.php?t=249277)

reki 09-30-2010 04:46 AM

Hi Dartho,

This looks like a great mod, but I keep getting a "Invalid File Specified" message when I try to import the xml, both from my hard drive and from the includes/xml folder on the server (where I've uploaded the file).

Any ideas?

dartho 09-30-2010 09:26 AM

Are you using Product Manager, or Style Manager? (hint: use the latter)

nike.stars 09-30-2010 09:37 AM

@dartho
oh my, that's it, after adding it to whitelist it works perfectly, thanks again!

dartho 09-30-2010 10:25 AM

excellent.

reki 09-30-2010 09:12 PM

duh.. how silly am I? Thanks dartho :p

Taurus MFF 10-02-2010 04:23 PM

this style is working great along with your Lightweight Style options and Mobile Auto-Detection product on 4.0.7, all three marked installed, thank you!

the only thing I have not gotten to work is the mobilelogo. I have confirmed the location of the file, file name and file type. it is less than 40px high. the mobilelogo does not display on my Android nor on my pc when I select the style. any suggestions?

8thos 10-08-2010 03:33 AM

How do you add avatars?

dartho 10-08-2010 07:24 AM

Edit the template which corresponds to the section you wish to add an avatar to.

matahari77 10-09-2010 08:17 PM

Quote:

Originally Posted by DAMINK (Post 2089232)
I notice when you choose the light theme you cant change back?
That sucks.
Guess i have to hack the theme a bit.
Still i like it. Good for my mobile.

Good to know ;)

fly 10-09-2010 08:22 PM

Quote:

Originally Posted by matahari77 (Post 2108505)
Good to know ;)

You can change it back, you just have to enable the button in the Control Panel...

edit: Its even shown in dartho's screenshot

SemperFideles 10-10-2010 06:49 PM

Just a suggestion. Your instructions are a bit confusing because you state that the user is to upload the contents of the zip file to forum root. In actuality, the contents of the zip file is another folder. Recommend you just zip the contents of that folder and provide it as a download or put all the files that need to be uploaded into a folder called "upload" and the style xml into a folder called "do not upload".

Great style.

8thos 10-11-2010 06:27 PM

Quote:

Originally Posted by dartho (Post 2108023)
Edit the template which corresponds to the section you wish to add an avatar to.

Would it be in postbit_legacy template?

dartho 10-11-2010 11:06 PM

Quote:

Originally Posted by Octavius. (Post 2109168)
Would it be in postbit_legacy template?

Certiainly postbit and/or postbit_legacy if it is the postbit you want to show avatars in. both postbit templates are the same, so if you make changes to one, you should copy/paste into the other.

Cadellin 10-12-2010 06:09 PM

Great work!

Two feature requests:
1. Is there a way of enabling signatures for all posts on the theme?
2. Redirecting the CMS pages to the forum instead.

Crimm 10-13-2010 07:53 PM

I had troubles with vbadvanced CMPS as well. I played with work arounds, but the only one that has been fully successful so far has been to go into the Integration Output plugin for vBadvanced (Note: This is the plugin that is breaking the style - Disable it and the style works) and take Dartho's mobile detection code:

PHP Code:

if ($vbulletin->options['mobile_skin_enabled'] == 1)   
      {  
      
$mobilebrowsers = array(  
        
"WebTV",  
        
"AvantGo",  
        
"Blazer",  
        
"PalmOS",  
        
"lynx",  
        
"Go.Web",  
        
"Elaine",  
        
"ProxiNet",  
        
"ChaiFarer",  
        
"Digital Paths",  
        
"UP.Browser",  
        
"Mazingo",  
        
"iPhone",  
        
"iPod",  
        
"Mobile",  
        
"T68",  
        
"Syncalot",  
        
"Danger",  
        
"Symbian",  
        
"Symbian OS",  
        
"SymbianOS",  
        
"Maemo",  
        
"Nokia",  
        
"Xiino",  
        
"AU-MIC",  
        
"EPOC",  
        
"Wireless",  
        
"Handheld",  
        
"Smartphone",  
        
"SAMSUNG",  
        
"J2ME",  
        
"MIDP",  
        
"MIDP-2.0",  
        
"320x240",  
        
"240x320",  
        
"Blackberry8700",  
        
"Opera Mini",  
        
"NetFront",  
        
"BlackBerry",  
        
"PSP"  
        
);  
   
        if(
preg_match('/('.implode('|'$mobilebrowsers).')/i'$_SERVER['HTTP_USER_AGENT'], $match))  
        {  
          
$mobile=1;  

        }  
        elseif (
strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml'))  
        {  
          
$mobile=1;  
        }  
        elseif (
strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml'))  
        {  
          
$mobile=1;  
        }  

if (
$mobile != 1) { 

Add that before the Integration Output plugin

The add a

PHP Code:



At the end.

I take no responsibility to the results of that. I know it's dirty, but it's working for now :P

Just thought I'd share, until a permanent fix comes out :)

You can also wrap the plugin in a if statement to check the style CHOSEN:

PHP Code:

if ($vbulletin->userinfo['styleid'] != MOBILE STYLE ID) { 

Don't forget to close your tag. Note: It only works if they CHOOSE the style. Therefore I have both these if statements in there in case a PC user chooses the lightweight style.

Great work as always Dartho. Again, just sharing knowledge... Backup and test any changes. :)

8thos 10-13-2010 10:38 PM

Has anyone been able to add avatars in their mobile style? I've tried and it didn't work. I am using vb4.07.

kawe 10-14-2010 04:33 PM

Navigation Number Page isn't show anymore on SHOWTHREAD on SHOWPOST

zohar1979 10-15-2010 08:05 PM

I put all this stuff in my forum root, but it doesn't import correctly. Does it have to be in a folder in the Styles folder of my vbulletin FTP?

RealLifeHacks 10-16-2010 09:10 AM

1 Attachment(s)
I need help :( I loved this skin right from the moment i saw it the first time so I installed it (including the "options" addon and the "auto detection". both work just fine btw) but the style overrode my 2 original styles. (atleast i looks like it did)

this is how it looked before: https://vborg.vbsupport.ru/attachmen...1&d=1287223292

and this is how it looks now: http://reallifehacks.com/forum.php
https://vborg.vbsupport.ru/attachmen...1&d=1287223941

i've read that vbadvaned causes problems so i disabled it but it didn't help at all...

also the page doesn't reload after changing the skin with the quick chooser :( i would be pritty upset if i had to do a rollback on my server (i already uninstalled the skin but the result was the same. my styles are messed up)

i'm running vb 4.0.7 with the following addons installed:

Admin Log In As User 3.21
Footer Link 1
LAM - Quote Img to URL 4.0.6
Lightweight Style Options 1.0.0
Mobile Device Detection 1.0.1
Post Thank You Hack 7.82
SevenSkins Image Resizer 1.0.1
Tabs en vBulletin 4.x 2.0.3
vBadvanced CMPS 4.0.1
vBSEO 3.5.2
vBSEO :: Sitemap Generator 2.6 Beta 2

can someone pls help me out and tell me what i did wrong (i installed it as i was told in the instructions in the first post)

dartho 10-16-2010 10:35 AM

It soudns like you merged it into your master or default style. You can fix this by uploading tools.php from the vbulletin install package to your admincp and restore your master style (very first setting)

RealLifeHacks 10-16-2010 12:50 PM

well now i got it working. in case anyone has the same problem: create a new style. then upload this style and install it. while installing choose "merge with other skin" (im not sure how its called in the english version. my acp is in german...) select your newly created skin. done :D

thx to dartho for the tip with the merged skins.

next question: has anybody a good idea how to deal with google adsense? the banners are much to big now :P

dartho 10-17-2010 09:47 AM

look at google adsense mobile. I posted up code in thr 3.8 version of a mobile skin somewhere on how to integrate it, but I'd be suprised if it hasn't changed and is much easier since then

nike.stars 10-18-2010 10:32 AM

@dartho
could you use the same paging system like vb standard styles in thread view so that user can choose first/last page instead of navigating it one by one?

dartho 10-18-2010 09:49 PM

Check post 103 - https://vborg.vbsupport.ru/showpost....&postcount=103

nike.stars 10-19-2010 04:01 AM

Quote:

Originally Posted by dartho (Post 2111476)

that's great, probably you should include it on next revision or attach this information on first post :)

robbiefritz 10-19-2010 10:55 PM

I installed the xml it proceeded to merge templates and when complete, did not show a new style. Create a new style was selected at the time. Any ideas?

dartho 10-20-2010 11:33 AM

@nike - yeah, it's there waiting to be included, just a busy time of year for me at the moment

@robbie - Dunno - try again?

Alex@Mk3OC 10-24-2010 10:45 PM

Having a problem with this style on my vb 4.0.8 test installation, when ever I try and post a thread or reply to a thread it gives me the following DB error:

Code:

Invalid SQL:
INSERT INTO post
        (showsignature, allowsmilie, htmlstate, username, userid, title, pagetext, iconid, visible, parentid, threadid, dbtech_thanks_enablethanks, dbtech_thanks_requirethanks_content, dbtech_thanks_requirethanks_attach, dbtech_thanks_enablelike, dbtech_thanks_requirelike_content, dbtech_thanks_requirelike_attach, dbtech_thanks_enabledislike, ua, dateline, ipaddress, attach)
VALUES
        (0, 1, 'on_nl2br', 'Alex', 256, '', '[QUOTE=Alex;603550]Justin has a medal :o[/Q UOTE]\r\n \r\nTesting quoted replies on the smartphone style', 0, 1, 603550, 43271, '1', '0', '0', '1', '0', '0', '1', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7', 1287962753, '194.72.102.165', 0);

MySQL Error  : Unknown column 'ua' in 'field list'
Error Number  : 1054
Request Date  : Monday, October 25th 2010 @ 12:25:53 AM
Error Date    : Monday, October 25th 2010 @ 12:25:53 AM
Script        : http://xxxxxx.com/forum/newreply.php
Referrer      : http://xxxxxx.com/forum/newreply.php?do=newreply&p=603550
IP Address    : xxx.xxx.xxx.xxx
Username      : Alex
Classname    : vB_Database
MySQL Version : 5.0.45


dartho 10-25-2010 01:07 AM

That wouldn't be this style causing that, but it looks like it is related to the Options add-on that goes with this style. Try uninstalling, and then re-installing "Lightweight Style Options"

Also, read the "Notes" section of the first post in that thread ...

NobbyTSL 10-25-2010 02:03 PM

Dartho, I've been wanting to install your mobile skin on my forum for quite a while (I keep completely forgetting to post why I can't in here whenever I try)

I download the skin & install it all fine but I don't like how you can't select to change the skin once you're on the mobile skin.

I believe this problem can be solved by using the Lightweight Style Options mod.

The problem there is whenever I download it I get the following problem. (It saves to my desktop looking like a .rar file but when I click it to open I get this)

http://img255.imageshack.us/img255/7...ipboard01s.png

What am I doing wrong?

OldSchoolDSL 10-26-2010 02:29 AM

Working flawlessly on 4.0.8
Thank you :)

DevilZone 10-26-2010 04:28 PM

Please help me
i've install the mod . but it can not run nomally
please help , dartho

dartho 10-26-2010 09:03 PM

1 Attachment(s)
@ DevilZone,
Looks like you have an add-on/plugin installed which is changing templates. Work out which one (maybe disable each add-on one by one) and then I might be able to help

@NoddyTSL
Try the one attached to this post - I just downloaded it, zipped it and attached here.

DevilZone 10-27-2010 02:51 AM

Thanks for your help man :)

DevilZone 10-27-2010 06:15 AM

Thanks Dartho so much :)

At new version . please fix and update some style man :)
avatar , user colour , thanks button, member info ...
user page , blog and best is update for cms . okay ?

Thanks and best regards

dartho 10-27-2010 07:52 AM

vBulletin will have a version soon which should support blogs and CMS, so there is no development on this until they release theirs.

As for the other suggestions - you can easily add most of those !

DevilZone 10-27-2010 08:38 AM

i'm using the suite version vbulletin , so i have blog and cms in there

my mobile style isn't support blog and cms , so i wish you will fix for theme

thanks

NobbyTSL 10-27-2010 09:41 AM

Quote:

Originally Posted by dartho (Post 2114626)
@NoddyTSL
Try the one attached to this post - I just downloaded it, zipped it and attached here.

Thanks mate, that worked fine.

Much appriciated. :up:

DevilZone 10-28-2010 04:02 AM

PHP Code:

**Install and configure "LightWeight Style Options" 

i've done , but it does not detect mobile . :-<

thieu.bocap 10-28-2010 09:05 AM

Can't modified threadbit template,

Error Message:
Code:

Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3362
Please, help me!


All times are GMT. The time now is 02:21 PM.

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

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

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

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