PDA

View Full Version : Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android)


Pages : 1 [2] 3 4 5

Mark Hewitt
01-17-2011, 06:15 AM
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
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...!
http://m.lareosing.org

Big thanks @dartho......

BadgerDog
01-17-2011, 02:02 PM
@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:

if (STYLEID!=n){

existing pluginin code

}

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

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
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
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:

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
@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
Thank for your style

DaffyDuck
01-28-2011, 03:00 PM
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

jerde
01-29-2011, 11:33 PM
Dartho,

I'm having the same issue as BadgerDog in post #272 (https://vborg.vbsupport.ru/showpost.php?p=2153767&postcount=272) on the images extending out to the right side and I'm also using Seven Skins image resizer. Is there a fix in this style to make it so images stay within screensize?

Also, any update on CMS page compatibility?
How do I get rid of the sidebar in CMS page?
Also, on my CMS page, there is a dark grey background making it hard to read black text. How do I change that color to white?

Thanks for a awesome mobile style!

jerde
01-30-2011, 12:52 AM
Well I sort of fixed my CMS page to look a little better. I got rid of the sidebar and widened the article area by editing these settings in the mobile style templates under vbcms.css. I set the r40 to 0px and the 160 to like 98%. I'm sure this is the wrong way to fix this issue but it's a temporary bandaid.

.yui-tvb-l25 {float:{vb:stylevar left};clear:{vb:stylevar right};width:25%;padding:0px;margin:0px;}
.yui-tvb-r25 {float:{vb:stylevar right};width:24%;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;}
.yui-tvb-l30 {float:{vb:stylevar left};clear:{vb:stylevar right};width:29%;padding:0px;margin:0px 0.5%;}
.yui-tvb-r30 {float:{vb:stylevar right};clear:{vb:stylevar left};width:30%;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;}
.yui-tvb-30 {{vb:stylevar left}:30%;width:30%;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;}
.yui-tvb-l40 {width:39%;float:{vb:stylevar left};clear:{vb:stylevar right};padding:0px;margin:0px 0.5%;}
.yui-tvb-r40 {width:0px;float:{vb:stylevar right};padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;}
.yui-tvb-40 {clear:{vb:stylevar right};{vb:stylevar left}:30%;width:40%;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;}
.yui-tvb-50 {{vb:stylevar left}:25%;width:40%;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;}
.yui-tvb-l50 {float:{vb:stylevar left};clear:{vb:stylevar right};width:46%;padding:0px;margin:0px 2%;}
.yui-tvb-l60 {width:97.5%;float:{vb:stylevar left};padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;}
.yui-tvb-r60 {width:59%;float:{vb:stylevar right};clear:{vb:stylevar right};padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;}
.yui-tvb-70 {width:70%;float:clear;padding:0px 0px 0px 0px;margin:0px 0px 0px 0px;}

I also covered up the gray background in the article area by changing it from transparent to white (#FFFFFF).

The only thing left would be the images being re-sized smaller.

DaffyDuck
01-30-2011, 04:42 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.

As a suggestion, just include this code:


@media screen and (max-device-width: 480px){
img{
max-width:100%;
height:auto;
}
}

It will automatically resize images for iPhones.

Also, adding this will automatically hide the toolbar on iPhones:


window.addEventListener('load', function() {
setTimeout(scrollTo, 0, 0, 1);
}, false);



(or, can you give me a pointer where to add these myself?)

oddmud
02-02-2011, 09:22 PM
I tried searching without getting a good post, looked through 39 posts and didn't find the answer.

My users have to scroll through all the pages to get to the last post. I personally just click on the title and it takes me to the last post, and ideas what might be causing it for them?

Taurus1
02-03-2011, 02:52 AM
You could try adding a replacement variable in this style as follow:
search for: <img
replace with: <img style="max-width: 200px; max-height: 200px;"
?Can you please specify where exactly to do this?

Thanks!

EDIT: I would also like to disable this mod in my lightweight style, but I have no idea how to do that. Can you please help me with that? I attach the product xml for it. Thank you so much!

126367

dartho
02-03-2011, 04:39 AM
Try entering in the code:

$vbulletin->options['modsettings_global_modsystem']=0;
in teh disable add-ons section

Taurus1
02-03-2011, 06:00 AM
Try entering in the code:

$vbulletin->options['modsettings_global_modsystem']=0;in teh disable add-ons section

Thank you so much. That did it! :up:

The only other issue is that my image thumbnails are really way too big for this style. Is there a way I can re-size them forum-wide for this style only?

Robbed
02-19-2011, 02:59 AM
dartho - after upgrading to 4.12

Can you fix the online users. It just shows array, changes were made to forumhome whos online.

Also when i click on a thread it redirects to a www instead of m. link. Anyway to fix that. (i uses assign a style to m.domain.com?

edit: Looks like if this is set to yes it causes the problem. I try No and it works fine but then some of my addons don't display correctly.

Always use Forum URL as Base Path yes or no

(any way to bypass this in your style)

Robbed
02-20-2011, 05:41 PM
dartho

I ended up setting Always use Forum URL as Base Path to no

then opening headerinclude for my main skins and change this code


<base href="{vb:raw basepath}" />
I set it manually to mydomain/forums

This worked, let me know if you have any better way of doing this.

Just need the who is online fixed if possible.

cisoprogressivo
03-01-2011, 11:53 AM
I installed both the theme and the options plugin, but nothing happens.
http://img806.imageshack.us/img806/2890/selezione001.png (http://img806.imageshack.us/i/selezione001.png/)

If i change the mobile theme from vB panel it works but thank the "desktop" link wont open the desktop theme.

cisoprogressivo
03-01-2011, 12:59 PM
OK, i was missing that one:
https://vborg.vbsupport.ru/showthread.php?t=249967
can I use the default Vbulletin panel?
http://img847.imageshack.us/img847/6144/selezione002.png (http://img847.imageshack.us/i/selezione002.png/)

digitaldome
03-02-2011, 08:20 AM
got this error :

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

Your version: 4.1.2
File version: 4.0.6

Ozymandyus
03-02-2011, 01:03 PM
During the import process, make sure the line "Ignore Style Version (Use style file even if it was created by a different version of vBulletin?)" is set to "Yes".

warrior uw
03-12-2011, 06:50 AM
When i try to add the vsa chatbox, the whole thing goes wrong. It partialy shows it but it just says loading all the time. Now if i select a different theme, i can see the chatbox with no problems and all the chats/shouts.

Any ideas?

yayacannes
03-18-2011, 12:32 AM
Its extremly good but now I have a problem between your add and this add :
https://vborg.vbsupport.ru/showthread.php?p=2174196#post2174196

When I click on the Article forum, iphone safari says :
too many redirects, can't open the page :(

But no problem with the standard template...

Any solutions please ? I can reward to fix it please...

dartho
03-18-2011, 01:37 AM
I would suggest you disable that add-on in this style - there is even an option :
Disable article forum for certain styles (Use a comma separated list of styleids)
in it just for this.

yayacannes
03-18-2011, 02:01 AM
Yes but this option doesn't work :(

Any idea why ?

By the way, is your "simply mobile" theme available to test please ?

Thanks a lot !

Mellow
03-18-2011, 09:55 PM
Sorry if this is a basic question. Any way to add a function to upload a pic from the phone/device using this style? Or, is that strictly an app related function?

Mellow
03-19-2011, 06:09 AM
Strange issue using Motorola Atrix - I can try to post a new thread and enter the title and text but when I hit the Submit, nothing happens, it highlights but doesn't do anything, same if I edit an existing post... any ideas? Thanks,

Redneck-Melly
03-20-2011, 03:24 PM
Never mind

elwachiman
03-20-2011, 06:58 PM
how i can fix this detaill: array in whats going on ad screenshot,,tnks

dartho
03-21-2011, 04:24 AM
how i can fix this detaill: array in whats going on ad screenshot,,tnks

Try new version just put up ...

Gripi
03-21-2011, 07:41 AM
hello..

thanks for this wonderful mobile style, but i found something strange after install it.

the image in the post wont show up, after viewing the source code, i found like this:

<a href="images/smilies/tongue.png" border="0" alt="" title=":P" class="inlineimg" />

the <a href> dont have a closing </a>, so every text after the image become a hyperlink.

i think it should be <img src="">

is this a bugs?

thanks

dartho
03-21-2011, 09:23 AM
Sorry - I left some replacement variables in teh style by accident. You can use the new version I just put up, or manually remove the replacement variables.

Mellow
03-21-2011, 11:50 AM
Strange issue using Motorola Atrix - I can try to post a new thread and enter the title and text but when I hit the Submit, nothing happens, it highlights but doesn't do anything, same if I edit an existing post... any ideas? Thanks,

My issue was using the browser supplied w/Motorola Atrix - I downloaded FireFox for Mobile and I can now 'log in' and 'submit'.

elwachiman
03-21-2011, 02:07 PM
Try new version just put up ...
ok fixed tnks dartho

Mellow
03-21-2011, 04:15 PM
This keeps getting better and better, thanks dartho!

One issue I see.. when adding attachments, the 'close window' buttons don't appear to do anything. I have to 'Back' out to previous screen.

dartho
03-21-2011, 11:26 PM
This keeps getting better and better, thanks dartho!

One issue I see.. when adding attachments, the 'close window' buttons don't appear to do anything. I have to 'Back' out to previous screen.

It's a difficult one - diffrent browsers do different things (as you already know from teh default browser/firefox browser differences) . You could change the the action of the "close this window" to go back rather than try and close...

Mellow
03-22-2011, 03:21 PM
It's a difficult one - diffrent browsers do different things (as you already know from teh default browser/firefox browser differences) . You could change the the action of the "close this window" to go back rather than try and close...

Thank you sir.

DISLEX
03-24-2011, 06:49 AM
I Installed this and followed the directions, as best I can tell. Why does mine look like this?
http://www.westtexasforums.com/ILoveTacobell/files/1/Slanted.jpg

As you can see before the user is logged in, there is a gradual slant. Also, there are no lines/bars/colors/etc.

Once the user is logged in, the slant goes away, but it still looks nothing like your screenshot.

I admit I do not know what I am doing, so I may have done something wrong.

My site is www.WestTexasForums.com. I am on vB4.1.2 Thank you!

dartho
03-24-2011, 09:52 AM
Did you upload the contents of the upload directory to your forum root?

Kolbi
03-24-2011, 04:55 PM
Seems that you haven't uploaded the css file :)

dartho
03-24-2011, 09:24 PM
Yes I have - its in the upload folder in the zip file

Kolbi
03-24-2011, 09:34 PM
@dartho I thought about DISLEX :)

dartho
03-24-2011, 10:19 PM
:o

as you were ...

DISLEX
03-25-2011, 12:48 AM
Did you upload the contents of the upload directory to your forum root?

Yes, sir. I thought so. Perhaps I missed something. Let me double check.
Seems that you haven't uploaded the css file :)

Does the CSS file go directly into the forum root, as well?


Thanks, you two. :)

DISLEX
03-25-2011, 12:58 AM
It's working great now. Thanks again!

imagirlgeek
03-27-2011, 06:10 PM
This is one of my favorite mods. Thanks for all your hard work...my forum members LOVE this!

One thing I would like to do if possible, is to add the member's location to the posts. Where would I go to add this? I think if you could point me in the right direction, I could figure out the details, just need a little nudge.

dartho
03-28-2011, 02:20 AM
By 'Location' do you mean from in their user profiles fields?

If so, you would need to edit the postbit template (if you use postbit legacy, edit the postbit_legacy template) and put the code in there.

imagirlgeek
03-28-2011, 02:31 AM
Yes, that's exactly what I meant. Thanks!

Merriweather
04-04-2011, 02:18 PM
Forgive me for not being able to read back all 22 pages, but a quick search of the thread didn't turn anything up so...

Are there any plans to devote any attention to the Social Groups in this style? I LOVE this style - it's the best one I've tried, but the Social Groups are a mess on it. I don't even think you can start a new discussion in your group from this style. :(

I can make the changes myself, but then if this style is updated, it makes updating a mess for me, so I'd love to see it rolled into the style itself.

dartho
04-05-2011, 12:34 AM
No plans for this - a lot of the frame work is already in there from vb3.x, it just needs to be updatedI can make the changes myself, but then if this style is updated, it makes updating a mess for meSame here ;) and I don;t even use social groups!

Merriweather
04-05-2011, 12:52 AM
I don't understand? I meant if I customize YOUR style, and then YOU release a style update, that makes it really hard for me to sync the two. I was hoping you would be willing to include the updates in your style to avoid that.

As far as I can tell, you can't even post to social groups with this style. :(

dartho
04-05-2011, 03:33 AM
Sorry, I misunderstood. Sure - if you do the updates to the groups templates, I'll merge them in to this style if/when I do another release.

grc
04-06-2011, 08:07 PM
Glad I updated - it looks very good. Thanks for this style.

grc
04-06-2011, 08:19 PM
Just asking hopefully on this one - but I have the DETech "thanks" mod installed on my forum. Is there any way that the "thanks" buttons can be displayed in the mobile style?
https://vborg.vbsupport.ru/showthread.php?t=243510

rughis
04-09-2011, 02:21 PM
Hi

I ugraded my vB 4.1.1 CMS Suite to 4.1.3 and on the lightweight style I have a problem with the Currently Active Users: in any case I see always the word "Array", instead of the active users.

http://img684.imageshack.us/img684/1255/lightstyle.gif

How I can solve this problem?

dartho
04-09-2011, 10:10 PM
Are you using the latest version of the style? I did an update a couple weeks back that fixed that issue in 4.1.2. Just import the XML, no need to update the CSS

HolyKiller
04-10-2011, 02:19 AM
Thanks for update, keep up this good work, don't let this skin "die", because that new vBulletin "Mobile" skin is .... so slooooooowwwwwww and :(:(:(

NgocTam
04-12-2011, 01:22 PM
how to resize image in mobile styles

rughis
04-12-2011, 02:26 PM
Are you using the latest version of the style? I did an update a couple weeks back that fixed that issue in 4.1.2. Just import the XML, no need to update the CSS

Hi dartho, thank you.

Now everything is working fine, thank you for your suggestion and your work. Your mobile style is really the best for vbulletin sites.

dartho
04-12-2011, 11:02 PM
@NgocTam
Try pasting this into the bottom of your header template in this style:

<script type="text/javascript">
function fixImgs(maxW) {
var pix=document.getElementsByTagName('img');
for (i=0; i<pix.length; i++) {
w=pix[i].width;
h=pix[i].height;
if (w > maxW) {
f=1-((w - maxW) / w);
pix[i].width=w * f;
pix[i].height=h * f;
}
}
}

function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}

addLoadEvent(function() {
fixImgs(200); // Change this value to change maximum image width
});
</script>

Not my code - got it from http://javascript.internet.com/miscellaneous/automatic-image-resizer.html

Kolbi
04-13-2011, 07:54 AM
Compiled and optimised:
<script type="text/javascript">
function fixImgs(b){var a=document.getElementsByTagName("img");for(i=0;i<a.length;i++)if(w=a[i].width,h=a[i].height,w>b)f=1-(w-b)/w,a[i].width=w*f,a[i].height=h*f}function addLoadEvent(b){var a=window.onload;window.onload=typeof window.onload!="function"?b:function(){a&&a();b()}}addLoadEvent(function(){fixImgs(200)});
</script>

alwafi
04-15-2011, 06:14 PM
Hello Every one

very nice style

thanks

best regrad's

tadukuttan
04-16-2011, 12:06 PM
Desktop/PCMode link does not seem to work with VB 4.1.3, every time user switches to Desktop Style, clicking any forum link causes style to switch back to Mobile/Lightweight style. I just changed default style chooser to have 'none' option with value '-1', similar to what VB mobile style uses to switch back to full style.

