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
   
 
Creating a Demo Member
Posted: 02 July 2004 08:02 AM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  326
Joined  2003-12-21

Hi,

Same request as in EE forum but for pM now please.

Profile
 
 
Posted: 14 July 2004 01:26 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  2002-08-05

Pretty much a similar response.  You will want to create the user, and then in the inc.lib.php and inc.cp.php files you will do a check like this:

if (isset($_COOKIE[‘member_name’]) && $_COOKIE[‘member_name’] == ‘demo_user’)
{
    $_POST = array();
}

Basically if someone is logged with the username ‘demo_user’, none of their form data will go through.

 Signature 
Profile
 
 
Posted: 22 September 2006 05:37 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  275
Joined  2005-12-21
Paul Burdick - 14 July 2004 01:26 AM

Pretty much a similar response.  You will want to create the user, and then in the inc.lib.php and inc.cp.php files you will do a check like this:

if (isset($_COOKIE[‘member_name’]) && $_COOKIE[‘member_name’] == ‘demo_user’)
{
    $_POST = array();
}

Basically if someone is logged with the username ‘demo_user’, none of their form data will go through.

Where do I place this in these files?

Thanks in advance!

 Signature 

EE v. 1.6.6

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: 64968 Total Logged-in Users: 0
Total Topics: 81989 Total Anonymous Users: 0
Total Replies: 440672 Total Guests: 18
Total Posts: 522661    
Members ( View Memberlist )
Active Members: