![]() |
I can create a delete button if you'd like and submit the code. It shouldn't harm anyone.
|
here is a screeni
don't care about the language its german ;) but nice and cool feature ;) little code addition : instead of: ------------------------------------------------ maketableheader('Administrator To Administrator Notes'); echo "<tr class='".getrowbg()."' valign='top'>\n<td><font size=1><p>". makelinkcode("Leave A Note","./anotes.php","0") ."</p></font></td>\n<td><p></p></td>\n</tr>\n"; $bbcodeon=iif($forum[allowbbcode],$ontext,$offtext); $imgcodeon=iif($forum[allowimages],$ontext,$offtext); $htmlcodeon=iif($forum[allowhtml],$ontext,$offtext); $smilieson=iif($forum[allowsmilies],$ontext,$offtext); $notes = $DB_site->query_first("SELECT notes,userid,timestamp,username FROM adminnotes LIMIT 1"); $note = stripslashes($notes['notes']); $timestamp = $notes['timestamp']; $userid = $notes['userid']; $author = $notes['username']; $time_posted = vbdate('n-j-y, g:i:s a',$timestamp); makelabelcode($note); makelabelcode("Author: <a href='$bburl/member.php?s=&action=userinfo&userid=$userid'>$aut hor</a> | Posted On: $time_posted"); --------------------------------------------------- use: --------------------------------------------------- doformheader("",""); maketableheader('Administrator To Administrator Notes'); echo "<tr class='".getrowbg()."' valign='top'>\n<td><font size=1><p>". makelinkcode("Leave A Note","./anotes.php","0") ."</p></font></td>\n<td><p></p></td>\n</tr>\n"; $bbcodeon=iif($forum[allowbbcode],$ontext,$offtext); $imgcodeon=iif($forum[allowimages],$ontext,$offtext); $htmlcodeon=iif($forum[allowhtml],$ontext,$offtext); $smilieson=iif($forum[allowsmilies],$ontext,$offtext); $notes = $DB_site->query_first("SELECT notes,userid,timestamp,username FROM adminnotes LIMIT 1"); $note = stripslashes($notes['notes']); $timestamp = $notes['timestamp']; $userid = $notes['userid']; $author = $notes['username']; $time_posted = vbdate('n-j-y, g:i:s a',$timestamp); makelabelcode($note); makelabelcode("Author: <a href='$bburl/member.php?s=&action=userinfo&userid=$userid'>$aut hor</a> | Posted On: $time_posted"); echo "</table></td></tr></table></form>\n"; --------------------------------------------- so it looks much nicer ;) |
Quote:
|
Quote:
- Anthony |
Hey. Crater, I installed it very very nice idea, great hack... however I am having 1 issue with this, that is that i get the following error after posting my note
PHP Code:
Reguards -UB [underburn] |
i am also getting the same error
|
ditto here. im getting the same error
|
Works like a charm!! :)
Thanks. [high]* Kars10 klicks install![/high] |
Excellent addition.
/me does the install dance! By the way, how do we get it to display smilies or vbcode? It doesn't display them for me. |
Another addon to this already great hack. ;)
Instead of displaying and empty message box if you click "Leave a message" and hit enter before you enter anything (to erase the message until I can get a delete button for it), this will only leave the "Leave a message" line until someone enters a message. (No sense having an empty message line or an Author line if there is no message. :)) Change this: PHP Code:
PHP Code:
|
All times are GMT. The time now is 01:42 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|