<setting varname="ls_default_style" displayorder="20">
<datatype>free</datatype>
<optioncode>select:eval
$options = fetch_style_title_options_array();$options = array('-1' => $vbphrase['none']) + $options;</optioncode>
</setting>



This works alright, please let me know if there is better fix.

Robbed
04-16-2011, 05:52 PM
Thanks for the update dartho. The image resizer code works good.

Alan_SP
04-17-2011, 01:47 AM
Desktop/PCMode link does not seem to work with VB 4.1.3, every time user switches to Desktop Style, clicking any forum link causes style to switch back to Mobile/Lightweight style. I just changed default style chooser to have 'none' option with value '-1', similar to what VB mobile style uses to switch back to full style.

This seems to be problem for some of my users. I'm waiting for confirmation if this solves their problem.

dartho
04-18-2011, 04:08 AM
Good work around for 4.1.3, tadukuttan. I notice vbulletin.com also does this, choosing a styleid of -1 is the only way to break out of their mobile device detection so I think your solution is probably the fix - although I'd use text "Default Style" as opposed to "none"

rwoscott
04-19-2011, 04:28 AM
I just upgraded VB to 4.1.3, from 4.1.1, and tried to upgrade the style, but get the following error.

Invalid File Specified

I have uninstalled the style, and tried a fresh install, bu tI still get the same error.

Any idea??

dartho
04-19-2011, 08:21 AM
Have you tried re-downloading the zip and extracting it to a new location on your local computer before importing via the Style Manager?

rwoscott
04-19-2011, 09:37 AM
Have you tried re-downloading the zip and extracting it to a new location on your local computer before importing via the Style Manager?
Don't worry, I'm an idiot.
I was importing it as a plugin, not a style. Sheesh, how stupid.

Sorry to trouble you!!

dartho
04-19-2011, 10:43 AM
:) I thought that may be the case - it's a common mistake ...

pentolkorek
04-21-2011, 09:58 AM
update waiting for 4.1.3

Merriweather
04-22-2011, 03:14 AM
I have worked a bit on the Social Groups portion of this style and it's easier to read and members can now start discussions in their Social Groups thread. dartho, when I add in the group pagination so you can see more than just the first ten topics in a group, I'd like to send you my files to see if you can incorporate them into the theme. Can I email you? PM me with an email address if that's ok. :)

aldhawi999
04-22-2011, 09:59 AM
Thanks great style
BUT
is there a way to re-size images?

dartho
04-22-2011, 10:23 AM
yeah, click "Mark as Installed" and then read the previous page or post #2

The Rocketeer
04-22-2011, 06:57 PM
so how do you update it to the latest version?

dartho
04-22-2011, 10:07 PM
almost the same way you install it, only select your existing lightweight style to merge it into and select ignore style version

Phaedrus
04-23-2011, 04:37 AM
Is there a way to add a scroll bar in the reply window?

My users report that when replying to a post with a large quote it becomes impossible to scroll down and reply.

dartho
04-23-2011, 11:04 PM
It should add scroll bars - does for me on my device. You could edit the editor_toolbar_* templates (there are 4 of them) and search for
style="width:100%; height:100px"
and replace with
style="width:100%; height:100px;overflow:auto"

in SHOWTHREAD search for style="height:100px;width:99%" and replace with above code.

This will explicitly specify adding scroll bars when text size is greater than textbox area.

Phaedrus
04-25-2011, 04:04 PM
I'll give that a go, thanks. It appears to be working. I was able to scroll down on a huge post and add a reply. I hope this satisfies the users.

Mark.B
04-27-2011, 11:14 AM
I just wanted to say a big "plus" for this style, I am using it (albeit somewhat modified) on my site and I consider it a far superior solution to the default vB one.

My demo is here:
http://www.bowlandcentral.com/forum/index.php?styleid=167

I've been tweaking and styling it a lot lately.

Current screenshots when logged in. These are taken in desktop Safari but setting the useragent as iPad, they actually look better in mobile Safari.

https://vborg.vbsupport.ru/external/2011/05/46.jpg

https://vborg.vbsupport.ru/external/2011/04/12.jpg

dartho
04-27-2011, 12:40 PM
That's looking pretty sweet, Mark. You've got some nice tweaks there (and in your default style too) - I especially like what you've done with the header/navbar.

Also good to see vb4 is working for you, I still haven't made the leap from 3.8 to 4.x yet.... one of these days!

Thanks for sharing

Mark.B
04-28-2011, 08:25 PM
That's looking pretty sweet, Mark. You've got some nice tweaks there (and in your default style too) - I especially like what you've done with the header/navbar.

Also good to see vb4 is working for you, I still haven't made the leap from 3.8 to 4.x yet.... one of these days!

Thanks for sharing
Thanks Dartho. It's been a gradual evolution to get it to where I want, but I think the main style still has the "vB4 look", which is what I wanted to achieve.

The same is the case with the mobile style, I wanted the vB4 look (as far as possible). By adding avatars I have probably reduced the "lightweight" aspect a little but I was inspired by Invision's mobile style which looks rather good with them in place.

I think the balance is now good, I shall not add any further bloat to it.

Probably my next step on the mobile style, is that I was lazy and hard coded some of the CSS into the templates, I need to transfer that out into the css file, which will then allow me to offer different coloured variants like I do with the main style. Haven't really worked out the best way to marry that in with auto-detection though. Currently I have a custom user field that allows people to override the auto detection (mainly for people with iPads...adding the iPad useragent to the exclusion fields seem to fail and as I don't have an iPad I can't easily troubleshoot that) but it's far from ideal, the cookies keep sticking because they are in the URLs.....

Kolbi
04-29-2011, 09:53 AM
perhaps Dartho keeps some modifications you did? :)

Mark.B
04-29-2011, 02:09 PM
perhaps Dartho keeps some modifications you did? :)

Well they aren't difficult but some of them are less "lightweight" than perhaps was intended for this style, particularly with regard to using avatars.

Most of my changes are simply minor restyling of the basics of this style, for instance using the windowbg class to put boxes round everything, and then adding a couple of elements from the main style to make things look consistent (eg those quote boxes are the same ones I use in the main style).

big dan
04-30-2011, 05:48 PM
Thanks for this style. It's a great option to have. I just upgraded to 4.1.3, is it safe to revert all the templates that need attention?

dartho
04-30-2011, 09:19 PM
yep, should be

gopherhockey
05-02-2011, 08:20 PM
I had an older version of a mobile template and a mobile device detection script. With the most recent vBulletin upgrade, it appears they have their own mobile template and so everything has been reverted.

Users now complain that its unusable.

Is this a different template other than "mobile" and how does a user actually use it.

How does this compare to the recent mobile software that was released officially for vBulletin?

Right now our mobile options are a mess unless someone is using tap-a-talk.

dartho
05-02-2011, 08:47 PM
With 4.1.2, vbulletin have put in their own detection script - I suggest as a start you disable your previous one.

The vBulletin Mobile Style is written for webkit based browsers, so will work on iPhones and Android based phones, but may not display well on other devices.

This style should work for pretty much all devices. As for which one is better, that's subjective - they would both have their positives and negatives.

As a start, you could install this one and also use vBulletins Mobile style and configure the vBulletin mobile detect options in Style & Language Settings to use vBulletin's Mobile style for 'Modern Browsers' and this one for 'Old Mobile Browsers' - although personally I'd configure them both to use this style ;) Best bet is to get your users feedback and see what they like

elwachiman
05-04-2011, 02:08 AM
Compiled and optimised:
<script type="text/javascript">
function fixImgs(b){var a=document.getElementsByTagName("img");for(i=0;i<a.length;i++)if(w=a[i].width,h=a[i].height,w>b)f=1-(w-b)/w,a[i].width=w*f,a[i].height=h*f}function addLoadEvent(b){var a=window.onload;window.onload=typeof window.onload!="function"?b:function(){a&&a();b()}}addLoadEvent(function(){fixImgs(200)});
</script>

Excellent works perfect images are adjusted to the mobile. thanks

Kolbi
05-04-2011, 09:39 AM
Excellent works perfect images are adjusted to the mobile. thanks

