PDA

View Full Version : ATTN: wluke, please help.


Gutspiller
07 Sep 2001, 05:09
OK, I know I have bugged you quite a bit on this hack and Im sorry. If you could just help me with one more thing on this post count hack I would be in your dept.

In the official thread for the hack (http://vbulletin.com/forum/showthread.php?s=&threadid=19390&perpage=15&pagenumber=1)

Fastforward states this:



Alter the line that checks for posting permissions in newthread.php to something like this

if ($foruminfo[minposts] && ($foruminfo[minposts]>$bbuserinfo[posts]) and !(ismoderator($foruminfo[forumid],"",$bbuserinfo[userid]))) {
eval("standarderror(\"".gettemplate("error_forumnopost")."\");");
exit;
}



and another person says this:

Don't forget to change the same thing in forumdisplay.php also! This worked, Thanks for your reply.

My problem is, I don't know where to put that code that I quoted from Fastforward. Could you please help me with this code. I swear I wont ask another question about this hack.

(in case you are a little lost, I am asking this because my guests are getting the "you must have 0 posts to view this forum." I updated the error templates, but that only sets the post count to check to see what the post count is set to. I just need to get it so that it doesn't give that error message to guests, but instead, lets my guests view the forums that I setup for them to view in the admin CP.)

OK, sorta long but I wanted you to have a clear view of what was wrong.

I appreciated you writing this hack and all the support you have given to me on this. Please don't give up on me now.



The Gutspiller.

Chen
07 Sep 2001, 12:38
Why don't you post in that thread then?
This has nothing to do with 'How Do I' questions.

merk
08 Sep 2001, 01:43
Your karma doesnt work FireFly!@#@@!# :p

Chen
08 Sep 2001, 06:43
Oh man, I gotta fix this! :p ;)

Wayne Luke
10 Sep 2001, 04:53
Well I have the lines after:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In both files....

Gutspiller
10 Sep 2001, 15:53
ok I changed this code in newthread:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and in forumdisplay I did a search for:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and it didn't find it but it did find this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



There are ' around the allowsmilies. I don't know why, anyways, I thought that was the same code since it's pretty close.

So the code looked like this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



and I edited the part bottom part of that wasn't the meta thingys. To what Fastforward said. I tested it with a user and it let the user into the forum that I was trying t block. I tested it, by setting up a user with 1 posts and the post count was 35. It did take off the message from the unregistered, but if somebody is registered it made the entire hack untracable that it was even there.

What am I doing wrong?
:confused: :(

Gutspiller
12 Sep 2001, 01:16
*bump*