vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=231666)

jamiedolan 02-15-2011 12:31 PM

Quote:

Originally Posted by Crossbow (Post 2162768)
Ok fixed the problem as said in another topic for line 10

Next problem: 1) upload the 'upload via ftp' folder

I uploaded the whole folder as said in install doc but now I get "you need to upload files to your server. The whole folder is uploaded!

Are you sure you put in the the right location?

Did you copy the main file into the root and the others into the folders?

If your sure you got that right, then I am not sure what is wrong.

Crossbow 02-15-2011 12:41 PM

New to this stuff. The install doc just said to upload the folder. Did not say to upload each file into each folder. I hope I done this right as I open each folder from the upload FTP folder then uploaded the files from the upload folder to each folder in my forum. Anyway it said it installed now.

Crossbow 02-15-2011 05:49 PM

Installed and working great. Thanks for the mod.

lgnd 02-17-2011 02:52 PM

Installed and working on 4.1.2 with the fix mentioned few posts earlier. I'd like to center it in postbit legacy what should I add to my additional css? Thanks!

ComoEstaEso-com 02-21-2011 12:08 AM

1 Attachment(s)
Just installed this on 4.1.2
Working good.

Suggestions:
I think the installation files in post #1 of this thread should be modified... perform the .xml modification in line 10
Reasons: Easier for the downloaders, and more importantly, the "Last Updated:" date on this modification will get changed from early 2010, to 2011.
People tend to use the modifications more if the last update is more recent, IMO.

====
A quick question:
Posts made by the Registered Users group are acting strange.
They get a scroll bar for the post.
A scroll bar that just scrolls a couple of pixels.
In other words, the entire post is visible... yet there's a scroll bar that you can "scroll down" just a couple of pixels.
Oddly enough, it doesn't appear on posts made by Administrators.

On our forums, we have installed the latest vBSEO (v3.6.0 RC2).
It has a "Like" link for posts.
Maybe there's the conflict?

What could I check? Verify? Modify?

Here is a screen shot showing the scroll bar:
Attachment 126829

Thank you!! :up::up:

AshMagic 02-24-2011 01:20 PM

1 Attachment(s)
Found a bug!!

I have this enabled on 4.1.2

The issue is, with the plugin enabled, it messes up the Blog Entries: part.
The number of blog entries appears at the end of the Thanked 0 Times in 0 Posts bit then it says Blog Entries: under it.

Obviousally it should say Blog Entries: 1

See screenshot.

AshMagic 02-24-2011 01:34 PM

Quote:

Originally Posted by car20 (Post 2136265)
Thanks a looooooooooooooooooooot Hippy

add a <br /> after last </dd> in the post_thanks_postbit_info template and solved problem.

very good tips:):up:

Doing this has solved my issue.. Sort of.
There is a big gap between Blog Entries: and the number of blogs.

How can I get this to align properly?

Hippy 02-24-2011 10:07 PM

Quote:

Originally Posted by AshMagic (Post 2166258)
Doing this has solved my issue.. Sort of.
There is a big gap between Blog Entries: and the number of blogs.

How can I get this to align properly?

what mod is it for ?

abbasbsp 02-25-2011 12:19 PM

where is mr. Abe1
update mod please ....

sadiq6210 02-27-2011 07:04 AM

Quote:

•Search for a users thanked posts
•Search for all thanked posts
We need this feature please

woodyperkins 02-27-2011 11:51 AM

installed on 4.1.2, its working great.

want to move the button to the right (by the edit button)

ive been reading this topic and can only come up with pieces of what to do.

can someone please explain it thoroughly? (which file to modify and how)

Thank you.

zeus_r6 02-27-2011 05:10 PM

1 Attachment(s)
This has already been asked, but what is causing the thank button to be displayed in the wrong locations...screenshot attached.

By the way, this is installed on 4.1.2 after a dependency edit

AshMagic 02-27-2011 07:26 PM

Quote:

Originally Posted by Hippy (Post 2166524)
what mod is it for ?

4.1.2

Hippy 02-28-2011 01:17 AM

Quote:

Originally Posted by AshMagic (Post 2167640)
4.1.2

does this with the stock skin ?
if so youll have to ask as vb.com..
but I will check it out on a test site

AshMagic 02-28-2011 01:29 PM

Quote:

Originally Posted by Hippy (Post 2167713)
does this with the stock skin ?
if so youll have to ask as vb.com..
but I will check it out on a test site

I will send you a PM with a link to my site. I hope you don't mind.
Thanks for your help on this.

Hippy 02-28-2011 07:20 PM

no problem

Hippy 02-28-2011 07:38 PM

1 Attachment(s)
here is a screen shot..
I think I know what the problem is

post your postbit_legacy template for me ..

I need to see the code..

meanwhile

replace your post_thanks_postbit_info template

Code:

<vb:if condition="$post['userid']">
        <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
        <vb:if condition="$post['post_thanks_thanked_times'] == 1">
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>

and replace your post_thanks_javascript template

Code:

<script type="text/javascript" src="clientscript/post_thanks.js"></script>

<style type="text/css">
.postbitlegacy .postfoot .textcontrols a.post_thanks_button, .postbit .postfoot .textcontrols a.post_thanks_button  {
        background: url({vb:stylevar imgdir_button}/post_thanks.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
}
.postbitlegacy .postfoot .textcontrols a.post_thanks_button:hover, .postbit .postfoot .textcontrols a.post_thanks_button:hover  {
        background: url({vb:stylevar imgdir_button}/post_thanks-hover.png) no-repeat transparent {vb:stylevar left};
}
</style>


zeus_r6 03-01-2011 01:12 AM

Quote:

Originally Posted by zeus_r6 (Post 2167588)
This has already been asked, but what is causing the thank button to be displayed in the wrong locations...screenshot attached.

By the way, this is installed on 4.1.2 after a dependency edit

Quoting myself here but this hack displays the thank you link on the far left rather than next to the edit button where it belongs...here is the fix which was found my the designer of the custom skin I'm running:


1) open template postbit
find
HTML Code:

{vb:raw template_hook.postbit_controls}

and move it under

<span class="postcontrols">

2) Do the same for postbit_legacy

A big thanks to Alexander from www.webandart.gr !:D

AshMagic 03-01-2011 11:49 AM

Quote:

Originally Posted by Hippy (Post 2167984)
here is a screen shot..
I think I know what the problem is

post your postbit_legacy template for me ..

I need to see the code..

meanwhile

replace your post_thanks_postbit_info template

Code:

<vb:if condition="$post['userid']">
        <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
        <vb:if condition="$post['post_thanks_thanked_times'] == 1">
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>

and replace your post_thanks_javascript template

Code:

<script type="text/javascript" src="clientscript/post_thanks.js"></script>

