Quick moderation & Checkboxes

Started by aw06, October 05, 2009, 03:30:45 PM

Previous topic - Next topic

aw06

Is there a way to show both ?? i love quick moderation, but also love checkboxes as you can select multiple messages and do whatever ..

Is there a mod to do this ? or can it be hard coded into smf ?
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Arantor

You mean have the checkboxes and the icons together?

Well, have the checkboxes and use the dropdown, surely that's what you need?

aw06

Quote from: Arantor on October 05, 2009, 03:39:26 PM
You mean have the checkboxes and the icons together?

Well, have the checkboxes and use the dropdown, surely that's what you need?

Yeah, checkboxes + icons
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Arantor

No mod for this. And offhand I think it would be complex.

What's wrong with the dropdown for ticked items?

aw06

both methods work well ... which is why i want to combine them both ..

checkboxes good for multiple actions at once .. icons for single quick actions ... so you give up one good freature for another when you use either ..

man this should be default in smf to show icons+checkboxes
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Arantor

It's not default to have either, because not everyone wants either (I generally have both off)

The other problem is that modifying it is going to be pretty much specific to the theme.

aw06

Quote from: Arantor on October 05, 2009, 04:15:23 PM
It's not default to have either, because not everyone wants either (I generally have both off)

The other problem is that modifying it is going to be pretty much specific to the theme.

ok, so it can be done to always show checkboxes ?
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Arantor

To display checkboxes is an option in your profile. Just set the option to checkboxes and it should just work.

If it doesn't, it's either your theme or a mod that has altered it.

aw06

it works ... but i want to show the quick icons and the checkboxes beside them as well  8)
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Arantor

In which case you have to sit and rewrite the MessageIndex.template.php and Display.template.php files.

aw06

:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

M-DVD

#11
Quote from: aw06 on October 05, 2009, 05:03:06 PM
it works ... but i want to show the quick icons and the checkboxes beside them as well  8)

You can edit the MessageIndex.template.php

Find:

else
{
// Check permissions on each and show only the ones they are allowed to use.


and Replace


if ($options['display_quick_mod'] != 1)
{
// Check permissions on each and show only the ones they are allowed to use.


Also find all:

$options['display_quick_mod'] == 1

and replace by:

$options['display_quick_mod'] % 2 == 1

Profile.template.php

Find:

<option value="2"', !empty($context['member']['options']['display_quick_mod']) && $context['member']['options']['display_quick_mod'] != 1 ? ' selected="selected"' : '', '>', $txt['display_quick_mod_image'], '</option>


and Replace


<option value="2"', !empty($context['member']['options']['display_quick_mod']) && $context['member']['options']['display_quick_mod'] == 2 ? ' selected="selected"' : '', '>', $txt['display_quick_mod_image'], '</option>
<option value="3"', !empty($context['member']['options']['display_quick_mod']) && $context['member']['options']['display_quick_mod'] == 3 ? ' selected="selected"' : '', '>', $txt['display_quick_mod_image_checkbox'], '</option>


And add this text var: $txt['display_quick_mod_image_checkbox'] = 'checkboxes and icons';

Edit the Settings.template.php

Find:

2 => $txt['display_quick_mod_image'],

Add:
3 => $txt['display_quick_mod_image_checkbox'],

This should work. I haven't tested

aw06

#12
Quote from: M-DVD on October 06, 2009, 12:49:09 AM
This should work. I haven't tested

Ok, will backup and test :)

And add this text var: $txt['display_quick_mod_image_checkbox'] = 'checkboxes and icons';
^^^^^^
I dont understand what you mean there ...

also i don't see this bit of code
<option value="2"', !empty($context['member']['options']['display_quick_mod']) && $context['member']['options']['display_quick_mod'] != 1 ? ' selected="selected"' : '', '>', $txt['display_quick_mod_image'], '</option>
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

M-DVD

#13
Quote from: aw06 on October 06, 2009, 01:31:58 AM
And add this text var: $txt['display_quick_mod_image_checkbox'] = 'checkboxes and icons';
^^^^^^
I dont understand what you mean there ...

Add in the Modification.language.php

Quote from: aw06 on October 06, 2009, 01:31:58 AM
also i don't see this bit of code
<option value="2"', !empty($context['member']['options']['display_quick_mod']) && $context['member']['options']['display_quick_mod'] != 1 ? ' selected="selected"' : '', '>', $txt['display_quick_mod_image'], '</option>

In the Profile.template.php? That line should be ::)

aw06

Quote from: M-DVD on October 06, 2009, 10:33:31 PM
Quote from: aw06 on October 06, 2009, 01:31:58 AM
And add this text var: $txt['display_quick_mod_image_checkbox'] = 'checkboxes and icons';
^^^^^^
I dont understand what you mean there ...

Add in the Modification.language.php

You mean Modifications.english.php ??
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

aw06

OK it works ... but i was hoping the checkboxes would be in it separate row and not inline with the icons .. can that be fixed ??
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

aw06

:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

aw06

#17
guys .. really need to crack this... nobody ?

This is how it looks ... i want to move the checkboxes into it's own coloumn..
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Arantor

I'm still not at home so I can't look at the code for this.

However it should be a case of adding a careful </td><td> to the layout in MessageIndex.template.php for your theme.

aw06

This should be the code for it

if ($options['display_quick_mod'] != 1)
            {
               // Check permissions on each and show only the ones they are allowed to use.

if ($topic['quick_mod']['remove'])

echo '<a href="', $scripturl, '?action=quickmod;board=', $context['current_board'], '.', $context['start'], ';actions[', $topic['id'], ']=remove;sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt['quickmod_confirm'], '\');"><img src="', $settings['images_url'], '/icons/quick_remove.gif" width="16" alt="', $txt[63], '" title="', $txt[63], '" border="0" /></a>';

if ($topic['quick_mod']['lock'])

echo '<a href="', $scripturl, '?action=quickmod;board=', $context['current_board'], '.', $context['start'], ';actions[', $topic['id'], ']=lock;sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt['quickmod_confirm'], '\');"><img src="', $settings['images_url'], '/icons/quick_lock.gif" width="16" alt="', $txt['smf279'], '" title="', $txt['smf279'], '" border="0" /></a>';

if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove'])

echo '<br />';

if ($topic['quick_mod']['sticky'])

echo '<a href="', $scripturl, '?action=quickmod;board=', $context['current_board'], '.', $context['start'], ';actions[', $topic['id'], ']=sticky;sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt['quickmod_confirm'], '\');"><img src="', $settings['images_url'], '/icons/quick_sticky.gif" width="16" alt="', $txt['smf277'], '" title="', $txt['smf277'], '" border="0" /></a>';

if ($topic['quick_mod']['move'])

echo '<a href="', $scripturl, '?action=movetopic;board=', $context['current_board'], '.', $context['start'], ';topic=', $topic['id'], '.0"><img src="', $settings['images_url'], '/icons/quick_move.gif" width="16" alt="', $txt[132], '" title="', $txt[132], '" border="0" /></a>';

}

echo '</td>';

}

echo '

</tr>';

}



if (!empty($options['display_quick_mod']) && !empty($context['topics']))

{

echo '

<tr class="titlebg">

<td colspan="8" align="right">

<select name="qaction"', $context['can_move'] ? ' onchange="this.form.moveItTo.disabled = (this.options[this.selectedIndex].value != \'move\');"' : '', '>

<option value="">--------</option>

', $context['can_remove'] ? '<option value="remove">' . $txt['quick_mod_remove'] . '</option>' : '', '

', $context['can_lock'] ? '<option value="lock">' . $txt['quick_mod_lock'] . '</option>' : '', '

', $context['can_sticky'] ? '<option value="sticky">' . $txt['quick_mod_sticky'] . '</option>' : '', '

', $context['can_move'] ? '<option value="move">' . $txt['quick_mod_move'] . ': </option>' : '', '

', $context['can_merge'] ? '<option value="merge">' . $txt['quick_mod_merge'] . '</option>' : '', '

<option value="markread">', $txt['quick_mod_markread'], '</option>

</select>';
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Arantor

That only provides the code for the quick icons. The addition of the </td><td> would be somewhere before that.

aw06

hmm. ok ... guess i will wait on M-DVD to respond

what about codes here ??
// Finish off the form - again, if Quick Moderation is being done with checkboxes. (1)

if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] % 2 == 1 && !empty($context['topics']))

echo '

<input type="hidden" name="sc" value="' . $context['session_id'] . '" />

</form>';



echo '

<table width="100%" cellpadding="0" cellspacing="0" border="0">

<tr>

<td align="left" class="catbg" width="100%" height="30" valign="middle" style="padding: 5px 3px 0px 3px;">

<table cellpadding="3" cellspacing="0" width="100%">

<tr>

<td><a name="bot"></a><b>', $txt[139], ':</b> ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '<a href="#top">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_up.gif" alt="' . $txt['topbottom4'] . '" border="0" align="top" />' : $txt['topbottom4']) . '</a>' : '', '</td>

<td align="', !$context['right_to_left'] ? 'right' : 'left', '" nowrap="nowrap" style="font-size: smaller;">', theme_show_buttons(), '</td>

</tr>

</table>

</td>

</tr>

</table></div><div class="bdc"><!-- nothing :P --></div>';

}

echo '

<table cellpadding="0" cellspacing="0" width="100%">';
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

aw06

:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Arantor

Please do not bump within 24 hours.

I still cannot look at this properly until I'm at home.

aw06

:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Arantor

I'm home, but haven't had time to look at this due to catching up on everything else, not to mention dealing with RL stuff.

This'll get looked at when it gets looked at, not before.

aw06

#26
ok .. M-DVD MIA  :P
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

M-DVD

Attach your MessageIndex.template.php :)

aw06

:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

aw06

Boooo :P

Come on guys, need to solve and sweep this one under the rug .... basically the last thing to tweak on my list of things to tweak 8)
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

aw06

Might have to remove these edits and go back to default if i can't move the check-boxes in it's own column.. as it is now it looks kinda awkward & Clunky..



:-[
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Advertisement: