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)

dartho 01-10-2012 10:37 PM

I just deleted a couple PMs

vexxy 01-11-2012 09:02 AM

PM sent!

dartho 01-14-2012 09:41 PM

Just marking a milestone - this is now the most 'installed' style for VB4

res6cue 01-14-2012 09:58 PM

Quote:

Originally Posted by dartho (Post 2287869)
Just marking a milestone - this is now the most 'installed' style for VB4

And rightfully so, my users absolutely love it! :up: It's so nice to never have to give any thought to any official vB mobile styles, which are probably buggy anyway.


I'm about to update to 4.1.10 and notice a lot of stuff was changed that might affect styles. Is anyone running this style on 4.1.10 yet, and are there any issues with doing so?

Hippy 01-14-2012 10:22 PM

still running on the latest .. be sure not to update templates
after upgraded it will say there is a S-load of templates out of date ..
do not revert them

dartho 01-14-2012 11:33 PM

If you do update and get all those out of date template messages, to clear them you could edit and save each one without actually making changes or you could run the following query on your database:

UPDATE template SET version = '4.1.10', mergestatus = 'none' WHERE styleid=XX;

change XX to the styleid number of the lightweight style and 4.1.10 to whatever the version number currently is.

thenamesgould 01-15-2012 01:03 AM

I just reverted them all to get rid of the alerts, then reinstalled the xml file.

yanref 01-15-2012 01:38 AM

Quote:

Originally Posted by dartho (Post 2283542)
@yanref - still not sure what is causing your issue and no reports of anyone else with the same. Have you tried disabling all add-ons and plugins and testing? (do this in AdminCP->Settings->Options->Plugin/Hook System->Enable Plugin/Hook System = No)

@snakes - whilst yanref has other issues, it stays on the lightweight style for me when visiting his site from my PC and phone. my test site at vbdev.org doesn't have issues either. At any rate, I guess it would be a vBulletin problem if it couldn't maintain a style across pages ...

have tried this, still no joy?
when im on the lightweight style, the url is, gamers-asylum/forum.php , which is fine.
i click on any thread, i get this, gamers-asylum/forumdisplay.php , which is not correct?
click the same thread on a normal theme you get this, "gamers-asylum/forumdisplay.php?4-PS3-Games", which is correct.

any ideas why it is not showing the correct url.

dartho 01-15-2012 06:43 AM

have you tried re-installling the style fresh?

yanref 01-15-2012 07:46 AM

yes, i removed all, then reinstalled,.

also removed again last night, updated to vb 4.1.10 then reinstalled and still no joy.

dartho 01-15-2012 10:39 AM

No idea - If you give me admin access to your forum, I can have a look.

yanref 01-15-2012 02:12 PM

Quote:

Originally Posted by dartho (Post 2288095)
No idea - If you give me admin access to your forum, I can have a look.

ok, pm sent.

thanks for the help.

EgyKit 01-15-2012 04:10 PM

Unfortunately this won't work with vBulletin versions higher than 4.1.8, waiting for your update.

Thanks.

Edit: sorry, forgot to upload the css php file after I installed the style, now it's working fine..

bremereric 01-16-2012 04:42 AM

:o This mod is awesome. I did the stupid thing and forgot to upload a couple of files to my forum root but it has been working great with my Blackberry viewing my Forum. Great product and many thanks to Dartho. :):D:rolleyes::cool:

yanref 01-16-2012 01:06 PM

Quote:

Originally Posted by dartho (Post 2288095)
No idea - If you give me admin access to your forum, I can have a look.

thanks mate.

all working now, and very good it is too.

very impressed with the way you have helped out, so many would not!:up:

nocte 01-17-2012 03:18 AM

We have a big forum with several areas like arcade or glossry. when this areas are accessed with this style, the style is messed up. Is it possible that this style only shows up, when the users surfs in areas this style is made for?

The Rocketeer 01-17-2012 01:52 PM

can anybody tell me if there has been any changes made to this when upgrading to vb 4.1.10? I had it working very well in vb 4.1.8, do I need to uninstall and reinstall the theme or add any certain codes to make it work or something?

Ozymandyus 01-17-2012 02:07 PM

Quote:

Originally Posted by The Rocketeer (Post 2288991)
can anybody tell me if there has been any changes made to this when upgrading to vb 4.1.10? I had it working very well in vb 4.1.8, do I need to uninstall and reinstall the theme or add any certain codes to make it work or something?

I typically have to reinstall between versions, but it's not that big of a deal. Just be sure to make a note of any customizations you've made first, then re-import the style allowing it to over-write what's there. Re-apply your customizations and you're done. Total time is usually under five minutes for me.

MxRE 01-17-2012 02:38 PM

I really like the look of this.. am about to download it :D

snakes1100 01-18-2012 03:43 AM

