vBulletin Mods

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

FerScrich 02 Dec 2011 14:47

Hi:
I have installed it on a vb4.1.8 and when i write a message i don't see the smilies and the CKEditor, is there any possibility to get it?

Thanks in advance.

dartho 02 Dec 2011 23:09

You could try reverting all the templates in teh editor group, but YOu'll have more tweaking to do also. I have deliberately removed it and there are likely javascript files which need to be included in the header as well, so to implement it won't be strainght forward

thenamesgould 03 Dec 2011 22:27

Quote:

Originally Posted by dartho (Post 2272091)
But it did not have this problem before making those chnages? If this is the case, try reverting the editor_clientscript template. For what its worth, I've never been able to reproduce the errant "<br />" problem, so I think it's a combination of factors causing it - makes it hard to pin down

Are you still looking at this one dartho? I tried changing it back to how it was because those <br />'s were appearing in people's posts and annoying me, but I must have done something wrong because now two text boxes are appearing! haha.

But I am happy to give you any more details if you need them. :)

dartho 03 Dec 2011 23:00

I can't reproduce it - do you have a test site where it also happens I could get access to?

thenamesgould 04 Dec 2011 02:27

Quote:

Originally Posted by dartho (Post 2274415)
I can't reproduce it - do you have a test site where it also happens I could get access to?

Well I have my site that I'm happy to give you access to, to have a look at what might be causing it.

tafreeh 04 Dec 2011 06:12

Quote:

Originally Posted by tafreeh (Post 2272616)
Is there any way to prevent showing thread content text format ? ?

coz, in my forum ppl likes to use different color and bigger text that does not really looks good on this theme.. Is there any way not to show txt format and just to show simple text... ??

sorry forgot to maked install :)

Bacon Butty 05 Dec 2011 20:22

Firstly, awesome style. I've been utilising it for some time.

Since upgrading recently, my users have become "trapped" in the mobile skin, unable to revert back to PC Mode.

The Default Style for Modern Mobile Browsers is unable to be changed, despite having Allow Users To Change Styles to YES.

Any ideas?

Also a tad confused as to what takes precedent with default styles settings between Style and Language Settings and Lightweight Style Options - both include choices to set as defaults?

dartho 05 Dec 2011 22:59

Lightweight STyle Options asks those for creating links to default style and so it knows what the style ID of teh lightweight style is when it comes to doing things like disabling add-ons etc - it doesn't use these for detection - these won;t affect vBulletins detection. Did you have any other detection scrips before upgrading?

Bacon Butty 06 Dec 2011 19:37

Quote:

Originally Posted by dartho (Post 2275007)
Lightweight STyle Options asks those for creating links to default style and so it knows what the style ID of teh lightweight style is when it comes to doing things like disabling add-ons etc - it doesn't use these for detection - these won;t affect vBulletins detection. Did you have any other detection scrips before upgrading?

Thanks for attempting to fix my problem - sure is appreciated.

I only have a couple of basic add-ons (VSa - Advanced Permissions Based on Post Count, Word Links by BOP5 VB4, vBookie, vB Optimise Lite, Separate Sticky and Normal Threads, Notification for Reputation) - no detection scripts.

If you have a moment, the website is www.grandoldteam.com/forum. If you visit via a mobile, you'll find your unable to escape the default mobile skin on any page other than forum home. Absolutely no idea where to look to fix, .htaccess?

TinCow1 06 Dec 2011 19:44

Quote:

Originally Posted by thenamesgould (Post 2274409)
Are you still looking at this one dartho? I tried changing it back to how it was because those <br />'s were appearing in people's posts and annoying me, but I must have done something wrong because now two text boxes are appearing! haha.

But I am happy to give you any more details if you need them. :)

I get this exact same problem: the posted fix results in the <br /> issues, and reverting it causes the double text box in addition to the vertical smilies.

etca 06 Dec 2011 20:00

Quote:

Originally Posted by dartho (Post 2271597)
Replace the contents of the pm_messagelistbit template with

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

thx u. it's works on me.

etca 06 Dec 2011 20:06

dartho,
how to fix this?

https://www.vbulletin.org/forum/external/2011/12/53.jpg



Quote:

