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