![]() |
wow my post jump on second page !??! bloody server time.....
|
I had no ideas why it keep give me a message no permission to access when I click on the button Thank You. I have install exactly intruction for many times, again and again. Still didn't work. This is the hack that I have looking for more than 1 year. Now you release it, but I can't sucessful to install it :tired:
|
Quote:
|
It needs to be added to both of them. ;)
|
I have try to play with this hack around my forum, but still didn't work. I am not lucky guy for this hack.
|
Quote:
Quote:
|
Quote:
i fixed this myself in : includes/functions_databuild.php Find: Code:
delete_post_index($post['postid']); //remove search engine entries add this right above it : Code:
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "thanks WHERE threadid=$threadid"); now anytime you Physically remove it it will also remove the thanks. |
thx for that :)
|
Quote:
@teksigns vbmenu_register("postmenu_495736", true); : Thanks for this ;) @Mone' : You registered on vbulletindev, but it seems you had a lot of SQL error due to your username (the ' ), these are vBulletin's bugs I'll correct it adding addslashed into SQL queries ;) Try to connect later, it should be ok |
great Hack, but i have a Problem :rolleyes:
In SHOWTHREAD template, find (you must do it 2 times) : ------------------------------------------------------------------------ <if condition="$show['largereplybutton']"> <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" ></if></a></td> </if> ------------------------------------------------------------------------ and replace with : ------------------------------------------------------------------------ <if condition="$show['largereplybutton']"> <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" ></if></a></td> </if> <td class="smallfont" align="right"><a href="newreply.php?do=thanks&threadid=$thread[threadid]"> <img src="$stylevar[imgdir_button]/thanks.gif" alt="$vbphrase[thanks]" border="0" > </a></td> i don't have this, i have this :rolleyes: <if condition="$show['largereplybutton']"> <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" ></if></a> <a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /> </td> please can you help me :surprised: |
Look for this then. ;)
HTML Code:
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply |
Quote:
|
Quote:
not it would not ..... i just deletes any it finds ....if none match then it just continues ....... |
It deletes any it finds, or finds for that thread you mean? ;)
|
Quote:
Sorry, but you can write me the code please, view can see that I after something other I also, but how it goes. |
Quote:
find for that thread .......... |
heres another wish filled .....
Quote:
with this each time someone clicks thankyou your post will be bumped to the top of the list again ...... in newreply.php Find this : Code:
$DB_site->query(" bellow it , add this : Code:
$DB_site->query("UPDATE ".TABLE_PREFIX."thread SET lastpost=".TIMENOW." WHERE threadid='".$threadid."'"); thats it ! your done ...... |
LOL How many queries is all of this adding?
|
Quote:
just trying to help ! im not a coder... if you have better way .....please post it ....... its only way i know to get job done ....... |
...what a Mod :(
|
Quote:
|
Quote:
np ..... i wish there was another way ..... but none i can think of without the extra queries ....... |
Quote:
to run ALTER TABLE `forum` ADD `showthanks` INT(1) DEFAULT '0' NOT NULL; again, because anytime I run it give me error as the message below. Thanks tnguy3n Error SQL-query : ALTER TABLE `forum` ADD `showthanks` INT( 1 ) DEFAULT '0' NOT NULL MySQL said: #1060 - Duplicate column name 'showthanks' |
That error means that column is already there. You do not need to run that query again. ;)
|
Quote:
you do not have permission to access this page. This could be due to one of several reasons: Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system? If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. I HAVE READ THIS INTRUCTION FOR MANY TIMES EVEN I got sucessful when Run SQL query/queries on database. From tnguy3n told me for his help, but it is still not working.. What is exactly wrong about it. |
Quote:
Code:
UPDATE `forum` SET `showthanks` = '1', `showthanks_date` = '1' ; |
Quote:
|
I tested this on my localhost and it seemed to work fine. I think I got that "No Permission Message" too, but then I updated that "thank you" option for forums (by running that query) and i got it to work.
(hey, i noticed you got the same last name as mine ;) ) |
Quote:
Thanks |
I'll do it Vitrox ;)
|
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 04:54 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|