Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
theos hack require login error
Posted: 05 May 2005 08:28 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  102
Joined  2003-01-10

i have installed everything as the steps say but I get this error :

Fatal error: Unknown function: require_login() in /home/absolute/public_html/nightlife/cpg/themes/default/theme.php on line 2

when attempting to go to the gallery index page.
where should I go to fix this?

line 2 is the require code:

<?php if (require_login()==0){
echo “You must be a member of the pMachine Weblog to access these galleries. <br />”;
echo “Contact someone@somewhere.com for more information.”;
exit;
} else {

. hope someone can help me with this. I think it will at least get me into coppermine to start condifiguring.

Profile
 
 
Posted: 05 May 2005 08:30 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  102
Joined  2003-01-10

im sorry, this is not the hack for theos script , its the coppermine port script to integrate coppermine into pmachine pro 4.0.

Profile
 
 
Posted: 05 May 2005 10:33 AM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

Do you have a “pm_inc.php” file in that directory with the correct path/directory settings inside it?  The “theme.php” script isn’t communicating with the pMachine Pro backend so it isn’t aware of the pM functions such as “require_login()”.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 05 May 2005 11:14 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  102
Joined  2003-01-10

i have this for the pm_inc file :

<?php

// pMachine needs this file in order to communicate with your web pages. 
// One copy of this file must remain in EVERY directory containing pMachine
// enabled pages.

// Name of your main script ("pm") directory:

$script_directory_name = "pm";

// Relative path to this directory:
// The path is from the perspective of the directory containing THIS file.

$script_directory_path = "http://www.domain.com/nightlife/";

-----------

and this for theme.php:

<?php include("/home/absolute/public_html/nightlife/cpg/pm_inc.php");?>
<?php if (require_login()==0){
echo “You must be a member of the pMachine Weblog to access these galleries. <br />”;
echo “Contact someone@somewhere.com for more information.”;
exit;
} else {

same error , i have played around with all paths and no luck.

is all this correct?

Profile
 
 
Posted: 05 May 2005 04:45 PM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  2002-06-19

> $script_directory_path = “http://www.domain.com/nightlife/”;

That’s a URL, not a relative or absolute server path.  Try this instead:

$script_directory_path = "/home/absolute/public_html/nightlife/";

(assuming that your pMachine Control Panel is located at “http://www.domain.com/nightlife/pm/”.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 05 May 2005 06:39 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  102
Joined  2003-01-10

THANK YOU!!!!!!!!!!!! I guess I hadnt tried that combination of changes but it was that one line that finally made it work. thank you for taking the time to help out.

*proceeds to grow hair back*

*thinks* if I could only get theos script to work.

thaNX AGAIN!

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 61024 Total Logged-in Users: 0
Total Topics: 73808 Total Anonymous Users: 0
Total Replies: 398134 Total Guests: 36
Total Posts: 471942    
Members ( View Memberlist )
Newest Members:  b-rodMAIDENtreatstruckaungAdrian LeonP.T.Aoochoi2kfantomelIfTrueElseFalse
Active Members: