vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=249277

Alan_SP 21 Jan 2012 18:16

Just found out this:

In template FORUMDISPLAY you use this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Use instead phrase {vb:rawphrase post_new_thread}

So that there is this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 25 Jan 2012 12:08

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 25 Jan 2012 18:48

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 25 Jan 2012 21:16

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 26 Jan 2012 14:50

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 27 Jan 2012 19:22

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

dartho 27 Jan 2012 21:28

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: http://www.vbulletin.org/forum/showt...17#post2275317

Mark.B 27 Jan 2012 21:36

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: http://www.vbulletin.org/forum/showt...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 27 Jan 2012 21:37

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and add immediately above:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 Feb 2012 06:01

Quote:

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and search for

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace with


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

dartho 02 Feb 2012 09:52

I think vBulletin will be fixing it in 4.1.11 ?

F&R 04 Feb 2012 11:29

Quote:

Originally Posted by dartho (Post 2153534)
@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.

Aha!! That's why I don't see the logo.

I was wondering if it would be possible to add back a "mobile" adsense type thing Adsense Mobile Ad types here

I was also wondering if it was possible to put the option to go the Lite style at the top of the page on the standard layout so it is possible to switch between full and lite without having to fish in the styles drop down at the bottom.

The reason I ask this is because there are times when I use this style on my laptop/computer. Having a low bandwidth version is brilliant if you are stuck on dial up or using an overcrowded WiFi network.

Wonderful work thank you:)

Fixed errors doing these changes
by Hippy
04 Feb 2012 22:53

dartho

I test most everything with this site http://validator.w3.org
can you review and confirm the changes made are good
thanks dartho
if all checks out, could you please add to your nexted version if you release one

when I ran this skin through that site
there was 14 Errors, 3 warning(s)
you can run your site as well .. need to make sure changing to the style you use that address with the Example-->"?styleid=6" at the end of the url so it does not read the default style

with the fixes I did to these 2 template

This document was successfully checked as XHTML 1.0 Transitional! Passed
header template
1st the changes I made here where

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and changed

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

also in the navbar template
all the
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I added a / at the end

changed template

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


dartho 04 Feb 2012 23:05

@F&R - There's nothing to stop you adding Ads in - the ad hooks etc are all there. I'm pretty sure you can just paste in the code you receive from Google

re: Full Site link - if you have a drop box, I assume you have the 'Options' addon installed? IN which case you should be able to select the option to have a link in the footer rather than a dropdown box

dartho 04 Feb 2012 23:51

@Hippy - Thanks. I closed off those input tags as well as some img tags in other templates. As for the script, rather than change it, I simply added comment codes insode the <script> tags:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

as I wasn;t sure if the code changes would affect functionality.

At one stage in t he distant past, I think the original version of this style was XHTML Strict, but I got lazy over time :o


All times are GMT. The time now is 13:01.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.