Vbulletin has released the Jira fix for the style issue, this bug was discovered in 4.1.8, mobile users will be directed back to the default style.

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

dartho 01-18-2012 08:01 AM

If you wish to make this change manually, edit init.php and
search for:
Code:

elseif ($mobile_browser_advanced && $vbulletin->options['mobilestyleid_advanced'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
Code:

elseif ($mobile_browser_advanced AND $vbulletin->options['mobilestyleid_advanced'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
and search for
Code:

elseif ($mobile_browser && $vbulletin->options['mobilestyleid_basic'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with

Code:

elseif ($mobile_browser AND $vbulletin->options['mobilestyleid_basic'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])

dartho 01-18-2012 08:47 AM

Quote:

Originally Posted by yanref (Post 2288530)
thanks mate.

all working now, and very good it is too.

very impressed with the way you have helped out, so many would not!:up:

Turns out the BASE meta tag needed to be removed as it was being set to the web root as opposed to forum root. Removing it made all links relative, and thus they worked again.

slinky 01-18-2012 08:37 PM

Quote:

Originally Posted by dartho (Post 2287869)
Just marking a milestone - this is now the most 'installed' style for VB4

Which speaks volumes about the quality of what one great developer can do versus an entire team of developers in a dozen countries at Internet Brands and vBulletin Solutions.

Kudos to you Dartho. Tremendous work and why I sent you some money like others should do.

tekmaster 01-19-2012 12:03 AM

I have a question:

I'm on 4.1.5 and currently it does not display the register option, I was wondering if this is due to possibly a plugin conflict or a feature I'm supposed to enable but just overlooked?

dartho 01-19-2012 12:30 AM

There is no regiuster option - I've yet to do the registration page (go direct to register.php and you'll see). You could easily enough add it in if desired...

tekmaster 01-19-2012 12:41 AM

Quote:

Originally Posted by dartho (Post 2289662)
There is no regiuster option - I've yet to do the registration page (go direct to register.php and you'll see). You could easily enough add it in if desired...

thanks for the quick response, I compared a few of your screenshots and saw the notices box, I used that to do substitute as the register redirect,

thanks

sportsfroma2 01-19-2012 01:30 PM

Quote:

Originally Posted by dartho (Post 2289299)
If you wish to make this change manually, edit ini.php and
search for:
Code:

elseif ($mobile_browser_advanced && $vbulletin->options['mobilestyleid_advanced'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
Code:

elseif ($mobile_browser_advanced AND $vbulletin->options['mobilestyleid_advanced'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
and search for
Code:

elseif ($mobile_browser && $vbulletin->options['mobilestyleid_basic'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with

Code:

elseif ($mobile_browser AND $vbulletin->options['mobilestyleid_basic'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])

very minor thing, but just wanted to point out that the changes need to be made in init.php (not ini.php).

Anyway, after that fix it works great for me in 4.1.10.

keep up the great work, thanks alot dartho :up:

dartho 01-20-2012 12:01 AM

correct - that's a typo , fixed now

doobiefillin 01-21-2012 01:18 AM

where do i find init.php?

dartho 01-21-2012 02:10 AM

it's a vbulletin file, located in the <forumroot>/includes directory

Alan_SP 01-21-2012 06:16 PM

Just found out this:

In template FORUMDISPLAY you use this code:

HTML Code:

<div class="titlebg">{vb:raw foruminfo.title_clean}<vb:if condition="$show['newthreadlink']">
 <a id="btn" style="font-weight:normal;font-size: .8em; border: 1px solid #999999;color: #000000;" href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase new} {vb:rawphrase thread}</a></vb:if>

Use instead phrase {vb:rawphrase post_new_thread}

So that there is this code:

HTML Code:

<div class="titlebg">{vb:raw foruminfo.title_clean}<vb:if condition="$show['newthreadlink']">
 <a id="btn" style="font-weight:normal;font-size: .8em; border: 1px solid #999999;color: #000000;" href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow">{vb:rawphrase post_new_thread}</a></vb:if>

Problem is that my language (Croatian) is a bit more complicated than English and I know that this is similar with Spanish, German and many more of them. It is correct phrase for this button and it's much better to use it instead two phrases.

Hippy 01-25-2012 12:08 PM

this style produces a number of coding errors and warnings
some are a easy fixes ..

pop your url in there http://validator.w3.org/ once you selected your mobile style youll have this at the end of the url "?styleid=4" < your style # will be in place of the 4 here ( meaning what ever number is assigned to your mobile style

most errors are coming from the header template what seems to be open <imput> and <img> or they should be contained in <form> or something to make valid..

deverill2010 01-25-2012 06:48 PM

Dartho I am on version 1.0.0 on the latest VB 4.1.10, You mod has 63 template conflict merge things.

U'm im not really sure what to do, I don't know if I need to update, I don't know how to update and I made some custom changes didn't i (I doubt you remember as I don't lol).

Can you tell me please how to update the style and how to keep the colours etc as i don't want to be faffing with that again.
Thanks

djbaxter 01-25-2012 09:16 PM

Quote:

Originally Posted by deverill2010 (Post 2292328)
Dartho I am on version 1.0.0 on the latest VB 4.1.10, You mod has 63 template conflict merge things.

U'm im not really sure what to do, I don't know if I need to update, I don't know how to update and I made some custom changes didn't i (I doubt you remember as I don't lol).

Can you tell me please how to update the style and how to keep the colours etc as i don't want to be faffing with that again.
Thanks

Solution: re-import the style, selecting "merge with" the name of your current mobile style, and it should resolve all those "conflicts".

deverill2010 01-26-2012 02:50 PM

1 Attachment(s)
Ok I reimported the style but one issue i am having is I can't post as a guest, although I have guest posting enabled.

Also what is this box on the left?
See pic.

Mark.B 01-27-2012 07:22 PM

Those with the "<br />" issue.

I have just spent an hour or so sorting this out and I think I have a solution. I think this only works if you have the lightweight style options hack as well.

The issue: Reply to thread still uses CKEditor. If you switch the template back to a simple textarea, as it was before, the quote isn't passed.

To fix:

Copy the contents of template editor_toolbar_off to editor_ckeditor.

This gives you the quote, but gives you all sorts of <br /> tags and other HTML stuff.

This issue is caused when the user has the WYSIWYG set, so we need to turn that off in the mobile style.

Add the following plugin:

Product: Lightweight Style Options
Hook Location: editor_toolbar_switch
Execution order: 5
PHP Code:
PHP Code:

if (STYLEID==$vbulletin->options['ls_mobile_style'])
{
$vbulletin->userinfo[showvbcode]=0;


Give it a whirl, seems to have worked for me.

dartho 01-27-2012 09:28 PM

Thanks Mark, I'm pretty sure this was resolved in the latest version of this style after finding a fix (initially with a plugin like yours) and then with a template edit (plugin no longer required) which was put into the latest version.

Check this post: https://vborg.vbsupport.ru/showthrea...17#post2275317

Mark.B 01-27-2012 09:36 PM

Quote:

Originally Posted by dartho (Post 2293229)
Thanks Mark, I'm pretty sure this was resolved in the latest version of this style after finding a fix (initially with a plugin like yours) and then with a template edit (plugin no longer required) which was put into the latest version.

Check this post: https://vborg.vbsupport.ru/showthrea...17#post2275317

I did have a crack at that but still didn't manage to get it quite right....my issue was that I could get the quote passed through correctly, but only into a cut-down CKEditor (in which case, line breaks fail on iOS devices). Or, I could get the plain text box but no quote was passed through.

Admittedly I'm on an older version but none of the posted fixes worked correctly for me. I can't easily upgrade due to all the customising I've done.

In the finish I found adding the plugin and then using the original (pre-CKEditor) version of the mobile style's newreply template has sorted it for me.

dartho 01-27-2012 09:37 PM

Quote:

Originally Posted by deverill2010 (Post 2292701)
Ok I reimported the style but one issue i am having is I can't post as a guest, although I have guest posting enabled.

Also what is this box on the left?
See pic.

That box is vBuilletin's 'Autosave' - the latest version of this style shouldn't have it if you updated teh lightweight.css.php file, as you haven't, you'll need to do it yourself.
Edit the lightweight.css.php file, search for:
Code:

body
{

and add immediately above:
Code:

.hidden {display:none;}
That should do it.

I don't know how vBulletin's merge feature works - I've never had much luck with it. If you've customised templates it's best to note changes and reapply them. Best thing to do is install latest version as a fresh style and leave your existing one in place so you can reference it. The same applies for the lightweight.css.php file - this is where you would have made colour changes.

The Rocketeer 02-02-2012 06:01 AM

Quote:

Originally Posted by dartho (Post 2289299)
If you wish to make this change manually, edit init.php and
search for:
Code:

elseif ($mobile_browser_advanced && $vbulletin->options['mobilestyleid_advanced'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with
Code:

elseif ($mobile_browser_advanced AND $vbulletin->options['mobilestyleid_advanced'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])
and search for
Code:

elseif ($mobile_browser && $vbulletin->options['mobilestyleid_basic'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])
and replace with

Code:

elseif ($mobile_browser AND $vbulletin->options['mobilestyleid_basic'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'] AND !$vbulletin->GPC[COOKIE_PREFIX . 'userstyleid'])

This is not necessary for 4.1.10 users, is it? :confused:


All times are GMT. The time now is 10:30 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.02559 seconds
  • Memory Usage 1,853KB
  • 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
  • (14)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (13)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