PDA

View Full Version : Editing "showthread.php"


EvilAkuma
12 Jul 2007, 15:11
I'm trying to convert a modification from 3.5.x to 3.6.7

However, I think I got everything set up except for the .showthread.php

Find:

// ******************************************************************************** *
// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);

Add ABOVE:

// M/DD/YY PRIVATE THREADS PORT
include_once('./includes/functions_privatethread.php');
if (private_thread_not_allowed($threadinfo))
{
eval(standard_error(fetch_error('privatethread_notallowed')));
}
// END PRIVATE THREADS PORT


^^^^^ That for 3.5.x

So, how should it be for 3.6.x so it won't give a blank page?

EnIgMa1234
12 Jul 2007, 15:18
it could possible be a problem with functions_privatethread.php

EvilAkuma
12 Jul 2007, 15:21
Here's the attachment

Eikinskjaldi
12 Jul 2007, 15:28
Kewl. The file says I helped write it. Must have been one of my other heads.

Anyway, you said you are getting a blank page. In what context? what file are you loading to test the hack, and have you installed the rest of the private thread stuff? Is a php error being generated?


Looks like my colleagues have not released the 3.6 version of this hack.

EvilAkuma
12 Jul 2007, 15:30
Only when using



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



in the showthread.php, i'll get a blank page.

Eikinskjaldi
12 Jul 2007, 15:37
Right, yes, so you said. Have you looked to see if there is a php error? have you turned on error reporting to screen? Have you added the phrase to the database?

EvilAkuma
12 Jul 2007, 15:40
Have you looked to see if there is a php error? I do not get no error for the php.
have you turned on error reporting to screen? No
Have you added the phrase to the database? No

Eikinskjaldi
13 Jul 2007, 03:06
Have you looked to see if there is a php error? I do not get no error for the php.
have you turned on error reporting to screen? No
Have you added the phrase to the database? No

How do you know you are not getting an error?

add the phrase to the error section of the phrase table.