vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=237)
-   -   Lightweight Style for VB3.8.7 iPhone/Mobile/Cell/PDA (https://vborg.vbsupport.ru/showthread.php?t=263822)

dartho 01-20-2012 11:33 PM

I half coded those and other moderation options, but got distracted with life along the way - I'll get back onto it one of these days :)

blackberry 01-21-2012 05:54 PM

It will be gr8 if you do so.. m waiting..!

ses 01-24-2012 08:00 AM

Jep - would be great @dartho !!

_Ryfe_ 01-27-2012 07:58 AM

Quote:

Originally Posted by _Ryfe_ (Post 2270614)
I would like to add borders around thread listings. Can anyone please tell me how to accomplish this? It would be highly appreciated.

Can any of you gents help me with this? Would definitely love to be able to do this.

FreeResellers 01-27-2012 04:15 PM

It does work on 3.8.6

rabster 02-05-2012 08:44 AM

Hi this seems to work great although can you confirm the purpose of the default style button

as when i click it on my iphone for example it wont change the skin but if i do it on the pc it does i have only put this on my test forum for now but do want to put it live asap

dartho 02-05-2012 11:46 AM

Assuming you have not insalled anything to override user choice, and have followed the install instructions - the default style button will switch teh style to the default style.

rabster 02-05-2012 03:26 PM

as far as i know yes everything has been followed as per instructions

it does switch it on the Pc just not on the Iphone

Currently i have the 1st 2 options set to yes everything else is still set on no

i have the code shown in here to bypass the cmps index page

when pressing the default style button the command line changes to .php?styleid=2 i know the style i want is set to number 2

all it does is reload the same page if i press the button again it add "&styleid=2" again and continues to repeat this....

Cheers

dartho 02-06-2012 08:11 PM

It sounds like you have installed this or something similar and it is doing what it's meant to do.

celikforum 02-18-2012 10:12 AM

Good stuff. installed

dartho 03-03-2012 04:42 AM

Post Thanks Integration ( that you have installed)

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]

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

sineay 03-05-2012 07:33 AM

Nice addon, but unfortunately I can not login or it will not appear to me that I'm logged in???
The Mobile Style goes with me only on the first page, and from whom I want to open a post it again on my standart style.

can someone please help me on this?

rady 07-16-2012 08:35 AM

is there anyway we can change the colors of the theme?

BirdOPrey5 07-16-2012 09:46 AM

Quote:

Originally Posted by rady (Post 2348596)
is there anyway we can change the colors of the theme?

You can edit all colors in the .css file.

stevieb 08-02-2012 10:43 PM

This shows an invalid file type when trying to upload.

Quote:

Invalid File Specified

Blueracer66 09-02-2012 04:38 PM

Has anyone tried this on 3.8.7? :)

SamirDarji 09-02-2012 05:07 PM

I haven't yet, but it should work since that's the version it's meant for.

Blueracer66 09-02-2012 05:15 PM

Quote:

Originally Posted by SamirDarji (Post 2362028)
I haven't yet, but it should work since that's the version it's meant for.

I just want to be 100% sure this works. I usually read other members' feedback before trying anything. :)

BirdOPrey5 09-02-2012 07:37 PM

Yes working great for me on 3.8.7.

SamirDarji 09-02-2012 10:01 PM

Quote:

Originally Posted by Blueracer66 (Post 2362031)
I just want to be 100% sure this works. I usually read other members' feedback before trying anything. :)

I try to do the same thing. :)
Quote:

Originally Posted by BirdOPrey5 (Post 2362070)
Yes working great for me on 3.8.7.

Do you have it running on a forum we can check it out? I'd love to use it and see if it will work for me. :)

BirdOPrey5 09-02-2012 11:00 PM

Yes but I did a fair amount of customization:

http://www.juot.net/forums/forum.php?styleid=38 - Direct link to mobile style

SamirDarji 09-04-2012 04:10 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2362134)
Yes but I did a fair amount of customization:

http://www.juot.net/forums/forum.php?styleid=38 - Direct link to mobile style

Thank you so much for the link! That looks great. :) Where's the customization that wouldn't normally be there (if it's visible)? Also, has anyone tested this with the vbadvanced cmps?

BirdOPrey5 09-04-2012 02:07 PM

Doesn't work with vbadvanced cmps. I have it on my normal style but deactivated it on mobile.

Customizations are custom icons for each forum, different colors, different colors for stickly/closed threads, and links to OT in every forum/thread.

SamirDarji 09-04-2012 05:26 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2362579)
Doesn't work with vbadvanced cmps. I have it on my normal style but deactivated it on mobile.

Customizations are custom icons for each forum, different colors, different colors for stickly/closed threads, and links to OT in every forum/thread.

Thank you again for the quick replies. :) What does vba do if you have it activated on your mobile style? Just not render correctly, or something more serious like db errors?

I noticed your facebook like box wasn't working for me on the homepage. Could be something on my end, but just wanted to let you know. :) Also, where did you find the "Total websites who have referred visitors today" module that you use on your forum homepage? That's really slick! I searched vb.org up and down but couldn't find it. :(

SamirDarji 09-05-2012 12:42 AM

Nevermind on the vba questions--I found the answer re-reading the thread. :o

As far as the facebook like box--looks like all of their social plugins seem to be acting screwy, so it must be them.

blackberry 09-14-2012 01:47 PM

how to add report button in it?

dartho 09-15-2012 11:01 AM

edit postbit and/or postbit_legacy template, search for
HTML Code:

<div class="windowbg" align="right">
and add

HTML Code:

<if condition="$show['reportlink']"><a id="btn" href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow">$vbphrase[report_bad_post]</a></if>
immediately after it

blackberry 09-18-2012 10:05 AM

Quote:

Originally Posted by dartho (Post 2365612)
edit postbit and/or postbit_legacy template, search for
HTML Code:

<div class="windowbg" align="right">
and add

HTML Code:

<if condition="$show['reportlink']"><a id="btn" href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow">$vbphrase[report_bad_post]</a></if>
immediately after it

thank you :)

karabaja3 11-07-2012 07:04 PM

How can I add RedTyger's ad-display plugin and PostThanks plugin? They are allready installed at my default style.

dartho 11-08-2012 12:12 AM

First - you need to provide links to these addons so I can look. Chances are it will mostly be a matter of template edits to get them working and looking right.

beekay 12-24-2012 10:56 PM

Quote:

Originally Posted by dartho (Post 2379270)
First - you need to provide links to these addons so I can look. Chances are it will mostly be a matter of template edits to get them working and looking right.

Do you think you could help me add in vbseo likes into this style?

SBlueman 12-25-2012 02:14 AM

I second beekay's request.

dartho 12-30-2012 10:40 AM

Quote:

Originally Posted by beekay (Post 2392638)
Do you think you could help me add in vbseo likes into this style?

...

Quote:

Originally Posted by dartho (Post 2379270)
First - you need to provide links to these addons so I can look. Chances are it will mostly be a matter of template edits to get them working and looking right.


SBlueman 12-30-2012 04:30 PM

vbSEO likes is a default feature with vbSEO.

dartho 01-02-2013 04:52 AM

Sorry - I don;t have VBSEO

sinomama 01-15-2013 07:50 AM

Thanks very much for the style, it's the best of all I tried to install.

[S]Just a question: how to remove the display of the "cybchatbox" and the "adavanced forum statistics" in this style plz? These are making a little chao on the page.

Help![/S]

http://www.tingzi.net

sinomama 01-15-2013 08:55 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2249606)
Pretty much any mod can be disabled for a specific style or styles if you edit the plugins for the mod. You can't go wrong editing every single plugin for a mod but sometimes you don't need to edit every single one...

