vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=247)
-   -   Forum Style - Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android) (https://vborg.vbsupport.ru/showthread.php?t=249277)

deverill2010 02-20-2012 12:01 PM

Ok set up vb detection script but my iPhone still doesnt automatically use your style.

Is this where I need to apply these fixes? - https://vborg.vbsupport.ru/showpost....&postcount=746

dartho 02-20-2012 10:01 PM

Yep - that's the one

deverill2010 02-20-2012 10:32 PM

Yep edited but the iPhone still isn't being picked up and transferred to the your light skin even though I have that set for old and new devices and I have it so users can't change styles so it's on force but it still isn't showing.

dartho 02-22-2012 05:03 AM

Do you have the styles checked as user selectable? (ticks next to their name in Style Manager)

deverill2010 02-22-2012 06:13 AM

Yep my desktop n mobile are ticked in style manager.

dartho 02-22-2012 09:30 AM

I'm not sure what could be causing your issue. I could look at your site if you like?

deverill2010 02-22-2012 12:12 PM

If you could dartho that would be great.

I've had someone on the VB forum say they can view my site in the mobile style (I'm not sure what phone they are using) but the style doesn't come up on my iPhone 3GS..

I'll PM you now. Ty

paul07thebig 02-24-2012 12:23 AM

Only the homepage of the forums works for me? I click a thread and it goes to my normal style. Any ideas?

dartho 02-24-2012 06:26 AM

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

Which I belive can be worked around by this https://vborg.vbsupport.ru/showthrea...99#post2289299

Nirjonadda 02-24-2012 12:01 PM

vBulletin Message
This file was created using a different version of vBulletin from the one you are running.
Your version: 4.1.10
File version: 4.1.8

dartho 02-24-2012 12:19 PM

Correct.

However, should you wish to install this you can select 'Yes' on the "Ignore Style Version" option.

ejup2009 02-26-2012 04:10 AM

magnifico trabajo.. funciona maravillosamente bien en la versiòn 4.1.9.. la pagina web se visualiza muy rapida desde un BlackBerry.

Gracias... excelente aporte

ejup2009 02-26-2012 04:13 AM

Quote:

Originally Posted by Nirjonadda (Post 2302936)
vBulletin Message
This file was created using a different version of vBulletin from the one you are running.
Your version: 4.1.10
File version: 4.1.8

edit file vbulletin-style-4.1.8-lightweight-1.0.3.xml using notepad and modify 4.1.8 by 4.1.10.

note : excuseme but I dont very much speak English. Thanks you.

paul07thebig 02-26-2012 08:19 PM

Where would I found init.php?

Thanks

deverill2010 02-26-2012 08:21 PM

In your includes folder.

Hippy 02-26-2012 08:54 PM

Quote:

Originally Posted by paul07thebig (Post 2303690)
Where would I found init.php?

Thanks

includes folder

sadiq6210 02-28-2012 05:55 AM

Can I use it in RTL forum?

dartho 02-28-2012 07:34 AM

I have seen it installed in RTL forums, and it *looked* like it was working (I cannot read arabic) so I would guess the answer is yes.

ringo88 02-28-2012 11:25 PM

Great Work!!

But I have a question. Appereantly since I installed this skin and made it the default choice for mobile devices I had a decrease in the mobile visits count from Google Analytics. I put the code in the headerinclude_bottom instead of headerinclude as suggested in many places (it works well with the other normal styles).

Is it right? Or is that the problem?? In which template do I have to put the G.Analytics code?

Thank you very much.

P.S.: Any way to show the ajax chatbox in this style??

dartho 02-29-2012 04:01 AM

Dunno - check your site in the lightweight style and see if the Google Analytics code is there or not. I put it in the footer on mine, but I guess you could put it in the header

re: chatbox - probably, let us know when you work it out as others have asked from time to time.

Bounce 03-01-2012 07:59 PM

some nice features in the newer version dartho,

how do I add a "PM" button, next to edit etc?

Bounce 03-01-2012 08:12 PM

also the "whats going on" section is missing now, and how do i remove the adverts :(

Hippy 03-01-2012 08:40 PM

Quote:

Originally Posted by Bounce (Post 2305148)
also the "whats going on" section is missing now, and how do i remove the adverts :(

search the thread your answer is in here not to far back or add the addon posted in the first post

dartho 03-01-2012 10:29 PM

Quote:

Originally Posted by Bounce (Post 2305148)
also the "whats going on" section is missing now, and how do i remove the adverts :(

There shouldn't be any ads and the what's going on should be working in the latest version. Ads were left in by mistake and an updated version with them removed was uploaded within an hour or so (as soon as I found out). The whats going on box should also work in the latest version?

autoescala 03-02-2012 11:35 AM

Today, I test the premium mobile style included in the new release 4.1.11 of VB, i don't like!!! Its ugly and heavy load on Android Galaxy S versus dartho light skin, I prefer the dartho style.

The only thing I don't know how to change is the underline style of the text in this skin, it would be more beautyful if you improve a lite the boxes when u are inside a sub-forum.

Some similar like this: http://www.bowlandcentral.com/forum/...hp?styleid=167

this custom style based on your work, is very very nice....

Bounce 03-02-2012 08:20 PM

Quote:

Originally Posted by dartho (Post 2305200)
There shouldn't be any ads and the what's going on should be working in the latest version. Ads were left in by mistake and an updated version with them removed was uploaded within an hour or so (as soon as I found out). The whats going on box should also work in the latest version?

thanks mate, any thoughts on post 826
https://vborg.vbsupport.ru/showpost....&postcount=826

dartho 03-02-2012 11:56 PM

Where did you want the PM button - next to the edit, reply buttons on postbit?

Hippy 03-03-2012 12:47 AM

I would like to add a post thank..
what code would you need to see from that mod ?
thanks

dartho 03-03-2012 02:41 AM

See this post for Abe1's Post Thanks Hack integration: https://vborg.vbsupport.ru/showthrea...43#post2305643

[s]
This probably needs a bit of tweaking, but here goes:

edit post_thanks_box template in the lightweight style and replace contents with:
Code:

<div class="windowbg" id="post_thanks_box_$post[postid]">$post_thanks_box</div>
edit post_thanks_button template in lightweight style and replace contents with:
Code:

<a id="btn" href="post_thanks.php?$session[sessionurl]do=post_thanks_add&amp;p=$post[postid]&amp;securitytoken=$bbuserinfo[securitytoken]" id="post_thanks_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give($post[postid], <if condition="$vboptions[post_groan_integrate]">true<else />false</if>);"</if> <if condition="$display_thanks_image == 'none'">style="display:none"</if> rel="nofollow">Thanks</a>
edit post_thanks_postbit template in the lightweight style and replace contents with:
Code:

<if condition="$post['post_thanks_amount'] == 1">
        <phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase>
<else />
        <phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></if>

$post[post_thanks_bit]

edit postbit and postbit_legacy templates in lightweight style , search for
Code:

<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
</div>
</if>

and replace with
Code:

<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
$template_hook[postbit_controls]
</div>
</if>
$template_hook[postbit_end]

I think that should just about do it - assuming it is this hack: https://vborg.vbsupport.ru/showthread.php?t=165673 that you have installed

caveat: this may introduce other hacks into the lightweight style which use the postbit_end and postbit_control hooks
[/s]

Hippy 03-03-2012 02:53 AM

yep will test it out in the am .. thanks for your time dartho

Filgga 03-03-2012 02:54 AM

^^^^
Thanks dartho for the above info; can the vBSEO Like system be added in the same manner?

Filgga 03-03-2012 03:01 AM

Quote:

Originally Posted by dartho (Post 2301514)
Nowadays I generaly tell people to use vBulletin's built in one - then I don't have to support it :)

Your version for detection of devices was superb, used to detect iPad either. The vBulletin's buit-in one does not.

dartho 03-03-2012 04:03 AM

Quote:

Originally Posted by Filgga (Post 2305567)
^^^^
Thanks dartho for the above info; can the vBSEO Like system be added in the same manner?

Link me to a copy and I can look when I get a chance

Hippy 03-03-2012 04:10 AM

Quote:

Originally Posted by dartho (Post 2305563)
This probably needs a bit of tweaking, but here goes:

edit post_thanks_box template in the lightweight style and replace contents with:
Code:

<div class="windowbg" id="post_thanks_box_$post[postid]">$post_thanks_box</div>
edit post_thanks_button template in lightweight style and replace contents with:
Code:

<a id="btn" href="post_thanks.php?$session[sessionurl]do=post_thanks_add&amp;p=$post[postid]&amp;securitytoken=$bbuserinfo[securitytoken]" id="post_thanks_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give($post[postid], <if condition="$vboptions[post_groan_integrate]">true<else />false</if>);"</if> <if condition="$display_thanks_image == 'none'">style="display:none"</if> rel="nofollow">Thanks</a>
edit post_thanks_postbit template in the lightweight style and replace contents with:
Code:

<if condition="$post['post_thanks_amount'] == 1">
        <phrase 1="$post[username]">$vbphrase[post_thanks_user_says]</phrase>
<else />
        <phrase 1="$post[post_thanks_amount_formatted]" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></if>

$post[post_thanks_bit]

edit postbit and postbit_legacy templates in lightweight style , search for
Code:

<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
</div>
</if>

and replace with
Code:

<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
$template_hook[postbit_controls]
</div>
</if>
$template_hook[postbit_end]

I think that should just about do it - assuming it is this hack: https://vborg.vbsupport.ru/showthread.php?t=165673 that you have installed

caveat: this may introduce other hacks into the lightweight style which use the postbit_end and postbit_control hooks

the code posted is old
anyway updated to vb4
would be I guess (below)
but still don't work

post_thanks_box
Code:

<div class="windowbg" id="post_thanks_box_{vb:raw post.postid}">
        {vb:raw post_thanks_box}
</div>

post_thanks_button

Code:

<a id="btn" href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&amp;p={vb:raw post.postid}&amp;securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groans_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button">{vb:rawphrase post_thanks_thanks}</a>

post_thanks_postbit
Code:

<vb:if condition="$post['post_thanks_amount'] == 1">
                        {vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
                <vb:else />
                        {vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
                </vb:if>
                                        {vb:raw post.post_thanks_bit}

postbit and postbit_legacy templates in lightweight style I don't have
Code:

<img src="$stylevar[imgdir_misc]/moderated_small.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
</div>
</if>

and the hooks would be
Code:

{vb:raw template_hook.postbit_controls}
{vb:raw template_hook.postbit_end}

but the hooks are not working from what I can tell.. or something else..

:confused:

dartho 03-03-2012 04:40 AM

ah - sorry, I did that under 3.8.7 as that's what I use :)

I will have look a tthe vb4 vesion

dartho 03-03-2012 07:22 AM

Should be able to get something up tonight for this...

thenamesgould 03-03-2012 09:36 AM

Dartho, if you have the time and inclination, it would be amazing if you could have a look at adding this thanks hack for vb4 ... https://vborg.vbsupport.ru/showthread.php?t=243510

dartho 03-03-2012 11:12 AM

Integrating Abe1's post thanks add-on into the lightweight style.

replace the following templates with the code provided (in the lightweight style only!!)
post_thanks_box
Code:

<if condition="$post_thanks_box"><div class="windowbg" id="post_thanks_box_$post[postid]">$post_thanks_box</div></if>
post_thanks_button
Code:

<a id="btn" href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&amp;p={vb:raw post.postid}&amp;securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groan_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button">{vb:rawphrase post_thanks_thanks}</a>
post_thanks_postbit
Code:

<vb:if condition="$post['post_thanks_amount'] == 1">
                        {vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
                <vb:else />
                        {vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
                </vb:if>
{vb:raw post.post_thanks_bit}


Edit both the postbit & postbit_legacy templates as follows

Search for:
Code:

<vb:if condition="$post['editlink']"><a id="btn" href="{vb:raw post.editlink}">{vb:rawphrase edit}</a></vb:if>
Add the following immediately above:
Code:

{vb:raw template_hook.postbit_controls}
Then go to end of template and paste in:
Code:

{vb:raw template_hook.postbit_end}
and your done!

dartho 03-03-2012 11:24 AM

Just noticed something else with the style in general - my last update only included updates to the postbit_legacy template which should have been made to both postbit and postbit_legacy (they are meant to be identical). I suggest overwriting the postbit template copying with the contents of the postbit_legacy template.

Hippy 03-03-2012 11:59 AM

Quote:

Originally Posted by dartho (Post 2305643)
Integrating Abe1's post thanks add-on into the mobile style.

replace the following templates with the code provided (in the lightweight style only!!)
post_thanks_box
Code:

<div class="windowbg" id="post_thanks_box_{vb:raw post.postid}">{vb:raw post_thanks_box}</div>
post_thanks_button
Code:

<a id="btn" href="post_thanks.php?{vb:raw session.sessionurl}do=post_thanks_add&amp;p={vb:raw post.postid}&amp;securitytoken={vb:raw bbuserinfo.securitytoken}" id="post_thanks_button_{vb:raw post.postid}"<vb:if condition="$vboptions[disable_ajax] != 2"> onclick="return post_thanks_give({vb:raw post.postid}, <vb:if condition="$vboptions[post_groan_integrate]">true<vb:else />false</vb:if>);"</vb:if> <vb:if condition="$display_thanks_image == 'none'">style="display:none"</vb:if> rel="nofollow" class="post_thanks_button">{vb:rawphrase post_thanks_thanks}</a>
post_thanks_postbit
Code:

<vb:if condition="$post['post_thanks_amount'] == 1">
                        {vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
                <vb:else />
                        {vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
                </vb:if>
{vb:raw post.post_thanks_bit}


Edit both the postbit & postbit_legacy templates as follows

Search for:
Code:

<vb:if condition="$post['editlink']"><a id="btn" href="{vb:raw post.editlink}">{vb:rawphrase edit}</a></vb:if>
Add the following immediately above:
Code:

{vb:raw template_hook.postbit_controls}
Then go to end of template and paste in:
Code:

{vb:raw template_hook.postbit_end}
and your done!

your the best .. worked like a charm

I have dbtech_bookmark and thread system and like you said this will bring on other mods
now showing a image but not working from what I can tell
this is the code ..in template dbtech_bookmark_post
whats do I change ..and will there be other changes to other templates
thanks again

Code:

<img name="newpostbookmarklink" data-hasbookmarked="{vb:var hasBookmarked}" data-postid="{vb:var post.postid}" data-bookmark="dbtech/bookmark/images/post.png" data-bookmarked="dbtech/bookmark/images/delete.png" src="<vb:if condition="$hasBookmarked">dbtech/bookmark/images/delete.png<vb:else />dbtech/bookmark/images/post.png</vb:if>" alt="{vb:raw phrase}" style="cursor:pointer; vertical-align:middle;" />
<span class="seperator">&nbsp;</span>


All times are GMT. The time now is 04:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02206 seconds
  • Memory Usage 1,856KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (28)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete