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)

stinger2 12-18-2005 10:46 PM

Quote:

Originally Posted by Abe1
Can you give me a link?

Code:

https://vborg.vbsupport.ru/showthread.php?t=99918&highlight=hide
i would also love it if they were integrated
this is a link to a working hide

regards and thanks for this great hack

Abe1 12-18-2005 10:48 PM

Quote:

Originally Posted by stinger2
Code:

https://vborg.vbsupport.ru/showthread.php?t=99918&highlight=hide
i would also love it if they were integrated
this is a link to a working hide

regards and thanks for this great hack

How do you want me to intergrade it?

SCRIPT3R 12-18-2005 11:03 PM

Quote:

Originally Posted by Abe1
Version 2.7 (12/18/05):

current zip (update?) reads as Version 2.6 still. ;)

Quote:

- <product productid="post_thanks" active="1">
<title>Post Thank You Hack</title>
<description>Post Thank You Hack</description>
<version>2.6</version>
- <codes>
- <code version="2.6">
- <installcode>

SCRIPT3R 12-18-2005 11:07 PM

Quote:

Originally Posted by Abe1
Version 2.7 (12/18/05):
  • [CHANGED] Made a pop-up now when you click Thanks instead of refreshing the page.

could this "feature" be an option at all for the user? how will pop-up blockers respond/interfere with this?

Abe1 12-19-2005 12:15 AM

Quote:

Originally Posted by GearTripper
current zip (update?) reads as Version 2.6 still. ;)

Fixed.

Abe1 12-19-2005 12:17 AM

Quote:

Originally Posted by GearTripper
could this "feature" be an option at all for the user? how will pop-up blockers respond/interfere with this?

It is a direct pop-up on the click so a pop-up blocker should not disrupt it. They only block pop-ups that pop-up while a page is doing something else and not when a user clicks on a link that is a pop-up.

stinger2 12-19-2005 02:58 PM

Quote:

Originally Posted by Don Corleone
can you integrate this hack with the hide hack?


Quote:

Originally Posted by Abe1
How do you want me to intergrade it?

sorry for not explaining ...
i responded to Don corleone.......who asked about integrating th thank yu hack with hide hack.......

it would either be with the lockdown hack.....(reply to view the link) or the hide hack (register to view)......
but instead of (register to view link) in the hide hack....or instead of (reply to view the link) in lockdown hack.......i think he refeered to press thankyou button to see the link.....


again my apologies .......
kind regards

Abe1 12-19-2005 03:14 PM

Quote:

Originally Posted by stinger2
sorry for not explaining ...
i responded to Don corleone.......who asked about integrating th thank yu hack with hide hack.......

it would either be with the lockdown hack.....(reply to view the link) or the hide hack (register to view)......
but instead of (register to view link) in the hide hack....or instead of (reply to view the link) in lockdown hack.......i think he refeered to press thankyou button to see the link.....


again my apologies .......
kind regards

I can't intergade with a hack that blocks unregistered users. I can intergrade with a reply hack. I need a link.

stinger2 12-19-2005 05:21 PM

yap sure i forgot where i saw that but a little search in my favourite ....i found it...

this is an example of integrated for vb 3.0.9

Code:

http://www.vbhackers.com/forum/showthread.php?t=2187&highlight=Lockdown+hack
and here is the last lockdown hack ......there is no integrated version yet.....

Code:

http://www.vbhackers.com/forum/showthread.php?t=2096&highlight=Lockdown+hack
kind regards

AnhTuanCool 12-19-2005 05:26 PM

Hey, nice hack there you made Abe1. /me clicked installed.

I made a modification to optimize the querying part of the hack as follow:
In plugin Post Thank You Hack at postbit_display_start, I'd changed:
PHP Code:

    $post_thanks_querys $db->query("SELECT postid FROM "TABLE_PREFIX ."post WHERE threadid = '$post[threadid]'");
    
$post_thanks_postids 0;
    
    while (
$post_thanks_query $db->fetch_array($post_thanks_querys))
    {
      
$post_thanks_postids .= ",$post_thanks_query[postid]";
    }

    
$post_thanks_cashe $db->query("SELECT * FROM " .TABLE_PREFIX"post_thanks WHERE postid IN ($post_thanks_postids) ORDER BY username ASC"); 

Into

PHP Code:

    $post_thanks_cashe $db->query("SELECT " TABLE_PREFIX "post_thanks.* FROM " TABLE_PREFIX "post_thanks, " TABLE_PREFIX "post WHERE post.postid = post_thanks.postid AND post.threadid = '$post[threadid]' ORDER BY " TABLE_PREFIX "post_thanks.username ASC"); 

It shortened the querying by one query, for some small or moderate boards, it doesn't make any noticeable different. But in any large board, it does help a lot.

You can include the mod if you want. Thanks for great hack! ;)


All times are GMT. The time now is 04:06 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.01931 seconds
  • Memory Usage 1,759KB
  • 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
  • (2)bbcode_php_printable
  • (10)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
  • (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