vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=237)
-   -   Lightweight Style for VB3.8.7 iPhone/Mobile/Cell/PDA (https://vborg.vbsupport.ru/showthread.php?t=263822)

jskoh 09-08-2011 01:37 PM

hi, how to change the colour of the category strip? i try Changing it but it doesnt work.

dartho 09-08-2011 04:43 PM

Edit the CSS file

Clutch 09-15-2011 02:37 PM

Quote:

Originally Posted by Max Taxable (Post 2209383)
AdminCP>Styles and Templates>Style Manager. Then uncheck the box for this style and click "Save display Order."

This will keep the style from being selectable by users but the automatic detection script will still be able to use it.

This does not seem to work for me. The script (style_fetch hook on plugin) will only set the style if it's an active style. I'm looking for a workaround now.

I know it's been a few months, but I'm just now getting back to implementing this after a lot of customization. Thanks dartho.

dartho 09-15-2011 09:26 PM

You can choose not to allow users to change styles in vBulletin settings, should word then (this is how I use it)

mastersat 09-16-2011 10:22 PM

Will try it
thank you

infnity8x3 09-24-2011 11:46 AM

I want to try this style out so bad but its conflicting with mods. Mostly cyb_chatbox, cyb_paypall_donate, and the mod that adds little icons to your userCP.

I wish there was a proper way to just disable all the hacks for a specific style. Would make this so easy.

As of now I read an article posted here that says if the hack has an on off switch the it can be controlled with some style fetch template but the userCP icon thingy has no one off switch.

BirdOPrey5 09-24-2011 03:54 PM

Pretty much any mod can be disabled for a specific style or styles if you edit the plugins for the mod. You can't go wrong editing every single plugin for a mod but sometimes you don't need to edit every single one...

Basically you need to wrap all of the plugin in this code:

PHP Code:

if (!in_array($vbulletin->userinfo['styleid'], array(2,3,4)))
{
 
  
//All Original Code Here
 


Where 2, 3, and 4 are the styleids you want to disable the mod in. You can add ore remove as many as you want, just separate each with a comma. If there's only 1 you don't need the comma.

Only thing to look out for, if in the plugin there is the line:
Code:

global $vbulletin;
Then you have to put that line above the conditional, like so:

PHP Code:

global $vbulletin;

if (!
in_array($vbulletin->userinfo['styleid'], array(2,3,4)))
{
 
  
//All Original Code Here
 



cstreater 09-24-2011 11:38 PM

Great style! However, I don't see a report post button or any moderator functionality. Did I do something correct during the install? It seems like I did everything the instructions said to.

infnity8x3 09-26-2011 01:34 AM

Thank you for the response and i plan to use your code in the future for the time being i just manually placed the mods in the templates (turned off auto placement) and just removed the one that was just fluff.

Now my problem is switching back and forth between styles. Ok the quick style picker i do not like. Because if some one is in say the arcade they switch to this style and now there page is broken. I know they could do it any way with typing the style into the url but most members wouldn't even think about that. I can comment the style picker out of the template.

But for what ever reason my userCP change style option does not work. Turn off all mods globally with config file it works. Disable all mods in admin control panel it doesn't work so i have no idea whats conflicting I guess I have to edit that out of the template to.

Any easier way of doing this other then editing them out of the template?

Finally (I know dartho has a mod like to this but... Is there any way to auto detect mobile browser and instead off assigning a style, open a notice saying eg we noticed you have mobile would you like to try our mobile version blah blah with link.

Sorry for the wall of text I'm just excited about this project.

dartho 09-26-2011 11:50 AM

@infinity8x3 Check https://vborg.vbsupport.ru/showthread.php?t=270928

infnity8x3 09-28-2011 06:11 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2200239)
If anyone is running AME 2.5 (automatic media embedder) I have figured out how to have embedded videos made smaller in the mobile style so they can still be watched inside posts.

In the file ame_bbcode.php that came with the AME mod (in your /includes directory)

find:
PHP Code:

    $dimensions         =  "_$ameinfo[zone]";
    
$ameinfo['width']     = $vbulletin->options['automediaembed_width' $dimensions];
    
$ameinfo['height']     = $vbulletin->options['automediaembed_height' $dimensions]; 

and below it Add:
PHP Code:

if ($vbulletin->userinfo['styleid'] == 38)
{
  
$ameinfo['height'] = round($ameinfo['height']/2.3);
  
$ameinfo['width']  = round($ameinfo['width']/2.3);


Change 38 to the styleid of your mobile style.

Yo can set absolute heights and widths if you prefer, I am calculating it as a fraction of my set values which words well for me. You can experiment with the exact numbers to find what works best for you.

How can I do this with out using the styleid conditional? See my mobile site is on mobile.example.com so its a dirrfent url than just example.com. And my members style id user info never changes from 0 / default. Any way to compare the url and if .mobile exists in it then downsize AME videos.

And finally I want to thank all that helped with getting a mobile version of my forum up and ready. I no longer feel left out with vb4 getting all the mobile love.

BirdOPrey5 09-28-2011 06:29 PM

$_SERVER['HTTP_HOST'] should hold the value mobile.example.com when on your mobile theme, you can test for that...

more info: http://roshanbh.com.np/2008/05/usefu...ables-php.html

PHP Code:

if ($_SERVER['HTTP_HOST'] == "mobile.example.com"

  
$ameinfo['height'] = round($ameinfo['height']/2.3); 
  
$ameinfo['width']  = round($ameinfo['width']/2.3); 



infnity8x3 09-28-2011 07:16 PM

That worked fantastically. Thanks. Now I just gotta Find that post I seen earlier about how to stop search engines from indexing the mobile url and penalizing for double content.

This is huge Thanks again guys :D

Got it
PHP Code:

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"


infnity8x3 09-29-2011 06:08 PM

Dartho, members love the style. The only bug that I have found is it doesn't handle posts under the 10 char limit very well.

Under default vb style a popup Displays saying.
Quote:

The message you have entered is too short. Please lengthen your message to at least 10 characters.
But under the mobile style nothing happens leaving the user to believe its broken. The post doesn't go threw and no indication as to why not.

Not trying to sound nit picky just pointing that out.

CrashPush 10-21-2011 01:41 PM

Most of my sub-forums are not showing anyone know why that could be happening?

bestmilan 10-27-2011 03:23 PM

Hi, Dartho!

Would it be possible to somehow edit the existing script to enable the "Posted via Mobile Device" feature?

cronjob78 10-28-2011 05:20 PM

Dartho,

This is a great feature - well done. Happy to donate once I get this sorted:

I want to give the style a red theme. Simple enough usually: just go to admincp -> style manager ->lightweight -> main css

and then change all the colours. Ive put red in everywhere and saved it but its still all blue when I look at the forums. Ive also replaced table widths with huge and tiny values to see if the stylesheet is updating but no movement. Is changing the colours possible?

Edit: Also, only admins seem to be able to use the style in a normal PC browser with styleid=3 (in my case 'lightweight').
I should note that Im running the vBulletin API style albeit it is currently disabled.

dartho 10-28-2011 09:22 PM

Quote:

Is changing the colours possible?
You need to edit the lightweigth.css.php file for CSS changes.

Quote:

Also, only admins seem to be able to use the style in a normal PC browser with styleid=3 (in my case 'lightweight').
If only admins can use the style, that means you have not made it user selectable.

cronjob78 10-28-2011 11:34 PM

Quote:

Originally Posted by dartho (Post 2262448)
You need to edit the lightweigth.css.php file for CSS changes.


If only admins can use the style, that means you have not made it user selectable.

thanks for the quick reply. how do u make it user selectable?

dartho 10-28-2011 11:59 PM

have a little tick in teh box next to it in Style Manager where it lists the styles installed

bestmilan 10-29-2011 02:52 PM

Quote:

Originally Posted by infnity8x3 (Post 2251023)
That worked fantastically. Thanks. Now I just gotta Find that post I seen earlier about how to stop search engines from indexing the mobile url and penalizing for double content.

This is huge Thanks again guys :D

Got it
PHP Code:

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"


Where exactly I should insert it? Thanks.

BirdOPrey5 10-29-2011 06:16 PM

Your "headinclude" template for this style.

as7apcool 11-02-2011 01:43 AM

nice work for mobile .. how to make it work for mobile automatically

blind-eddie 11-02-2011 12:23 PM

Quote:

Originally Posted by as7apcool (Post 2263647)
nice work for mobile .. how to make it work for mobile automatically

https://vborg.vbsupport.ru/showthread.php?t=173239
I use this with 3.8.4

MichaelDenisov 11-20-2011 06:04 PM

dartho

Thanks for your work! It's great)

_Ryfe_ 11-22-2011 03:09 AM

I would like to add borders around thread listings. Can anyone please tell me how to accomplish this? It would be highly appreciated.

SamirDarji 12-06-2011 08:26 PM

Posting to remind myself to look at this.

imported_silkroad 12-30-2011 07:27 AM

Hey dartho!

Thanks for this! We are currently testing at The UNIX and Linux Forums. We dropped the vB Mobile suite app and may just go with this skin. Thanks again!

BBCODE tags are critical for our site; but we can't get the scroll bar (horizontal scrolling across bottom) to work on mobile phones (it works find on a desktop).

Any idea?

imported_silkroad 12-30-2011 07:58 AM

Ah Ha!

I see that scrollbars are not currently supported on native iPhone and Android browsers!

The suggested "work arounds" are to use jQuery, for example see:

http://www.baijs.nl/tinyscrollbar/

djjeffa 01-01-2012 03:01 PM

awsome template but I have a few questions. my site is located @ .com/vb but if you go to .com it goes to the vBadvanced CMPS with my default style is there a fix or work around? i wish there was a way to force anyone that went to .com to redirect to .com/vb.
also is there a way to remove the default style tab becuse It wont work with your mobile detect app unless there is a work around for that too
Thankyou

PakStarTv.com 01-01-2012 06:08 PM

Can we change the yellow page color?

dartho 01-02-2012 09:50 PM

@djjeffa - edit your adv_portal temaplte (in the vBadvanced group) for this style and replace it's contents with

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" xmlns="http://www.w3.org/1999/xhtml">
<head>
<if condition="$pages['name'] == 'home'">
        <meta http-equiv="Cache-Control" content="no-cache" />
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="0" />
</if>

<title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if></title>

$headinclude
<meta http-equiv="refresh" content="3; url=http://yoursite.com/vb/index.php">
</head>
<body>

$header

$navbar
<p>
Portal disabled in mobile view, redirecting to forums.  Please click <a href="vb/index.php">here</a> if you do not get redirected automatically
</p>
$footer

</body>
</html>

as for the device detection - try the info in post #56: https://vborg.vbsupport.ru/showthrea...17#post2206917 and let us know how it goes with you.

@pakstartv - edit the lightweight.css.php file

djjeffa 01-04-2012 12:39 AM

Thanks Dartho both worked! it lags a bit redirecting but i dont think there is any better work around. if anyone wants to check it out go to www.djjeffa.com

zyiad 01-04-2012 11:49 AM

thanks

topanet 01-20-2012 02:45 AM

is it works with VB 3.6.8??
really curious using this new template

dartho 01-20-2012 03:08 AM

maybe - i tested on 3.7 ok

topanet 01-20-2012 03:14 AM

ok, i will tested soon as possible

anyway, how to add some marking (ex. image "mobile" on right side text after posting) when member post a message in forum using mobile style?

try to look around, but still not get any result yet

TGAREED 01-20-2012 11:14 AM

nice ...

topanet 01-20-2012 01:58 PM

i think its not working on VB 3.6.8
just now tested on my board, when trying to upload the XML file, there are error message "Invalid File Specified"

anyway, i really like the skin of the mobile style in this version, can i applied it into your mobile style for 3.6.10??

blackberry 01-20-2012 07:06 PM

Is there any way I can add more moderation options like Move, & Close thread?


All times are GMT. The time now is 12:49 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.01474 seconds
  • Memory Usage 1,847KB
  • 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
  • (7)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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