PDA

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


Pages : 1 2 [3] 4 5

dartho
09-17-2011, 09:59 PM
They're both functional. This one has no blog or CMS support

dawges
09-23-2011, 07:57 PM
Just wanted to say that this is the best mobile skin out there. Very fast and smooth.

Just hoping for an update.

Thanks Dartho.

barmen_1982
09-26-2011, 10:48 AM
Hadi Mobile Tema ya Eklemişsin Eyvallah Ama Ne Demeye Default Temaya Bile Telif hakları, Jelsoft Enterprises Ltd'e aittir. ©2000 - 2011 Yazmaya Hakkın Yok Kaldırıyorum.

born2ski
09-26-2011, 08:29 PM
Great mod Dartho!!!! It should be on all vBull sites!

One thing I've noticed is that when moving a thread, even if you uncheck the leave redirect box, it leaves a redirect.

Gripi
09-27-2011, 05:23 AM
yes.. superb style..

but could you make it compatible to run with "Sorky - SubForum List Control", specially sort subforum list by alphabet.

matt94gt
10-01-2011, 08:00 PM
4.1.5?

Ozymandyus
10-01-2011, 08:12 PM
4.1.5?

Works fine with 4.1.5.

inphoenix
10-03-2011, 04:34 AM
I have installed this mod for 4.1.5 and seems to be working fine if I go to www.mysite.com/forum/forum.php. However if I go to www.mysite.com (my CMS) and then click on forum, it will switch to full version and not to mobile version. What am I doing wrong?

wtfaatp
10-06-2011, 12:25 AM
Seems this no longer works with vb 4.1.7

ZeroHour
10-06-2011, 01:56 AM
Seems this no longer works with vb 4.1.7

What doesnt work?

ET240
10-08-2011, 03:27 PM
Hihi.... Does this style support poll on mobile?

Mark.B
10-11-2011, 07:50 PM
Hihi.... Does this style support poll on mobile?
It does on mine.

Ozymandyus
10-11-2011, 07:58 PM
Seems this no longer works with vb 4.1.7

Works fine for me!

thenamesgould
10-14-2011, 01:48 AM
Still works, but I couldn't re-install it.

Would love an updated version - I have the same problem with no line breaks when qouting or editing a post.

Overall, an outstanding mod though. :D

RS25com
10-14-2011, 06:48 PM
I cannot install the XML file on 4.1.6, I get this error:

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

Your version: 4.1.6
File version: 4.1.2

Solution?

Ozymandyus
10-14-2011, 07:13 PM
I cannot install the XML file on 4.1.6, I get this error:

Check the box that says 'Ignore Style Version' when doing your import/upload.

rootsxrocks
10-15-2011, 02:49 AM
well fiddle I was about to install this and toss tapatalk because this is really better after looking at Marks forum via mobile , I have 4.15 and have both tapatalk and forum runner installed but I deleted the vb mobile style cause its crap anyhow. but when I tried to install it I got an invalid file error any hints ?

etca
10-15-2011, 06:34 AM
Check the box that says 'Ignore Style Version' when doing your import/upload.


I did, but doesn't work on my 4.1.7 *sigh

dartho
10-15-2011, 10:25 AM
I'll update my test site and give it a going over over the weekend ...

fofo4u
10-16-2011, 05:42 AM
Hello everyone

Thanks to this Mobile style .. can you help me .. I want to get the Style Mobile is compatible with 4.14 and the highest as well as be supportive of the Arabic language ... I hope to help me
I'm from Kuwait ............Arab country ..

alhindasi
10-16-2011, 08:05 PM
please fix the Registration style it is not ok

alhindasi
10-16-2011, 08:05 PM
Registration please fix it please

dartho
10-16-2011, 10:49 PM
doesn't work on my 4.1.7 *sigh
seems to be working fine under 4.1.7

gezuvor
10-17-2011, 05:16 PM
Just installed this on 4.1.7 and it's a no-go. Style looks great, but the auto-detect isn't happening on my iPhone (iOS 4.3.5) or iPad (iOS 5.0)...

alhindasi
10-17-2011, 05:41 PM
please fix the Registration style it is not ok
Registration please fix it please

dartho
10-17-2011, 09:32 PM
Just installed this on 4.1.7 and it's a no-go. Style looks great, but the auto-detect isn't happening on my iPhone (iOS 4.3.5) or iPad (iOS 5.0)...

It doesn't look like you have made the style user selectable

cash7c3
10-17-2011, 11:50 PM
Having a problem - no one can post replies on the site anymore using this style.

http:/modmyi.com.

Any help?

