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)

DaffyDuck 01-09-2011 07:54 PM

Quote:

Originally Posted by dartho (Post 2146378)
works fine under 4.1pl2. Sounds like you either haven't uploaded the CSS.PHP file to your forum root, or perhaps your server doesn;t support php short tags, in which case you should download the alternative CSS.PHP file available in the first post (or first reply to this thread as the case may be)

I did upload the file, but you are probably correct with the short tags reference -- it sees the css file, but doesn't seem to react to all of it. Let me try that -- thanks for your quick response.

EDIT: Thanks, that did it!

wh1t3dr3am 01-10-2011 03:18 AM

How to change style from mobile to default style ?Any advice ? :D

dartho 01-10-2011 10:44 AM

Quote:

Originally Posted by wh1t3dr3am (Post 2146816)
How to change style from mobile to default style ?Any advice ? :D

as per install instructions:

Quote:

**Install and configure "LightWeight Style Options"
@BadgerDog - I will get back to you soon

Mark Hewitt 01-15-2011 02:19 PM

Sorry if this is an obvious question but I've installed it and it overwrites my default style! I've had to revert to a backup copy of the database to get rid of it! What have I done wrong?

Mark Hewitt 01-15-2011 02:45 PM

PS I have installed Lightweight sytle options - I think! But then it still only gives me the mobile style I cannot get back to the default style - more database restores and lost posts :( Nightmare.

dartho 01-15-2011 10:07 PM

sounds like you merged it into your default style - this now has happened to about 3 people that I know of and I can see no reason why. Perhaps it's a bug in vBulletin? Do you have debug mode enabled?

Make sure you add it as a child style. Someone else said they created a new style with no parent, and then merged this one into that.

You don;t need to do DB restores to fix either, in teh vBulletin download package there is a tools.php file - upload it to admincp, open in browser and rebuild master style. That will fix. In the mean time I'll report as a bug ...

BadgerDog 01-15-2011 10:13 PM

Quote:

Originally Posted by dartho (Post 2146949)
@BadgerDog - I will get back to you soon

Roger that ... :up:

Regards,
Doug

fly 01-15-2011 10:18 PM

Quote:

Originally Posted by dartho (Post 2149718)
sounds like you merged it into your default style - this now has happened to about 3 people that I know of and I can see no reason why. Perhaps it's a bug in vBulletin? Do you have debug mode enabled?

Make sure you add it as a child style. Someone else said they created a new style with no parent, and then merged this one into that.

You don;t need to do DB restores to fix either, in teh vBulletin download package there is a tools.php file - upload it to admincp, open in browser and rebuild master style. That will fix. In the mean time I'll report as a bug ...

I've done it before, and it wasn't a bug. ID10T error

Mark Hewitt 01-16-2011 09:44 AM

Tried it again but adding it as a child style, same result it seems to overwrite *all* my styles, if I do index.php?styleid=XX all I ever get is the mobile style!

Here's what I'm doing - vbulletin 4.1.1

Download / Upload Styles
Import Style XML File:
Import the XML from your server: mobile.xml (renamed by me)
Merge into style: (Create new style)
Ignore style version: Yes
Title for uploaded style: Mobile
Parent Style: Default Style
Display Order: 10
Allow user selection: Yes

It then goes through the upload process, which appears to be sucessful, but then I just get the mobile style and nothing else!

dartho 01-16-2011 12:15 PM

give it a go with no parent (which would make teh Master style the parent which is the default style unmodified)

Mark Hewitt 01-17-2011 06:15 AM

Quote:

Originally Posted by dartho (Post 2149978)
give it a go with no parent (which would make teh Master style the parent which is the default style unmodified)

I've got it working now. The only difference to the above was that I uploaded the style from my PC rather then specifying a file on the server. Shouldn't make any difference but it seemed to do so in this case!

dartho 01-17-2011 08:29 AM

Good to hear it's now going as it should ...

dartho 01-17-2011 11:08 AM

@BadgerDog -

First - if you have the Lightweight STyule Options add-on installed, try adding this:
$vbulletin->options['dt_separate_sticky_normal_active']=0;
$vbulletin->options['dt_separate_sticky_normal_remove']=0;

to the code to disable add-ons section.

If that doesn't work, try editing the Separate Sticky and Normal Threads plugin for for seperate sticky/normal threads and wrap it in

if (STYLEID!=n){

existing pluginin code

}

where n is the lightweight style ID

As for teh Ads stuff, try deleting teh entire contents of the forumhome_ads_code template in the lightweight style

dartho 01-17-2011 11:25 AM

Quote:

Originally Posted by Mark Hewitt (Post 2150339)
I've got it working now. The only difference to the above was that I uploaded the style from my PC rather then specifying a file on the server. Shouldn't make any difference but it seemed to do so in this case!

Mark - I don't think it's you. Same just happened on my test site :erm: Uploading from PC = fine. Installing from file on server = messed_up :mad:

using tools.php didn;t help either!!

dhemitz 01-17-2011 01:21 PM

I'm install in vbulletin 4.1.1

It's work...!
Code:

http://m.lareosing.org
Big thanks @dartho......

BadgerDog 01-17-2011 02:02 PM

1 Attachment(s)
Quote:

Originally Posted by dartho (Post 2150407)
@BadgerDog -

First - if you have the Lightweight STyule Options add-on installed, try adding this:
$vbulletin->options['dt_separate_sticky_normal_active']=0;
$vbulletin->options['dt_separate_sticky_normal_remove']=0;

to the code to disable add-ons section.

If that doesn't work, try editing the Separate Sticky and Normal Threads plugin for for seperate sticky/normal threads and wrap it in

if (STYLEID!=n){

existing pluginin code

}

where n is the lightweight style ID

As for teh Ads stuff, try deleting teh entire contents of the forumhome_ads_code template in the lightweight style

Thanks very much Dartho ? :)