Originally Posted by semprot (Post 2269777)
It works with 4.1.8. However here is how to show Reputation, Infraction, and Report message link.

Put this before last </div> to your postbit template (if you are using non-legacy), or postbit_legacy template (if you are using post legacy)


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

kok ga ngefek?
*it doesn't work

dartho 06 Dec 2011 22:25

Quote:

Originally Posted by thenamesgould (Post 2274409)
Are you still looking at this one dartho? I tried changing it back to how it was because those <br />'s were appearing in people's posts and annoying me, but I must have done something wrong because now two text boxes are appearing! haha.

But I am happy to give you any more details if you need them. :)



thenamesgould worked out how to reproduce this - it only happens when the user uses full WYSIWIG editor (as set in UserCP).

Found a template only way to resolve:

Edit the editor_ckeditor temaplte and replace contenst with:

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

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.

The following superceded by above, but kept here for reference



A quick fix is to add a plugin as follows:
Title: Lightweight Style - Set Editor Mode to Standard (bugfix)
Hook: style_fetch (there could be a better place, but this works)
Order: 5
Code:

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

If you have Lightweioght Style Options installed, you could add the code to the "Enter code here to disable addons" section of that rather than create a new plugin.

There is probably another way, and I'll look into it - but for those that want a fix now, tis is it.

dartho 06 Dec 2011 22:39

Quote:

Originally Posted by etca (Post 2275259)

Edit the tagbit_wrapper template and replace it's contents with:


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


dartho 06 Dec 2011 22:56

See 2 posts up for template only way to reolve errant <br />'s turning up when quoting - I just edited the post, no plugin required

etca 07 Dec 2011 01:04

Quote:

Originally Posted by dartho (Post 2275323)
Edit the tagbit_wrapper template and replace it's contents with:


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

Hooo thanks dartho..
it's works on me

tafreeh 07 Dec 2011 06:20

Quote:

Originally Posted by tafreeh (Post 2274494)
sorry forgot to maked install :)

@dartho: you missed me again.. :(

thenamesgould 07 Dec 2011 07:17

Thanks again, dartho. :)

dartho 07 Dec 2011 12:08

Quote:

Originally Posted by tafreeh (Post 2275431)
@dartho: you missed me again.. :(



I haven;t forgotten you - it's just that I've been fixing style bugs - your request is not related to this style as such.

Having said all that - I'll try and point you in the right direction -

To strip all HTML tags from posts for a specific style ID, create a plugin as follows:

Product:vBulletin
Hook Location: Postbit Disaply Complete
Name: Strip HTML from Mobile Style Posts
Execution Order:5
Code:

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

replace 'n' with teh styleid of your lightweight style.

the bit in teh code with teh <br><a> is HTML tags you wish to allow, if you want images, add in <img>, if you want <stong> add it in etc. Google php strip_tags

mvoelker 08 Dec 2011 01:32

Just want to chime in and say thanks for this. All my users prefer this significantly over the built in mobile style.

tafreeh 08 Dec 2011 04:51

Quote:

Originally Posted by dartho (Post 2275506)
I haven;t forgotten you - it's just that I've been fixing style bugs - your request is not related to this style as such.

Having said all that - I'll try and point you in the right direction -

To strip all HTML tags from posts for a specific style ID, create a plugin as follows:

Product:vBulletin
Hook Location: Postbit Disaply Complete
Name: Strip HTML from Mobile Style Posts
Execution Order:5
Code:

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

replace 'n' with teh styleid of your lightweight style.

the bit in teh code with teh <br><a> is HTML tags you wish to allow, if you want images, add in <img>, if you want <stong> add it in etc. Google php strip_tags

thanks allot for this :)

inphoenix 08 Dec 2011 06:24

I see this question was asked but not sure if it was answered. Can I add admob banners to this style? If yes, how? Thanks.

dartho 08 Dec 2011 07:41

if you can add to standard style, you can ad to this I guess. I don't know what admob is

inphoenix 08 Dec 2011 13:08

Quote:

Originally Posted by dartho (Post 2275804)
if you can add to standard style, you can ad to this I guess. I don't know what admob is

Admob is banner ad serving program for mobile devices. It generates a Google adsense like script to use. Where would I add that script if I want to post the banner after

1. First post.
2. Last post.

Thanks for your prompt response.

dartho 08 Dec 2011 13:53

I don't do advertising inposts or threads etc, so have no idea. I'm pretty sure the ad hooks are in this style, so you would use them the same way you would with the default style. Find where someone else has done this with the default style and do the same as them.

inphoenix 09 Dec 2011 17:28

Quote:

Originally Posted by dartho (Post 2275875)
I don't do advertising inposts or threads etc, so have no idea. I'm pretty sure the ad hooks are in this style, so you would use them the same way you would with the default style. Find where someone else has done this with the default style and do the same as them.

Thanks for a quick response. I found out that admob does not work for mobile apps but I got the code for Mobile Adsense. Those links are javascript. I tried using it in a regular HTML page on phone and it works but using it in the ad_showthread_firstpost_start does not work. If I use an adsense link in this ad_showthread_firstpost_start on regular desktop style it works.

Do you know if the lighweight (mobile) style will support javascript?

Has anyone else done this?

dartho 09 Dec 2011 22:28

I just had a look, and those template hooks aren;t there. Try editing the postbit and postbit legacy templates and adding the following code at the end of the template and see how that goes (try both to see how it looks)

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


inphoenix 09 Dec 2011 23:59

Quote:

Originally Posted by dartho (Post 2276388)
I just had a look, and those template hooks aren;t there. Try editing the postbit and postbit legacy templates and adding the following code at the end of the template and see how that goes (try both to see how it looks)


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

Adding this in postbit legacy did it. Thank you so much !!

inphoenix 12 Dec 2011 03:49

How do I add another banner at the end of thread? I tried adding it in ad_thread_last_post_content but it won't show up. Ideally something at the end of thread (after all posts) would be really nice. Thanks.

dartho 12 Dec 2011 05:40

The only other ad hook location in threads is the first post sig. I think that if those ad hooks I asked you to add to the postbit template aren't doing it, your problem lays elsewhere. Alternatively there are header and footer hooks that can be added in.

inphoenix 12 Dec 2011 06:28

Quote:

Originally Posted by dartho (Post 2276968)
The only other ad hook location in threads is the first post sig. I think that if those ad hooks I asked you to add to the postbit template aren't doing it, your problem lays elsewhere. Alternatively there are header and footer hooks that can be added in.

The banner at start of first post is working fine. I want to add another one at the end of thread.

Please tell me how to add footer hook.

S_E_A 12 Dec 2011 11:11

Hello Dartho,

I'm having a problem with resizing images. I tried the suggested method in post #333, but unfortunately it did not resolve the problem.

Is there another method I can try? I'd prefer the images to be resized rather than have them as a link.

Thank you.

dartho 12 Dec 2011 22:28

@SEA - you could try editin the CSS file and adding the following before teh ?> at the end of the file


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

@inphoenix - the ad_footer_start and global_above_footer ad hooks are already there. Perhaps your ad provider or ad script is only alklowing a single ad at a time? Try disabling other locations to see if they show up

inphoenix 12 Dec 2011 23:39

Quote:

Originally Posted by dartho (Post 2277147)
@inphoenix - the ad_footer_start and global_above_footer ad hooks are already there. Perhaps your ad provider or ad script is only alklowing a single ad at a time? Try disabling other locations to see if they show up

Thanks. Adding it to ad_footer_start worked.

S_E_A 13 Dec 2011 09:39

Quote:

Originally Posted by dartho (Post 2277147)
@SEA - you could try editin the CSS file and adding the following before teh ?> at the end of the file


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

Sorry, where exactly should I place the above, dartho?

dartho 13 Dec 2011 10:15

sorry, edit the CSS file (the lightweight.css.php file you uploaded to your server), and add it right at the end - sorry, no ?> to search for at the end.

S_E_A 13 Dec 2011 11:52

No joy unfortunately, mate.

Images are resizing when I switch to the lightweight style on desktop, but not on mobile device.

dartho 13 Dec 2011 12:48

Quote:

Originally Posted by S_E_A (Post 2277298)
No joy unfortunately, mate.

Images are resizing when I switch to the lightweight style on desktop, but not on mobile device.

what device - perhaps there just isn't the support in that mobile browser, in which case there is little you can do ...

actually - try deleting your cache etc and see if that helps...

S_E_A 13 Dec 2011 14:05

Tut... Worked a treat. Cheers mate ;)

Hippy 14 Dec 2011 02:09

great style.. 2 thumbs up
been reading it all here to apply all the fixes posted ..
thanks to everyone that posted a fix..

one thing tho I didn't find here is when you click on User CP
it is always showing
New Private Messages : (1)
even with none ... or if you have 3 it shows 4

weird

anyone with a fix for this would be greatly appreciated

dartho 14 Dec 2011 02:28

You can read post #2 for fixes also.

Re: the private messages issue - could it be that you have other unread message types? Maybe a visitor message or something ...

Hippy 14 Dec 2011 02:32

thanks for the quick reply...
no nothing shows in the normal style.. I checked it all
made a new use with no messages and same...

* I found the Arrays PM fix.. but will check out post #2 to make sure I got it all..

thanks again

Hippy 14 Dec 2011 03:34

that would of made my life easy if I see post #2 first.

anyway search is your friend..

I did notice this no longer works..

http://www.vbulletin.org/forum/showt...31#post2264831

even if WGO is set to members only it will not show even anyone not even guests ..

muratcan25 14 Dec 2011 09:23

Thank You !

dartho 14 Dec 2011 13:52

Quote:

Originally Posted by Hippy (Post 2277580)
that would of made my life easy if I see post #2 first.

anyway search is your friend..

I did notice this no longer works..

http://www.vbulletin.org/forum/showt...31#post2264831

even if WGO is set to members only it will not show even anyone not even guests ..

that fix was only for those that use the lightweight style options addon. otherwise you did not need to make that edit anf WGO should show by default

Hippy 14 Dec 2011 21:40

I noticed on the verizon browser there is either one of these I can't remember now
גהדב before each name.. in current active users

any idea?

I think it was this one if it makes a difference
ג or maybe even this one I can't see it good lol..ב

also noticed the refresh this page link when viewing who's online.. takes you back to the forum index.. instead on what it intended to do.
the refresh issue can be viewed when you are on this style using your desktop using IE9 or ff
thanks for your quick support with this style..
Regards

Hippy 14 Dec 2011 22:41

Quote:

Originally Posted by ZeroHour (Post 2217601)
Not sure if it has been mentioned but you should add the show signature code in the showthread template as most would probably want it on/enabled rather then off.


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

Also I personally replaced vbcms_page with:

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

It redirects the users to /forums/ which is where my forums are.

EDIT: Another thought too, I would add "Top" links to the bottoms of pages as it can be useful in some scenarios.

the show sig is still not working with that added
any idea?
I don't care much if it don't show on the light style / Mobile but if posted from your phone and the viewing it on your rig with the normal style it's not showing


thanks

DeanoUK 15 Dec 2011 11:30

Any chance of a 4.1.8 update? Pretty please!

dartho 16 Dec 2011 01:18

Quote:

Originally Posted by Hippy (Post 2277827)
the show sig is still not working with that added
any idea?
I don't care much if it don't show on the light style / Mobile but if posted from your phone and the viewing it on your rig with the normal style it's not showing
thanks

If you made that change, it should work - does on my test site. Not sure why you get strange characters in who's online - could you link me?

dartho 16 Dec 2011 01:19

New version released which should have all fixes to the issues as listed in this thread over recent months.

remember - backup backup backup!

rooban12 16 Dec 2011 01:27

brilliant work

dawges 16 Dec 2011 03:29

Is it just me or is ads in the update? I don't mind donating to a coder but having ads forced down my throat without my knowledge is not cool.

dartho 16 Dec 2011 04:10

Ah CRAP!! That was me testing google ads (read one page back and you can see the posts with a member here on how to put in ads) - I'll delete and update now.

Really - that was an honest mistake!

Sorry for the hassle :o

dartho 16 Dec 2011 04:18

New zip file uploaded with the errant code removed - that google ads code only appeared in the postpit_legacy template - just delete this bit from that template


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

or import new XML in the zip I just uploaded (1.0.3a)

dawges 16 Dec 2011 04:27

Thanks Dartho!

Hippy 17 Dec 2011 01:05

