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)

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)


All times are GMT. The time now is 09:06 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.01544 seconds
  • Memory Usage 1,767KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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