(btw, we've got a solid 1 column CMS if you want any help with thaT)

dartho
10-18-2011, 06:51 AM
I registered and replied to a thread on modmyi ... ?

cash7c3
10-18-2011, 07:18 AM
In the CMS? That's where we're seeing the issue - pressing reply does nothing.

dartho
10-18-2011, 07:55 AM
Apart from the fact that this is a forum only style (no CMS support), I just successfully replied to a CMS article (and reported it)

autoescala
10-20-2011, 04:39 PM
I have installed this mod for 4.1.5 and seems to be working fine if I go to www.mysite.com/forum/forum.php. However if I go to www.mysite.com (my CMS) and then click on forum, it will switch to full version and not to mobile version. What am I doing wrong?

I have the same problem... :(

Anyone knows how can I call the mobile version as http://m.myweb.com ? and this subdomain loads always by default the "light" version ? Also I want all the bot spiders will use this version, but, I Don't know whre can I configure this issue.... anyone knows how to it?

dartho
10-20-2011, 09:14 PM
Anyone knows how can I call the mobile version as http://m.myweb.com ? and this subdomain loads always by default the "light" version ? try this: https://vborg.vbsupport.ru/showthread.php?t=174381&page=15 and read the last page (page 15)

Also I want all the bot spiders will use this version, but, I Don't know whre can I configure this issue.... anyone knows how to it?
No members have liked this post.

try this one https://vborg.vbsupport.ru/showthread.php?t=249967 enable user defined device detection and in the Custom/User Defined Useragent String section, add your search agents. eg: googlebot,slurp,baidu,yahoo

click install if you use this also

autoescala
10-21-2011, 11:13 AM
thank you very much dartho for your responso, I try your mobile version and I think is the best avabile. The only issue for me, is that I have CMS activated and is not working well with you style.

I will try to update VB to 4.17 and try the style for mobile but I'm not sure if is at least, lighter and faster than you great job....

autoescala
10-21-2011, 11:20 AM
try this one https://vborg.vbsupport.ru/showthread.php?t=249967 enable user defined device detection and in the Custom/User Defined Useragent String section, add your search agents. eg: googlebot,slurp,baidu,yahoo

click install if you use this also

I use vbulletin 4.1.4 and I plan to migrate to 4.1.7 soon, this version has it's own mobile detection, how can I define a style for a bot spider like google ? for example ? I can do that ? without using any SEO software..

Thanks in advance :)

ymam
10-22-2011, 11:05 PM
I am running VB 4.0.3 and have been using for Lightweight style for the past 3 months and has been great with only one problem. Any new usergroup we add to our forums cannot view anything on the forums when logged in. As soon as they log out they can view the forums again.

Has anyone else encountered this problem? And if so, how can you fix this this?
Thanks.

alhindasi
10-23-2011, 07:03 PM
please fix the Registration style it is not ok
Registration please fix it please

alhindasi
10-23-2011, 07:04 PM
please fix the Registration style it is not ok please dear

gezuvor
10-24-2011, 07:26 PM
It doesn't look like you have made the style user selectable

Okay, that fixed it. Thanks dartho!

IMMaster
10-25-2011, 06:45 AM
HI
It's really amazed style> Big Clap!!
please can this style automatically be the default style for iPhone or mobile phones?
I mean that no need for the iPhone user to change the style. The VB detect the iphone and change the style accordingly?

dartho
10-25-2011, 07:55 AM
Yes - vb4.1.4+ has this support built in I believe.

MarceloS
10-25-2011, 04:21 PM
Yes - vb4.1.4+ has this support built in I believe.

Dartho, your PM box is full.

Donated and installed, thanks!

It shows only the forum icons and names, not the style. What's wrong?

Edit: fixed, I uploaded to the wrong place LOL

MarceloS
10-25-2011, 07:48 PM
How could I add on each thread page a link to the forum of the thread?

dartho
10-25-2011, 09:04 PM
adding
<div><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" border="0" /></a>{vb:raw navbits.breadcrumb}</div>
to the end of the navbar template will add the breadcrumb in

MarceloS
10-26-2011, 11:37 AM
adding
<div><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" border="0" /></a>{vb:raw navbits.breadcrumb}</div>
to the end of the navbar template will add the breadcrumb in


Awesome! Thanks!

MarceloS
10-26-2011, 02:38 PM
Is it possible to add links to the navbar?

djbaxter
10-26-2011, 02:46 PM
This works much better and has much better functionality than the vBulletin mobile style released in 4.1.7.

Great work. Maybe you should offer to sell thjis to vBulletin, since theyu can't seem to figure out how to get it right. :)

djbaxter
10-26-2011, 08:05 PM
I need to exclude ad banners from this mobile style. What's the simplest way to do this?

dartho
10-26-2011, 10:22 PM
Depends what is creating the ads for you. If they are generated in plugins, you could wrap up the PHP code in

if (STYLEID!=n){

existing pluginin code

}

where n is the STyleID of this style.

You could also delete the ad hooks in templates in this style or if the ads are in templates - edit them out with in this style.

MarceloS
10-27-2011, 01:06 PM
Dartho, I have been playing with the style, it is great man.

1. But there is one thing I could not do. My navbar links are too close together vertically (when the links make a second line). I tried adding padding to them, the padding shows on firebug but they do not add a space between the lines.

Do you have any idea about something I could do?

2. Another thing: is it possible to show a different guest notice for this style? (different from my deafult notice)?

MarceloS
10-27-2011, 01:07 PM
3. Third thing ;)

Quotes do not work for me, they create <br/> characters and other stuff.

djbaxter
10-27-2011, 03:04 PM
Depends what is creating the ads for you. If they are generated in plugins, you could wrap up the PHP code in

if (STYLEID!=n){

existing pluginin code

}

where n is the STyleID of this style.

You could also delete the ad hooks in templates in this style or if the ads are in templates - edit them out with in this style.

Thank you. I am using the Rotating Banners add-on. This worked. I inserted

/** don't display banners for Mobile 2 style **/
if (STYLEID!=134) {

at the top of the "Banner Insertion" plugin and

}
at the very bottom.

dartho
10-27-2011, 10:46 PM
Dartho, I have been playing with the style, it is great man.

1. But there is one thing I could not do. My navbar links are too close together vertically (when the links make a second line). I tried adding padding to them, the padding shows on firebug but they do not add a space between the lines.

Do you have any idea about something I could do?

Did you do this by editing teh CSS file, or inline? Try which ever one you haven;t already tried

2. Another thing: is it possible to show a different guest notice for this style? (different from my deafult notice)?
You could use notices manager using teh style criteria
3. Third thing ;)

Quotes do not work for me, they create <br/> characters and other stuff.

I'm not sure whay that happens on a few sites - haven't been able to reproduce it.

@djbaxter :up:

alhindasi
10-28-2011, 04:32 AM
please fix the Registration style it is not ok
Registration please fix it please

please fix the Registration style it is not ok please dear

alhindasi
10-28-2011, 04:33 AM
Dear , dartho

please fix the Registration style it is not ok
Registration please fix it please

please fix the Registration style it is not ok please dear

dartho
10-28-2011, 10:28 AM
The registration template is low on my list of things to do in the very limited time I currentlyhave to do things, and repeatedly asking won't make it happen any faster. You haven't even marked this modification as installed.

Ozymandyus
10-28-2011, 01:01 PM
Dartho, I've seen users with odd names posting almost the same thing in threads for other products. I think it's some kind of spammer.

ymam
10-29-2011, 11:42 AM
Bump....
I am running VB 4.0.3 and have been using for Lightweight style for the past 3 months and has been great with only one problem. Any new usergroup we add to our forums cannot view anything on the forums when logged in. As soon as they log out they can view the forums again.

Has anyone else encountered this problem? And if so, how can you fix this this?
Thanks.

MarceloS
10-29-2011, 01:09 PM
Did you do this by editing teh CSS file, or inline? Try which ever one you haven;t already tried

I tried both ways. I could only increase padding of the navbar box, but not between the lines.

You could use notices manager using teh style criteria

Thanks!

I'm not sure whay that happens on a few sites - haven't been able to reproduce it.

@djbaxter :up:

Well I had used a fix that is on your second post. I reverted to the original code and it fixed it LOL. One thing: now I can reply and quote, no problem, but I get a list of smilies. But the smilies are not functional, nothing happens if I click them.

So how can I remove these smilies?

Is it supposed to be missing the bbcode buttons?

Thanks man for the product and support.

dartho
10-29-2011, 02:10 PM
did you try this : https://vborg.vbsupport.ru/showpost.php?p=2207400&postcount=397

tron_gr
10-31-2011, 07:05 PM
how can make this work fine with vbadvanced portal system?

thanks

Defkalion
11-04-2011, 11:49 PM
This is a great style,

@dartho: can you please empty your pm box? i want to get in contact with you for some custom work.

djbaxter
11-05-2011, 03:41 PM
One problem: The option to hide "What's Going On" / "Who's Online" isn't working for me (4.1.7), whether I'm logged in or viewing as a Guest.

dartho
11-06-2011, 12:35 AM
One problem: The option to hide "What's Going On" / "Who's Online" isn't working for me (4.1.7), whether I'm logged in or viewing as a Guest.

Edit the FORUMHOME template, search for


<!-- what's going on box -->
and replace with
<vb:if condition="$vbulletin->options['ls_whats_on']">
<!-- what's going on box -->
then search for (near end of template)
<div class="oldwindowbg">{vb:raw upcomingevents}</div>
</vb:if>
{vb:raw footer}
and replace with
<div class="oldwindowbg">{vb:raw upcomingevents}</div>
</vb:if>
</vb:if>
{vb:raw footer}

djbaxter
11-06-2011, 01:38 AM
Edit the FORUMHOME template, search for


<!-- what's going on box -->
and replace with
<vb:if condition="$vbulletin->options['ls_whats_on']">
<!-- what's going on box -->
then search for (near end of template)
<div class="oldwindowbg">{vb:raw upcomingevents}</div>
</vb:if>
{vb:raw footer}
and replace with
<div class="oldwindowbg">{vb:raw upcomingevents}</div>
</vb:if>
</vb:if>
{vb:raw footer}

Thanks! That did it. :up:

demonfatal
11-10-2011, 11:54 AM
Something is wrong with the "Move thread" option...
Even if the "Yes" in "Redirect?" is unticked, the "Moved:" appear...
Please could you check and let me know how to solve this issue... Thanks

The Rocketeer
11-18-2011, 01:04 PM
when will you update this dartho? VBulletin 4.1.8 is out..
:)

djbaxter
11-18-2011, 01:41 PM
when will you update this dartho? VBulletin 4.1.8 is out..
:)

And this style continues to work. Better than vBulletin's version, in fact. :)

Filgga
11-19-2011, 05:07 AM
And this style continues to work. Better than vBulletin's version, in fact. :)
I doubt, when someone goes to the page /private.php there's an error (after upgrade to 4.1.8). The sender of the Private Message is not displayed, you end up getting 'Array' as the sender.

Probably this' facing me alone?

thenamesgould
11-19-2011, 08:07 AM
It is great, but I have a few problems. Big row of smileys appears under the edit box when you quote a post, and then when you post that reply, line breaks are removed. The reply box is also wider than the width of the page.

There were solutions to this earlier on in thie thread, but they didn't seem to work as intended for me, so I reverted to the original.

I'd love for those to be fixed, but this is still a great mobile skin, so I still use it.

K4GAP
11-19-2011, 09:14 PM
Before I install this I have one question. When someone connects to my site using mobile device, will they be directed to this style? Or, do they need to be given a different url?

The Rocketeer
11-19-2011, 11:18 PM
Before I install this I have one question. When someone connects to my site using mobile device, will they be directed to this style? Or, do they need to be given a different url?

I am pretty sure if you install the mobile detection script mod (that comes with this) then the users mobile device gets detected and then they are auto directed to this style. :)

The Rocketeer
11-19-2011, 11:22 PM
Well, There has been so many changes that have undergone between vBulletin 4.1.2 - 4.1.8 that some issues are bound to arise unless this style gets updated. I like many others think 4.1.8 warrants an Update, dartho. When will you be updating this? :)

MaXimus
11-20-2011, 07:55 PM
I installed it but I have a small Glitch

When viewing the mobile site from my BlackBerry smartphone, I see a red x next to each subforum on the left if the image path is wrong (but it's not even supposed to show an image) but when I view the lightweight style from my pc it displays just fine


The way I have setup my forum is, for each subforum there is an image located in a folder, so for example, the first subforum in my Forums (http://bbmatrix.net/forums) is called General Discussion, and the path for its image is /Discuss/ as that Discuss folder contains the same image renamed into:

- forum_link-48
- forum_new_lock-48
- forum_new-48
- forum_old_lock-48
- forum_old-48

This is done to each and every other subforum so maybe that is why it is appearing as an X on the mobile

See how it looks from the PC and mobile below and please advice me what I need to do to not show those Red Xs on the mobile

From PC:

http://img534.imageshack.us/img534/926/frompc.png (http://imageshack.us/photo/my-images/534/frompc.png/)



From Mobile:

http://img717.imageshack.us/img717/5912/frommobile.png (http://imageshack.us/photo/my-images/717/frommobile.png/)

dartho
11-20-2011, 09:55 PM
@MatrixLeader - This style is expecting to find files forum_new_lock-16, forum_old_lock-16, plus any other "16" images from the images/statusicon directory in that directory also

@Filgaa / Rocketeer : one day, one day - the thing is that I don't actually use vb4 so updates can take a while

MaXimus
11-20-2011, 10:31 PM
@MatrixLeader - This style is expecting to find files forum_new_lock-16, forum_old_lock-16, plus any other "16" images from the images/statusicon directory in that directory also


Thanks a lot man! that solved it!

I copied all the images pertaining to -16 from the statusicon root to each individual imaces folder I have assigned to my custom status images and it worked!!!

PS: I've nominated this tyle as style of the month because it simply looks fantastic on a mobile phone

Mr Peabody
11-21-2011, 07:17 PM
I doubt, when someone goes to the page /private.php there's an error (after upgrade to 4.1.8). The sender of the Private Message is not displayed, you end up getting 'Array' as the sender.

Probably this' facing me alone?

We have the same issue.

Courty
11-21-2011, 09:13 PM
It is great, but I have a few problems. Big row of smileys appears under the edit box when you quote a post, and then when you post that reply, line breaks are removed. The reply box is also wider than the width of the page.

There were solutions to this earlier on in thie thread, but they didn't seem to work as intended for me, so I reverted to the original.

I'd love for those to be fixed, but this is still a great mobile skin, so I still use it.

I have the same issues, and have not been able to find a working solution.

The Rocketeer
11-23-2011, 01:05 AM
one day, one day - the thing is that I don't actually use vb4 so updates can take a while

We'll be waiting and watching dartho. :D

Until then, Could you at least add the edits required or links to the edits on your first post? that way many new users wont have to go through nearly 600 Posts to get it fully stable and working with 4.1.8. :)

thenamesgould
11-23-2011, 06:57 AM
@Filgaa / Rocketeer : one day, one day - the thing is that I don't actually use vb4 so updates can take a while

Whenever you do, I'll be very grateful, but until then I'm just happy to be using it as is. :)