Have you tested it with an iPhone? With my notebook the images are resized but not on my mobilephone.

elwachiman
05-04-2011, 02:13 PM
Have you tested it with an iPhone? With my notebook the images are resized but not on my mobilephone.
was tested in nokia e63 soon be tested on the i phone and the images are very well suited to the mobile screen

Kolbi
05-05-2011, 09:47 AM
was tested in nokia e63 soon be tested on the i phone and the images are very well suited to the mobile screen
Result resizing images (current):

Apple iPhone 3G - doesn't work
Apple iPad 1 - works
Nokia E63 - works
PC/Laptop - works

S_E_A
05-05-2011, 01:27 PM
Hello, thank you for a great mod.

I would like to remove 'last post by' and 'date/time of last post'. Plus I'd prefer the forum titles not underline on the index page. How can I do this?

Any help is greatly appreciated.

Thank you.

dartho
05-06-2011, 12:32 AM
I would like to remove 'last post by' and 'date/time of last post'.
edit the threadbit template, search for and delete the following (at the end of the template)

<div class="windowbg">
{vb:rawphrase last} {vb:rawphrase post}: {vb:raw thread.lastposter}, {vb:raw thread.lastpostdate}
<vb:if condition="!$show['detailedtime']">{vb:raw thread.lastposttime}</vb:if>

</div>
Plus I'd prefer the forum titles not underline on the index page. How can I do this?Edit the lightweight.css.php and search for:

forumold,.forumnew,.forumlink, .forumold_lock, .forumnew_lock
{
padding:4px;

and add the following immediately below on a new line

text-decoration:none;

S_E_A
05-06-2011, 07:58 AM
Thank you, dartho. The 'last post by' and 'date/time of last post' has successfully been removed. I tried the non-underline suggestion, however the forum titles remain underlined?

dartho
05-06-2011, 10:23 AM
You could edit the forumhome_forumbit* (only level 1 and level 2 need changing)template and replace occurences of
<a href="{vb:link forum, {vb:raw forum}}">
with
<a href="{vb:link forum, {vb:raw forum}}" style="text-decoration:none;">

S_E_A
05-06-2011, 11:05 AM
Great stuff, dartho. The second suggestion was successful.

Is it possible the background colour of 'postbit as background for username/date of post' and the background of thread titles in the threadbit template (think correct template) can be different?

The Rocketeer
05-09-2011, 05:17 AM
Hi, Its a great style and I have been using this style for a while, but I cant seem to get the forum icons to appear, I was trying to make it look more attractive something close to this one...

https://vborg.vbsupport.ru/showpost.php?p=2189248&postcount=353

https://vborg.vbsupport.ru/external/2011/05/46.jpg

dartho
05-09-2011, 01:31 PM
I'm guessing mark has a bunch of forum icons whose names correspond to the forumid number of each forum and has edited the forumhome templates, taken out the statuicon images and replace with custom images.

just searched - check here: https://vborg.vbsupport.ru/showthread.php?t=239274 for one way on how to do this

grc
05-09-2011, 07:00 PM
Is there some way I can add a link to "My Profile" to the style?

dartho
05-09-2011, 09:12 PM
Sure, edit a template and insert a ink - where did you want the link to appear? Currently I think usernames in threads are linked to profile pages, there isn;t much to see on teh profile page though ...

MissKalunji
05-10-2011, 11:01 AM
anyway to get THIS look for your 3.8 product? or guidance ?

grc
05-10-2011, 02:58 PM
Sure, edit a template and insert a ink - where did you want the link to appear? Currently I think usernames in threads are linked to profile pages, there isn;t much to see on teh profile page though ...

I was trying to get it to play nice with the thanks mod which displays "thanks" users have received on their "My Profile" page. Unfortunately, that information is in a tab and when I link to it in this style it automatically gives the first tab and doesn't even show the other tabs.

dartho
05-10-2011, 09:43 PM
Yeah - this is a pretty cut back style without all the usual hooks and content. If you want to add in stuf like that, you're going to have to do it manually by editing the profile templates or modifying the 'Thanks' plugins to also work with this style.

hilfe-forum
05-16-2011, 01:40 PM
top style...
But in this style google analytics not work...
Why?

Kolbi
05-16-2011, 05:35 PM
Sure? How have you implemented google analytics?

I would recommend vbSeo integration.

hilfe-forum
05-17-2011, 11:03 PM
great Style!
But dont work with VBSEO :(


make my links from:

http://www.hilfe-forum.eu/tutorials-und-anleitungen/144848-tutorial-ber-hamachi.html

to

http://www.hilfe-forum.eu/showthread.php?t=144848&p=1386439#post1386439

so can?t use with VBSEO :(

deverill2010
05-28-2011, 05:34 PM
Hi I am wondering if you can help anyway with this.

I have created a page on facebook for my site and what I wanted to do was create a sneak preview tab of the mobile version in a iframe to show within my facebook page.

The above is all fine and I have that working.

I want to display the mobile version of my site i.e this mod as it looks clean and fits nicely in the page, so to do that I am calling this url - www.mywebsite.co.uk/forum.php?styleid=7

Which is fine and displays the mobile version, the thing is if I log in via the iframe on my facebook page it reverts back to my normal style (non mobile).

Is there a way to create a URL so when it is called it sticks to the mobile version?

I don't know if any of the above is possible but thought I would ask her as you made this mod so would know it better than anyone else.

I appreciate any help..
Thanks
J

dartho
05-28-2011, 09:04 PM
That'd be more of a vbulletin issue than a style issue, and I'm not sure why, or how to work around. Have you tested with a user account?

Robru
05-29-2011, 06:06 PM
Works very well with vB 4.1.4 :)

djawir
05-31-2011, 09:43 AM
attachment problem on vbulletin 4.1.3 + vbseo + unixy varnish cache

cant download attachment, always redirect to login page

djawir
05-31-2011, 02:16 PM
fixed varnish cache issue not style issue

Mooff
06-01-2011, 09:25 AM
First i want to thank you for your great work. The lightweight style really is blazing fast.

Secondly i want to present the adjustment we made on our board hopeing to improve the usability considering every button is pressed by a huge finger instead of a small mouse on a smartphone display.

I'm not so much talking about the optical changes we made.

We have made one big technical change throughout the whole style. Instead of using text based links, we are using the whole div as a link, which immediately increases the clickable area, as shown on the attached screenshot. The whole grey area now functions as a link.

Here is a live demo: http://www.united-forum.de/?styleid=84


Just wanted to let you know and hope you are interested in including the technical change, since that would save us work (template changes) during an update. :D


previous-code:

<div class="forum{vb:raw forum.statusicon}"><img style="margin-top: 3px;" src="{vb:stylevar imgdir_statusicon}/forum_{vb:raw forum.statusicon}-16.png" alt="" align="left">&nbsp;<a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></div>


spanlink-code:

<div class="forum{vb:raw forum.statusicon}" style="position:relative"><a href="{vb:link forum, {vb:raw forum}}"><span class="uf_spanlink"></span></a><span>{vb:raw forum.title}</span></div>

(sidenode, removing the img was purely cosmetic and has nothing to do with the technical change)
additional technical change in the css file:

.forumold,.forumnew,.forumlink, .forumold_lock, .forumnew_lock
{
...
+ position: relative;
}
.uf_spanlink
{
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 1;
}


For the thread view, the other links (lastpost etc.) do need z-index: 2, to be in front of the spanlink (which can be done via css) and these changes need to be made in about 10? or more templates. If someone is interested and my information is unclear, just ask.

Regards Mooff

Winter Sonata
06-01-2011, 06:41 PM
Hello

Does this style recognize small devices ? or shall one change the defulat one once you enter the site ?

Thanks

CardMafia
06-02-2011, 03:17 AM
Hello

Does this style recognize small devices ? or shall one change the defulat one once you enter the site ?

Thanks

Set this style as the default for mobile devices in your admincp :)

jerde
06-02-2011, 07:25 AM
Has anyone pursued to make this fully CMS compatible?

Dartho, how much donation would it take to get this done for CMS?

dartho
06-02-2011, 10:05 AM
@Mooff - I'll have a look into that, thanks for the suggestion and code
@Sonata - what Card+++++ said! (this is just a style - no inbuilt detection, but VB has that)
@jerde - I've done some custom work on CMS for a specific site, but doubt this is directly transferable as the CMS's can be customised so much, so I have no plans at the moment on actually doing the CMS at present.

jerde
06-02-2011, 08:52 PM
Understood, I was just thinking simplicity is better. Have a single column that shows the title, author, and content of the article. That's it. As long as it's fast, and people can read the news, that's all that matters.

Let me know if you would be willing to do a CMS customization for my site blackberryos.com (http://www.blackberryos.com)? I'd send you a donation for your help.

jerde
06-03-2011, 03:56 AM
Anyone know when the vBulletin team will finally come out with a good mobile style?

Filgga
06-12-2011, 12:21 AM
Works very well with vB 4.1.4 :)
Edit... This was my fault, disabled the smilies on the theme

deverill2010
06-12-2011, 06:37 AM
Dartho a few templates need updating with the 4.1.4 version, do you plan on updating these at all?

Pretty please your mobile skin is the best by far. Better than vbulletin one as far as I am concerned :)

