It'd be useful to be able to display a message when users go to site.com/chatrooms that would be displayed above the list of chatrooms. In my case, it would say to the effect "Do you know a good topic for a chatroom. Submit it here (link)". I don't want users to be able to create their own chatrooms, but to let them know they can request them. A configurable label would fulfill that need nicely.

Comments

Anonymous’s picture

Assigned: Unassigned »

hi jason,

yeah, that sounds like a useful feature - thanks.

i'll try to implement it over the weekend.

cheers
justin

Anonymous’s picture

Status: Active » Fixed

hi jason,

i've added a first cut for this. please let me know if it does what you want.

cheers
justin

whatistocome’s picture

Status: Fixed » Active

it works, but it would be fantastic to have it TinyMCE-friendly and be able to handle full HTML. In my case, it would say something like "here are the chatrooms, if you want one added let me know here (link)"

- Jason

Anonymous’s picture

hi jason,

the textarea can take full html - you just have to enable it in the filter settings for the site.

could you tell me more about what you mean by TinyMCE friendly? i was under the impression that this was more about installing the module and setting it up for existing textareas than changing something about the textareas?

i'm now wrapping the output of that field in a div with some simple styling. its all themeable as well, so hopefully this is enough.

to be honest, making it do much more than this is not high up on the list.

cheers
justin

whatistocome’s picture

ahhh, i see what's going on now... i only have TinyMCE enabled for full HTML pages. you're saying (i gather) that by default the textbox in question does not handle full HTML but "you just have to enable it in the filter settings for the site." i understand filters in general, but don't see where to set it for this. can you go point by point?

ps. i totally know what you mean that these types of "cosmetic" features aren't at the top of the list :) it's hard to balance building the core features and making it more user friendly through cosmetic enhancements too - you've done an admirable job at doing both!

- Jason

Anonymous’s picture

i understand filters in general, but don't see where to set it for this. can you go point by point?

i just went to administer->input formats, and chose 'full html' as the default.

there's probably more to it than that, but that's what i did to test this.

whatistocome’s picture

"i just went to administer->input formats, and chose 'full html' as the default."

we're on the same page then. i have tinymce functional and have full html as the default. works great in general.

but the box where i type in the message for chatroom is just a regular textbox - tinymce does not get loaded and the box does not take full html.

where's the disconnrect here?

- Jason

DaveNotik’s picture

If the textbox code is like a standard Drupal textbox, TinyMCE should be able to convert it to a rich text box. Be sure that the settings in TinyMCE are set to convert all textboxes -- it allows you to turn this on/off in its profiles, by path and by user role, etc...

Of course, I haven't checked this in full myself so there well may be an issue w/ Justin's code.

whatistocome’s picture

TinyMCE wasn't showing for the box because in its profile, it was configured to only show on node and comments. I changed it to display on all boxes and now it's loading for the message box. the html is also rendering correctly now too.

one other MINOR detail at this point. the description message is being displayed as bolded, although i didn't format it that way when i typed it in. it looks to have a hard-coded bold somewhere in the code. it would be best to remove that and let the user configure the exact formatting that they want.

Anonymous’s picture

maybe you've got an older version from cvs?

the new version doesn't bold the text anymore, id just surrounds it in a div with an id of 'chatroom-list-description', so it should be easy to put whatever you want in there.

cheers
justin

whatistocome’s picture

Status: Active » Closed (fixed)

man, you guys are whipping out updates fast! :) i downloaded the newest and the bold is no longer.

good work as always,
jason