Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.2.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=38)
-   -   Admin Notes (http://www.mysidiaadoptables.com/forum/showthread.php?t=2448)

Inf3rnal 10-18-2011 04:21 PM

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

http://dl.dropbox.com/u/614379/Tutor...adminnotes.png

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.

Nemesis 10-19-2011 12:02 AM

yeah this could come in handy.

kitty08 10-27-2011 03:53 PM

Funyaaaah.


All times are GMT -5. The time now is 01:35 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.