<style type="text/css">
.postbitlegacy .postfoot .textcontrols a.post_thanks_button, .postbit .postfoot .textcontrols a.post_thanks_button  {
        background: url({vb:stylevar imgdir_button}/post_thanks.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
}
.postbitlegacy .postfoot .textcontrols a.post_thanks_button:hover, .postbit .postfoot .textcontrols a.post_thanks_button:hover  {
        background: url({vb:stylevar imgdir_button}/post_thanks-hover.png) no-repeat transparent {vb:stylevar left};
}
</style>


Here is my postbit_legacy:

Code:

{vb:raw template_hook.postbit_start}
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<!-- see bottom of postbit.css for .userinfo .popupmenu styles -->

        <div class="posthead">
                <vb:if condition="$show['inlinemod']"><label for="post_imod_checkbox_{vb:raw post.postid}"></vb:if>
                        <span class="postdate {vb:raw post.statusicon}">
                                <vb:if condition="$show['announcement']">
                                        <span class="date">{vb:rawphrase x_until_y, {vb:raw post.startdate}, {vb:raw post.enddate}}</span>
                                <vb:else />
                                        <span class="date">{vb:raw post.postdate}<vb:if condition="!$show['detailedtime']">&nbsp;<span class="time">{vb:raw post.posttime}</span></vb:if></span>
                                </vb:if>
                        </span>
                        <span class="nodecontrols">
                                <vb:if condition="$post['postid'] AND $post['threadid'] AND !$show['moderated']">
                                        <a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="<vb:if condition="$show['inlinemod']">ie</vb:if>postcounter">#{vb:raw post.postcount}</a><a id="postcount{vb:raw post.postid}" name="{vb:raw post.postcount}"></a>
                                </vb:if>
                                <vb:if condition="$show['moderated']">{vb:rawphrase moderated_post}</vb:if>
                                <vb:if condition="$show['inlinemod']">
                                        <input class="postimod" type="checkbox" id="post_imod_checkbox_{vb:raw post.postid}" name="plist[{vb:raw post.postid}]" value="{vb:raw post.checkbox_value}" />
                                </vb:if>
                        </span>
                <vb:if condition="$show['inlinemod']"></label></vb:if>
        </div>
        <div class="postdetails">
                <div class="userinfo">
                        <div class="username_container">
                        <vb:if condition="$post['userid']">
                                {vb:raw memberaction_dropdown}
                                {vb:raw post.onlinestatus}
                        <vb:else />
                                <span class="username guest">{vb:raw post.musername}</span>
                        </vb:if>
                        </div>
                        <span class="usertitle">
                                {vb:raw post.usertitle}
                        </span>
                        <vb:if condition="$post['rank']">
                                <span class="rank">{vb:raw post.rank}</span>
                        </vb:if>
                        {vb:raw template_hook.postbit_userinfo_left}
                        <vb:if condition="$show['reputation']">
                                <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
                        </vb:if>
                        <vb:if condition="$show['avatar']">
                        <a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
                                <img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                        </a>
                        </vb:if>
                        <vb:if condition="$post['userid']">
                                <hr />
                                <dl class="userinfo_extra">
                                        <vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>

                                        <vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
                                        <vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
                                        <dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>       
                                        {vb:raw template_hook.postbit_userinfo_right_after_posts}
                                </dl>
                                <vb:if condition="$show['infraction'] OR $show['reppower']">
                                <dl class="user_rep">
                                        <vb:if condition="$show['infraction']">
                                        <dt>{vb:rawphrase infractions}</dt>
                                        <dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
                                        </vb:if>
                                        <vb:if condition="$show['reputation']">
                                                <vb:if condition="$show['reppower']">
                                        <dt>{vb:rawphrase reppower}</dt>
                                        <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
                                                </vb:if>
                                        </vb:if>
                                </dl>
                                </vb:if>
                                {vb:raw template_hook.postbit_userinfo_right}
                                <div class="imlinks">
                                        {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                                </div>
                        </vb:if>
                </div>
                <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>


                                                <vb:if condition="$post['isfirstshown']">
                                                        {vb:raw ad_location.ad_showthread_firstpost_start}
                                                        {vb:raw ad_location.thread_first_post_content}
                                                </vb:if>
                                                <vb:if condition="$post['islastshown']">
                                                        {vb:raw ad_location.thread_last_post_content}
                                                </vb:if>
                                <div class="content<vb:if condition="$show['first_ad'] OR $show['last_ad']"> hasad</vb:if>">
                                        <div id="post_message_{vb:raw post.postid}">
                                                <blockquote class="postcontent restore ">
                                                        {vb:raw post.message}
                                                </blockquote>
                                        </div>

                                        <vb:if condition="$show['attachments']">
                                                <div class="attachments">

                                                <vb:if condition="$show['thumbnailattachment']">
                                                        <fieldset class="postcontent">
                                                                <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" alt="{vb:rawphrase attached_thumbnails}" /> {vb:rawphrase attached_thumbnails}</legend>
                                                                {vb:raw post.thumbnailattachments}
                                                        </fieldset>
                                                </vb:if>

                                                <vb:if condition="$show['imageattachment']">
                                                        <fieldset class="postcontent">
                                                                <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
                                                                {vb:raw post.imageattachments}
                                                        </fieldset>
                                                </vb:if>

                                                <vb:if condition="$show['imageattachmentlink']">
                                                        <fieldset class="postcontent">
                                                                <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_images}</legend>
                                                                <ul>
                                                                {vb:raw post.imageattachmentlinks}
                                                                </ul>
                                                        </fieldset>
                                                </vb:if>

                                                <vb:if condition="$show['otherattachment']">
                                                        <fieldset class="postcontent">
                                                                <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attached_files}</legend>
                                                                <ul>
                                                                {vb:raw post.otherattachments}
                                                                </ul>
                                                        </fieldset>
                                                </vb:if>

                                                <vb:if condition="$show['moderatedattachment']">
                                                        <fieldset class="postcontent">
                                                                <legend><img src="{vb:stylevar imgdir_misc}/paperclip.png" class="inlineimg" /> {vb:rawphrase attachments_pending_approval}</legend>
                                                                <ul>
                                                                {vb:raw post.moderatedattachments}
                                                                </ul>
                                                        </fieldset>
                                                </vb:if>

                                                </div>
                                        <!-- / attachments -->
                                        </vb:if>
                                </div>
                        </div>
                        <vb:if condition="$show['postedited'] || $post['signature']">
                        <div class="after_content">
                                <vb:if condition="$show['postedited']">
                                <!-- edit note -->
                                <blockquote class="postcontent lastedited">
<!--                                        <img src="{vb:stylevar imgdir_button}/edit_40b.png" class="inlineimg" alt="" /> -->
                                        <vb:if condition="$show['postedithistory']">
                                                {vb:rawphrase last_edited_link_by_x_on_y_at_z_postid, {vb:raw post.edit_username}, {vb:raw post.edit_date},
                                                        {vb:raw post.edit_time}, {vb:raw post.historyurl}}
                                        <vb:else />
                                                {vb:rawphrase last_edited_by_x_on_y_at_z, {vb:raw post.edit_username}, {vb:raw post.edit_date}, {vb:raw post.edit_time}}
                                        </vb:if>
                                        <vb:if condition="$post['edit_reason']">
                                                <span class="reason">{vb:rawphrase reason}:</span> {vb:raw post.edit_reason}
                                        </vb:if>
                                </blockquote>
                                <!-- / edit note -->
                                </vb:if>
                                      {vb:raw template_hook.postbit_signature_start}
                                {vb:raw ad_location.ad_showthread_firstpost_sig}
                                <vb:if condition="$post['signature']">
                                        <blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote>
                                </vb:if>
                                        {vb:raw template_hook.postbit_signature_end}
                        </div>
                        </vb:if>
                        <div class="cleardiv"></div>
                </div>
        </div>
                <div class="postfoot">
                        <!-- <div class="postfoot_container"> -->
                        <div class="textcontrols floatcontainer">
                                <span class="postcontrols">
                                        <img style="display:none" id="progress_{vb:raw post.postid}" src="{vb:stylevar imgdir_misc}/progress.gif" alt="{vb:rawphrase loading_editor_please_wait}" />
                                        <vb:if condition="$post['editlink']">
                                                <a class="editpost" href="{vb:raw post.editlink}" name="vB::QuickEdit::{vb:raw post.postid}"><img src="{vb:raw vboptions.cleargifurl}" id="editimg_{vb:raw post.postid}" alt="{vb:rawphrase edit_delete_message}" /> {vb:rawphrase edit_post}</a>
                                        <span class="seperator">&nbsp;</span>
                                        </vb:if>
                                        <vb:if condition="$show['quickreply'] AND !$show['threadedmode']">
                                                <a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a>
                                        <span class="seperator">&nbsp;</span>
                                        </vb:if>
                                        <vb:if condition="$post['replylink']">
                                                <a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" />  <vb:if condition="$post['forwardlink']">{vb:rawphrase reply_to_private_message}<vb:else />{vb:rawphrase reply_with_quote}</vb:if></a>
                                        <vb:if condition="$show['multiquote_post']"><span class="seperator">&nbsp;</span></vb:if>
                                        </vb:if>
                                        <vb:if condition="$show['multiquote_post']">
                                               
                                                <a class="multiquote" href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase multi_quote_this_message}" />&nbsp;</a>
                                        </vb:if>
                                </span>
                                <span class="postlinking">
                                        <vb:if condition="!$post['forwardlink'] && THIS_SCRIPT != 'usernote' && THIS_SCRIPT != 'announcement'">
                                                <vb:if condition="$promote_sectionid AND $promote_sectionid != -1">
                                                      <a href="{vb:raw promote_url}" class="promotecms">{vb:rawphrase promote_to_article}</a>
                                                      <span class="seperator">&nbsp;</span>
                                                </vb:if>
                                        </vb:if>

                                        {vb:raw template_hook.postbit_controls}
                                        {vb:raw post.iplogged}
                                        <vb:if condition="$post['forwardlink']">
                                                <a class="forwardpost" href="{vb:raw post.forwardlink}" rel="nofollow"><img src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase forward_message}" /> {vb:rawphrase forward}</a>
                                                <vb:if condition="$show['reputationlink'] OR $show['infractionlink'] OR $show['moderated'] OR $show['spam'] OR $show['deletedpost'] OR $show['redcard'] OR $show['yellowcard']"><span class="seperator">&nbsp;</span></vb:if>
                                        </vb:if>
                                        <vb:if condition="$show['reputationlink']">
                                                <span class="reputationpopupmenu popupmenu popupcustom" title="{vb:raw post.postid}"><a class="popupctrl reputation" title="{vb:rawphrase reputation}" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&amp;p={vb:raw post.postid}" rel="nofollow" id="reputation_{vb:raw post.postid}"><!--<img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase reputation}" /> -->&nbsp;</a></span>
                                        </vb:if>

                                        <vb:if condition="$show['infractionlink']">
                                                <a class="infraction" href="infraction.php?{vb:raw session.sessionurl}do=report&amp;p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}"><!-- <img src="{vb:stylevar imgdir_button}/add-infraction_sm.png" alt="{vb:rawphrase add_infraction_for_x, {vb:raw post.username}}" /> --> &nbsp;</a> &nbsp;
                                        </vb:if>
                                        <vb:if condition="$show['reportlink']">
                                                <a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> -->&nbsp;</a> &nbsp;
                                        </vb:if>

                                        <vb:if condition="$show['moderated']">
                                                <img class="moderated" src="{vb:stylevar imgdir_misc}/moderated_sm.png" alt="{vb:rawphrase moderated_post}" />
                                        </vb:if>
                                        <vb:if condition="$show['spam']">
                                                <img class="spam" src="{vb:stylevar imgdir_misc}/spam_detected.png" alt="{vb:rawphrase spam_post}" />
                                        </vb:if>
                                        <vb:if condition="$show['deletedpost']">
                                                <vb:if condition="$show['managepost']">
                                                        <a class="deleted" href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=managepost&amp;p={vb:raw post.postid}" title="{vb:rawphrase manage}">&nbsp;</a>
                                                <vb:else />
                                                        <img class="deleted_nolink" class="inlineimage" src="{vb:stylevar imgdir_button}/deleted_sm.png" alt="{vb:rawphrase deleted_post}" />
                                                </vb:if>
                                        </vb:if>
                                        <vb:if condition="$show['redcard']">
                                                <a class="redcard" href="infraction.php?{vb:raw session.sessionurl}do=view&amp;p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_infraction}"><!-- <img src="{vb:stylevar imgdir_button}/red-card_sm.png" alt="{vb:rawphrase received_infraction}" /> --> &nbsp;</a>
                                                <vb:elseif condition="$show['yellowcard']" />
                                                        <a class="yellowcard" href="infraction.php?{vb:raw session.sessionurl}do=view&amp;p={vb:raw post.postid}" rel="nofollow" title="{vb:rawphrase received_warning}"><!--<img src="{vb:stylevar imgdir_button}/yellow-card_sm.png" alt="{vb:rawphrase received_warning}" /> --> &nbsp;</a>
                                        </vb:if>
                                </span>
                        <!-- </div> -->
                        </div>
                </div>
        <hr />
</li>
{vb:raw template_hook.postbit_end}

Thanks for all your help. I will try the solution now..

AshMagic 03-01-2011 11:55 AM

I made those changes but the problem remains I'm afraid :( I have reverted the code back.

gamerzhut 03-01-2011 04:10 PM

Installed & rated *****

Hippy 03-01-2011 08:19 PM

Quote:

Originally Posted by AshMagic (Post 2168223)
I made those changes but the problem remains I'm afraid :( I have reverted the code back.

those 2 template changes have fixes in them..
never added to the mod..

you should add them back
will check out your template and peek at your site after you add them back

Gunturz 03-02-2011 07:00 AM

Quote:

Originally Posted by Hippy (Post 2167984)
here is a screen shot..
I think I know what the problem is

post your postbit_legacy template for me ..

I need to see the code..

meanwhile

replace your post_thanks_postbit_info template

Code:

<vb:if condition="$post['userid']">
        <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
        <vb:if condition="$post['post_thanks_thanked_times'] == 1">
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>

and replace your post_thanks_javascript template

Code:

<script type="text/javascript" src="clientscript/post_thanks.js"></script>

<style type="text/css">
.postbitlegacy .postfoot .textcontrols a.post_thanks_button, .postbit .postfoot .textcontrols a.post_thanks_button  {
        background: url({vb:stylevar imgdir_button}/post_thanks.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
}
.postbitlegacy .postfoot .textcontrols a.post_thanks_button:hover, .postbit .postfoot .textcontrols a.post_thanks_button:hover  {
        background: url({vb:stylevar imgdir_button}/post_thanks-hover.png) no-repeat transparent {vb:stylevar left};
}
</style>


i think this could help the problem

at post_thanks_postbit_info template change "stylevar left" to "stylevar none"

Code:

<vb:if condition="$post['userid']">
        <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
        <vb:if condition="$post['post_thanks_thanked_times'] == 1">
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar none};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar none};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline; float: {vb:stylevar none};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>


Munkholm 03-02-2011 10:29 AM

Quote:

Originally Posted by Abe1 (Post 1942292)
A few things to note:

2) No searching feature yet

When can we expect the search features to be included ? This script is really great, but I?d love to be able to search for the most thanked post of a given month... Don?t suppose there?s an easy way to accomplish that ? Thanks.

Hippy 03-02-2011 02:14 PM

Quote:

Originally Posted by Munkholm (Post 2168657)
When can we expect the search features to be included ? This script is really great, but I?d love to be able to search for the most thanked post of a given month... Don?t suppose there?s an easy way to accomplish that ? Thanks.

Developer Last Online: Jun 2010
I'm afraid we may never see it:(

Dakoom 03-02-2011 07:15 PM

As you know, is it possible to add "post thanks" also in vbulletin blog or other scripts?

AshMagic 03-02-2011 07:33 PM

Quote:

Originally Posted by Hippy (Post 2168391)
those 2 template changes have fixes in them..
never added to the mod..

you should add them back
will check out your template and peek at your site after you add them back

OK i've done it and put the code back that you posted. It's ready for you to look at..
Thanks for helping me with this :)

Hippy 03-02-2011 10:02 PM

need you to turn on Add Template Name in HTML Comments
in admincp
under general settings
set it to yes
thanks

Hippy 03-02-2011 10:48 PM

after you do that for me

check your
blog_postbit_entries_link
blog_postbit_blog_this_post
blog_postbit_blog_link
templates to see if they where edited or if the have <br />
in them

Dakoom 03-02-2011 11:38 PM

nobody that helps me? :(

Hippy 03-03-2011 12:13 AM

Quote:

Originally Posted by Dakoom (Post 2168834)
As you know, is it possible to add "post thanks" also in vbulletin blog or other scripts?

not that I heard of .. sorry

JuPo 03-03-2011 12:22 PM

Sorry to that stupid question....

¿the versión "7.82" of this mod, works in versión "3.8.5" of vbulletín?

Hippy 03-03-2011 08:11 PM

Quote:

Originally Posted by JuPo (Post 2169095)
Sorry to that stupid question....

?the versi?n "7.82" of this mod, works in versi?n "3.8.5" of vbullet?n?

no it,s for version 4 only

here is the one for vb3 [AJAX] Post Thank You Hack

Rofo 03-03-2011 09:36 PM

Quote:

Originally Posted by zeus_r6 (Post 2168061)
Quoting myself here but this hack displays the thank you link on the far left rather than next to the edit button where it belongs...here is the fix which was found my the designer of the custom skin I'm running:


1) open template postbit
find
HTML Code:

{vb:raw template_hook.postbit_controls}

and move it under

<span class="postcontrols">

2) Do the same for postbit_legacy

A big thanks to Alexander from www.webandart.gr !:D

Quote:

Originally Posted by Schoelle (Post 2162447)

Quote:

Originally Posted by rjmjr69 (Post 2159680)
Attachment 126487

Heres a working XML for 4.1.1

Thanks for everyone helping, installed and working great on 4.1.1.

Quoting these posts, as they are needed information for 4.1.1. Thought I would get them together.

Live demo - www.gearheadconnection.com

OldSchoolDSL 03-05-2011 03:15 AM

This was a nice modification, but I have learned that it did slow down my community a little.

For me it worked flawlessly though in 4.1.2

But vBSEO does have their own "Likes" option.

Un-installed.

Leo777 03-06-2011 07:41 AM

Over the past years, many people have reported a problem when using this mod - after clicking Thanks the following error appears :

Quote:

Could not find phrase 'post_thanks'.
It's been reported since 2006 (see here) and apparently still hasn't been fixed. Some people have even stopped using the mod due to this error, even though the error is only a message and doesn't affect functionality of the mod.

I think the main reason it hasn't been fixed is because the error is rarely seen - that's because the 'Redirecting' page is not seen by most people due to the use of AJAX. However, while testing this mod with various browsers and various settings, I have seen this error a few times. One way to see the error is to right-click the Thanks button and open it in a new tab, then it doesn't use AJAX so the error will appear temporarily before the page is reloaded. But I've also seen the error in other (rare) situations.

I couldn't find any solutions online so I tried to find a solution myself. First I tried to manually create the missing phrase, but I couldn't get it to work. Then I searched the post_thanks templates to manually fix it, but I couldn't find anywhere to fix it there, so then I searched the actual files included in the zip but I'm not an expert coder so I still couldn't figure out how to fix it.

Fortunately I then came up with a quick-fix solution and figured I should post it here in case anyone else wants to use it. It's very simple - you just use the Replacement Variable Manager to get rid of the message! So in your admin control panel just go to the Replacement Variable Manager, click 'Add New Replacement Variable' then in the top box enter the following :

Quote:

could not find phrase 'post_thanks'.
And just leave the bottom box blank, then Save. No more error message :)

Hope this helps someone!

robsta 03-07-2011 11:25 AM

pls update this mod !

Hippy 03-07-2011 08:11 PM

Quote:

Originally Posted by robsta (Post 2170523)
pls update this mod !

mode works ..
never version of vb than 4.1.0

just replace the code in the xml file
to this

Code:

<dependency dependencytype="vbulletin" minversion="4.0.0 beta 4" maxversion="4.1.99" />

zeus_r6 03-08-2011 12:53 AM

1 Attachment(s)
Quote:

Originally Posted by Hippy (Post 2170674)
mode works ..
never version of vb than 4.1.0
use this xml file

Image attached...

djbaxter 03-08-2011 01:09 AM

Quote:

Originally Posted by zeus_r6 (Post 2170757)
Image attached...

Just edit the XML product file and change line 15 to read

PHP Code:

<dependency dependencytype="vbulletin" minversion="4.0.0 beta 4" maxversion="4.1.99" /> 



All times are GMT. The time now is 10:10 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.13083 seconds
  • Memory Usage 2,000KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_php_printable
  • (24)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
  • (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