vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Editing "showthread.php" (https://vborg.vbsupport.ru/showthread.php?t=152055)

G0F0RBR0KE 07-12-2007 12:11 PM

Editing "showthread.php"
 
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_not allowed')));
}
// 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 07-12-2007 12:18 PM

it could possible be a problem with functions_privatethread.php

G0F0RBR0KE 07-12-2007 12:21 PM

1 Attachment(s)
Here's the attachment

Eikinskjaldi 07-12-2007 12:28 PM

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.

G0F0RBR0KE 07-12-2007 12:30 PM

Only when using

Code:

// 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

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

Eikinskjaldi 07-12-2007 12:37 PM

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?

G0F0RBR0KE 07-12-2007 12:40 PM

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 07-13-2007 12:06 AM

Quote:

Originally Posted by EvilAkuma (Post 1289183)
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.


All times are GMT. The time now is 01:45 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.01407 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete