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)

BirdOPrey5 08-29-2012 10:25 PM

Then I don't know.

McGyver 09-21-2012 04:41 AM

Quote:

Originally Posted by Beckenbauer (Post 2360812)
This code also don't works.

I think you need to fix the functions_post_thanks.php file.

Find the following in function fetch_thanks_bit (around line 218).
Code:

if ($cmpt<$number_rows)
                        {
                                $virg=",";
                        }

Add a space after the comma in the quotes and it should do the trick...

Beckenbauer 09-21-2012 11:47 PM

Quote:

Originally Posted by mgyver (Post 2367208)
I think you need to fix the functions_post_thanks.php file.

Find the following in function fetch_thanks_bit (around line 218).
Code:

if ($cmpt<$number_rows)
                        {
                                $virg=",";
                        }

Add a space after the comma in the quotes and it should do the trick...

You are a genius! Thx!

abbyxelizabeth 11-05-2012 03:41 AM

Parse error: syntax error, unexpected $end in /home/feathert/public_html/includes/class_postbit.php(345) : eval()'d code on line 52

This is the error I've gotten. How do I fix it? Any ideas?

BirdOPrey5 11-10-2012 08:17 PM

There is likely a typo in your postbit_display_start or postbit_display_complete plugin- if you can't find the error you could always reinstall the thank you mod but you will lose all customization.

MrSeth 11-12-2012 01:29 AM

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.

2. How to move the Like button to the left of or in between the "reply" or "Reply with quote"

https://vborg.vbsupport.ru/

MrSeth 11-18-2012 04:53 AM

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.

2. How to move the Like button to the left of or in between the "reply" or "Reply with quote"

https://vborg.vbsupport.ru/

Anychance I can get some help on this?

TinCow1 11-19-2012 01:06 PM

I'm having a formatting error that I can't figure out. Everything displays properly, with one exception. For posts with more than 6 Thanks, the list of Thanks (which is hidden behind a toggle-able spoiler-style box) no longer displays for a person who has Thanked that post. It displays perfectly fine if you haven't thanked, but once you add yourself to the list clicking the toggle button does nothing. What am I doing wrong?

Code:

<div class="postbody"<vb:if condition="$vboptions['legacypostbit']"> style="margin-{vb:stylevar left}: 0; border-left: 0px"</vb:if>>
        <div class="postrow">
        <vb:if condition="$bbuserinfo['usergroupid'] == 6 || $post['show_thanks_remove_option']">
        <div class="smallfont" style="float:{vb:stylevar right}">
                <vb:if condition="$bbuserinfo['usergroupid'] == 6">
                        <a href="post_thanks.php?do=post_thanks_remove_all&amp;p={vb:raw post.postid}"<vb:if

condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_all({vb:raw post.postid}, <vb:if

condition="$vboptions['post_groan_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase

post_thanks_remove}</a>
                </vb:if>
                <vb:if condition="$bbuserinfo['usergroupid'] == 6 && $post['show_thanks_remove_option']">
                        |
                </vb:if>
                <vb:if condition="$post['show_thanks_remove_option']">
                        <a href="post_thanks.php?do=post_thanks_remove_user&amp;p={vb:raw post.postid}"<vb:if

condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user({vb:raw post.postid}, <vb:if

condition="$vboptions['post_groan_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase

post_thanks_remove_user}</a>
                </vb:if>
        </div>
        </vb:if>
        <vb:if condition="!$vboptions['legacypostbit']">post</vb:if>
                <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:if condition="$post['post_thanks_amount'] > 6">

<div class="smallfont" style="margin-bottom:0px"> <input type="button" value="Show List" style="width:60px;font-size:10px;margin:0px;padding:0px;float:left" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display
!= '') {this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display
= '';this.innerText = ''; this.value = 'Hide List'; } else {this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display
= 'none'; this.innerText = ''; this.value = 'Show List'; }"> </div><div class="alt1"><div style="display: none;"> &nbsp; {vb:raw post.post_thanks_bit}
</div></div>

<vb:else />
<span id="thanks">
        <div class="content">
                <div id="post_thanks_bit_{vb:raw post.postid}">
                        <blockquote class="postcontent restore">
                                {vb:raw post.post_thanks_bit}
                        </blockquote>
                </div>
        </div>
</span>
</vb:if>

        </div>
</div>
<hr />


bluidkiti 01-05-2013 05:51 PM

I love this. I have been looking for something like this a long time. Thank you! :)

Foxtrotelite 01-06-2013 12:07 AM

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.

Also, does anyone have a link to where I can have each "like" notify the poster his post was liked?


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.01608 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)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