Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-17-2011, 08:21 PM
ipengu's Avatar
ipengu ipengu is offline
Member
 
Join Date: Aug 2011
Location: Central NY
Posts: 50
Gender: Male
Credits: 11,059
ipengu is on a distinguished road
Default

Not fine tuned, very basic.


Open: myadopts.php

Find: (Around line 516)
PHP Code:
else if($act == "freeze"){ 
Replace with:
PHP Code:
else if($act == "freeze"){

$group getgroup();
$cancp cancp($group);

if(
$cancp == "yes"){ 
Find: (Around line 607)
PHP Code:
else{

$article_title $err_idnoexist;
$article_content $err_idnoexist_text;

}



Add after:
PHP Code:
//Allow only admins to freeze/unfreeze
else{

$article_title $err_nofrzperm;
$article_content $err_nofrzperm_text;

}


Open: lang/lang.php

Find: (Around line 50)
PHP Code:
$err_idnoexist "Invalid Adoptable ID Specified";
$err_idnoexist_text "The ID specified does not match any adoptable in our system.  Sorry.  If you wish, you can <a href='adopt.php'>adopt a pet</a>."
Add After:
PHP Code:
$err_nofrzperm "No Permission";
$err_nofrzperm_text "You do not have correct permission to do this action. <a href='javascript:history.go(-1)'>Click here to go back.</a>"
I'd also suggest removing the link.

This just fully removes the freeze/unfreeze to everyone but people whom can use admin cp. If you want them ability to freeze, but not unfreeze its honestly a matter of skipping the first chunk and just putting it lower down in the freeze section of myadopts.php
__________________
Coder/Marketer/Etc
Super busy, lack of time for computer related things for awhile.

Current Mods:
Slim Profile | Disallow unfreezing adoptable
Longer Shoutbox | IP Tracking/Account Limiter
Colorblast | Flux Series

In the works:
Integrated Forum (Very unlikely to be a free public mod, at first anyways)15%
Better admin control panel (current one is terrible)
Couple Themes
Few other things.
Reply With Quote
 


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
Remove CKEditor from Shoutbox? AlexC Questions and Supports 17 04-17-2012 11:29 AM
Remove Sidebar? SilverDragonTears Questions and Supports 0 06-03-2011 08:42 PM
Remove Adoptables? Blues Questions and Supports 3 07-28-2009 03:08 PM
Remove Adoptables from adopt.php? Tequila Questions and Supports 8 03-13-2009 08:28 AM
Remove Search Bar LilPixie Questions and Supports 3 02-12-2009 04:26 PM


All times are GMT -5. The time now is 07:34 PM.

Currently Active Users: 1567 (0 members and 1567 guests)
Threads: 4,082, Posts: 32,047, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636