Filgga
11-24-2011, 09:12 AM
@Filgaa / Rocketeer : one day, one day - the thing is that I don't actually use vb4 so updates can take a while
Will appreciate getting in touch with you, I have something personal. Noted and THANKS.

Your inbox is FULL.
We have the same issue.
I thought it was my own fault, dartho gonna fix this hopefully.
We'll be waiting and watching dartho. :D

Until then, Could you at least add the edits required or links to the edits on your first post? that way many new users wont have to go through nearly 600 Posts to get it fully stable and working with 4.1.8. :)
Good recommendation, seconded!

dartho
11-24-2011, 09:28 PM
when someone goes to the page /private.php there's an error (after upgrade to 4.1.8). The sender of the Private Message is not displayed, you end up getting 'Array' as the sender.

Replace the contents of the pm_messagelistbit template with
<div class="thread_<vb:if condition="$show['unread']">
new</vb:if>"><img src="{vb:stylevar imgdir_statusicon}/pm_{vb:raw pm.statusicon}.png" class="threadicon" alt="" /> <a href="private.php?{vb:raw session.sessionurl}do=showpm&amp;pmid={vb:raw pm.pmid}" class="title">{vb:raw pm.title}</a>

</div>
<div class="windowbg" id="pm_{vb:raw pm.pmid}">
<vb:each from="userbit" value="row">
<a href="{vb:link member|js, {vb:raw row}}" class="username understate">{vb:raw row.username}</a>{vb:raw row.comma}
</vb:each>
: {vb:raw pm.senddate},&nbsp;<span class="time">{vb:raw pm.sendtime}</span>
</div>

dartho
11-24-2011, 09:42 PM
Also, to get rid of the vertical smilies in new replies etc, delete the contents of the editor_clientscript template and replace the contents of the editor_ckeditor template with that of the editor_toolbar_offtemplate

Mr Peabody
11-25-2011, 07:54 PM
Replace the contents of the pm_messagelistbit template with
<div class="thread_<vb:if condition="$show['unread']">
new</vb:if>"><img src="{vb:stylevar imgdir_statusicon}/pm_{vb:raw pm.statusicon}.png" class="threadicon" alt="" /> <a href="private.php?{vb:raw session.sessionurl}do=showpm&amp;pmid={vb:raw pm.pmid}" class="title">{vb:raw pm.title}</a>

</div>
<div class="windowbg" id="pm_{vb:raw pm.pmid}">
<vb:each from="userbit" value="row">
<a href="{vb:link member|js, {vb:raw row}}" class="username understate">{vb:raw row.username}</a>{vb:raw row.comma}
</vb:each>
: {vb:raw pm.senddate},&nbsp;<span class="time">{vb:raw pm.sendtime}</span>
</div>



Thanks for that :)

Amadeusmq
11-25-2011, 08:14 PM
Would it be a great deal of work to make this style work a bit better with this addon: https://vborg.vbsupport.ru/showthread.php?t=270346 ?

If you need an example, my forums has a bunch of these (i.e., http://www.isxgames.com/forums/project.php?projectid=3 )

dartho
11-25-2011, 11:20 PM
@Amadeus - Sorry, that is very unlikely to happen

Amadeusmq
11-25-2011, 11:54 PM
@Amadeus - Sorry, that is very unlikely to happen

Ok, then how about settings where you could indicate various forum IDs where the addon would switch automatically to the 'default site style', but then switch back to the 'light style' when not in those forums.

Or, is that not possible with the vbulletin addon API?

dartho
11-26-2011, 12:27 AM
vBulletin can by default Force forums to styles in the forum properties

Amadeusmq
11-26-2011, 12:53 AM
vBulletin can by default Force forums to styles in the forum properties

Ah, I didn't know that. I'll check it out.

thenamesgould
11-26-2011, 10:52 AM
I doubt, when someone goes to the page /private.php there's an error (after upgrade to 4.1.8). The sender of the Private Message is not displayed, you end up getting 'Array' as the sender.

Probably this' facing me alone?

I'm also getting "Array" in place of the forum member's names whose birthday it is, at the bottom of the main home forum.

thenamesgould
11-26-2011, 10:58 AM
Also, to get rid of the vertical smilies in new replies etc, delete the contents of the editor_clientscript template and replace the contents of the editor_ckeditor template with that of the editor_toolbar_offtemplate

If I do this, then hit Reply ... the message that I'm replying to appears like this:

Message content ...<br />
<br />


But on the upside, it does retain the line breaks when I do the post. So if those random <br />'s could be removed, I think that would solve my main problem with the style.

thenamesgould
11-26-2011, 11:06 AM
Ahh, hold on - noticed a couple more issues with that fix. The quoted text has a problem too ... a smiley in it appears like this:

<img src="images/smilies/lol.gif" border="0" alt="" title="Laughing" smilieid="81" class="inlineimg" />

Rather than an actual image.

And if I go to edit the post then I get this:

&lt;br /&gt;<br />
&lt;br /&gt;<br />
<br />
Test.<br />
<br />
Test.

dartho
11-26-2011, 11:26 AM
If I do this, then hit Reply ... the message that I'm replying to appears like this:

<br />
<br />


But on the upside, it does retain the line breaks when I do the post. So if those random <br />'s could be removed, I think that would solve my main problem with the style.

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

hhumas
11-26-2011, 12:53 PM
can i get this for vb 4.1.4

thenamesgould
11-26-2011, 11:14 PM
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

No, it's not an issue before those changes.

Just gave that a go and it didn't make any difference - the "<br />"s still appear.

tafreeh
11-28-2011, 04:05 AM
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... ??

CILGINKRAL_
11-29-2011, 11:10 AM
vBulletin 4.1.8 version that is compatible?

Robru
11-29-2011, 06:58 PM
When someone goes to the end of forum.php there's an error (after upgrade to 4.1.8). The birthday users are not displayed, you end up getting 'Array'.

Bounce
11-29-2011, 09:35 PM
When someone goes to the end of forum.php there's an error (after upgrade to 4.1.8). The birthday users are not displayed, you end up getting 'Array'.

https://vborg.vbsupport.ru/showthread.php?p=2271597#post2271597 worked for me :erm:

edit : sorry that was to sort pm's lol

dartho
11-29-2011, 10:04 PM
I'm also getting "Array" in place of the forum member's names whose birthday it is, at the bottom of the main home forum.

Edit the FORUMHOME template and search for the birthday block (Starts with <vb:if condition="$show['birthdays']"> and ends with teh next </vb:if>), remove it and replace with. You can then revert the forumhome_birthday_bit template (which should actually remove it as it is no longer used)


<vb:if condition="$show['birthdays']">
<!-- today's birthdays -->
<div class="navbar">{vb:rawphrase todays_birthdays}</div>
<div class="oldwindowbg">
<img src="{vb:stylevar imgdir_misc}/birthday.png" alt="{vb:rawphrase todays_birthdays}" />
<vb:each from="birthdays" value="row">
<a href="{vb:link member, {vb:raw row}}">{vb:raw row.username}</a><vb:if condition="$row['age']"> ({vb:raw row.age})</vb:if>{vb:raw row.comma}
</vb:each>
</div>
<!-- end today's birthdays -->
</vb:if>

Robru
11-30-2011, 08:24 AM
Edit the FORUMHOME template and search for the birthday block (Starts with <vb:if condition="$show['birthdays']"> and ends with teh next </vb:if>), remove it and replace with. You can then revert the forumhome_birthday_bit template (which should actually remove it as it is no longer used)


<vb:if condition="$show['birthdays']">
<!-- today's birthdays -->
<div class="navbar">{vb:rawphrase todays_birthdays}</div>
<div class="oldwindowbg">
<img src="{vb:stylevar imgdir_misc}/birthday.png" alt="{vb:rawphrase todays_birthdays}" />
<vb:each from="birthdays" value="row">
<a href="{vb:link member, {vb:raw row}}">{vb:raw row.username}</a><vb:if condition="$row['age']"> ({vb:raw row.age})</vb:if>{vb:raw row.comma}
</vb:each>
</div>
<!-- end today's birthdays -->
</vb:if>

Perfect! Works very good! :)

FerScrich
12-02-2011, 01:47 PM
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
12-02-2011, 10:09 PM
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
12-03-2011, 09:27 PM
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
12-03-2011, 10:00 PM
I can't reproduce it - do you have a test site where it also happens I could get access to?

thenamesgould
12-04-2011, 01:27 AM
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
12-04-2011, 05:12 AM
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
12-05-2011, 07:22 PM
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
12-05-2011, 09:59 PM
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
12-06-2011, 06:37 PM
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
12-06-2011, 06:44 PM
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
12-06-2011, 07:00 PM
Replace the contents of the pm_messagelistbit template with
<div class="thread_<vb:if condition="$show['unread']">
new</vb:if>"><img src="{vb:stylevar imgdir_statusicon}/pm_{vb:raw pm.statusicon}.png" class="threadicon" alt="" /> <a href="private.php?{vb:raw session.sessionurl}do=showpm&amp;pmid={vb:raw pm.pmid}" class="title">{vb:raw pm.title}</a>

</div>
<div class="windowbg" id="pm_{vb:raw pm.pmid}">
<vb:each from="userbit" value="row">
<a href="{vb:link member|js, {vb:raw row}}" class="username understate">{vb:raw row.username}</a>{vb:raw row.comma}
</vb:each>
: {vb:raw pm.senddate},&nbsp;<span class="time">{vb:raw pm.sendtime}</span>
</div>



thx u. it's works on me.

etca
12-06-2011, 07:06 PM
dartho,
how to fix this?

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



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)

<vb:if condition="$show['reputationlink']">
<a id="btn" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&amp;p={vb:raw post.postid}" rel="nofollow">Reputation</a>
</vb:if>

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

<vb:if condition="$show['infractionlink']">
<a id="btn" href="infraction.php?{vb:raw session.sessionurl}do=report&amp;p={vb:raw post.postid}" rel="nofollow">Infraction</a> &nbsp;
</vb:if>
kok ga ngefek?
*it doesn't work

dartho
12-06-2011, 09:25 PM
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:
<div id="{vb:raw editorid}">
{vb:raw ckeditor}
</div>

<input type="hidden" name="wysiwyg" id="{vb:raw editorid}_mode" value="{vb:raw editortype}" />

Edit the lightweight.css.php file, search for:
body
{

and add immediately above:
.hidden {display:none;}

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:
// Fixes bug were <br /> shows up in posts when user has Full WYSIWIG editor by overriding to text box only
$vbulletin->userinfo[showvbcode]=0;

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
12-06-2011, 09:39 PM
dartho,
how to fix this?

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


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

<vb:if condition="$tag_list">
<vb:each from="tag_list" value="row">
<a href="tags.php?{vb:raw session.sessionurl}tag={vb:raw row.url}">{vb:raw row.tag}</a>{vb:raw row.comma}
</vb:each>
<vb:else /><i>{vb:rawphrase none}</i></vb:if>

dartho
12-06-2011, 09:56 PM
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
12-07-2011, 12:04 AM
Edit the tagbit_wrapper template and replace it's contents with:

<vb:if condition="$tag_list">
<vb:each from="tag_list" value="row">
<a href="tags.php?{vb:raw session.sessionurl}tag={vb:raw row.url}">{vb:raw row.tag}</a>{vb:raw row.comma}
</vb:each>
<vb:else /><i>{vb:rawphrase none}</i></vb:if>


Hooo thanks dartho..
it's works on me

tafreeh
12-07-2011, 05:20 AM
sorry forgot to maked install :)
@dartho: you missed me again.. :(

thenamesgould
12-07-2011, 06:17 AM
Thanks again, dartho. :)

dartho
12-07-2011, 11:08 AM
@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:
if (STYLEID=='n') {
$post['message']=strip_tags($post['message'],'<br><a>');
}


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
12-08-2011, 12:32 AM
Just want to chime in and say thanks for this. All my users prefer this significantly over the built in mobile style.

tafreeh
12-08-2011, 03:51 AM
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:
if (STYLEID=='n') {
$post['message']=strip_tags($post['message'],'<br><a>');
}
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
12-08-2011, 05:24 AM
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
12-08-2011, 06:41 AM
if you can add to standard style, you can ad to this I guess. I don't know what admob is

inphoenix
12-08-2011, 12:08 PM
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
12-08-2011, 12:53 PM
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
12-09-2011, 04:28 PM
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
12-09-2011, 09:28 PM
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)

<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}
</vb:if>
<vb:if condition="$post['islastshown']">
{vb:raw ad_location.thread_last_post_content}
</vb:if>

inphoenix
12-09-2011, 10:59 PM
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)


<vb:if condition="$post['isfirstshown']">
{vb:raw ad_location.ad_showthread_firstpost_start}
{vb:raw ad_location.thread_first_post_content}
</vb:if>
<vb:if condition="$post['islastshown']">
{vb:raw ad_location.thread_last_post_content}
</vb:if>

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

inphoenix
12-12-2011, 02:49 AM
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-12-2011, 04:40 AM
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-12-2011, 05:28 AM
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-12-2011, 10:11 AM
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-12-2011, 09:28 PM
@SEA - you could try editin the CSS file and adding the following before teh ?> at the end of the file

img {
max-width: 200px;
}

@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-12-2011, 10:39 PM
@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
12-13-2011, 08:39 AM
@SEA - you could try editin the CSS file and adding the following before teh ?> at the end of the file

img {
max-width: 200px;
}

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

dartho
12-13-2011, 09:15 AM
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
12-13-2011, 10:52 AM
No joy unfortunately, mate.

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

dartho
12-13-2011, 11:48 AM
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
12-13-2011, 01:05 PM
Tut... Worked a treat. Cheers mate ;)

Hippy
12-14-2011, 01:09 AM
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
12-14-2011, 01:28 AM
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
12-14-2011, 01:32 AM
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
12-14-2011, 02:34 AM
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..

https://vborg.vbsupport.ru/showthread.php?p=2264831#post2264831

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

muratcan25
12-14-2011, 08:23 AM
Thank You !

dartho
12-14-2011, 12:52 PM
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..

https://vborg.vbsupport.ru/showthread.php?p=2264831#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
12-14-2011, 08:40 PM
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
12-14-2011, 09:41 PM
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.

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
12-15-2011, 10:30 AM
Any chance of a 4.1.8 update? Pretty please!

dartho
12-16-2011, 12:18 AM
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
12-16-2011, 12:19 AM
New version released which should have all fixes to the issues as listed in this thread over recent months.

remember - backup backup backup!

rooban12
12-16-2011, 12:27 AM
brilliant work

dawges
12-16-2011, 02:29 AM
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
12-16-2011, 03:10 AM
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
12-16-2011, 03:18 AM
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

<script type="text/javascript"><!--
// XHTML should not attempt to parse these strings, declare them CDATA.
/* <![CDATA[ */
window.googleAfmcRequest = {
client: 'ca-mb-pub-xxxxxxxxxxxx',
format: '320x50_mb',
output: 'html',
slotname: 'xxxxxxxxxxxxxxx',
};
/* ]]> */
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_afmc_ads.js"></script>

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

dawges
12-16-2011, 03:27 AM
Thanks Dartho!

Hippy
12-17-2011, 12:05 AM
thanks for the update dartho
I have a questions for ya
How do I go about adding Next to the page nav..

thenamesgould
12-18-2011, 08:16 AM
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
12-18-2011, 10:18 AM
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
12-18-2011, 01:01 PM
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/showthread.php/391753-Users-unable-to-switch-off-mobile-style?p=2244908#post2244908

https://www.vbulletin.com/forum/showthread.php/392313-mobile-user-cannot-change-to-mobile-template

https://www.vbulletin.com/forum/showthread.php/393096-Style-issue-on-Android-browser-(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
12-18-2011, 03:46 PM
: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
12-19-2011, 12:54 AM
: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
12-19-2011, 12:59 AM
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/showthread.php/391753-Users-unable-to-switch-off-mobile-style?p=2244908#post2244908

https://www.vbulletin.com/forum/showthread.php/392313-mobile-user-cannot-change-to-mobile-template

https://www.vbulletin.com/forum/showthread.php/393096-Style-issue-on-Android-browser-(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
12-19-2011, 04:21 AM
It looks like you have not upload the lightweight.css.php file to your forum rootYou 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
12-19-2011, 03:01 PM
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
12-19-2011, 03:01 PM
Dartho, does the latest version no longer show 'Currently Active Users'? Or is the issue at my end? Installed on 4.1.9.

dartho
12-19-2011, 09:14 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=249339) addon installed and have Show "What's Going On" set to 'Yes' in it's settings in AdminCP?

Hippy
12-19-2011, 09:25 PM
if you dont use that option addon remove this code
https://vborg.vbsupport.ru/showpost.php?p=2264831&postcount=566

The Rocketeer
12-20-2011, 12:00 AM
@ 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
12-20-2011, 01:54 AM
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
12-20-2011, 02:05 AM
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
$vbulletin->options['enablesidebar'] = 0;

thenamesgould
12-20-2011, 03:51 AM
Is that to say you did this, and then all was cool?

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

Mr_Running
12-20-2011, 12:44 PM
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
12-20-2011, 10:20 PM
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
12-20-2011, 10:45 PM
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
12-21-2011, 01:49 AM
Sorry - didn;t see this post:
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
$vbulletin->options['enablesidebar'] = 0;


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
12-21-2011, 01:50 AM
@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
12-21-2011, 09:00 AM
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..

<vb:comment></vb:comment>
$column[1]

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
12-21-2011, 09:42 AM
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
12-21-2011, 09:57 AM
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
12-21-2011, 10:40 AM
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
12-21-2011, 11:06 AM
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
12-21-2011, 11:14 AM
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
12-21-2011, 04:46 PM
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
12-21-2011, 05:38 PM
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
12-21-2011, 10:39 PM
duh... missed that... thanks~!

tafreeh
12-22-2011, 04:51 PM
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:
if (STYLEID=='n') {
$post['message']=strip_tags($post['message'],'<br><a>');
}
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
12-22-2011, 09:33 PM
Mmm.. try allowing <pre> tags at a guess...

Hippy
12-24-2011, 01:40 PM
iphone and a few other phones you are not able to use the attachments
it work under pc /desktop

CappingTheGame
12-24-2011, 06:50 PM
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
12-25-2011, 10:33 PM
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.

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?

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
12-25-2011, 10:43 PM
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
<div class="windowbg">
<span>{vb:rawphrase page_x_of_y, {vb:raw pagenumber}, {vb:raw totalpages}}</span>

<vb:if condition="$show['first']">
<span class="first_last"><a rel="start" id="btn" href="{vb:raw firstaddress}{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase first_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw firstnumbers.first}, {vb:raw firstnumbers.last}, {vb:raw total}}">{vb:rawphrase first}</a></span>
</vb:if>
<vb:if condition="$show['prev']">
<span class="prev_next"><a rel="prev" id="btn" href="{vb:raw prevaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw prevpage}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase prev_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw prevnumbers.first}, {vb:raw prevnumbers.last}, {vb:raw total}}">Prev</a></span>
</vb:if>
<vb:if condition="$show_prior_elipsis && $show['prev'] && $show['first']">
<span class="separator">...</span>
</vb:if>
{vb:raw pagenav}
<vb:if condition="$show_after_elipsis && $show['next'] && $show['last']">
<span class="separator">...</span>
</vb:if>
<vb:if condition="$show['next']">
<span class="prev_next"><a rel="next" id="btn" href="{vb:raw nextaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw nextpage}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase next_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw nextnumbers.first}, {vb:raw nextnumbers.last}, {vb:raw total}}">Next</a></span>
</vb:if>
<vb:if condition="$show['last']">
<span class="first_last"><a id="btn" href="{vb:raw lastaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw totalpages}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase last_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw lastnumbers.first}, {vb:raw lastnumbers.last}, {vb:raw total}}">{vb:rawphrase last}</a></span>
</vb:if>
</div>

Mark.B
12-25-2011, 11:19 PM
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 (http://www.bowlandcentral.com/forum/index.php?styleid=167) for what I did with it.

Hippy
12-25-2011, 11:35 PM
Try replacing pagenav template with
<div class="windowbg">
<span>{vb:rawphrase page_x_of_y, {vb:raw pagenumber}, {vb:raw totalpages}}</span>

<vb:if condition="$show['first']">
<span class="first_last"><a rel="start" id="btn" href="{vb:raw firstaddress}{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase first_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw firstnumbers.first}, {vb:raw firstnumbers.last}, {vb:raw total}}">{vb:rawphrase first}</a></span>
</vb:if>
<vb:if condition="$show['prev']">
<span class="prev_next"><a rel="prev" id="btn" href="{vb:raw prevaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw prevpage}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase prev_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw prevnumbers.first}, {vb:raw prevnumbers.last}, {vb:raw total}}">Prev</a></span>
</vb:if>
<vb:if condition="$show_prior_elipsis && $show['prev'] && $show['first']">
<span class="separator">...</span>
</vb:if>
{vb:raw pagenav}
<vb:if condition="$show_after_elipsis && $show['next'] && $show['last']">
<span class="separator">...</span>
</vb:if>
<vb:if condition="$show['next']">
<span class="prev_next"><a rel="next" id="btn" href="{vb:raw nextaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw nextpage}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase next_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw nextnumbers.first}, {vb:raw nextnumbers.last}, {vb:raw total}}">Next</a></span>
</vb:if>
<vb:if condition="$show['last']">
<span class="first_last"><a id="btn" href="{vb:raw lastaddress}<vb:if condition="$show['pagelinks']"><vb:if condition="$use_qmark">?</vb:if><vb:if condition="$use_amp">&amp;</vb:if>page={vb:raw totalpages}</vb:if>{vb:raw address2}<vb:if condition="$anchor">#{vb:raw anchor}</vb:if>" title="{vb:rawphrase last_page} - {vb:rawphrase results_x_to_y_of_z, {vb:raw lastnumbers.first}, {vb:raw lastnumbers.last}, {vb:raw total}}">{vb:rawphrase last}</a></span>
</vb:if>
</div>

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

CappingTheGame
12-26-2011, 02:10 AM
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
12-26-2011, 09:34 AM
How to resize the picture in post fit to screen?

yanref
12-29-2011, 09:36 AM
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
01-02-2012, 09:40 PM
I'm not sure what would be causing this,and am unable to reproduce the error

yanref
01-02-2012, 10:16 PM
I'm not sure what would be causing this,and am unable to reproduce the error
the site is, http://graphicshost.co.uk/gamers-asylum/forum.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
01-03-2012, 06:05 PM
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
01-03-2012, 11:00 PM
@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 ...

Hippy
01-03-2012, 11:58 PM
@snakes
under Style & Language Settings
your Default Style is set to ?
Default Style for Old Mobile Browsers is set to ? should be none
Default Style for Modern Mobile Browsers is set to ?

in your Forums & Moderators > forum manager >Style Options is set to ?
these may affect the style and over ride things..

CappingTheGame
01-04-2012, 12:04 AM
dart,

Any update on adding thread author or how to do it? Would be greatly appreciated. Thanks.

dartho
01-04-2012, 12:36 AM
dart,

Any update on adding thread author or how to do it? Would be greatly appreciated. Thanks.

Edit threadbit template, search for

<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>
and replace with

<div class="windowbg">
<vb:if condition="!$show['detailedtime']">
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}
<vb:else />
{vb:rawphrase started_by_x_y_z, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:stylevar dirmark}}
</vb:if>
</div>
<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>

Hippy
01-04-2012, 01:01 AM
Edit threadbit template, search for

<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>
and replace with

<div class="windowbg">
<vb:if condition="!$show['detailedtime']">
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}
<vb:else />
{vb:rawphrase started_by_x_y_z, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:stylevar dirmark}}
</vb:if>
</div>
<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>
thanks dartho
I tried the code above I am not sure what I did but I ended up editing it to this
look bettter to me any way..
<div class="windowbg">
<vb:if condition="!$show['detailedtime']">
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}
<vb:else />
{vb:rawphrase started_by_x_y_z, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:stylevar dirmark}}
</vb:if><br />
{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>

CappingTheGame
01-04-2012, 01:10 AM
Works great...thanks man.

CappingTheGame
01-04-2012, 01:16 AM
Real quick, how do I add it to the "New Posts" section also. Right now the thread author is only showing up within each respective forum. If you click New Posts, it still just shows latest poster...

Hippy
01-04-2012, 01:26 AM
search_threadbit template do the same thing

CappingTheGame
01-04-2012, 01:29 AM
Sorry, could you elaborate? I get doing the same thing, but I already replaced it in the threadbit area. Where do I replace it now?

Thx in advance.

CappingTheGame
01-04-2012, 01:32 AM
Nevermind, think I got it. Thanks.

Hippy
01-04-2012, 01:34 AM
search_threadbit template
search for <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>
and replace it with

<div class="windowbg">
<vb:if condition="!$show['detailedtime']">
</vb:if>
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}<br />
{vb:rawphrase last} {vb:rawphrase post}: {vb:raw thread.lastposter}, {vb:raw thread.lastpostdate}

</div>

snakes1100
01-04-2012, 05:10 PM
@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 ...

As it was on the test site, there actually are no additional products installed, mind you this only happens when using a mobile device, browsing the mobile style from a pc/linux box, it stays in mobile mode when navigating across the site.

It also appears your forcing the mobile style or its your only style on your dev site, which i dont do, never have had that option on even when it was running 3.8.x

In another test, it appears also that i cant change styles via the usercp, only via the quick change in the footer.

@snakes
under Style & Language Settings
your Default Style is set to ?
Default Style for Old Mobile Browsers is set to ? should be none
Default Style for Modern Mobile Browsers is set to ?

in your Forums & Moderators > forum manager >Style Options is set to ?
these may affect the style and over ride things..

I dont force users to use the mobile style, as the live site has tapatalk as well as this mobile style.

