Squiby-like site tutorial

Forum
Last Post
Threads / Messages

kitty08

Member
Member
Joined
Sep 5, 2011
Messages
42
Points
6
Mysidian Dollar
3,580
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.
 
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.
 
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
 
Last edited:

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,267
Messages
33,049
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top