deverill2010
06-12-2011, 06:38 AM
I have also noticed that if I edit a post it breaks out of the frame and you have to keep scrolling right to see the end of the box.

Damn updates!

RRiccio
06-13-2011, 07:23 PM
Desktop/PCMode link does not seem to work with VB 4.1.3, every time user switches to Desktop Style, clicking any forum link causes style to switch back to Mobile/Lightweight style. I just changed default style chooser to have 'none' option with value '-1', similar to what VB mobile style uses to switch back to full style.

<setting varname="ls_default_style" displayorder="20">
<datatype>free</datatype>
<optioncode>select:eval
$options = fetch_style_title_options_array();$options = array('-1' => $vbphrase['none']) + $options;</optioncode>
</setting>



This works alright, please let me know if there is better fix.where do I edit this?

dartho
06-14-2011, 12:49 AM
I have also noticed that if I edit a post it breaks out of the frame and you have to keep scrolling right to see the end of the box.

Damn updates!

Go into style manager and open up the Editor Templates > editor_toolbar_off template. Copy it's contents and then edit the Editor Templates > editor_ckeditor template and paste in what you copied. Then edit the editor_clientscript template and delete it's contents.

baghdad4ever
06-14-2011, 10:53 AM
how to add google ads in this style?

wrhatter
06-14-2011, 04:01 PM
Dartho a few templates need updating with the 4.1.4 version, do you plan on updating these at all?

Pretty please your mobile skin is the best by far. Better than vbulletin one as far as I am concerned :)

This.

Users love the template, but it broke with the 4.1.4 upgrade.

Going to see if it's just a css issue, and hopefully it can be resolved relatively easily.

wrhatter
06-14-2011, 04:15 PM
If you reupload the template it kicks back in properly.

Tells me that the upgraded templates broke the CSS links.

Not a big issue if you haven't heavily modified the templates, you can just re-upload and it'll fix itself. Otherwise, you'll have to re-edit your templates (postbit for me) to add your custom funcationality back in.

leftanalog
06-28-2011, 04:52 PM
Ive been looking through the templates, but am unsure what I need to add/change to get the "Post thank you" hack to work with this lightweight style.

If someone could please help.
Thanks a ton.

Ommand
06-28-2011, 05:04 PM
I'm having a little bit of a hiccup using the provided plugin to disable vbadvanced integration.

If I view the forums from my desktop browser and select the Lightweight style everything displays correctly, if I view the same page from my phone (htc desire) the forum integration remains and the forums generally display broken, as seen in the attached screenshot.

Any thoughts what the issue could be?

P.S. I have the plugin installed and it appears to be correctly configured.

Edit: Sorry disregard, had to clear my phone's cache. Excellent theme / plugin, thanks a lot!

dartho
06-28-2011, 10:06 PM
Ive been looking through the templates, but am unsure what I need to add/change to get the "Post thank you" hack to work with this lightweight style.

If someone could please help.
Thanks a ton.
You should as in the post thanks hack thread - they would have a a much better idea than I.
...Any thoughts what the issue could be?

P.S. I have the plugin installed and it appears to be correctly configured.


Edit: Sorry disregard, had to clear my phone's cache. Excellent theme / plugin, thanks a lot!

Glad to hear is OK - as an aside, that screen dump shows you don;t have this style installed, but the old Moile style I originally did.

Ommand
06-29-2011, 05:59 PM
Weird, I'm most certainly using the latest version from this thread. Perhaps it has something to do with me being on an older version of vbulletin.

dartho
06-29-2011, 10:28 PM
I guess you fixed it? Looks like t he right version on your site.

The Dawg
07-02-2011, 08:11 PM
A couple of questions:

2) Sometimes videos show up as the entire video and sometimes just a link "Youtube Video". Any idea why?
.


2. DO you have any media embedding plugins? The videos natively supported by vBuilletin would show as links, but of you have AME or other BBCODE, it would show as a video.


I am using 4.1.4, so the VB [ video ] code is used for embeds now. Is there a way I could get the youtube vids to show up as videos instead of links?



FIXED:

I replaced the bbcode_video template with the code from the VB mobile skin and it fixed the problem.

dartho
07-02-2011, 08:34 PM
try reverting the bbcode_video template

Robbed
07-03-2011, 01:32 AM
Since upgrading to 4.14

on post reply the smilies are lined up in a column, any way to fix it?

Robbed
07-03-2011, 02:28 AM
I am using 4.1.4, so the VB [ video ] code is used for embeds now. Is there a way I could get the youtube vids to show up as videos instead of links?



FIXED:

I replaced the bbcode_video template with the code from the VB mobile skin and it fixed the problem.

Can you post the template. I tried using the one from VB mobiel style and it still embeds.

dartho
07-03-2011, 06:33 AM
@robbed - there are now smilies or embeded video in this style - sounds like you've merged templates? Re-install the lightweight one over top perhaps?

Here's teh bbcode_video template for this style - do a compare:

<vb:if condition="$provider == 'hulu'">
<a href="http://www.hulu.com/embed/{vb:raw code}" target="_blank">Hulu Video</a>
<vb:elseif condition="$provider == 'youtube'" />
<a href="http://www.youtube.com/v/{vb:raw code}" target="_blank">Youtube Video</a>
<vb:elseif condition="$provider == 'vimeo'" />
<a href="http://vimeo.com/moogaloop.swf?clip_id={vb:raw code}" target="_blank">Vimeo Video</a>
<vb:elseif condition="$provider == 'dailymotion'" />
<a href="http://www.dailymotion.com/swf/{vb:raw code}" target="_blank">Dailymotion Video</a>
<vb:elseif condition="$provider == 'metacafe'" />
<a href="http://www.metacafe.com/fplayer/{vb:raw code}.swf" target="_blank">Metacafe Video</a>
<vb:elseif condition="$provider == 'google'" />
<a href="http://video.google.com/googleplayer.swf?docid={vb:raw code}" target="_blank">Google Video</a>
<vb:elseif condition="$provider == 'facebook'" />
<a href="http://www.facebook.com/v/{vb:raw code}" target="_blank">Facebook Video</a>
</vb:if>

Mr Morningstarr
07-03-2011, 05:07 PM
Can't upload the XML file

Invalid File Specified

dartho
07-03-2011, 08:51 PM
are you trying to do it as a product or style?

Robbed
07-03-2011, 09:38 PM
thanks that fixed the video issue.

Do i have to install this style after every upgrade. Doesn't it automatically merge templates?

dartho
07-04-2011, 04:20 AM
I think you can not have the automerge thing happen, or after amn upgrade un-merge? I'll takenote when I next do an upgrade :)

blankpage
07-04-2011, 05:21 AM
After I installed this style, I can't see any backgrounds.
I attach 2 pics.
threads appear as a list without divisions

Why?
Thank you.

dartho
07-04-2011, 05:29 AM
You haven't upload the CSS file to your forum root

blankpage
07-04-2011, 10:24 AM
Ok ! Thank you! Now it works! :)

Mr Morningstarr
07-06-2011, 04:02 PM
are you trying to do it as a product or style?

Yes, guess who's feeling pretty damn stupid right now. It had been a long day. ;)

ZeroHour
07-07-2011, 12:40 AM
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.


<vb:if condition="$bbuserinfo['signature']">
<input type="hidden" name="signature" value="1"/>
</vb:if>


Also I personally replaced vbcms_page with:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
{vb:raw headinclude}
<title>{vb:raw vboptions.bbtitle}</title>
{vb:raw headinclude_bottom}

<script type="text/javascript">
<!--
window.location = "/forums/"
//-->
</script>
</head>
<body>

{vb:raw header}

{vb:raw navbar}

<div id="pagetitle" class="pagetitle ui-bar-b">
<h1 class="pagetitle">{vb:rawphrase vbulletin_message}</h1>
</div>

<div data-role="content">
<div class="ui-body ui-body-e">{vb:rawphrase content_not_supported_by_mobile_style, {vb:link forumhome}}</div>
</div>

{vb:raw footer}

</body>
</html>

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.

thenamesgould
07-07-2011, 11:29 AM
I've installed this and it's all working fine, however it's done something to all the rest of my styles, and I now can't edit any of them in the Edit Templates screen.

All the templates have turned yellow, indicating they are inherited from a Parent style ... any idea what I have done and how I can reverse it? It's not much help if I can't edit any templates!

dartho
07-07-2011, 10:57 PM
Sounds like it has merged with your master style or you have somehow out it in as a parent?

Question: Did you upload teh XML to your forum and install from there, or install from your local machine by browsing to the XML file and installing?

Either way, try uploading tools.php from the vbulletin install files to your admincp, run it and rebuild the master style (I think that's what it is called - it's one of the first options)

lbrunoa
07-08-2011, 03:32 PM
i got on error cause i'm using 4.1.4 and says that is only for 4.1.2

Xtrato
07-08-2011, 07:34 PM
it seems that this skin is not working right with the new version of vBulletin ? i think there i no more BB Code..

for example , when you quote someone who has 2 paragraphs.. the format will get lost , such as the spacing , or any text formatting ?...

Any idea on how to solve this particular problem ?

please any help on this matter is appreciated.

dartho
07-08-2011, 09:25 PM
i got on error cause i'm using 4.1.4 and says that is only for 4.1.2
Choose to ignore style version when installing
I guess on 1.0.2a the infraction link on each post is missing?
I got that report from one of my moderator after i upgraded the skin (and 4.1.4).
Before i upgraded it, the infraction link was there.
Add

<vb:if condition="$show['reportlink']"><a id="btn" href="{vb:raw post.reportlink}" rel="nofollow">{vb:rawphrase report_bad_post}</a></vb:if>

into your postbit template just before the last </div>
it seems that this skin is not working right with the new version of vBulletin ? i think there i no more BB Code..

for example , when you quote someone who has 2 paragraphs.. the format will get lost , such as the spacing , or any text formatting ?...

Any idea on how to solve this particular problem ?

please any help on this matter is appreciated.
I can't reproduce this on my test site

Xtrato
07-09-2011, 01:07 AM
Hi dartho thank you , can you please check http://www.jamiiforums.com/ , i tested with different skins , and this one tends to do such thing under vb 4.1.4

thanks again.

Robbed
07-12-2011, 02:01 AM
@robbed - there are now smilies or embeded video in this style - sounds like you've merged templates? Re-install the lightweight one over top perhaps?

Here's teh bbcode_video template for this style - do a compare:



This about the issue when replying to a thread not quick reply with the mobile style.

You mentioned in your post that no smilies should show up.

I uploaded your style and created a test style and it still does the same thing. I've included a screen shot.


Thanks,

Rob

dartho
07-12-2011, 02:06 AM
That's not using the new_reply template that comes with this style, or you have an add-on doing stuff. The new_reply template should be:


{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>
{vb:raw headinclude}

<title>{vb:raw threadinfo.prefix_plain_html} {vb:raw threadinfo.title} - {vb:raw phrase reply_to_topic}</title>
</head>
<body>

<div class="bodywrapping">


{vb:raw header}

{vb:raw navbar}

<div class="titlebg">{vb:rawphrase reply_to_thread}: {vb:raw threadinfo.title}</div>
<form action="newreply.php" method="post">
<div>
{vb:rawphrase message}:<br />
<vb:comment><textarea name="message" id="{$editorid}_textarea" rows="10" cols="15" style="width:99%; height:100px">{vb:raw newpost.message}</textarea></vb:comment>

{vb:raw messagearea}
<input type="hidden" name="emailupdate" value="
<vb:if condition="$emailchecked[0]!=''">
0
<vb:elseif condition="$emailchecked[1]!=''" />
1
<vb:elseif condition="$emailchecked[2]!=''" />
2
<vb:elseif condition="$emailchecked[3]!=''" />
3
<vb:else />
9999
</vb:if>
">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="postreply" />
<input type="hidden" name="t" value="{vb:raw threadid}" />
<input type="hidden" name="p" value="{vb:raw postid}" />
<input type="hidden" name="specifiedpost" value="{vb:raw specifiedpost}" />
<input type="hidden" name="posthash" value="{vb:raw posthash}" />
<input type="hidden" name="poststarttime" value="{vb:raw poststarttime}" />
<input type="hidden" name="loggedinuser" value="{vb:raw bbuserinfo.userid}" />
<input type="submit" id="btn" name="sbutton" id="{vb:raw editorid}_save" value="{vb:rawphrase submit_reply}" accesskey="s" tabindex="2" />
{vb:raw attachmentoption}

</div>
</form>
{vb:raw footer}
</div>
</body>
</html>


check differences and/or overwrite yours with that and see how you go

Robbed
07-12-2011, 04:10 PM
hmm tried it same thing and i disabled pluggins.

Here is part of the source if that helps, it was working before the upgrade/

t>
<!-- / Editor Scripts --> <div id="vB_Editor_001" class="blockrow texteditor">
<div class="editor">
<div class="editor_textbox_container smilie">
<div class="editor_textbox editor_textbox_smilie">
<script type="text/javascript" src="clientscript/ckeditor/ckeditor.js?t=A7HG4HT&amp;v=414"></script><script type="text/javascript" src="clientscript/vbulletin_textedit.js?v=414"></script><textarea id="vB_Editor_001_editor" name="message" rows="8" cols="60" tabindex="1">

<div class="editor_smiliebox">


<ul class="smiliebox floatcontainer" id="vB_Editor_001_smiliebox">

<li>

dartho
07-12-2011, 10:16 PM
OK - must be on of your editor templates. If you haven;t customised this style, try reinstalling it and merging into your existing lightweight style. This should ensure all templates as the shold be.

Robbed
07-13-2011, 12:49 AM
I installed your style from scratch and same thing so it had to be a VB setting.

I removed this code from editor_smileybox

<vb:comment><h4 class="blocksubhead">Smilies</h4></vb:comment>

<ul class="smiliebox floatcontainer" id="{vb:raw editorid}_smiliebox">
{vb:raw smiliebits}
</ul>
<vb:if condition="$show['moresmilieslink']">
<div class="moresmilies">[<a href="javascript://" onclick="vB_Editor['{vb:raw editorid}'].open_smilie_window(smiliewindow_x, smiliewindow_y); return false" title="{vb:rawphrase showing_x_smilies_of_y_total, {vb:raw vboptions.smtotal}, {vb:raw totalsmilies}}">{vb:rawphrase more}</a>]</div>
</vb:if>


I'm guessing disabling the smilie boxes in VB would of done the same thing but it would apply to all styles.

Will this cause any other issues by removing this code from the mobile style?

dartho
07-13-2011, 01:32 AM
I think that may be a new template, as it does not exist in my style, so deleting it's contents is probably the way to go. To answer your question - no, it will not cause other issues removing that code.

ed: Just looked at my test site, I have that template there same as above.

However, I have deleted the contents of the editor_clientscript template. Also, I have replaced the contents of the contents of the editor_ckeditor template with that of the editor_toolbar_off template

dartho
07-13-2011, 01:33 AM
BTW - I am waiting for one more vBulletin upgrade before releasing an updated version which should hopefully fix these issues...

Robbed
07-13-2011, 01:46 AM
Thanks again dartho.

thenashy
07-13-2011, 11:07 AM
On my forum, when a user quotes, they are getting a <br />. HTML is disabled.

Eg

Oh wow Nashy. You are very smart and funny!

<br />
<br />

Na, he's really not!



How would one fix this?

Xtrato
07-15-2011, 03:38 PM
On my forum, when a user quotes, they are getting a <br />. HTML is disabled.

Eg



<br />
<br />

Na, he's really not!



How would one fix this?


This is what happens on jamiiforums.com as well ,any help is appreciated .

Thanks

grc
07-15-2011, 07:32 PM
This is what happens on jamiiforums.com as well ,any help is appreciated .

Thanks

The same on my forum.

moonclamp
07-17-2011, 09:20 AM
Line breaks aren't working at all on our forum (4.1.4). They're fine using quickreply, but in new_reply they're not being parsed at all. (using Dolphin browser on an Android phone).

I also removed the smiley box - which helps a little.

Also noticed that the textarea in new_reply now spans double the width of the device (ie left to right scrolling)

This happens on editing posts too.

teach1st
07-17-2011, 08:44 PM
I need more sleep. Edited, no problem! :)

