![]() |
Quote:
cool ! cant wait |
Quote:
What do you mean add ,$prefix = ' '; to my SQL? even I add this: $prefix = ' '; before tables name . It is still not going. I had no ideas what is exactly wrong to cause this problem. I love this hack, but I am not lucky to use it. :disappointed: ALTER TABLE `forum` ADD `showthanks` INT(1) DEFAULT '0' NOT NULL; ALTER TABLE `forum` ADD `showthanks_date` INT(1) DEFAULT '0' NOT NULL; CREATE TABLE `thanks` ( `id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, `userid` INT(10) NOT NULL, `username` VARCHAR(50) NOT NULL, `date` INT(10) NOT NULL, `threadid` INT(10) NOT NULL ); |
Quote:
|
VBDev, buddy, are you still working on this hack? ;)
|
No, I'm finishing an other one, 'hidden text password protected' in post :)
I take a look for this counter in the evening ;) |
@ calvin : I've exactly the same problem ... this no_permission page, really strange, the var $foruminfo[showthanks] doesn't seen working
I correct it before doing the counter If you have this no_permission problem, replace the code to add in newreply.php with : PHP Code:
And code to add in functions_showthread.php with : PHP Code:
|
To add a counter, in functions_showthread.php, replace :
PHP Code:
PHP Code:
Code:
{1} people have clicked the THANKS button Add : Code:
|
not sure im understanding where to put this :
Quote:
looking through the code ... does $nb var not already contain the count of thanks because of line: Code:
$nb=$DB_site->num_rows($thanks); |
The number of people who clicked the link doesn't show up for me. Just the phrase without the number. I even changed the phrase 1 to $thanks[nb] as it should be and the number still does not show up.
|
Quote:
from what i can see: you shoudnt need to replace : Code:
$thanks=$DB_site->query("SELECT * AS nb FROM ". TABLE_PREFIX ."thanks WHERE threadid='$thread[threadid]' ORDER BY username"); do the other steps though .... and change the phrase line like this : Code:
<phrase 1="$nb">$vbphrase[thanks_nb]</phrase> |
All times are GMT. The time now is 08: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|