PDA

View Full Version : Squiby-like site tutorial


kitty08
10-16-2011, 03:59 AM
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...


// 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:

} // 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"){




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

if($canedit == "yes"){

if($do == ""){

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

$article_title = "Site Settings";



// 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:


$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.

Hall of Famer
10-16-2011, 05:22 AM
Thanks for posting this, Kitty08. You may want to post this in tutorials section instead of this one if you indeed do not know if your approach will work.

mapleblade
10-19-2011, 01:19 AM
i did change the whole system once for a squiby like site, but i think i lost it D:

EDIT:its in the prem forum, im updating it atm

Nemesis
10-19-2011, 10:55 AM
That is amazing, I was interested in this. when i find the time i'll test it out!

kitty08
10-22-2011, 12:03 PM
hehe,thanks guys,especially nemesys,tell me if it's working :3