Basically you need to wrap all of the plugin in this code:

PHP Code:

if (!in_array($vbulletin->userinfo['styleid'], array(2,3,4)))
{
 
  
//All Original Code Here
 


Where 2, 3, and 4 are the styleids you want to disable the mod in. You can add ore remove as many as you want, just separate each with a comma. If there's only 1 you don't need the comma.

Only thing to look out for, if in the plugin there is the line:
Code:

global $vbulletin;

[S]I tried :[/S]
PHP Code:

if (!in_array($vbulletin->userinfo['styleid'], array(49)))
{
 
 <if 
condition="(($_REQUEST['do']=='cchatbox') OR ($_REQUEST['do']=='ccarc'))">
        
$stylevar[htmldoctype]
..........
CHATBOX  CODE...............

        </
body>
        </
html>
    </if>
 


[S]But it didn't work. (this style is 49)
Is the right code where I edited?[/S]

I got it!
I edited in "Cyb - Advanced Forum Statistics - CT" and "Cyb - ChatBox - CT" of the plugin manager, and it works!

Thank you so much! You are great! ^^

sinomama 01-15-2013 11:07 AM

[S]New question:
(aussi to BirdOPrey5)

I am using the Detect Mobile Device and Assign Style(product-mobdetect38.xml) of dartho, then, if I open the site with www.....php?stylei=49 in the IE, these plugins don't display, and le bouton "default style" works well.

but If I open the site in the safari of IPhone, mobile phone show again the plugins which I had disabled in the mobliestyle(styleid=49)...... :(

So, how can I correct it, plz? In the code of plugin "Detect Mobile Device and Assign Style"?[/S]


resolved........by creating a plugin disable them.

squidsk 01-20-2013 10:20 PM

Two minor fixes:

1) CSS fix on line 364 add .thread_dot_new to the list of classes, this fixes the background not being the correct color. The change is given below.

Code:

.thread_dot, .thread_hot, .thread_dot_hot, .thread_, .thread_lock,.thread_hot_lock,.thread_dot_lock,.thread, .thread_moved, .thread_new, .thread_hot_new, .t\
hread_dot_hot_new, .thread_lock_new, .thread_dot_new

2) Add class="$thread[statusicon]" to the anchor tag of sticky threads so that they get bolded when unread posts are present.

Code:

<if condition="$show['sticky']">
<div class="sticky">
            $thread[movedprefix]
            $thread[typeprefix]
            $thread[moderatedprefix]
            $thread[prefix_rich]
<a class="$thread[statusicon]" href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]">$thread[threadtitle]</a> <span class="smallfont">($thread[replycount] $vbphrase[replies])</span>
<if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">($thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
<if condition="$show['deletethread']">
<a href="postings.php?$session[sessionurl]do=deletethread&amp;t=$thread[threadid]">[$vbphrase[delete]]</a> <a href="postings.php?$session[sessionurl]do=editthread&amp;t=$thread[threadid]">[$vbphrase[edit]]</a> </if>
<br />
$vbphrase[last_post]: $thread[lastposter], $thread[lastpostdate]
<if condition="!$show['detailedtime']">$thread[lastposttime]</if>
</div>

<else />


karabaja3 01-28-2013 03:46 PM

Quote:

Originally Posted by karabaja3 (Post 2379215)
How can I add RedTyger's ad-display plugin and PostThanks plugin? They are allready installed at my default style.

Quote:

Originally Posted by dartho (Post 2379270)
First - you need to provide links to these addons so I can look. Chances are it will mostly be a matter of template edits to get them working and looking right.

Thanks for reply. Here there are:

1. [AJAX] Post Thank You Hack

2. vB Ad Management 4


All times are GMT. The time now is 12:49 PM.

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.01452 seconds
  • Memory Usage 1,849KB
  • 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
  • (8)bbcode_code_printable
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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