vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Post Thank You Hack 1.10 (https://vborg.vbsupport.ru/showthread.php?t=73410)

Abe1 06-05-2005 09:26 PM

Here is small fix you can do so that the usernames will show in alphbetical order.

(This is done over what you had placed while installing the hack.)

Open includes/functions_showthread.php

Find:
HTML Code:

$post_thanks_cashe = $DB_site->query("SELECT * FROM ". TABLE_PREFIX ."post_thanks WHERE threadid='$post[threadid]'");
Replace with:
HTML Code:

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

H@K@N 06-07-2005 07:22 PM

Hi @ll,

after i switched to php 5.04 i am getting a blank page when i clicking on Th@nks, but the thank is accepted.

What could be the reason ?

th@nks

Abe1 06-07-2005 07:27 PM

Quote:

Originally Posted by H@K@N
Hi @ll,

after i switched to php 5.04 i am getting a blank page when i clicking on Th@nks, but the thank is accepted.

What could be the reason ?

th@nks

No clue. I'd have to test on php 5.04 to find out. As far as I know, vBulletin doesn't fully support php5.

H@K@N 06-07-2005 07:32 PM

i knew, but everything except 2 hacks is working ...

If i click on the Thanks Button, i have as Url following on the blank Page :

Code:


http://www.aslanlar.de/post_thanks.php?do=post_thanks&p=112033

so system is accepting the click on thanks, but its not jumping to the thread back.


gr33tz

Abe1 06-07-2005 07:36 PM

Quote:

Originally Posted by H@K@N
i knew, but everything except 2 hacks is working ...

If i click on the Thanks Button, i have as Url following on the blank Page :

Code:


http://www.aslanlar.de/post_thanks.php?do=post_thanks&p=112033

so system is accepting the click on thanks, but its not jumping to the thread back.


gr33tz

The jumping back is a vBulletin jumping function. maybe turn off the hack until vB comes out with 3.5 and I release a version of this hack using the plug-in/hook system.

H@K@N 06-07-2005 07:57 PM

Ok thx then i will wait, but one remark 4 your conclusion.

The Hack Delete Post with one Button in Postbit, located here: https://vborg.vbsupport.ru/showthread.php?t=70684

is working, because it also uses the jumping back function ...

gr33tz

SCRIPT3R 06-26-2005 07:18 PM

getting the following error when someone tried to THANK a deleted user.

Quote:

Database error in vBulletin 3.0.3:

Invalid SQL:
UPDATE user
SET post_thanks_thanked_times = 1 + post_thanks_thanked_times
WHERE userid =

mysql error: 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

mysql error number: 1064

Date: Wednesday 22nd of June 2005 12:38:18 AM
Script: http://www.hookupboard.com/forums/po...s&p=584191
Referer: http://www.hookupboard.com/forums/sh...ad.php?t=35183
Username: xxx
IP Address: xxx

Abe1 06-27-2005 02:49 AM

Quote:

Originally Posted by GearTripper
getting the following error when someone tried to THANK a deleted user.

Thanks. I will try to fix for my vb3.5 upgrade.

vNPowers 06-27-2005 11:38 AM

Thanks, Nice

1nf3rn0 06-28-2005 10:23 PM

getting this error when i click on the thanks button everything goes thru and shows properly, but as it says thankl you for saying thanks, it shows the below error...other than that, that is the only problem...dont know why or how...i have added maybe 2 other hacks which would be the welcome panel hack and the who visited today (24 hour option) hack...if you can help thank you...if not im lookin more into it now!

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php on line 329

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2290


All times are GMT. The time now is 12:47 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.01171 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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