Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Forums / Cotonti / General / "comment" in admin panel

#1 2012-02-19 10:04

Hey guys, i was thinking if there is quick way i could get "comment" (use comment system) in the admin panel (main), so my moderators could make smth like "work log"

well 1 idea came to my mind, i found a documentation/tutorial @ how to get comments on my plugins, and then i could use tag to get it in the admin

but still, maybe there is a quicker way?

Your advertisement here :-)

Cotonti Genoa based site:
#2 2012-02-19 17:31

I dont' think it's possible to output comments on admin page without any plugins, except for an iframe with a page accessible to admins only. I'm not sure if the second is quicker because you need to get rid of header/footer in the iframe first :)

May the Source be with you!
#3 2012-02-19 18:01

your posts/tips are very helpfull but every time (with my weak php knowlage) ur geting me more confiused laugh ill see what ill do :P

Your advertisement here :-)

Cotonti Genoa based site:
#4 2012-02-19 18:23
I think Trustmasters solution is the simplest. Create a page which is only available to moderators, then load it in your admin template with an iframe. Alternatively you can use Ajax to load the page (comments), that would fix the header/footer issue but its a little harder to write.
#5 2012-03-08 00:23

on admin add this:

<iframe src="your/path/page.php?al=admincomments" style="border:0px;width:100%;height:200px;"></iframe>

admincomments is the page alias.

on your page you'll add this:

#the-element-to-hide, .the-class-to-hide, #and-so-on {display:none !IMPORTANT;}

the css hides your elements and should overwrite its standart values. remember to put that only on the page you actually want to use as the admin comments.
this maybe a dirty solution that works without any plugins but iam not sure about validation and browser compatibility, you also could use javascript or jquery to hide the elements...


also you check this out:

URL shortener: <a href="!7AD5C7">!7AD5C7</a>

This post was edited by urlkiller (2012-03-09 07:50, 9 years ago)