For the Separate Sticky and Normal Threads mod that some people here may be using, I didn't bother trying your fix below as I didn't quite understand where to put it, so I don't know whether it would work or not ?

$vbulletin->options['dt_separate_sticky_normal_active']=0;
$vbulletin->options['dt_separate_sticky_normal_remove']=0;

========================================

I DID DO this:

Quote:

if (STYLEID!=n){

existing pluginin code

}
? adding it to these plugins, wrapping both plugins it your code:

Quote:

Product : Separate Sticky and Normal Threads

Separate Sticky and Normal Threads parse_templates
Separate Sticky and Normal Threads threadbit_display
It worked PERFECT !!! :up:


For the ads, I did locate the forumhome_ads_code template in your lightweight style and emptied it so it was blank.

It worked PERFECT as well !! :up:

See attached pic as to how a forum with ads and stickies now appears. NO graphic ads in lightweight style now and the stickies seem fine now, yet the ads and stickies are also fine in the main default site graphics style.

Thank you very much !!!

I have sent a second PayPal donation for you help in solving these integration issues with your lightweight style ? :up:

Regards,
Doug

dartho 01-17-2011 10:18 PM

Quote:

Originally Posted by Mark Hewitt (Post 2150339)
I've got it working now. The only difference to the above was that I uploaded the style from my PC rather then specifying a file on the server. Shouldn't make any difference but it seemed to do so in this case!

It wasn't you Mark - it is a confirmed bug in vbuilletin (which they consider "trivial") that has been there since 4.0 http://tracker.vbulletin.com/browse/VBIV-3801


@Badgerdog - much appreciated :up:

PSC001 01-19-2011 03:51 AM

I just installed this style and it completely broke my forum. All my forums are completely messed up now. I tried deleting the mobile style I imported in Style Manager, but that didn't help. I don't know what I did wrong, but can someone please help?

PSC001 01-19-2011 04:37 AM

I added the mobile style via Style Manager in vBulletin, but it destroyed everything. Everything is messed up horribly. All my styling was gone, everything was stripped down and all out of wack.

I tried to re-import my old style but that reverted everything to the standard vbulletin styling.

Worse, when I go to certain subforums now, I get a blank screen, sometimes even when I try my home page.

I deleted the mobile style and deleted the css file from my root forum directory but neither changed anything.

Looking at my old main style in Style Manager, everything is in red meaning it's been overwritten.

I have no idea what do here.

PSC001 01-19-2011 05:08 AM

Figured out that the blank screen was being caused by one of the child styles I had was royally messed up. I switched that forum to a different style that seemed to be working and it's coming up now. It's just that all the styling I had done previously is gone. I've started fixing a couple things manually to create some semblance of normalcy, but it's still a giant mess.

baghdad4ever 01-19-2011 05:08 PM

Quote:

Originally Posted by PSC001 (Post 2151332)
Figured out that the blank screen was being caused by one of the child styles I had was royally messed up. I switched that forum to a different style that seemed to be working and it's coming up now. It's just that all the styling I had done previously is gone. I've started fixing a couple things manually to create some semblance of normalcy, but it's still a giant mess.