1 Attachment(s)
thanks for the update dartho
I have a questions for ya
How do I go about adding Next to the page nav..

thenamesgould 18 Dec 2011 09:16

Just uploaded the latest version when I upgraded to 4.1.9, and noticed that this step:

"replace the contents of the editor_ckeditor template with that of the editor_toolbar_off template"

doesn't seem to be in there, which lead to a bit of weirdness. Apart from that, very nice! :)

dartho 18 Dec 2011 11:18

Quote:

Originally Posted by thenamesgould (Post 2278770)
Just uploaded the latest version when I upgraded to 4.1.9, and noticed that this step:

"replace the contents of the editor_ckeditor template with that of the editor_toolbar_off template"

doesn't seem to be in there, which lead to a bit of weirdness. Apart from that, very nice! :)

Is that to say you did this, and then all was cool?

Bacon Butty 18 Dec 2011 14:01

Quote:

Originally Posted by Bacon Butty (Post 2275244)
Thanks for attempting to fix my problem - sure is appreciated.

I only have a couple of basic add-ons (VSa - Advanced Permissions Based on Post Count, Word Links by BOP5 VB4, vBookie, vB Optimise Lite, Separate Sticky and Normal Threads, Notification for Reputation) - no detection scripts.

If you have a moment, the website is www.grandoldteam.com/forum. If you visit via a mobile, you'll find your unable to escape the default mobile skin on any page other than forum home. Absolutely no idea where to look to fix, .htaccess?

Hi Dartho,

Just an update on this one. It seems a lot of users are finding themselves unable to "switch off the mobile style and use the regular forum default on their mobile devices" once upgraded to 4.1.8;

https://www.vbulletin.com/forum/show...08#post2244908

https://www.vbulletin.com/forum/show...obile-template

https://www.vbulletin.com/forum/show...owser-(vB4-1-9)

I realise it's likely to be a vBulletin issue, rather than your mod - but thought I'd advise here incase anyone else is having the same problem.

bremereric 18 Dec 2011 16:46

2 Attachment(s)
:up: I have it installed on 4.1.3 And the only question I have if it looks right. I works great from a phone. Loads up a ton faster than any other style. Still loads pictures in a post, that is a plus. Here are two screen shots from my site.

dartho 19 Dec 2011 01:54

Quote:

Originally Posted by bremereric (Post 2278862)
:up: I have it installed on 4.1.3 And the only question I have if it looks right. I works great from a phone. Loads up a ton faster than any other style. Still loads pictures in a post, that is a plus. Here are two screen shots from my site.

It looks like you have not upload the lightweight.css.php file to your forum root

dartho 19 Dec 2011 01:59

Quote:

Originally Posted by Bacon Butty (Post 2278822)
Hi Dartho,

Just an update on this one. It seems a lot of users are finding themselves unable to "switch off the mobile style and use the regular forum default on their mobile devices" once upgraded to 4.1.8;

https://www.vbulletin.com/forum/show...08#post2244908

https://www.vbulletin.com/forum/show...obile-template

https://www.vbulletin.com/forum/show...owser-(vB4-1-9)

I realise it's likely to be a vBulletin issue, rather than your mod - but thought I'd advise here incase anyone else is having the same problem.

I'm sure VB will get onto this quick - esp since 4.1.9 was meant to be a big mobile fix release

edit: I looked at the vb detection code - it hasn't changed between 4.1.7 and 4.1.9.

bremereric 19 Dec 2011 05:21

1 Attachment(s)
Quote:

Originally Posted by dartho (Post 2278987)
It looks like you have not upload the lightweight.css.php file to your forum root

You were correct sir. Sure looks different now. I am new to this but I am still not so smart that I can't ask questions. Thanks.

doobiefillin 19 Dec 2011 16:01

Can you please link up all the modifications I can do to this theme so that I don't have to overwrite my XML file with the update? Thanks!

S_E_A 19 Dec 2011 16:01

Dartho, does the latest version no longer show 'Currently Active Users'? Or is the issue at my end? Installed on 4.1.9.

dartho 19 Dec 2011 22:14

Quote:

Originally Posted by S_E_A (Post 2279119)
Dartho, does the latest version no longer show 'Currently Active Users'? Or is the issue at my end? Installed on 4.1.9.

