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)

dartho 03-03-2012 12:03 PM

You could just delete the contents of that template in the lightweight style to stop it showing, same should work for most other add-ons that start appearing because of the addition of hooks.

BTW - I modified the code for the post_thanks_box template above so that it only shows the post thanks box when someone has actually posted thanks

dartho 03-03-2012 12:09 PM

Alternatively if you wanted to integrate the post thanks hack, and not put the hooks in, you can put the code from post_thanks_box in place of {vb:raw template_hook.postbit_end} in the postbit templates and put the code from post_thanks_button in place of {vb:raw template_hook.postbit_controls}

Hippy 03-03-2012 12:14 PM

Quote:

Originally Posted by dartho (Post 2305659)
You could just delete the contents of that template in the lightweight style to stop it showing, same should work for most other add-ons that start appearing because of the addition of hooks.

BTW - I modified the code for the post_thanks_box template above so that it only shows the post thanks box when someone has actually posted thanks

thanks you!!!!!!!!!!!!!!

Quote:

Originally Posted by dartho (Post 2305665)
Alternatively if you wanted to integrate the post thanks hack, and not put the hooks in, you can put the code from post_thanks_box in place of {vb:raw template_hook.postbit_end} in the postbit templates and put the code from post_thanks_button in place of {vb:raw template_hook.postbit_controls}

got ya that bud ..

Hippy 03-03-2012 12:37 PM

if you add the contents from post_thanks_button in place of {vb:raw template_hook.postbit_controls}
the button shows up on everyone ..
If you have it set so you can thank yourself it is showing
then if clicked you get the you don't have permission to do this act or what ever it says.
any ideas would be greatly appreciated

dartho 03-03-2012 12:37 PM

Quote:

Originally Posted by autoescala (Post 2305312)
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....

To remove underlines and make style changes etc, edit the CSS file. To remove underlines form ALL linkes, edit the lightweight.css.php file, search for

Code:

body
{

and add
Code:

a {text-decoration:none;}
immediately above it.


I have tried to leave the style as simple as possible, whilst still being functional, to make it easy for admins to tailor it for their site as Mark has done.

dartho 03-03-2012 12:43 PM

Quote:

Originally Posted by Hippy (Post 2305681)
if you add the contents from post_thanks_button in place of {vb:raw template_hook.postbit_controls}
the button shows up on everyone ..
If you have it set so you can thank yourself it is showing
then if clicked you get the you don't have permission to do this act or what ever it says.
any ideas would be greatly appreciated

Ah - I didn't think oif permissiosn etc....

try wrapping the following conditional around it:


<vb:if condition="$display_thanks_image=='none'">
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>
</vb:if>

tareqbd 03-03-2012 02:53 PM

Well bro, I made the thanks work. But user has to press the button 2/3 times and refresh the page. Because I am using hide option integrated with Abe1's thanks hack, in normal version once user press thank, the hidden content automatically show without refreshing the page but in mobile version it needs to refresh and press thanks more times. Can I make it ajax based or if I can change anything which will make it automatically and user will get rid of pressing the button every time or refresh the page.

Thank you.

dartho 03-03-2012 11:27 PM

I don't know what the hide option is, the above code seems to work fine from my mobile phone.

tareqbd 03-04-2012 01:16 AM

Quote:

Originally Posted by dartho (Post 2305895)
I don't know what the hide option is, the above code seems to work fine from my mobile phone.

https://vborg.vbsupport.ru/showthread.php?t=271979
bro above is the mod I am talking about. thanks.

F&R 03-05-2012 05:25 PM

Hello dartho

I have just upgraded to vb4 4.1.11

In order to avoid the moaning in control panel about templates, I deleted the lightweight style, upgraded to 4.1.11 and then uploaded the lightweight style and the options add on.

Thing is, it doesn't look anything like what it did before. Gone is the desktop button at the top, adding a title to the options doesn't remove the logo, and the logo is vbulletin not your mobile logo.

What on earth did I do wrong? Or is it 4.1.11 doing something?

Uploaded again and this time it worked... seems that what I was looking at was the vb4 version... not as nice as yours.


All times are GMT. The time now is 06:05 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.02116 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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