i think it is vbulletin bug see this

http://tracker.vbulletin.com/browse/VBIV-8302

PSC001 01-19-2011 05:32 PM

Thanks. Looks like that's what happened. Unfortunately, I'm not sure I can follow their fix. Since what I originally did completely broke everything, I tried to re-import the Master style so I could at least read the board. Unfortunately, it seems doing that over-wrote all my custom styling and I have no idea how to get it back.

anupam_luv 01-21-2011 04:00 AM

do we need 2 rename lightweight.css.php back to lightweight.css after install???????

dartho 01-21-2011 06:02 AM

no - the php file generates the CSS output. Have a look inside and you'll see what I mean.

@PSC001 - sorry to hear about the grief. Can't believe this is still not fixed after a year ...

NNJJ 01-21-2011 11:02 AM

its not working for me :(

dartho 01-21-2011 08:40 PM

Your site looks OK to me?

BadgerDog 01-22-2011 03:23 PM

Is there some way of having external pics that people refer to using the IMG code, be shown smaller so they don't overflow the right side of the screen causing the display to have to be scrolled sideways?

We use SevenSkins Image Resizer which works for all our other regular PC screen skins, but doesn't seem to be present in this Lightweight Style.

Thanks for any feedback .. :)

Regards,
Doug

DaffyDuck 01-23-2011 03:09 PM

For some reason the mobilelogo.png does not display in the header, and apparently there is no reference to $Logo anywhere in the code, as it is. It is specified in the definitions, but beyond there, it's not in the page generation code.

How do I place the logo in the header?

dartho 01-23-2011 10:43 PM

@Daffy - The logo is defined in the CSS so you can change there or overwrite the existing image file "images/misc/mobilelogo.png"

If you can;t see it being rendered, it could be that your brower doesn't support it, or if you have the options addon for this style you have enetered in text for the header which replaces the logo.

@BadgerDog - could you link me to a page where it's not working. I think I might need admin logo to sort this out, but don't imagine it would take long.

mrsbuzzy 01-23-2011 11:36 PM

NEVER MIND I got it working!!

I couldn't upload the XML file, I got this error:

Quote:

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

Your version: 4.1.1
File version: 4.0.6

BadgerDog 01-24-2011 10:59 AM

Quote:

Originally Posted by dartho (Post 2153534)

@BadgerDog - could you link me to a page where it's not working. I think I might need admin logo to sort this out, but don't imagine it would take long.

Thank you Sir .. :)

Sent you an email ...

Regards,
Doug

Seven Skins 01-24-2011 07:25 PM

Hi Dartho,

Nice work.

There are 3 hidden files in your zip file ... files name is "OneNote Table Of Contents.onetoc2" I guess we can delete them safely?

dartho 01-24-2011 10:30 PM

Yes you may - I only noticed those yesterday, damned microsoft ...

[email protected] vbmenu_register("postmenu_2154085", true); 01-24-2011 10:59 PM

Brilliant! Tagged and nominated.

John

DaffyDuck 01-26-2011 01:39 AM

Again, how do you make the forumlogo appear in this style - it seems defined at one point, but not referenced in the actual page code. Any help, please?

Also, logging in via credentials doesn't seem to always work - it would cycle back to the login screen, and requires trying several times, eventually clicking on the direct link in the login confirmation that appears.

dartho 01-26-2011 05:29 AM

Why are you asking again when I already replied to your original post?

As for logins - different browsers and different platforms behave differently, I've never had an issue when using it via my device on my test site.

squall leonhart 01-28-2011 12:46 PM

1 Attachment(s)
Thank for your style

DaffyDuck 01-28-2011 03:00 PM

Quote:

Originally Posted by dartho (Post 2154741)
Why are you asking again when I already replied to your original post?

As for logins - different browsers and different platforms behave differently, I've never had an issue when using it via my device on my test site.

Dartho, sorry for the repeat question - I didn't see your original reply, my bad. Your suggestions worked like a charm.

The login issue is still something I'm chasing - what devices are you using? This is happening on my end on iPhone.

DaffyDuck 01-28-2011 03:01 PM

Also, a small suggestion - including an image resize script into the style would be awesome, as that is pretty much all it is missing to deal with posts with images that invariably end up being too large.

saviola8x 01-29-2011 06:38 PM

Very very nice : http://facebookad.vn/forum
thank you


All times are GMT. The time now is 11:38 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.03022 seconds
  • Memory Usage 1,837KB
  • 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
  • (1)bbcode_code_printable
  • (15)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