Do you have the Options addon installed and have Show "What's Going On" set to 'Yes' in it's settings in AdminCP?

Hippy 19 Dec 2011 22:25

if you dont use that option addon remove this code
http://www.vbulletin.org/forum/showp...&postcount=566

The Rocketeer 20 Dec 2011 01:00

@ dartho - the mobile styles Logo is not appearing, I tried changing it on the stylevars titleimage. didn't work. using the latest version on vb 418.

dartho 20 Dec 2011 02:54

You need to edit the css file - this style doesn't user the stylevars system. alternatively, you can edit the header template (or it could be navbar) and edit it direct

The Rocketeer 20 Dec 2011 03:05

i see. :o which css file is that? having a hard time finding it in the header and navbar templates. :confused:

Also how do you disable the cms sidebar for the mobile style?
I tried adding the below code to the Lightweight Style Options but didn't work

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


thenamesgould 20 Dec 2011 04:51

Quote:

Originally Posted by dartho (Post 2278781)
Is that to say you did this, and then all was cool?

Sorry for the slow reply. Yep, that's right. :)

Mr_Running 20 Dec 2011 13:44

Thank you Dartho for the Lightweight Mobile Style.
Installed and currently checking it out. :)

I have the default vB google ads and I would like to remove the header and footer ads and keep the post ad.

How do I remove the header and footer Ads from the Lightweight Mobile Style?

dartho 20 Dec 2011 23:20

Quote:

Originally Posted by Mr_Running (Post 2279375)
Thank you Dartho for the Lightweight Mobile Style.
Installed and currently checking it out. :)

I have the default vB google ads and I would like to remove the header and footer ads and keep the post ad.

How do I remove the header and footer Ads from the Lightweight Mobile Style?

edit thoise templates and search for and remove the ad hooks. They start have ad_location in the line, so you can search on this text

The Rocketeer 20 Dec 2011 23:45

Dartho, you didn't answer my question :)
Also I was trying to improve the cms's look by removing the sidebars and any widget boxes, Can you tell me how? and after logging in the Copyright appears on top of the CMS..


also, i noticed, for some reason the vbulletin mobile detection script doesn't work properly for opera mini and a few other smart phone / iphone like devices? I set this skin as the mobile ski but its not changing. visiting my site using opera mini I get the default style, instead of the mobile style.

heres the opera mini simulator: http://www.opera.com/developer/tools/mini/


thanks

dartho 21 Dec 2011 02:49

1 Attachment(s)
Sorry - didn;t see this post:
Quote:

Originally Posted by The Rocketeer (Post 2279267)
i see. :o which css file is that? having a hard time finding it in the header and navbar templates. :confused:

Also how do you disable the cms sidebar for the mobile style?
I tried adding the below code to the Lightweight Style Options but didn't work

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


the lightweight.css.php file which you would have uploaded to your forum root. Does the following path resolve on your site? /images/misc/mobilelogo.png - that's where the logo lives

As for the sidebar - I can't get a sidebar to show? However, gice the following code a try: $show['sidebar']=0; - might work, might not ...

The CMS isn't that straight forward to work out, otherwise it would be in this style. It really depends on your layouts I think. I have a very basic CMS setup working on my test site. I'll attach the style here and you can test and get back to me. Same rules apply - backup/test etc. before going live or overwriting you existing lightweight style. Best bet is to add it as a child style of light weight for testing, then if you're happy you can re-import it and merge into existing.

Let me know how it goes

dartho 21 Dec 2011 02:50

@Rocketeer - As for the mobile device detection - dunno. You could edit the init.php file and manually modify the detection code to pickup those devices, but I think you probably need to lodge a support ticket with vBulletin.com

The Rocketeer 21 Dec 2011 10:00

Thank you Dartho, Yes that solves the logo problem. I also figured out that having the Text Option enabled in the Liteweight styles options causes the image to be replaced by text. (missed that setting before haha) :)

Now about the sidebar, I am actually referring to the CMS Sidebar, Grids or Widgets as you call it, you know the ones that appear in your CMS such as Menu, Polls, recent Forum posts etc?? I am trying to disable that or any widgets to appear in the CMS home page. That would make it look clean and pretty much complete.

