News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Set up quick reply box on everyone and new members are hidden

Started by TF_, March 18, 2004, 06:12:40 PM

Previous topic - Next topic

TF_

How do I set up the quick reply box on everyone?

And how do I change so my new members not been hidden in the users online?

Can I close the hidden box off ?

TF_

anyone? Please help.... I have a huge forum. 3000 members and I want all things perfect! ;)

Tyris

you'd probably want to:
1. run a MySQL script from phpMyAdmin to change everyone's settings to have quick reply on...
and
2. Modify the registration code to default it to on...
if you dunno how to do this... um... ask again here and I'll stop being lazy and find out how ;)

TF_

Quote from: Tyris on March 19, 2004, 08:20:22 PM
you'd probably want to:
1. run a MySQL script from phpMyAdmin to change everyone's settings to have quick reply on...
and
2. Modify the registration code to default it to on...
if you dunno how to do this... um... ask again here and I'll stop being lazy and find out how ;)

Hehe, Im a real noob on YaBB and SMF...

So I dunno how to do this...  :(

Grudge

Well... I think the hidden box is in feature settings. You can stop people hiding their online status by checking that.

As for quick reply. The easiest way is just to make it so that users can't turn off quick reply. If that is the case just add this just after the global variables line in template.display.php:

$options['display_quick_reply'] = 1;


It is cheating and would be frowned upon for simpleness but works :P
I'm only a half geek really...

victorinoxs

Quote from: Grudge on March 21, 2004, 06:13:40 PM
Well... I think the hidden box is in feature settings. You can stop people hiding their online status by checking that.

As for quick reply. The easiest way is just to make it so that users can't turn off quick reply. If that is the case just add this just after the global variables line in template.display.php:

$options['display_quick_reply'] = 1;


It is cheating and would be frowned upon for simpleness but works :P
Sorry...I'm too dumb to understand it...
could you please be more specific??
Where is the global variables line ? ???
I tried a few different places to add the code, but none of them worked...
please help!!
Thank you very much in advance!!!

Oldiesmann

Global variables line is the line that starts out with "global" followed by a bunch of variables:
global $context, $settings, $options, $txt, $scripturl, $modSettings;

To make it so that the quick reply box is always shown expanded, do this:

in Display.template.php:

Find
if ($context['can_reply'] && !empty($options['display_quick_reply']))

Replace with
if ($context['can_reply'])

Find
<td colspan="2" class="catbg"><a href="javascript:swapOptions();"><img src="', $settings['images_url'], '/', $options['display_quick_reply'] == 2 ? 'collapse' : 'expand', '.gif" alt="+" border="0" id="quickReplyExpand" /></a> <a href="javascript:swapOptions();">', $txt['quick_reply_1'], '</a></td>

Replace with
<td colspan="2" class="catbg">', $txt['quick_reply_1'], '</td>

Find
<tr id="quickReplyOptions"', $options['display_quick_reply'] == 2 ? '' : ' style="display: none"', '>

Replace with
<tr id="quickReplyOptions">

That will set it so that the quick reply box is always there and is always expanded no matter what the user has selected. This might make a few folks mad, but it works.
Michael Eshom
Christian Metal Fans


lordmenace


TheGamer

For the quick reply, why not just go to Admin > Themes Settings & Options > Reset Options, then reset the options for members to have quick reply turned on.

Naediel

Quote from: TheGamer on August 09, 2006, 12:43:08 AM
For the quick reply, why not just go to Admin > Themes Settings & Options > Reset Options, then reset the options for members to have quick reply turned on.
This is fine and all, but it is a bit of an annoyance to have to do this every time a new member signs up.  I was surprised to not see an option to just have it on.

青山 素子

To turn on QuickReply for all new users (1.1 RC2):


  • Go to admin area
  • Themes and Layout area
  • Reset options (on the submenu)
  • For every theme that has the option (some rely on the default theme options), choose: "Reset default (guest) options for this theme"
  • Check what things you want by default. You will want to set "Use quick reply on topic display:" to "show, on by default"
  • Save

To reset everyone to those options (warning - this will write over any custom settings they did), use the "Reset all member's current options for this theme" link.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Polymath

Thanks Motoko-chan. Thats somewhere I hadn't been in my admin. Things are starting to work like they should
* I don't suffer from insanity; I enjoy every minute of it. *
F.I.G.J.A.M

TheGamer

That's in a nasty, hard to find place. Users will look at Reset Options and think of it as something to stay away from... I was a little leerly clicking it the first time I explored it. I wasn't sure what it'd do. I suggest rewording it to Set Default User Options or something to that extent.

青山 素子

I actually made that suggestion, and it is being considered, but the strings have been finalized for 1.1 (needed for localization). It might go into the next major release however.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


anna.young

Quote from: TheGamer on September 02, 2006, 10:57:23 PM
That's in a nasty, hard to find place. Users will look at Reset Options and think of it as something to stay away from... I was a little leery clicking it the first time I explored it. I wasn't sure what it'd do....


This is exactly how I felt...  Thank you Motoko-Chan for your very clear directions

Anna
Toronto German Shepherd Dog Rescue

"Here's to the crazy ones, the misfits, the rebels, the troublemakers, the round pegs in the square holes... the ones who see things differently -- they're not fond of rules... You can quote them, disagree with them, glorify or vilify them, but the only thing you can't do is ignore them because they change things... they push the human race forward, and while some may see them as the crazy ones, we see genius, because the ones who are crazy enough to think that they can change the world, are the ones who do." (SJ)

Advertisement: