It is currently Sat Sep 04, 2010 6:11 pm

All times are UTC




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: Recipe Script - remove login
PostPosted: Wed Aug 08, 2007 12:49 am 
Newbie Fr33lancer

Joined: Tue Aug 07, 2007 8:17 pm
Posts: 1
Hi;

I have the recipe script and want people to freely post recipes without having to register or login. The script is being added to a membership site where only members would be able to access the recipe section, so in this case I see little benefits of going through the hassles of creating a login bridge between the two scripts, about the only real benefit of bridging is that it would include who submitted the recipe, which to me isn't really isn't worth the trouble.

I tried this hack submitted by a user on the EasySiteNetwork forums, but can't get it to work. It removes the need to register or be logged in to add a recipe just fine, however submitted recipes don't get added. The user says he created duplicate php files for adding and saving a recipe but failed to explain how these are utilized and linked together.

Any ideas on how to make this work would be much appreciated.

The User's Hack:

I found that if you remove the password it wont record how many recipes have been added. So instead created a addrecipe.php and addrecipe2.php along saverecipe.php and saverecipe2.php. One without login one with login. Both add to the same database.

Okay if anyone is still trying to do this for the recipe. I did it tonight and it works great.

addrecipe.php
remove the following ...

if (logincheck($uid, $upwd))



and also remove this ...


<?php

} else {

printf("<font size=2 face='Arial, Helvetica, sans-serif'><br>You need to be logged in before you can add a recipe</font>");

}

?>

and then in saverecipe.php remove the same things and get rid of userid from this line ...

$sql = "insert into recipes (recipeid, title, recipe, rating, categoryid, date, status) values ($recipeid, '$recipetitle', '$newdirections', 0, $catid, '$recipedate', '$status')";

and then finally put a link to addrecipe.php somewhere.

Link to hack ...
http://www.easysitenetwork.com/modules. ... f0e76227ad


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
phpBB skin developed by: John Olson
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group