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)

sontran 05-14-2010 05:43 AM

I don't have that mod :(

I checked in the post_thanks.php and found thse lines

PHP Code:

// check if search already done
    //if ($search = $db->query_first("SELECT searchid FROM " . TABLE_PREFIX . "search AS search WHERE searchhash = '" . $db->escape_string($searchhash) . "'"))
    //{
    //    $vbulletin->url = 'search.php?' . $vbulletin->session->vars['sessionurl'] . "searchid=$search[searchid]";
    //    eval(print_standard_redirect('search'));
    //} 

It refer to a table name prefix ... search but in the db I couldn't found any table having that name!

Could you please kindly check and let us know about that!

Thanks

Abe1 05-14-2010 01:01 PM

Like I posted before, I'll post again. There is NO working search feature currently in Post Thanx Hack. All template edits are done automatically. If you have users searching, then it means you have a manual edit. REMOVE IT. You can find edits by searching "post thank" in a template search.

RS_Jelle 05-14-2010 01:14 PM

Some suggestions:

1. Fix the missing <dt> in the postbit. It's making the definition list XHTML invalid and causing some incompatibilities with other mods.

Current style:
Quote:

Thanks: x
Thanked x times in x posts
Suggested style:
Quote:

Thanks: x
Thanked: x times in x posts
2. Get rid of the inline CSS for people with CSS stored as files. With the new XML based CSS rollups you can merge it into showthread-rollup.css
And put a conditional around the JavaScript include so it's not loaded for people who can't thank a thread. Less includes give you a better Google page speed result.

Create /includes/xml/cssrollup_postthanks.xml
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<css product="post_thanks">
        <rollup name="showthread-rollup.css">
                <template>postthanks.css</template>
        </rollup>
</css>

and create a new postthanks.css template with the raw CSS.

Then put some conditionals into the post_thanks_javascript template:
Code:

<vb:if condition="permission to thank">
        <script type="text/javascript" src="clientscript/post_thanks.js"></script>
</vb:if>

<vb:if condition="!$vboptions['storecssasfile']">
        <link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}postthanks.css" />
</vb:if>


shempsall2009 05-15-2010 07:26 PM

Hi Great Mod... Installed...

If you update this again would it be possible to have an option to hide attachments until Thanks Button is click???

Thanks :D

Golzarion 05-17-2010 12:05 PM

Quote:

Originally Posted by RS_Jelle (Post 2036922)
Some suggestions:

Nice idea..

Valter 05-18-2010 06:40 PM

You must not completely disable 'Top Thanked' in VSa - Advanced Stats to avoid database errors.

Just replace:
Code:

<a href="post_thanks.php?do=findthanks&u={vb:raw getstats_thx.userid}">{vb:raw getstats_thx.post_thanks_thanked_times}</a>
with:
Code:

{vb:raw getstats_thx.post_thanks_thanked_times}
in 'vsa_topstats_thanks' template.

cmeinck 05-18-2010 10:38 PM

Quote:

Originally Posted by Abe1 (Post 2036914)
Like I posted before, I'll post again. There is NO working search feature currently in Post Thanx Hack. All template edits are done automatically. If you have users searching, then it means you have a manual edit. REMOVE IT. You can find edits by searching "post thank" in a template search.

I haven't edited the hack in any way, yet I'm getting search db errors -- and I get them in bucket loads.

cmeinck 05-19-2010 04:17 PM

I'm sure I'm not the only one, so would appreciate any help on how to prevent these database errors. As far as I can tell, there are no visible links to "find thanks".

Code:

Database error in vBulletin 4.0.3:

Invalid SQL:

                        REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
                        VALUES (0, '66.249.65.181', 1, 'manic', '', 'post.dateline', 'DESC', 0.12551, 1, '351328,351311,348467,348466,346458,346411,344262,342697,342689', 1274289300, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{}s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:118484;s:5:\"manic\";}s:6:\"forums\";i:0;s:7:\"options\";a:3:{s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1;s:6:\"action\";s:7:\"process\";}}', 'cd78b1a0b7a48890db58b480739e121c');

MySQL Error  : Table 'my_forum.search' doesn't exist
Error Number  : 1146
Request Date  : Wednesday, May 19th 2010 @ 12:15:00 PM
Error Date    : Wednesday, May 19th 2010 @ 12:15:01 PM
Script        : http://www.mysite.com/forum/post_thanks.php?do=findthanks_user_gave&u=118484
Referrer      :
IP Address    : 66.249.65.181
Username      : Unregistered
Classname    : vB_Database
MySQL Version :


Thousand Sunny 05-19-2010 04:20 PM

I can not find a Thanks Button!!!!!!!

Mastergumble 05-19-2010 04:26 PM

Quote:

Originally Posted by Valter (Post 2039410)
You must not completely disable 'Top Thanked' in VSa - Advanced Stats to avoid database errors.

Just replace:
Code:

<a href="post_thanks.php?do=findthanks&u={vb:raw getstats_thx.userid}">{vb:raw getstats_thx.post_thanks_thanked_times}</a>
with:
Code:

{vb:raw getstats_thx.post_thanks_thanked_times}
in 'vsa_topstats_thanks' template.


Thanks Valter, the step was to prevent users to follow the ammount of thanked links.


All times are GMT. The time now is 08:00 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.02888 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
  • (7)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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