hohleweg
07-18-2011, 12:38 PM
Hello
I'm now at 4.1.4
27 errors in the style
there's an update soon?
Greetings Jo

dartho
07-18-2011, 10:11 PM
I'll likely update after 4.1.5 is released.

However, the only issue I have had on my test site after updating to 4.1.4 is smileys showing up in a full reply which can be fixed following the instructions on the previous page (https://vborg.vbsupport.ru/showpost.php?p=2219837&postcount=433).

hohleweg
07-19-2011, 06:27 AM
Hello
Thanks for the info.
Then I wait for 4.1.5.
Greeting Joachim

sportsfroma2
07-24-2011, 11:54 PM
I think that may be a new template, as it does not exist in my style, so deleting it's contents is probably the way to go. To answer your question - no, it will not cause other issues removing that code.

ed: Just looked at my test site, I have that template there same as above.

However, I have deleted the contents of the editor_clientscript template. Also, I have replaced the contents of the contents of the editor_ckeditor template with that of the editor_toolbar_off template

thanks Dartho, that helped alot...

sportsfroma2
07-25-2011, 12:00 AM
Dartho, question for you- This probably isn't a result of your mod, but since you know a lot about the functionality of the mobile style and vbulletin, figured I'd put this question in this thread:


I currently have a subdomain setup (through cpanel) so that mobile.mydomain.com takes me to the site in "mobile style" - the site in this skin.. So mobile.mydomain.com = http://www.mydomain.com/forums/forum.php?styleid=21

Now I wanted to turn on mod_rewrite friendly URL's for my site, so I used the .htaccess file that's bundled with vbulletin to rewrite the URLs- everything worked fine my my main style, but I was no longer able to get to the lightweight style from mobile.mysite.com

any recommendation?

dartho
07-25-2011, 01:34 AM
What I suggest you do if you want a mobile.domain.com type site is install another add-on mine - https://vborg.vbsupport.ru/showthread.php?t=174381 - after installing this, configure it for mobile.domain.com, also add mobile.domain.com to your post referrer whitelist in Admincp->Settings lastly, configure the sub domain in cpanel to not redirect, but to park it on the same websapce as your primary domain.

sportsfroma2
07-25-2011, 02:49 AM
What I suggest you do if you want a mobile.domain.com type site is install another add-on mine - https://vborg.vbsupport.ru/showthread.php?t=174381 - after installing this, configure it for mobile.domain.com, also add mobile.domain.com to your post referrer whitelist in Admincp->Settings lastly, configure the sub domain in cpanel to not redirect, but to park it on the same websapce as your primary domain.

Hmm, I'll look into that... Thanks again Dartho, really appreciate it :cool:

ndut
07-30-2011, 03:40 AM
waiting for vb 4.1.5

etca
07-30-2011, 03:45 AM
I'll likely update after 4.1.5 is released.

However, the only issue I have had on my test site after updating to 4.1.4 is smileys showing up in a full reply which can be fixed following the instructions on the previous page (https://vborg.vbsupport.ru/showpost.php?p=2219837&postcount=433).
i use 4.1.5, lightweight is work
except showing the smiley of course. :)

S_E_A
07-30-2011, 04:05 PM
I have also noticed that if I edit a post it breaks out of the frame and you have to keep scrolling right to see the end of the box.
Damn updates!

Go into style manager and open up the Editor Templates > editor_toolbar_off template. Copy it's contents and then edit the Editor Templates > editor_ckeditor template and paste in what you copied. Then edit the editor_clientscript template and delete it's contents.

I have tried the above suggestion without any luck. Has the suggestion worked for others? If yes, then I am obviously doing something wrong. Or will the 4.1.5 update resolve the problem, dartho?

Thank you

dartho
07-30-2011, 11:22 PM
I didn;t look into the post editing breaking out of frame as I couldn't reproduce. Could you link me to your site so I can check? I'd need an account to test

dartho
07-31-2011, 10:16 AM
Got PM - thanks. I see the "breaking out of the frame" issue. I think I'm going to have to upgrade my test site to 4.1.5 to check properly which may not happen for a couple days. If you can PM me admin credentials (or change the acocunt I just logged in with to have admin rights on tenmplate editing) I could look nowish...

S_E_A
07-31-2011, 10:40 AM
Hi dartho,

I have sent you a PM.

Thank you.

S_E_A
07-31-2011, 10:49 AM
I've changed my mind :) There is no big rush, so I've decided to wait until you upgrade your test site to 4.1.5 to check properly. That okay mate?

matt94gt
08-03-2011, 12:56 AM
Hi, just waiting for vBulletin 4.1.5 version!

Thanks!

The Rocketeer
08-03-2011, 05:48 AM
Also waiting for vBulletin 4.1.5 version!

@Dartho What are the plans for this mobile style? I hear vb is coming up with their own mobile style that was supposed to be included with 4.1.5 but has been delayed till 4.1.6.?? how will this function along side that? and would we have to disable one to use the other? some details would be appreciated

very excited. thaNKS

dartho
08-03-2011, 06:45 AM
vBulletin already have had their own mobile style for a few releases now - since 4.1.2? Install it and check it out. As with all styles, you can have as many as you like installed.

The Rocketeer
08-03-2011, 08:41 AM
What do you prefer? This style or the one included in vB ? I personally think this looks better than the one that comes with vB.

Anyway, Also wanted to ask, when will a fully compatible version for 4.1.5 will come out? A lot of things have changed since 4.1.3 and since we are on 4.1.5 I am sure it will install and run but just to make sure I think you should probably just have a quick check to make sure its 100% compatible and all. let me know! thanks

dartho
08-03-2011, 09:14 AM
Neither - I don't use vb4 :)

Not sure if/when it would be "fully compatible" - there are just a couple changes mentioned on previous pages to make this one work with 4.1.5 as well as it does with previous versions. I just need the time to sit, implement and package up properly before puttibg up a new version here...

matt94gt
08-03-2011, 05:15 PM
How do I install the one on vb4 thats included?!

dartho
08-03-2011, 08:57 PM
How do I install the one on vb4 thats included?!

check here for instructions https://www.vbulletin.com/docs/html/styles_mobile

Crotan
08-05-2011, 05:51 AM
Thanks for this!

Installed and made template changes as per
However, I have deleted the contents of the editor_clientscript template. Also, I have replaced the contents of the contents of the editor_ckeditor template with that of the editor_toolbar_off template

Anything else I should be aware of?

Bounce
08-07-2011, 08:50 PM
vBulletin mobile style is rubbish compared to this!

I installed a test style for my users with the new mobile style to see if they thought it was better than this one, not one agreed that it was, so this style will be kep't as long as dartho is around to update it!

Thanks for your continued hard work Mr D

merly70
08-08-2011, 09:11 PM
Hi, I've searched but have not found this mentioned. Some users on the forum rely heavily on their subscribed threads list, and are reporting that threads they start when using Lightweight on not showing on the list, though they do appear once they make a reply to the same thread. We are on 4.1.4. I just tested and had the same result.

dartho
08-08-2011, 09:39 PM
try this:
edit newthread template, search for
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />and add immediately after
<input type="hidden" id="subscribe" name="subscribe" value="1" />

matt94gt
08-08-2011, 11:56 PM
thanks, still would perfer this one then vB's so ill wait for the update.

The Rocketeer
08-09-2011, 08:29 AM
come on Dartho! give us the updated version already. Please just sit down and do it for us :D

RRiccio
08-09-2011, 11:18 AM
Desktop/PCMode link does not seem to work with VB 4.1.3, every time user switches to Desktop Style, clicking any forum link causes style to switch back to Mobile/Lightweight style. I just changed default style chooser to have 'none' option with value '-1', similar to what VB mobile style uses to switch back to full style.

<setting varname="ls_default_style" displayorder="20">
<datatype>free</datatype>
<optioncode>select:eval
$options = fetch_style_title_options_array();$options = array('-1' => $vbphrase['none']) + $options;</optioncode>
</setting>



This works alright, please let me know if there is better fix.where do I edit this?
anyone?

dartho
08-09-2011, 01:32 PM
in the XML before it is imported

RRiccio
08-10-2011, 01:23 PM
Its already installed, can I just import it again over the already installed? Will I lose the modifications I did?

thank you

Ozymandyus
08-10-2011, 01:38 PM
Its already installed, can I just import it again over the already installed? Will I lose the modifications I did?

You can do it that way, as an upgrade install. Usually you get the best results if you uninstall first before re-installing, however. Another option would be to give it a different name and install it alongside your current install, then move over your customizations before uninstalling the original version.

The Rocketeer
08-17-2011, 01:45 AM
still no updates. :(

Macgiber
08-17-2011, 02:21 AM
installed

DaffyDuck
08-17-2011, 07:05 AM
Where would you mod this style, so as to reduce the size of the thumbnails displayed in the CMS?

Code Geass
08-21-2011, 01:57 PM
works on 4.1.5 ?

Bounce
08-21-2011, 05:38 PM
Can Private Messages be deleted in a future version ?

Bounce
08-21-2011, 05:39 PM
works on 4.1.5 ?

Yes, works fine on my 4.1.5

deverill2010
08-23-2011, 03:24 PM
Dartho I think I posted about this before but cant find my post. When I create a new thread or click reply in this style, the smilies are all in a vertical list which makes the box really huge.

How do I get them to wrap horizontally?

this is the code in the editor_smiliebox

<vb:comment><h4 class="blocksubhead">Smilies</h4></vb:comment>

<ul class="smiliebox floatcontainer" id="{vb:raw editorid}_smiliebox">
{vb:raw smiliebits}
</ul>
<vb:if condition="$show['moresmilieslink']">
<div class="moresmilies">[<a href="javascript://" onclick="vB_Editor['{vb:raw editorid}'].open_smilie_window(smiliewindow_x, smiliewindow_y); return false" title="{vb:rawphrase showing_x_smilies_of_y_total, {vb:raw vboptions.smtotal}, {vb:raw totalsmilies}}">{vb:rawphrase more}</a>]</div>
</vb:if>

deverill2010
08-23-2011, 03:53 PM
Don't worry Dartho, I did your fix ages ago that I asked about when the editor box breaks out of the frame (bit slow i know lol) and it has removed the smilies completely, so no need to worry now.

wullieclsfb
08-24-2011, 11:26 AM
not being detected after latest vbulletin update

wullieclsfb
08-24-2011, 01:24 PM
got it working but the page is to big for the phone now and is scrolling with a black box below the logo and on the footer any help please

dartho
08-24-2011, 11:26 PM
do you have a link I can look at?

wullieclsfb
08-25-2011, 07:22 PM
do you have a link I can look at?

www.orangeandpurple.org

dartho
08-26-2011, 09:28 PM
You've got additional CSS references which are overriding the CSS from this style. Check your headinclude/header temlates for something like
<link rel="stylesheet" type="text/css" href="css.php?styleid=19&amp;langid=1&amp;d=1314350285&amp;sheet=add itional.css" />

and remove it

dbetanco
08-27-2011, 02:31 AM
dartho, release the option for blog and cms!! maybe by donation? :)

dartho
08-27-2011, 04:10 AM
There is no CMS or Blog option. I have done custom work for someone to make their CMS work within this style, but those changes did not translate over to the default CMS or other layouts, so can not be used in this style.

dbetanco
08-27-2011, 04:47 AM
So made CMS work on my style :)
contact you by private

rughis
08-27-2011, 01:55 PM
Hi, I made a mistake and I revert the lightweight style memberinfo template. Now if I view a user profile in lightweight style, it is not correctly formatted.

How I can do to restore the original version of lightweight style memberinfo template?

Thank you in advance!

dartho
08-27-2011, 09:21 PM
re-install the style and merge into existing Lightweight style

Filgga
08-29-2011, 11:08 AM
works on 4.1.5 ?
YES,

It works but still I get same errors, waiting for dartho's solution

https://vborg.vbsupport.ru/attachment.php?attachmentid=132449&stc=1&d=1314619677

Skyrider
09-01-2011, 07:01 AM
Mobile version is awesome, but when I edit a reply all the smilies are screwed up. Anyway to fix this? And could some moderator function be added in the mobile mode? Such as closing threads?

dartho
09-01-2011, 08:26 AM
Delete the contents of the editor_clientscript template. Also, replace the contents of the editor_ckeditor template with that of the editor_toolbar_off template.

@ngel
09-01-2011, 09:22 PM
When I search for "New Posts" and try to browse the "Last Page" of a topic, it takes me to the first. How can I fix this? Great work by the way ;)

dartho
09-02-2011, 10:01 PM
try this:

edit the search_threadbit template and search for
showthread.php?{vb:raw session.sessionurl}t={vb:raw thread.threadid}&amp;page={vb:raw thread.totalpages}{vb:raw thread.highlight}
replace with
{vb:raw thread.lastpagelink}

if that doesn't work, try this for the replace with:
{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw thread.lastpostid}



@filgga - I can not reproduce this behaviour

omerfarukak
09-03-2011, 08:53 AM
When i try to update, it says "Invalid File Specified"

John Lester
09-04-2011, 07:10 PM
Nevermind :D

@ngel
09-09-2011, 10:13 AM
some members can't view the mobile style even with a direct link to the style they get the desktop theme on their phones! What can I do? They have cleared the cache, and check with other browsers...

DonosOdD
09-13-2011, 11:35 AM
some members can't view the mobile style even with a direct link to the style they get the desktop theme on their phones! What can I do? They have cleared the cache, and check with other browsers...
Set the default mobile theme in admincp > style and language options. There you can set the default theme for desktops and mobile browsers.


Are there any plans to add group functionality for this, so that the users can view group discussions they created?

dartho
09-13-2011, 10:17 PM
no, no plans at the moment, I don't even use vb4 yet and never really used social groups either...

matt94gt
09-15-2011, 12:21 AM
so this does not work properly in 4.1.5?

dartho
09-15-2011, 09:14 AM
I think the only issue with 4.1.4+ is this one: https://vborg.vbsupport.ru/showpost.php?p=2207400&postcount=397

Mark.B
09-17-2011, 08:07 AM
never really used social groups either...
That's ok, neither does anyone else. :)

cavyspirit
09-17-2011, 05:10 PM
How does this style and functionality compare with the 4.1.6 Mobile Style?