vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to turn the "Post Thank You" hack into a "Likes" system similar to vBulletin.org (https://vborg.vbsupport.ru/showthread.php?t=266358)

Glynn58 02-03-2013 08:52 AM

Thank you really chuffed with this.....

Raptor 02-23-2013 01:44 AM

Quote:

Originally Posted by viper357 (Post 2237570)
Hi Joe, small problem, everything works 100% but as soon as I do the above edit, I get a blank page on any link except for my vbadvanced home page. If I undo the edit it makes no difference until I re-upload the xml file (which I assume then replaces the small plugin), then the forum works again. Any idea's? I'm desperate to have this display within the posts. ;)

any clues how to get this template edit working with vb 4.2 ?

https://vborg.vbsupport.ru/showpost....postcount=1948

smirkley 03-04-2013 02:43 AM

Quote:

Originally Posted by Foxtrotelite (Post 2394998)
How can I move the like box into the post for 4.2? I have tried a couple code edits, but can't get it to work. I'm not sure if I'm just missing something simple or what.

Seconded !!


Nevermind,... FOUND IT !!
https://vborg.vbsupport.ru/showpost....postcount=1948

--------------- Added [DATE]1362454549[/DATE] at [TIME]1362454549[/TIME] ---------------

OK, have this looking great now inside my post box above the signature area.

Does anybody know of how I can force it down to the bottom to reside just above my siggy area? Just doesnt look right located all the way up under the post text, with a big space below between the siggy.

smirkley 03-05-2013 03:16 AM

OK,..figured out how to force to bottom of post box right above siggy,.. in postbit legacy template

find
Code:

<vb:if condition="$show['postedited'] || $post['signature']">
add above
Code:

<div class="after_content">{vb:raw template_hook.postbit_messagearea_end}</div>
Of course it still shows up just above edit statement if applicable, but I rather have the box on the bottom but above siggy area. This was the easiest way for me.

--------------- Added [DATE]1362527876[/DATE] at [TIME]1362527876[/TIME] ---------------

Quote:

Originally Posted by MrSeth (Post 2380399)
Install went great thanks for everyone's input.

I would like to ask for some help on these two things..

1. removing the white space in the like box.



http://ilovesmallies.com/likehelp.jpg

Me too. I have dug n dug and cant resolve this white space issue either.

Armee25 03-06-2013 05:07 PM

I'd like to get an answer to the white space issue mentioned above please :)

Armee25 03-09-2013 12:50 AM

Please? :) anyone?

Simon Lloyd 03-10-2013 12:43 PM

Have you turned on the template naming in general options in admincp and then looked at the sorce code to see what is being used there?, it could be a <br /> tag or padding...etc in css.

edgeless 03-12-2013 08:16 PM

My version is 4.2.0. The Post Thank You Hack version is 7.8.4. I have not changed "Thanks" to "Like", but I've been trying to get the Thanks box to appear inside of the post bodies. I've however only succeeded in getting it to disappear completely. When I reverse my code changes the box reappears but it's of course not within the post bodies. It's back between the posts, since everything has been reverted.

I'd very much appreciate it if someone could tell me where I'm going wrong. Below are the changes I've been making, after which the box just goes away.

I change the contents of post_thanks_box to:

Code:

<div <vb:if condition="!$post_thanks_box == 1"> style="background-color: #f2f6f8; border: 1px ridge #417394; border-width: 1px 1px 1px 1px; padding: 2px; width:92%; margin:

0px auto 0px auto; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; margin-top:10px; margin-bottom:0px;display:none" <vb:else />
style="background-color: #f2f6f8; border: 1px ridge #417394; border-width: 1px 1px 1px 1px; padding: 2px; width:92%; margin: 0px auto 0px auto; -webkit-border-radius: 5px; -

moz-border-radius: 5px; border-radius: 5px; margin-top:10px; margin-bottom:0px;"
</vb:if> id="post_thanks_box_{vb:raw post.postid}">
{vb:raw post_thanks_box}
</div>


In postbit_display_complete I change this:

Code:

$template_hook['postbit_end'] .= $templater->render();

to this:

Code:

$template_hook['postbit_messagearea_end'] .= $templater->render();

and in postpit_legacy I change this:

Code:

                <div class="postbody">
                        <div class="postrow<vb:if condition="$show['postedited'] || $post['signature']"> has_after_content</vb:if>">
                                {vb:raw template_hook.postbit_messagearea_start}
                                <vb:if condition="$post['title'] OR $show['messageicon']">
                                <h2 class="title icon">
                                        <vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
                                </h2>
                                </vb:if>


to this:

Code:

                <div class="postbody">
                        {vb:raw template_hook.postbit_messagearea_start}
                        <div class="postrow<vb:if condition="$show['postedited'] || $post['signature']"> has_after_content</vb:if>">
                                <vb:if condition="$post['title'] OR $show['messageicon']">
                                <h2 class="title icon">
                                        <vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
                                </h2>
                                </vb:if>


And there's apparently no postbit_display_start in this version so I can't modify that.

But why am I not able to move the box into the post body? What am I missing?

Thanks in advance.

edgeless 03-15-2013 06:42 PM

It would be very nice if someone could provide an adaptation of the modifications herein to function on version 4.2.0, both for the 'thanks' to 'likes' part and for the migration of the thanks/likes box into the message body part. The code within some of the 4.2.0 templates is apparently different from that in previous releases of version 4.

Edit: As far as changing 'Thanks' to 'Likes', it seems that simply doing the phrase search and replace for each of the named phrases in post #1, in addition to changing post_thanks_thanks from 'Thanks' to 'Like' (for the button label), did the trick for me. I only hope I'm not going to experience any complications without having done anything else. One problem I've already noticed is that the 'Thanks' stats field is now labeled 'Like' as opposed to 'Likes'. But if I change the text in the post_thanks_thanks phrase to 'Likes', then the button label also changes to 'Likes' when it should be 'Like'.

Addendum: I've fixed it. I just created a post_thanks_like phrase containing the text 'Like' and then changed the post_thanks_thanks reference (in the post_thanks_button template) to post_thanks_like. Next, I changed the text in post_thanks_thanks back to 'Likes' and everything now displays correctly.

uninvited13th 04-05-2013 09:10 AM

Possible??

Quote:

The following members like this post: member1, member2, member3, member4, member5 and 36 others.
and when the "36 others" is clicked, it will expand with ajax..


All times are GMT. The time now is 07:11 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02171 seconds
  • Memory Usage 1,754KB
  • 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
  • (7)bbcode_code_printable
  • (4)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
  • (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