vb.org Archive

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

brvheart 09-15-2006 12:52 AM

sure thing :)


you can also see it live on my forum www.mmaworld.org

Abe1 09-15-2006 02:03 AM

Quote:

Originally Posted by brvheart
sure thing :)


you can also see it live on my forum www.mmaworld.org

It definetly looks like a template problem. Make sure you put the template edit in the right spot.

Abe1 09-15-2006 02:07 AM

Version 5.1 (09/14/06):
  • AJAX disabled if you have AJAX disabled on your forum.
  • Re-did the search for thanked posts.
  • Fixed bugs with adding and deleting rep points.


SCRIPT3R 09-15-2006 02:27 AM

Quote:

Originally Posted by Abe1
Version 5.1 (09/14/06):
  • Re-did the search for thanked posts.

thnx!

mktrilogy 09-15-2006 03:03 AM

Quote:

Originally Posted by mktrilogy
This would be a nice idea. Coz Hide hack has its thanks system. I would love it when u thank it either in hide+thanks hack or the thanks button to reflect it to both so the hide content can be shown and the thanks system is updated as well :)


NO chance for this sir?

Abe1 09-15-2006 05:20 AM

Quote:

Originally Posted by mktrilogy
NO chance for this sir?

No time to add such features yet. It's not an easy thing, hide hack.

big dan 09-15-2006 09:11 AM

Thanks for the update, Abe! :)

brvheart 09-15-2006 12:28 PM

Quote:

Originally Posted by Abe1
It definetly looks like a template problem. Make sure you put the template edit in the right spot.

EDIT: My Error...I missed this:
Quote:

find:
--------------------------------------------------------------------
<!-- / post $post[postid] popup menu -->
--------------------------------------------------------------------

AFTER place this:
--------------------------------------------------------------------
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->
--------------------------------------------------------------------


I place the above right under the first edit....sorry about that...

Abe1 09-15-2006 12:31 PM

Quote:

Originally Posted by brvheart
it says:






so that is what I did, I use post_legacy so that is where I made the edit....

Did you make any edits to any of the Post Thanks templates?

I would have to look in your ACP to see if I can fix it if you can't find the problem.

brvheart 09-15-2006 12:41 PM

also for the upgrade is it just reup the xml and allow overwrite or are there changes in the template edits as well?

Abe1 09-15-2006 12:50 PM

Quote:

Originally Posted by brvheart
also for the upgrade is it just reup the xml and allow overwrite or are there changes in the template edits as well?

There were no changes in the template edits only in the templates the go along with this hack.

brvheart 09-15-2006 12:52 PM

thank you :)

scorpsy 09-16-2006 12:19 PM

Does anyone know why I am getting this error & how I can fix it I know it is in my database but I can't find it anywhere. I love this hack :)

Database error in vBulletin 3.6.1:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, validationcode, blacklist, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'0',
'1',
'boolean',
'yesno',
10,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_forum_off',
'post_thanks',
'',
'',
'free',
'',
20,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_forum_first_all',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
30,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_forum_first',
'post_thanks',
'',
'',
'free',
'',
40,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_date_all',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
50,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_date_forum',
'post_thanks',
'',
'',
'free',
'',
60,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_usergroup_using',
'post_thanks',
'',
'',
'free',
'',
70,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_user_useing',
'post_thanks',
'',
'',
'free',
'',
80,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_reputation',
'post_thanks',
'0',
'0',
'number',
'',
90,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_post_count',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
100,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_delete_own',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
110,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_poster_button',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
130,
0,
1,
'',
0,
'post_thanks'
);

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date : Saturday, September 16th 2006 @ 03:08:33 PM

Abe1 09-17-2006 03:01 AM

Quote:

Originally Posted by scorpsy
Does anyone know why I am getting this error & how I can fix it I know it is in my database but I can't find it anywhere. I love this hack :)

Database error in vBulletin 3.6.1:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, validationcode, blacklist, product)
VALUES
(
'post_thanks_on_off',
'post_thanks',
'0',
'1',
'boolean',
'yesno',
10,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_forum_off',
'post_thanks',
'',
'',
'free',
'',
20,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_forum_first_all',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
30,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_forum_first',
'post_thanks',
'',
'',
'free',
'',
40,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_date_all',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
50,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_date_forum',
'post_thanks',
'',
'',
'free',
'',
60,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_usergroup_using',
'post_thanks',
'',
'',
'free',
'',
70,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_user_useing',
'post_thanks',
'',
'',
'free',
'',
80,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_reputation',
'post_thanks',
'0',
'0',
'number',
'',
90,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_post_count',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
100,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_delete_own',
'post_thanks',
'1',
'1',
'boolean',
'yesno',
110,
0,
1,
'',
0,
'post_thanks'
),
(
'post_thanks_poster_button',
'post_thanks',
'0',
'0',
'boolean',
'yesno',
130,
0,
1,
'',
0,
'post_thanks'
);

