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

Reply
 
Thread Tools Display Modes
  #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: 2,251
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, 05:22 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: Somerville
Posts: 4,392
Gender: Male
Credits: 153,968
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, 01:19 AM
mapleblade mapleblade is offline
Epicness sausage
 
Join Date: May 2009
Posts: 180
Gender: Male
Credits: 8,436
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 06:02 AM.
Reply With Quote
  #4  
Old 10-19-2011, 10:55 AM
Nemesis's Avatar
Nemesis Nemesis is offline
Member
 
Join Date: Mar 2011
Location: Ohio, United States
Posts: 641
Gender: Male
Credits: 22,337
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, 12:03 PM
kitty08's Avatar
kitty08 kitty08 is offline
Member
 
Join Date: Sep 2011
Posts: 42
Gender: Female
Credits: 2,251
kitty08 is on a distinguished road
Default

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



NABARUDIS.COM
Reply With Quote
  #6  
Old 04-23-2020, 05:53 AM
KeviThomas KeviThomas is offline
Member
 
Join Date: Apr 2020
Posts: 1
Gender: Male
Credits: 30
KeviThomas is on a distinguished road
Default

A balanced diet is suggested for the patients. Improvement of the runners and essaypro.com reliable is invited for the information for all goals. The part is played for the mixing of the goals. The turn is done for the selective material for humans. The change is invited for the ambit of the scores. part is played for the injunction for the individuals.
Reply With Quote
Reply

Thread Tools
Display Modes

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 03: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 12:57 AM.

Currently Active Users: 349 (3 members and 346 guests)
Threads: 3,996, Posts: 31,585, Members: 15,649
Welcome to our newest members, Micolai.
BETA





What's New?

What's Hot?

What's Popular?


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