View Single Post
  #1  
Old 10-16-2011, 03:59 AM
kitty08's Avatar
kitty08 kitty08 is offline
Member
 
Join Date: Sep 2011
Posts: 42
Gender: Female
Credits: 5,686
kitty08 is on a distinguished road
Default Squiby-like site tutorial

Well,I try to make a site squiby-like.I don't know if this will work,but i'll post it there.even if it's not working,i thought it was a nice idea.In reality you just need to remove the "only admin can edit" like that every user will be able to add their own pet-breeds ;)

Go to admin.php(in your php editor/database,etc...)

Remove :


if($canedit == "yes"){

and paste:

if($canedit == "no"){

Change every canedit=yes to no.Now people ,even if they are'nt admin,can add,edit or remove pets.Now we need to make people not able to edit users,pages etc...

Quote:
// Check if we have permissions to access here...

$canedit = cando($group, "canmanageadopts");

if($canedit == "yes"){

// We can edit pages!

if($do == ""){

//Not working on a specific page...

$article_title = "Page and Content Editor";
Don't change the yes into no in this part.let it like that,as these others texts:

Quote:
} // End the set=content block ... start a new setting here...
else if($set == "users"){



$canedit = cando($group, "canmanageusers");

if($canedit == "yes"){

// We are managing users...

if($do == "edit"){

Quote:
$canedit = cando($group, "canmanagesettings");

if($canedit == "yes"){

if($do == ""){

// No setting was specified, so show the user their choices...

$article_title = "Site Settings";
Quote:
// We are managing the ads for the site...

$canedit = cando($group, "canmanageads");

if($canedit == "yes"){

///////////////////////////////////////////////////////////////////////////////////////////////////////

BUT

you need now to modify some things in admpost.php


search:

Quote:
$canmanageadopts = $_POST["canmanageadopts"];

if($canmanageadopts != "yes"){

$canmanageadopts = "no";
change the yes into no.


There you go!your site is squibyish.now you just need to put a link to the adoptables admin panel!Enjoy ;)



I DON'T KNOW IF THIS WILL WORK OUT,SO SAVE THE ADMIN/ADMPOST FILE BEFORE MODIFY IT.
Reply With Quote