MySQL Error : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date : Saturday, September 16th 2006 @ 03:08:33 PM

Are going from vb3.0 -> vb3.6?

There are 4 quaries you must run first. You can find them in the vb3.5 version download.

scorpsy 09-17-2006 08:09 AM

Abe1 Yes I went from 3.0 to 3.6

What exactly do I have to do & run I am a bit of a newb :rolleyes:

MaviJean 09-17-2006 08:54 AM

You may want to change;

Code:

<version>5.11</version>
to

Code:

<version>5.1</version>
in the plugin file ;)

SCRIPT3R 09-17-2006 05:43 PM

Quote:

Originally Posted by scorpsy
What exactly do I have to do & run I am a bit of a newb :rolleyes:

Quote:

Originally Posted by Abe1
There are 4 quaries you must run first. You can find them in the vb3.5 version download.

You can find them in the vb3.5 version download.

scorpsy 09-17-2006 06:20 PM

Quote:

Originally Posted by GearTripper
You can find them in the vb3.5 version download.


Where and what do I do with them?

I looked through all the 3.5.1 files & only found 1 and that was in admicp folder.

Abe 1 said I have to run 4 queries but I don't understand what to do.

Aylwin 09-18-2006 10:47 AM

Quote:

Originally Posted by Abe1
Maybe if you play around with the template.

I've added a 'Thanked' column to my Members List page so it's easy to check who's been thanked the most. If anyone else is interested, here's what I did.

Open memberlist.php and find:
Code:

                case 'posts':
                        $sqlsort = 'user.posts';
                        break;

after, add:
Code:

                case 'thanked':
                        $sqlsort = 'user.post_thanks_thanked_posts';
                        break;

Edit the memberlist template and find:
Code:

        <if condition="$show['postscol']"><td class="thead" nowrap="nowrap"><a href="$sorturl&amp;order=DESC&amp;sort=posts&amp;pp=$perpage$usergrouplink">$vbphrase[posts]</a> $sortarrow[posts]</td></if>
after, add:
Code:

        <td class="thead" nowrap="nowrap"><a href="$sorturl&amp;order=DESC&amp;sort=posts&amp;pp=$perpage$usergrouplink">Thanked</a> $sortarrow[thanked]</td>
Edit the memberlist_resultsbit template and find:
Code:

        <if condition="$show['postscol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[posts]</td></if>
after, add:
Code:

        <td class="$bgclass">$userinfo[post_thanks_thanked_times]</td>

Abe1 09-18-2006 12:13 PM

Quote:

Originally Posted by scorpsy
Where and what do I do with them?

I looked through all the 3.5.1 files & only found 1 and that was in admicp folder.

Abe 1 said I have to run 4 queries but I don't understand what to do.

In the installation instructions.

Abe1 09-18-2006 12:14 PM

Quote:

Originally Posted by MaviJean
You may want to change;

Code:

<version>5.11</version>
to

Code:

<version>5.1</version>
in the plugin file ;)

I made a small fix so I changed the version 5.11. No major info about the release though. It was done just after i released 5.1.

Jcee 09-19-2006 11:47 AM

I have installed Post Tx...

Not sure what I did wrong.
Will re-do it but thought I'd ask you in the meantime.

After installation my POSTS are entered twice or so it seems.

Once I click on a post as user or admin I see two entries.

Attaching a screen shot. (even switching off Pst Tx did not help?)

I just reverted my template settings one by one.. only when I reverted the postbit template, was the issue resolved.????
any advise? help?

Abe1 09-19-2006 12:09 PM

Quote:

Originally Posted by Jcee
I have installed Post Tx...

Not sure what I did wrong.
Will re-do it but thought I'd ask you in the meantime.

After installation my POSTS are entered twice or so it seems.

Once I click on a post as user or admin I see two entries.

Attaching a screen shot. (even switching off Pst Tx did not help?)


I just reverted my template settings one by one.. only when I reverted the postbit template, was the issue resolved.????
any advise? help?

Are you sure you did the template edits right?

Jcee 09-19-2006 12:15 PM

Quote:

Originally Posted by Abe1
Are you sure you did the template edits right?

It seems like a template issue right?

Abe1 09-19-2006 12:18 PM

Quote:

Originally Posted by Jcee
It seems like a template issue right?

Yes.

Jcee 09-19-2006 12:22 PM

Example of 1st postbit replacement / edit:
(is this done correctly?)



Quote:

<div>
$vbphrase[posts]: $post[posts]
<!-- Start Post Thank You Hack -->

<if condition="$post[userid]">

<br />

$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]

<br />

<if condition="$post[post_thanks_thanked_times_on] == 1">

$vbphrase[post_thanks_time_post]

<else />

<if condition="$post[post_thanks_thanked_posts_on] == 1">

<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>

<else />

<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>

</if>

</if>

</if>

<!-- End Post Thank You Hack -->



Darat 09-19-2006 01:02 PM

Quote:

Originally Posted by Abe1
Version 5.1 (09/14/06):
  • Re-did the search for thanked posts.

Does this mean searches on larger boards will be faster?

Jcee 09-19-2006 01:37 PM

Now it works!!!

Seems an issue copying txt from Simple Text Mac OSX.

BTW. Can you please give a short description of why the template edits are required...

Abe1 09-19-2006 05:09 PM

Quote:

Originally Posted by Darat
Does this mean searches on larger boards will be faster?

It may. I didn't run many tests.

Abe1 09-19-2006 05:09 PM

Quote:

Originally Posted by Jcee
Now it works!!!

Seems an issue copying txt from Simple Text Mac OSX.

BTW. Can you please give a short description of why the template edits are required...

So you can see the thanks info.

Some are just searches.

iran.gs 09-20-2006 12:50 AM

installed but i could not find the those codes in nav bar but it works fine :D

Abe1 09-20-2006 01:25 AM

Quote:

Originally Posted by iran.gs
installed but i could not find the those codes in nav bar but it works fine :D

In the search drop down.

oz_moses 09-20-2006 04:26 AM

would it be possible to have a page in the usercp like the Reputation page where you can see who has given you thanks for which post and when?

Cheers,
Moses.

Abe1 09-20-2006 10:07 AM

Quote:

Originally Posted by oz_moses
would it be possible to have a page in the usercp like the Reputation page where you can see who has given you thanks for which post and when?

Cheers,
Moses.

I'll look into it.

Aylwin 09-20-2006 10:44 AM

Feature request: email notification. I think it would be nice to receive an email notification when someone thanks you. This would work the same way as the normal thread email notifications.

With my limited skills though, this sounds complicated to do. Any chance on including this in a future release?

Abe1 09-20-2006 10:55 AM

Quote:

Originally Posted by Aylwin
Feature request: email notification. I think it would be nice to receive an email notification when someone thanks you. This would work the same way as the normal thread email notifications.

With my limited skills though, this sounds complicated to do. Any chance on including this in a future release?

It's not hard to do but I dont think most people would like an email for each thanks. THey could be getting emails every min.

Aylwin 09-20-2006 11:08 AM

Quote:

Originally Posted by Abe1
It's not hard to do but I dont think most people would like an email for each thanks. THey could be getting emails every min.

Well, I think there are a few ways to implement it.

1) Like thread subscription. Only one email would be sent until you visit the thread again.
2) Like forum subscription. The user would receive daily or weekly updates. In the daily/weekly email, the user will be notified about all the thanks in all the threads he/she has received during the past day/week.

Of course, it would be ideal to give users the option to choose whether or not they want notification and what type of notification (instant/daily/weekly) they prefer.

scorpsy 09-20-2006 08:59 PM

Quote:

Originally Posted by Abe1
In the installation instructions.

Still lost abe1 could you post an attachment for me to read please

Thanks I realy need this hack now. ;)

SCRIPT3R 09-20-2006 11:43 PM

Quote:

Originally Posted by scorpsy
Still lost abe1 could you post an attachment for me to read please

Thanks I realy need this hack now. ;)

NOTE: IF YOU ARE UPGRADING FROM A PRE 2.0 VERSION THAT WAS RUNNING ON A vBulletin v3.0 FORUM, RUN THESE 4 QUERIES MANUALY NOW.
--------------------------------------------------------------------
DELETE FROM `setting` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `settinggroup` WHERE `grouptitle` = 'post_thanks' AND `product` = '';

DELETE FROM `phrase` WHERE `varname` LIKE '%post_thanks%' AND `product` = '';

DELETE FROM `template` WHERE `title` LIKE '%post_thanks%' AND `product` = '';
--------------------------------------------------------------------

Spikeman 09-21-2006 01:06 AM

Nice touch to the forum :)


All times are GMT. The time now is 04:34 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.04337 seconds
  • Memory Usage 1,909KB
  • 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
  • (10)bbcode_code_printable
  • (28)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