It is a test site, there are no modifications to forcing a style in specific forums, as i stated it happens on any link you click.

dartho
01-04-2012, 09:57 PM
@snakes - yes, I was using vbulletin's detection, which doesn't 'force' a style but it does pre-select the lightweight style for mobile devices, and allows changing to other styles after initial detection. I turned this off and the style no longer sticks (from my Nexus) as you reported - neither does vbulletin's style so I can only assume the issue is with vbulletin. It does 'stick' from my desktop browser.

I've questioned this behaviour on vBulletin.com (https://www.vbulletin.com/forum/showthread.php/393951-vBulletin-s-Mobile-Style-No-longer-stays-selected?p=2250168#post2250168)

flussmitteldj
01-04-2012, 10:07 PM
I have two problems!

The Banner
http://www.abload.de/image.php?img=img_0301nplfe.png

The Football Game
http://www.abload.de/image.php?img=img_0302u5x1k.png

dartho
01-04-2012, 10:18 PM
it doesn't support the football game, and you should choose smaller banners suitable for mobile devices only 320px wide for iphone

flussmitteldj
01-04-2012, 10:23 PM
how can i smaller the banner for the mobile style?

dartho
01-05-2012, 08:12 AM
I don;t know - ask your ad provider.

bremereric
01-08-2012, 04:16 PM
how can i smaller the banner for the mobile style?Photoshop

bremereric
01-09-2012, 10:24 PM
Okay I replaced the mobilelogo.png file with my own reduced header.png. It still shows the Mobile header. What am I missing.

https://host261.hostmonster.com:2083/frontend/hostmonster/filemanager/showfile.html?file=mobilelogo.png&fileop=&dir=%2Fhome1%2Ffbodymop%2Fpublic_html%2Faspenandvo lare%2Fimages%2Fmisc&dirop=&charset=&file_charset=&baseurl=&basedir=

bremereric
01-10-2012, 03:59 AM
Okay I replaced the mobilelogo.png file with my own reduced header.png. It still shows the Mobile header. What am I missing.

https://host261.hostmonster.com:2083/frontend/hostmonster/filemanager/showfile.html?file=mobilelogo.png&fileop=&dir=%2Fhome1%2Ffbodymop%2Fpublic_html%2Faspenandvo lare%2Fimages%2Fmisc&dirop=&charset=&file_charset=&baseurl=&basedir=Okay this is a delayed reaction like I had before. I uploaded some files to the c-panel before and it took sometime before I saw the changes. I finally saw my header.png on my phone. I replaced the mobilelogo.png in the images/misc folder and it finally worked.

vexxy
01-10-2012, 09:35 PM
Great style, installed. Dartho, are you available for a small chat via PM? (it's not a support issue don't worry :) ). I tried to PM you but your inbox is kinda full.

tnx!

dartho
01-10-2012, 10:37 PM
I just deleted a couple PMs

vexxy
01-11-2012, 09:02 AM
PM sent!

dartho
01-14-2012, 09:41 PM
Just marking a milestone - this is now the most 'installed' style for VB4

res6cue
01-14-2012, 09:58 PM
Just marking a milestone - this is now the most 'installed' style for VB4

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


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

Hippy
01-14-2012, 10:22 PM
still running on the latest .. be sure not to update templates
after upgraded it will say there is a S-load of templates out of date ..
do not revert them

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

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

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

thenamesgould
01-15-2012, 01:03 AM
I just reverted them all to get rid of the alerts, then reinstalled the xml file.

yanref
01-15-2012, 01:38 AM
@yanref - still not sure what is causing your issue and no reports of anyone else with the same. Have you tried disabling all add-ons and plugins and testing? (do this in AdminCP->Settings->Options->Plugin/Hook System->Enable Plugin/Hook System = No)

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

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

any ideas why it is not showing the correct url.

dartho
01-15-2012, 06:43 AM
have you tried re-installling the style fresh?

yanref
01-15-2012, 07:46 AM
yes, i removed all, then reinstalled,.

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

dartho
01-15-2012, 10:39 AM
No idea - If you give me admin access to your forum, I can have a look.

yanref
01-15-2012, 02:12 PM
No idea - If you give me admin access to your forum, I can have a look.

ok, pm sent.

thanks for the help.

EgyKit
01-15-2012, 04:10 PM
Unfortunately this won't work with vBulletin versions higher than 4.1.8, waiting for your update.

Thanks.

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

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

yanref
01-16-2012, 01:06 PM
No idea - If you give me admin access to your forum, I can have a look.

thanks mate.

all working now, and very good it is too.

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

nocte
01-17-2012, 03:18 AM
We have a big forum with several areas like arcade or glossry. when this areas are accessed with this style, the style is messed up. Is it possible that this style only shows up, when the users surfs in areas this style is made for?

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

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

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

MxRE
01-17-2012, 02:38 PM
I really like the look of this.. am about to download it :D

snakes1100
01-18-2012, 03:43 AM
Vbulletin has released the Jira fix for the style issue, this bug was discovered in 4.1.8, mobile users will be directed back to the default style.

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

dartho
01-18-2012, 08:01 AM
If you wish to make this change manually, edit init.php and
search for:
elseif ($mobile_browser_advanced && $vbulletin->options['mobilestyleid_advanced'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])

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

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

and replace with

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

dartho
01-18-2012, 08:47 AM
thanks mate.

all working now, and very good it is too.

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

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

slinky
01-18-2012, 08:37 PM
Just marking a milestone - this is now the most 'installed' style for VB4
Which speaks volumes about the quality of what one great developer can do versus an entire team of developers in a dozen countries at Internet Brands and vBulletin Solutions.

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

tekmaster
01-19-2012, 12:03 AM
I have a question:

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

dartho
01-19-2012, 12:30 AM
There is no regiuster option - I've yet to do the registration page (go direct to register.php and you'll see). You could easily enough add it in if desired...

tekmaster
01-19-2012, 12:41 AM
There is no regiuster option - I've yet to do the registration page (go direct to register.php and you'll see). You could easily enough add it in if desired...

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

thanks

sportsfroma2
01-19-2012, 01:30 PM
If you wish to make this change manually, edit ini.php and
search for:
elseif ($mobile_browser_advanced && $vbulletin->options['mobilestyleid_advanced'] && !$vbulletin->GPC[COOKIE_PREFIX . 'skipmobilestyle'])

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

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

and replace with

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

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

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

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

dartho
01-20-2012, 12:01 AM
correct - that's a typo , fixed now

doobiefillin
01-21-2012, 01:18 AM
where do i find init.php?

dartho
01-21-2012, 02:10 AM
it's a vbulletin file, located in the <forumroot>/includes directory