I tried the CMSONLY style you gave me. Installed it as a Child Style of light weight, didn't notice any difference until when I went to my CMS / Homepage, I noticed that it doesn't show any articles. The header, nav and footer is there but the content is not present, and only shows this $column[1] .. I went inside the vbcms_grid_1 and vbcms_grid_2 and noticed it had a lot less code, only this actually..


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

so maybe you have a few lines of code gone missing there ?

And thanks I will probably open up a support ticket with vBulletin about their Mobile Detection Script not working with Opera Mini and this or any other style.

Happy Holidays :)

dartho 21 Dec 2011 10:42

Can't really offer much more - I don't know much about CMS or sidebars at all - I don't actually use it (CMS), or vBuylletin 4 for that matter. That CMS Style works on the simple CMS setup I have on my test site (http://vbdev.org)

The Rocketeer 21 Dec 2011 10:57

Thanks Dartho. I am working on the CMS part, trying to see if it can be improved.
But I think you might have given me the wrong vbulletin-style-lightweight-1.0.3a-CMSONLY.xml version. lol. I fixed it a bit but I think its missing some codes on the vbcms_grid templates.

Mine Looks like this style on your test site: http://vbdev.org/?styleid=16

I think it should look like this one instead? - http://vbdev.org/?styleid=7

- notice on your test site how on styleid=16 there's no articles showing and it just shows $column[1], but on styleid=7 it shows the articles properly? Thats what I am talking about, styleid=16 must be the one you gave me, thats missing some edits.

:)

dartho 21 Dec 2011 11:40

Actually - I think it is something to do with vBulletin's template system as opposed me exporting incorrectly.

If I export styleid 7 on my test site, i do not get CMS customisations to that style (although viewing it, you can see they are there). If during the export process I select CMS as the product, we end up with that blank page with column[1] on it...


Here's what I had to do to make it work.
Import the Lightweight Style to a new style
Import the CMSONLY style and merge with lightweight style imported above
Import lightweight style again and merge with lightweight style above

See how that goes ...

The Rocketeer 21 Dec 2011 12:06

No Dartho, That merging technique didn't work out very well :(
But I have made a list of minor changes and code edits to make it work and look like styleid 7.

I will see how that goes and if I can post them here, so others like me can improve the look of their CMS. Maybe you can include them in the next update of this style. I really wish the merging thing worked though.

Let me know if you find any code edits worth mentioning or other ways to do this.

dartho 21 Dec 2011 12:14

Quote:

Originally Posted by The Rocketeer (Post 2279682)
Maybe you can include them in the next update of this style. I really wish the merging thing worked though.

That's the thing - I can;t include them as vBulletin doesnlt export them with the style!


have a look in that CMSONLY XML file to see the templates and code I used on vbdev - add these in manually and I';m sure it will work out.

The issue seems to be a vbulletin bug perhaps? I've posted asking for assistance with it

rajcolmo 21 Dec 2011 17:46

Updated to 4.1.9 then went to install this from the latest version and got this:

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

Your version: 4.1.9
File version: 4.1.8

fly 21 Dec 2011 18:38

Quote:

Originally Posted by rajcolmo (Post 2279773)
Updated to 4.1.9 then went to install this from the latest version and got this:

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

Your version: 4.1.9
File version: 4.1.8

So check the box to ignore the version.

rajcolmo 21 Dec 2011 23:39

duh... missed that... thanks~!

tafreeh 22 Dec 2011 17:51

Quote:

Originally Posted by dartho (Post 2275506)
I haven;t forgotten you - it's just that I've been fixing style bugs - your request is not related to this style as such.

Having said all that - I'll try and point you in the right direction -

To strip all HTML tags from posts for a specific style ID, create a plugin as follows:

Product:vBulletin
Hook Location: Postbit Disaply Complete
Name: Strip HTML from Mobile Style Posts
Execution Order:5
Code:

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

replace 'n' with teh styleid of your lightweight style.

the bit in teh code with teh <br><a> is HTML tags you wish to allow, if you want images, add in <img>, if you want <stong> add it in etc. Google php strip_tags

how can I allow Quote and Code ?

dartho 22 Dec 2011 22:33

Mmm.. try allowing <pre> tags at a guess...

Hippy 24 Dec 2011 14:40

