vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=92410)

Abe1 12-27-2005 12:06 PM

Quote:

Originally Posted by lolo?
works great thanks for this hack :p
i have one suggestion
it's possible to bump a thread when a member use the thanks button like a basic answer ?
hum i hope you understand
sorry for my bad english

I'd have to see about that I'm not sure i'd want to implement it but I will try to see.

AquilaEagle 12-27-2005 12:32 PM

Hey, Thanks!

YLP1 12-28-2005 10:32 PM

I think I fixed the original db error of duplicate record in the post_thanks. However, I ran into a bit of a snag..... I went through and double checked to ensure I had made all the template changes but the thank you button does not appear on either post bits.

I successfuly installed the post thanks stats (no db errors like with the thanks mod) and it shows where it should except the main cmps page.

I am fairly new at this php stuff can someone point me in the right direction on how to get the post thanks button to appear?

Thanks in advance.

Abe1 12-29-2005 12:17 PM

Quote:

Originally Posted by YLP1
I think I fixed the original db error of duplicate record in the post_thanks. However, I ran into a bit of a snag..... I went through and double checked to ensure I had made all the template changes but the thank you button does not appear on either post bits.

I successfuly installed the post thanks stats (no db errors like with the thanks mod) and it shows where it should except the main cmps page.

I am fairly new at this php stuff can someone point me in the right direction on how to get the post thanks button to appear?

Thanks in advance.

Are you looking at your post? Your own post will not show the thanks button.

klaush 12-29-2005 05:50 PM

Thanks for this great job!

Today i got this vb 3.5.2:

Invalid SQL:

UPDATE vb3_user
SET post_thanks_thanked_times = 1 + post_thanks_thanked_times
WHERE userid =;

MySQL-Fehler : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

------------

And after upgrade to the newest version:

Uncached templates: STANDARD_ERROR_LITE (1)

Any idea?

Thanks!

Abe1 12-30-2005 03:01 AM

Quote:

Originally Posted by klaush
Thanks for this great job!

Today i got this vb 3.5.2:

Invalid SQL:

UPDATE vb3_user
SET post_thanks_thanked_times = 1 + post_thanks_thanked_times
WHERE userid =;

MySQL-Fehler : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

------------

And after upgrade to the newest version:

Uncached templates: STANDARD_ERROR_LITE (1)

Any idea?

Thanks!

Why would the userid be blank? Were you thanking a guest?

klaush 12-30-2005 06:30 AM

Quote:

Originally Posted by Abe1
Why would the userid be blank? Were you thanking a guest?

No Abe1, guests have no permission to do postings.

And i had this error only once.

The "STANDARD_ERROR_LITE" was cached by me, so this is o.k. by now.

SCRIPT3R 12-31-2005 12:40 AM

suggestion to add a simple Close Window button in the pop-up window in future release.

DrewM 01-03-2006 08:37 PM

Well I found a issuse it is when everyou change your user name it does not update your thanks.

Ncturnal 01-03-2006 08:39 PM

Quote:

Originally Posted by Larrysw
Well I found a issuse it is when everyou change your user name it does not update your thanks.

I'm not sure if this is a fix or not, but have you tried updating the counters?

DrewM 01-03-2006 08:46 PM

no but I will.

Iain M 01-06-2006 12:20 PM

is there a way to show the total number of thanks given throughout the whole forum, beside the number of threads, posts in the forum stats?

Code:

i've tried adding in index.php

$totalthanks = $db->query_read("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX ."post_thanks");

AFTER

$totalposts = 0;

and

$totalthanks = vb_number_format($totalthanks);

AFTER

$totalposts = vb_number_format($totalposts);

and in the FORUMHOME template

Thanks: $totalthanks

AFTER

$vbphrase[posts]: $totalposts

but it doesn't display the correct number,

i know its adding an extra query but that doesn't bother me too much,

any idea anyone?

Abe1 01-09-2006 02:06 AM

Add-on released for this hack.

Can't See Attachments Before Thanking a Post

thedvs 01-09-2006 02:08 PM

this is about the 8th time i've tried to install this.

yes the template postbit/legacy were done correctly.
the gfx is in the right place.
the import was fine.
all options set correctly...

the button isnt showing even when logged in as another user at all

running vb 3.5.3, tren_Z skin from extremepixels.com

bashy 01-09-2006 03:14 PM

HI

Do i need to do the template edits as i already have the Thank You Hack installed?

The edits look very similar to the thank you hack?

Not sure what to do please advise asap asi am am inthe middle of installing it :(

Regards

Bashy

Abe1 01-09-2006 03:20 PM

Quote:

Originally Posted by bashy
HI

Do i need to do the template edits as i already have the Thank You Hack installed?

The edits look very similar to the thank you hack?

Not sure what to do please advise asap asi am am inthe middle of installing it :(

Regards

Bashy

Look at the files that say changes from one version to another.

bashy 01-09-2006 03:30 PM

hi m8...would help if i new what version i am using atm lol :o

Bahsy

Abe1 01-09-2006 03:36 PM

Quote:

Originally Posted by bashy
hi m8...would help if i new what version i am using atm lol :o

Bahsy

Go to your product list. They have the version numbers there.

bashy 01-09-2006 04:07 PM

Hi, doh, silly me..
Have done the edit...but..

I can still download with having to say thank you...
Aint sure whats gone wrong...

I have gone through the edits but cant see anything untoward!
If you want access you can by all means...

Regards

Bashy

Abe1 01-09-2006 04:25 PM

Quote:

Originally Posted by bashy
Hi, doh, silly me..
Have done the edit...but..

I can still download with having to say thank you...
Aint sure whats gone wrong...

I have gone through the edits but cant see anything untoward!
If you want access you can by all means...

Regards

Bashy

Try to follow the tempate edit updates. If you cant find what to replace, then you dont have to do it.

bashy 01-09-2006 04:31 PM

Thats exactly what i have done but still can download without saying thanks :)

Tis a shame cause when i installed your other 1 i actually asked for this :( lol

Bashy

bashy 01-09-2006 05:47 PM

Hi m8...

Just gone through all the edits again, yet still the same problem
We can download attatchments without having to say thanks :(

Your normal thank you hack works fine though :) lol

Bashy

Abe1 01-09-2006 06:38 PM

Quote:

Originally Posted by bashy
Hi m8...

Just gone through all the edits again, yet still the same problem
We can download attatchments without having to say thanks :(

Your normal thank you hack works fine though :) lol

Bashy

This should go into the other thread then. Any ways, since you are an admin, you can download. Mods dont get effected.

bashy 01-09-2006 06:42 PM

Whoops sorry, forgot there was another thread,
But yes i know about the staff not limited by this, this is why i am using a standard user account :)

Bashy

Could you ask a mod on here to move these posts to the other thread please?

sniper0 01-09-2006 07:09 PM

Quote:

Originally Posted by thedvs
this is about the 8th time i've tried to install this.

yes the template postbit/legacy were done correctly.
the gfx is in the right place.
the import was fine.
all options set correctly...

the button isnt showing even when logged in as another user at all

running vb 3.5.3, tren_Z skin from extremepixels.com

I am having the same problem, I have 3 styles installed, I upload the image into the /buttons/ folder for each style, but it only works for the default style

The 2 extra styles are child styles of the original one so I'm assuming the code is edited automatically in the templates and if not thats my problem, but if not what might be my problem?

Abe1 01-09-2006 07:11 PM

Quote:

Originally Posted by sniper0
I am having the same problem, I have 3 styles installed, I upload the image into the /buttons/ folder for each style, but it only works for the default style

The 2 extra styles are child styles of the original one so I'm assuming the code is edited automatically in the templates and if not thats my problem, but if not what might be my problem?

Did you make the template edit to all styles also?

subnet_rx 01-10-2006 06:39 PM

Does this hack bypass the reputation system rules for anyone else?

Watson 01-10-2006 07:34 PM

I agree with an earlier post, a timed closure on the pop up window in a future release would be nice.

Apart from that, great hack. Cheers

/me clicks install

pipin 01-11-2006 09:27 AM

Quote:

Originally Posted by Abe1
I fixed the pharse. It will be realised in my update comming out in the next day or two.

The replutation should be deleted. Right now I just tested it and fixed up a drop and know it works. Let me know once I release the update.

works now.

thx.

Iain M 01-11-2006 06:39 PM

Quote:

Originally Posted by CP1
is there a way to show the total number of thanks given throughout the whole forum, beside the number of threads, posts in the forum stats?

Code:

i've tried adding in index.php

$totalthanks = $db->query_read("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX ."post_thanks");

AFTER

$totalposts = 0;

and

$totalthanks = vb_number_format($totalthanks);

AFTER

$totalposts = vb_number_format($totalposts);

and in the FORUMHOME template

Thanks: $totalthanks

AFTER

$vbphrase[posts]: $totalposts

but it doesn't display the correct number,

i know its adding an extra query but that doesn't bother me too much,

any idea anyone?

any idea Abe1?

or can i request it for a future release?

with an on/off setting?

Abe1 01-11-2006 06:42 PM

Quote:

Originally Posted by CP1
any idea Abe1?

or can i request it for a future release?

with an on/off setting?

Not sure. I have to test if it automaticly goes.

VBUsers 01-11-2006 08:46 PM

great hack installing now thanks!

onetwomany 01-12-2006 11:05 AM

Great hack thank you,

Hopefully this hasnt been allready requested I scanned thorugh the first 10 or so pages, but is it possible to have the attachment link appear in the popup window that appears after you click the thanks button?

if this could work with the hide hack aswell that would be great as it would save clogging up the threads with rpelys just so ppl can see the hidden text.

Thanks

nader 01-12-2006 01:47 PM

i am not using postbit_legacy style where can i find postbit !!!

LBSources 01-17-2006 03:53 PM

cant find this..

Code:

$vbphrase[posts]: $post[posts]
and i kind of stopped at this point...

whatelse might not be found? and what might i have to do to correct this?

im using postbit..

EDIT: clash of the hacks.. got it and /me clicks installed.. :)

vakvak 01-17-2006 04:47 PM

thanks for thanks hack :)

Dollah 01-18-2006 09:56 PM

i have used this on my default skin werks fine.........but on my new in my navar bar template this is what i have
Code:

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="alt1" width="100%">
                <if condition="is_array($navbits)">
                        <table cellpadding="0" cellspacing="0" border="0">
                        <tr valign="bottom">
                                <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                                <td>&nbsp;</td>
                                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                        </tr>
                        <tr>
                                <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
                        </tr>
                        </table>                       
                <else />
                        <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
                </if>
        </td>       
       
<if condition="$show['member']">
       
                <td class="alt2" valign="top" nowrap="nowrap">
                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
                </div>
                </td>
               
        <else />
               
                <td class="alt2" nowrap="nowrap" style="padding:0px">
                       
                <!-- login form -->
                <form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                        <td class="smallfont">$vbphrase[username]</td>
                        <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
                        <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
                </tr>
                <tr>
                        <td class="smallfont">$vbphrase[password]</td>
                        <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
                        <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
                </tr>
                </table>
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="login" />               
                <input type="hidden" name="vb_login_md5password" />
                <input type="hidden" name="vb_login_md5password_utf" />
                </form>
                <!-- / login form -->
                       
                </td>
               
        </if>       
       
</tr>
</table>
<!-- / breadcrumb, login, pm info -->

  <div class="spacer"></div>

<if condition="$show['forumdesc']">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
        </tr>
        </table>
        <br />
</if>

is their any way u can help me with this please my users loves this and so do i thanx....

smdani 01-19-2006 02:03 PM

I’ve ridden all 357 posts looking for my solution, but no way

I try to install the last version 2.7 in my vb3.5.0, upload the product, see that all features are on, upload the image button, and go to the forum and no changes have appeared posts. There are no thanks button or not other add in any message not in mine nor at other people ones

I try it with the default style

When I look into my templates there are some new ones but there aren’t any changes in posbit, nor memberinfo, nor other template.

¿I have to edit my templates by hand? In this case ¿where can I find the instructions and the code? The ones included in the zip are for upgrading from an older version

Any suggestion
Any way thanks for the hack and for the help in advance

pipin 01-19-2006 03:39 PM

Quote:

Originally Posted by smdani
I?ve ridden all 357 posts looking for my solution, but no way

I try to install the last version 2.7 in my vb3.5.0, upload the product, see that all features are on, upload the image button, and go to the forum and no changes have appeared posts. There are no thanks button or not other add in any message not in mine nor at other people ones

I try it with the default style

When I look into my templates there are some new ones but there aren?t any changes in posbit, nor memberinfo, nor other template.

?I have to edit my templates by hand? In this case ?where can I find the instructions and the code? The ones included in the zip are for upgrading from an older version

Any suggestion
Any way thanks for the hack and for the help in advance

There is a txt file in the zip with the instructions!

smdani 01-19-2006 05:19 PM

Sorry, I missed part of the txt file
I think that the problem was solved

Sorry and thanks for your help


All times are GMT. The time now is 01:09 AM.

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.01845 seconds
  • Memory Usage 1,863KB
  • 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
  • (4)bbcode_code_printable
  • (15)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
  • (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