We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
getting a php error
Topic Started: Mar 8 2005, 02:01 AM (386 Views)
dbzlotrfan
Member
[ *  *  *  *  *  *  * ]
Call to undefined function: topic_password_field() in sources/lib/post_new_post.php on line 384.

and


Call to undefined function: topic_password_field() in sources/lib/post_poll.php on line 486.
//-----------------------------------------
// D2-Password Protected Topics
//-----------------------------------------

if ($this->class->forum['allow_passprotected'] == 1)
{
$this->class->output = str_replace("<!--TOPIC PASSWORD-->", $this->class->html->topic_password_field(isset($_POST['topic_pass']) ? $ibforums->input['topic_pass'] : ''), $this->class->output);
}

and

//-----------------------------------------
// D2-Password Protected Topics
//-----------------------------------------

if ($this->class->forum['allow_passprotected'] == 1)
{
$this->class->output = str_replace("<!--TOPIC PASSWORD-->", $this->class->html->topic_password_field(isset($_POST['topic_pass']) ? $ibforums->input['topic_pass'] : ''), $this->class->output);
}


Can't figure out what it('s) talking about.
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
You're calling a function that doesn't exist.
Offline Profile Quote Post Goto Top
 
SkItZo
Support Volunteer
[ *  *  * ]
Yep...did he have you edit out the functions.php file? and did you upload it yet?
Offline Profile Quote Post Goto Top
 
dbzlotrfan
Member
[ *  *  *  *  *  *  * ]
actually if any of you know a dean of Invizionze that's made a lot of IPB mods this is actually one of his.

files I had to edit for this to work:
sources/topics.php
sources/admin/ad_forums.php
sources/admin/ad_groups.php
sources/lib/post_edit_post.php
sources/lib/post_new_post.php
sources/lib/post_poll.php
lang/en/lang_post.php
lang/en/lang_topic.php


sources/lib/post_new_post.php
sources/lib/post_poll.php

are where I had to find
" //-----------------------------------------
// START TABLE
//-----------------------------------------

$this->class->output .= $this->class->html->table_structure(); "

and add below:
//-----------------------------------------
// D2-Password Protected Topics
//-----------------------------------------

if ($this->class->forum['allow_passprotected'] == 1)
{
$this->class->output = str_replace("<!--TOPIC PASSWORD-->", $this->class->html->topic_password_field(isset($_POST['topic_pass']) ? $ibforums->input['topic_pass'] : base64_decode($this->topic['password'])), $this->class->output);
}.



I did everything corretly, incase not i'll try again.
Offline Profile Quote Post Goto Top
 
FearKiller
Member Avatar
www.drewscripts.com
[ *  *  *  *  * ]
PHP allows you to make your own functions. The function called topic_password_field() is not a predefined function, therefore it must be defined. Hence the reason why you are getting the error.

In order to fix the error you must define the function.
Offline Profile Quote Post Goto Top
 
dbzlotrfan
Member
[ *  *  *  *  *  *  * ]
I didn't create the code dean/matt mecham did. all I can do the "hello world" code. i've read alot of php but I never had a server so I could never write anything, I guess i've foggoten the php now.
Offline Profile Quote Post Goto Top
 
Gornakle
Member
[ *  *  *  *  * ]
Try backing up your files and redoing the process. If you're sure you're not making any mistakes, post in its support topic on IZE.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply