Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.2.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2011, 04:59 AM
kitty08's Avatar
kitty08 kitty08 is offline
Member
 
Join Date: Sep 2011
Posts: 42
Gender: Female
Credits: 6,915
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
  #2  
Old 10-16-2011, 06:22 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 492,709
Hall of Famer is on a distinguished road
Default

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


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 10-19-2011, 02:19 AM
mapleblade mapleblade is offline
Epicness sausage
 
Join Date: May 2009
Posts: 180
Gender: Male
Credits: 25,100
mapleblade
Default

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
__________________
Need coding help? send me a PM! :)

Last edited by mapleblade; 10-19-2011 at 07:02 AM.
Reply With Quote
  #4  
Old 10-19-2011, 11:55 AM
Nemesis's Avatar
Nemesis Nemesis is offline
Member
 
Join Date: Mar 2011
Location: Ohio, United States
Posts: 641
Gender: Male
Credits: 57,457
Nemesis is on a distinguished road
Default

That is amazing, I was interested in this. when i find the time i'll test it out!
__________________
https://gemnode.com
Free Hosting for Mysidia Adopt Sites
Just join our forum and request your free hosting account
Reply With Quote
  #5  
Old 10-22-2011, 01:03 PM
kitty08's Avatar
kitty08 kitty08 is offline
Member
 
Join Date: Sep 2011
Posts: 42
Gender: Female
Credits: 6,915
kitty08 is on a distinguished road
Default

hehe,thanks guys,especially nemesys,tell me if it's working :3
__________________



NABARUDIS.COM
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gradient Map Tutorial Whimsy Art Gallery 0 10-20-2014 04:55 PM
Future of Squiby uncertain? RoconzaArt Webmasters Area 4 02-20-2011 01:31 PM
PHP/MySQL Tutorial HIddenPanda Tutorials and Tips 0 01-27-2011 05:30 PM
Quick php tutorial Ajof Tutorials and Tips 18 11-08-2010 12:20 PM


All times are GMT -5. The time now is 05:11 AM.

Currently Active Users: 1255 (0 members and 1255 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636