Thread: Admin Notes
View Single Post
  #1  
Old 10-18-2011, 04:21 PM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 19,655
Inf3rnal is on a distinguished road
Default Admin Notes

I needed a quick access notes to share between staff so I created this.



In phpmyadmin (Or whatever you use) open "yourprefix"_settings and add another row at the bottom.

Add "name" as "adminnotes"
And add "value" as "Admin Notes Here"

It should look like this:
Code:
theme			blah
browsertitle		blah
sitename		blah
admincontact		blah
slogan			blah
saltcode		blah
securityquestion	blah
securityanswer		blah
gdimages		blah
usealtbbcode		blah
systememail		blah
cashenabled		blah
cost			blah
startmoney		blah
rewardmoney		blah
enabletrades		blah
tradecost		blah
tradeoffercost		blah
breedinginterval	blah
breedinglevel		blah
adminnotes		Admin Notes Here
Now for the file edits:

Now open admin.php
Find: (Around line 54)

Code:
<a href='http://www.mysidiaadoptables.com' target='_blank'>http://www.mysidiaadoptables.com</a>";
Replace with:
Code:
<a href='http://www.mysidiaadoptables.com' target='_blank'>http://www.mysidiaadoptables.com</a><br /><br />
<p>Admin Notes: (You can edit this in <a href='?set=settings&do=basic'><u>Site Settings</u></a>.)<br />
<textarea wrap='soft' accept='text/html' readonly='yes' name='adminnotes' id='adminnotes'>".grabanysetting('adminnotes')."</textarea></p>";
Find: (Around line 1747)
Code:
Levelup Money:
Add Below:
Code:
<p>Admin Notes:	<br /><br /><textarea wrap='physical' accept='text/html' name='adminnotes' cols='80' wrap='soft' rows='10' id='adminnotes'>".grabanysetting('adminnotes')."</textarea> </p>
Now open admpost.php
Find: (Around line 325)

Code:
'rewardmoney'
Change Into:
Code:
'rewardmoney'
Add Below:
Code:
'adminnotes'
It should look like this:
Code:
'rewardmoney',
'adminnotes'
If someone could figure out a way to edit and submit changes to the admin notes on the main page instead of just in settings please post but for now this works.

Last edited by Inf3rnal; 10-28-2011 at 09:41 AM. Reason: Slight codefix
Reply With Quote