iphone and a few other phones you are not able to use the attachments
it work under pc /desktop

CappingTheGame 24 Dec 2011 19:50

Spectacular development, and much thanks. Just a couple of questions that I'm sure will be an easy answer for you.

1.) Upon entering a thread on the mobile version and trying to scroll, I am continuously returned to the bottom of the screen unless I keep my finger on the touchscreen mobile device. It automatically returns me to the bottom. Setting? Installed improperly? Just curious.

2.) Will a feature where you're able to view the thread starter be coming any time soon? Tons of requests on that. Also possibly a last poster or thread starter on the main forum page? Again, curious.

Thanks for your hard work, it is appreciated.

dartho 25 Dec 2011 23:33

Quote:

Originally Posted by Hippy (Post 2280688)
iphone and a few other phones you are not able to use the attachments
it work under pc /desktop

I can tell you how to remove the attachment button or implement fixes people find, but it works on my phone and that's what it is developed for.

Quote:

Originally Posted by CappingTheGame (Post 2280753)
Spectacular development, and much thanks. Just a couple of questions that I'm sure will be an easy answer for you.

1.) Upon entering a thread on the mobile version and trying to scroll, I am continuously returned to the bottom of the screen unless I keep my finger on the touchscreen mobile device. It automatically returns me to the bottom. Setting? Installed improperly? Just curious.

I've not heard of that one before? What type of device?
Quote:

2.) Will a feature where you're able to view the thread starter be coming any time soon? Tons of requests on that. Also possibly a last poster or thread starter on the main forum page? Again, curious.

Thanks for your hard work, it is appreciated.
That would be easy to add in if you wish - where abouts do you want the thread starter name to appear?

dartho 25 Dec 2011 23:43

Quote:

Originally Posted by Hippy (Post 2278483)
thanks for the update dartho
I have a questions for ya
How do I go about adding Next to the page nav..

Try replacing pagenav template with

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


Mark.B 26 Dec 2011 00:19

Every so often I like to pop into this thread for the benefit of any vB n00bs, to say that this mobile style is "light years" ahead of the THING that vBulletin offer by default.

Use this coupled with Dartho's mobile detection addon if you want your site to present a professional, easily customisable style for mobile users.

See HERE for what I did with it.

Hippy 26 Dec 2011 00:35

Quote:

Originally Posted by dartho (Post 2280973)
Try replacing pagenav template with

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

thanks U sir .. worked like a charm
Merry Christmas to you.
Have a great New Year

CappingTheGame 26 Dec 2011 03:10

Quote:

Originally Posted by dartho (Post 2280972)
I can tell you how to remove the attachment button or implement fixes people find, but it works on my phone and that's what it is developed for.


I've not heard of that one before? What type of device?
iPhone 4 and also on Droid X. Have confirmed with about a dozen other people's devices also. Could be something on my end, but unsure how to fix it.

That would be easy to add in if you wish - where abouts do you want the thread starter name to appear?
Within the selected forum, adding the thread author directly below the forum title and above the last poster might be ideal. Just a thought...have had several suggestions on that. Again, thanks.

See bolded.

SRSC 26 Dec 2011 10:34

How to resize the picture in post fit to screen?

yanref 29 Dec 2011 10:36

hi dartho,

bit of an issue?
installed ok, looks and runs fine.
when i try to reply to a post, using over ten characters, it says, "sorry! this forum is not accepting posts" but it should be?
any ideas.

dartho 02 Jan 2012 22:40

I'm not sure what would be causing this,and am unable to reproduce the error

yanref 02 Jan 2012 23:16

Quote:

Originally Posted by dartho (Post 2283158)
I'm not sure what would be causing this,and am unable to reproduce the error

the site is, http://graphicshost.co.uk/gamers-asy...php?styleid=15
click a link? and you get this, Invalid Forum specified. If you followed a valid link

maybe its an issue on the latest vb...... any ideas!

snakes1100 03 Jan 2012 19:05

dartho
i see numerous sites were this style will revert back to the forum default style when you click any link if your using 4.1.9, this includes yanrefs site. Just checked it on my droidx, doing it on my test site as well.

dartho 04 Jan 2012 00:00

@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 ...


All times are GMT. The time now is 08:38.

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.