Not logged in. · Lost password · Registration disabled
Forum: Overview Bugs / Fehler RSS
userfunctions.php problem
jeffsherk #1
Member since Nov 2007 · 37 posts
Group memberships: Mitglieder
Show profile · Link to this post
Subject: userfunctions.php problem
Spelling Mistake
In the userfunctions.sample.php it states
To use this file you have to copy it to userfunction.php

You forgot the 's' on the end of userfunctions... it should read
To use this file you have to copy it to userfunctions.php

Include/Require userfunctions.php
I noticed that userfunctions.php is not included or required anywhere in any of the files, except in the admin_test.php file, which doesn't do much good for somebody trying to get them to work, or adding their own functions to this file.

WORKAROUND
I put the following line
if(file_exists(POST_NOTIFICATION_PATH . 'userfunctions.php')) include_once(POST_NOTIFICATION_PATH . 'userfunctions.php');
at the beginning of my mod in frontend.php to get it to work.

SUGGESTION
Could the above line of code be included somewhere, so that userfunctions.php is always available by default to anybody who tries to use it?
Morty (Administrator) #2
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
Spelling: That's a typo, yes. I was assuming that people would only remove the .sample and wouldn't read the doc so assiduous. ;-)

Inclusion: Well, actually it is used in sendmail.php. To get the same results it's also included in admin_test. I'm also not sure why I should include in anywhere else. It's only intended for the two functions that are described in that file. If you want your own special functions, you should probably write your own plugin - which is quite easy.
jeffsherk #3
Member since Nov 2007 · 37 posts
Group memberships: Mitglieder
Show profile · Link to this post
Okay, I didn't realize it was just for those two functions only... thanks.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum