You have a custom style so your code will be different, you will have to figure out where things need to be. The code I provided was for the default style.
|
Nevamind. :)
|
nvm fixed :)
|
Anyone have any luck with 4.1.12? The 4.x instructions don't seem to work anymore. The edits in this just seem to mess it up. Tried uninstalling and reinstalling but something is a little screwy.
|
Quote:
|
Quote:
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: post_thanks_navbar_search in [path]/includes/functions.php on line 4337 I uninstalled it, and then reinstalled but no luck. And when I go to edit the posbit display complete hook, the text the instructions tell to replace is not even listed. |
You installed or are using the VB 3.x plugin on VB 4.x. You need the VB4 version of the mod, not the VB3 version.
|
Thanks. I just installed 7.8.3 and the steps in #35 seem broken still. I'm not sure why there would a discrepancy, but the first 3 steps seem broken. I follow them exact and it looks like this
Screenshot 1 It looks fine with the edits not performed, just looks like the normal white box underneath the post, but any edit doesn't seem to work. Anyone else tried it 4.1.12? |
Quote:
Quote:
|
Quote:
--------------- Added [DATE]1334967415[/DATE] at [TIME]1334967415[/TIME] --------------- Could someone post what it should look like after each edit? At least then I can maybe pinpoint where it's broken. For me, and on the default VB skin, the first edit on post #35 causes the regular thanks box to become some div that gets pushed behind the forum. |
1 Attachment(s)
For me #35 is working fine on 4.1.12 .
See how it should more less look like. Attachment 137949 Please check if post #49 will help you: https://vborg.vbsupport.ru/showpost....8&postcount=49 |
Quote:
|
Thanks to everyone who took the time to post their knowledge in this thread. I just got my vB 4.1.12 working with the hacked "Likes" system pretty easily. :)
However, I use this Lightweight style for mobile device users: https://vborg.vbsupport.ru/showthread.php?t=249277 So far, I've added the "Like" button in between the "Edit" and "Reply" on my mobile style, like this: HTML Code:
<vb:if condition="$post['editlink']"><a id="btn" href="{vb:raw post.editlink}">{vb:rawphrase edit}</a></vb:if> |
Code:
Step 2 is to change the following phrases. In Admin CP use Phrase Manager to "translate" these phrases from "Thank You" to "Like(s)": |
Quote:
If you're noy sure where each phrase is use "Search in Phrases" instead. Put the phrase name in the "Search for Text" box, example: post_thanks_already Choose the option: Phrase Variable Name Only click find. Click to edit the found phrase and on that page there is a box for an English translation (or whatever language you use) - Simply put in that box what you want it to say... So change "Thanks" to "Like" Save. Repeat for all phrases listed. |
Loving this modification to the post thanks hack!
Working great. I do have a question for you, if you don't mind pointing me in the right direction? We use a star to like posts up next to the permalink. I'd like to have this button used as a "multi" button. In that when not liked, it's grayed (not yellow). Once you click "like" it changes to yellow. The text "remove like" would also be removed from the thanks box. I've been digging around for a while with this conditional and haven't had any luck. Could you point me in the right direction so I could do the research? Much appreciated! |
Sorry swapping out images would likely involve editing the Ajax JavaScript and that is not something I am familiar with.
|
Quote:
I intend to go about this a different way :) If possible, please review this: PHP Code:
I assume this is what you meant by the ajax function? --------------- Added [DATE]1335397299[/DATE] at [TIME]1335397299[/TIME] --------------- And apologies in advance, no matter what I do, copy/paste doesn't fully translate. |
The only work-around I could think of would be to disable AJAX in the mod completely which I don't think you'd want to do.
|
Quote:
If we come up with a solution I'll be happy to let you know. Maybe someone else out there would be interested. |
Is there anyone who installed/tested this thing on VB 4.1.12 ? Does it work ?
Ummm... nope, doesn't. Maybe vB should integrate in its own code a thanks/likes option. |
Quote:
|
I've updated to the latest version and would simply like to move the box into the post. On 3.8 you can do this by simply following this step
Quote:
but still can't figure it out for the postbit template (not legacy), anyone got any suggestions?? |
We have found a way to get it to say "and XX others" like .org does?
|
I don't have space between the usernames. Only a comma. (vB 4.2.0)
Where ist the error? post_thanks_postbit Code:
<div style="font-size:11px;"> |
Add tis code after each comma:
That will force a space. |
Quote:
|
Link to a post on your site with multiple thanks (or likes)?
|
sorry not after the commas, nevermind. It's different code somewhere else, I don't know off hand.
|
Quote:
|
Then I don't know.
|
Quote:
Find the following in function fetch_thanks_bit (around line 218). Code:
if ($cmpt<$number_rows) |
Quote:
|
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? |
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.
|
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/ |
Quote:
|
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>> |
I love this. I have been looking for something like this a long time. Thank you! :)
|
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:59 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|