Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Masterd on March 16, 2009, 12:55:46 PM

Title: Separate Sticky and Normal Topic
Post by: Masterd on March 16, 2009, 12:55:46 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1705)


Separate Sticky and Normal Topic


made by www.smfmod.com (http://www.smfmod.com)
Version: 1.1 Date 2009-03-18
Compatibility: SMF 2.0 RC1 & 1.1.x


Separate_Sticky_and_Normal_Topic.zip for smf 2.0 rc1
Separate_Sticky_and_Normal_Topic_1.1.x.zip for smf 1.1.x



in turkish:
modifications.turkish.php de ekle
$txt['hhystick1'] = 'Sabit Konular';
$txt['hhystick2'] = 'Normal Konular';


Quote from: Nas on March 18, 2009, 09:33:23 AM
Nice!

Swedish translation:

//  by smfmod.com
$txt['hhystick1'] = 'Klistrade ämnen';
$txt['hhystick2'] = 'Normala ämnen';


Quote from: LexArma on March 18, 2009, 09:39:10 AM
In finnish:


$txt['hhystick1'] = 'Pysyvät Aiheet';
$txt['hhystick2'] = 'Tavalliset Aiheet';


(using the same wording as the official finnish language pack)
Quote from: dm_mb on March 18, 2009, 01:07:49 PM
Modifications.russian.php

$txt['hhystick1'] = 'Прикреплённые топики';
$txt['hhystick2'] = 'Обычные топики';

Title: Re: Separate Sticky and Normal Topic
Post by: jossanaijr on March 17, 2009, 04:50:42 PM
Great! Thanks.
Title: Re: Separate Sticky and Normal Topic
Post by: heinandar on March 17, 2009, 08:15:10 PM
Ohh.. work fine in 1.1.8 also. Thanks  :D
Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 18, 2009, 03:31:29 AM
Separate_Sticky_and_Normal_Topic_1.1.x.zip
for smf 1.1.x :D
Title: Re: Separate Sticky and Normal Topic
Post by: Cobra97 on March 18, 2009, 08:11:52 AM
Thank You, a very nice and simple mod that works great!
Title: Re: Separate Sticky and Normal Topic
Post by: Marcus Forsberg on March 18, 2009, 09:33:23 AM
Nice!

Swedish translation:

//  by smfmod.com
$txt['hhystick1'] = 'Klistrade ämnen';
$txt['hhystick2'] = 'Normala ämnen';

Title: Re: Separate Sticky and Normal Topic
Post by: Aleksi "Lex" Kilpinen on March 18, 2009, 09:39:10 AM
In finnish:


$txt['hhystick1'] = 'Pysyvät Aiheet';
$txt['hhystick2'] = 'Tavalliset Aiheet';


(using the same wording as the official finnish language pack)
Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 18, 2009, 12:38:44 PM
thanx guys ;)
Title: Re: Separate Sticky and Normal Topic
Post by: dm_mb on March 18, 2009, 01:07:49 PM
Modifications.russian.php

$txt['hhystick1'] = 'Прикреплённые топики';
$txt['hhystick2'] = 'Обычные топики';
Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 18, 2009, 01:08:30 PM
thanx dm_mb ;)
Title: Re: Separate Sticky and Normal Topic
Post by: Sedin on March 18, 2009, 01:29:43 PM
beautiful :) its just what i needed

thanks alot
Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 18, 2009, 01:58:08 PM
thanx Sedin ;)
Title: Re: Separate Sticky and Normal Topic
Post by: TDNY on March 19, 2009, 12:28:16 PM
Great mod, worked on my test site which is default core vers. 1.1.8 but on my regular default core vers. 1.1.8 I only get the sticky and normal topic icons, not the words.

TD
Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 19, 2009, 12:58:29 PM
thanx TDNY ;D
Title: Re: Separate Sticky and Normal Topic
Post by: TDNY on March 19, 2009, 01:19:38 PM
Quote from: hhy89 on March 19, 2009, 12:58:29 PM
thanx TDNY ;D

Your welcome, can you help out with the words "sticky topic" and "normal topic" not showing?

TD
Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 19, 2009, 01:28:53 PM
your themes/MessageIndex.template.php

Edit it ;)
Title: Re: Separate Sticky and Normal Topic
Post by: TDNY on March 19, 2009, 02:45:04 PM
Quote from: hhy89 on March 19, 2009, 01:28:53 PM
your themes/MessageIndex.template.php

Edit it ;)

Tried a manual install, not good. error messages and still no "sticky topic" "normal topic" just icons.

Got these 2 errors too.
   
8: Undefined index: hhystick2
File: /hom/default/MessageIndex.template.php (main sub template - eval?)
Line: 234
   


8: Undefined index: hhystick1
File: /home/icefishr/public_html/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 229
Title: Re: Separate Sticky and Normal Topic
Post by: Aleksi "Lex" Kilpinen on March 19, 2009, 02:47:16 PM
Language problem - what language files are  you using? :)
Title: Re: Separate Sticky and Normal Topic
Post by: TDNY on March 19, 2009, 02:48:03 PM
Quote from: LexArma on March 19, 2009, 02:47:16 PM
Language problem - what language files are  you using? :)

English, thanks. Need to use english to work ad mgmnt.
Title: Re: Separate Sticky and Normal Topic
Post by: Aleksi "Lex" Kilpinen on March 19, 2009, 02:51:44 PM
Quote from: TDNY on March 19, 2009, 02:48:03 PM
Quote from: LexArma on March 19, 2009, 02:47:16 PM
Language problem - what language files are  you using? :)

English, thanks. Need to use english to work ad mgmnt.

English or english-utf8 ;) This mod installs the language strings to *.english.php but to *.english-utf8.php you will have to make the edits manually.
Title: Re: Separate Sticky and Normal Topic
Post by: TDNY on March 19, 2009, 02:56:11 PM
Quote from: LexArma on March 19, 2009, 02:51:44 PM
Quote from: TDNY on March 19, 2009, 02:48:03 PM
Quote from: LexArma on March 19, 2009, 02:47:16 PM
Language problem - what language files are  you using? :)

English, thanks. Need to use english to work ad mgmnt.

English or english-utf8 ;) This mod installs the language strings to *.english.php but to *.english-utf8.php you will have to make the edits manually.

Thanks, I will edit the  mod/english-utf8 and see what happens as I already did the edit to mod/english php
Title: Re: Separate Sticky and Normal Topic
Post by: TDNY on March 19, 2009, 03:05:08 PM
LexArma,
Thanks for helping this newbie out, you made it very easy to understand what I needed to do.
   I edited the English-utf8 file like you said and it all works like it should, no more errors either. Thanks!!

TD
Title: Re: Separate Sticky and Normal Topic
Post by: Aleksi "Lex" Kilpinen on March 19, 2009, 03:25:18 PM
Quote from: TDNY on March 19, 2009, 03:05:08 PM
LexArma,
Thanks for helping this newbie out, you made it very easy to understand what I needed to do.
No problem :)
Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 19, 2009, 04:11:49 PM
thanx LexArma for helping ;)
Title: Re: Separate Sticky and Normal Topic
Post by: PalmBeachPreps on March 22, 2009, 08:47:23 PM
Nice work!
Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 23, 2009, 03:24:51 AM
thanx AlreeGator ;)
Title: Re: Separate Sticky and Normal Topic
Post by: Blinker on March 26, 2009, 04:43:27 AM
Nice mod, very simple, effective and should be standard in SMF.

Great work hhy89!
Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 26, 2009, 06:04:23 AM
thanx Blinker ;)
Title: Re: Separate Sticky and Normal Topic
Post by: traveler1 on March 26, 2009, 04:50:32 PM
Seems to not work with 2.0 RC. Is the file corrupted on the download page by chance. I tried twice and got a not compatible or corrupt message both times.

Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 27, 2009, 07:26:49 AM
Separate_Sticky_and_Normal_Topic.zip for smf 2.0 rc1
Separate_Sticky_and_Normal_Topic_1.1.x.zip for smf 1.1.x
;D
Title: Re: Separate Sticky and Normal Topic
Post by: C4G-TK on March 29, 2009, 02:26:06 PM
This is a cool mod and I've installed it without any problems on RC1 this past week.  Thanks!


I'm not sure if this visual problem is from the mod or not.  Is there a way for it to pull the files to make it look like it is uniform instead of making it gray?

Currently, I get boxes of gray on the lines for Sticky or Regular (circled in picture picture 1)

It would be nicer if it would pull the same files as if the mod wasn't installed (circled in picture 2)
Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 29, 2009, 03:00:42 PM
rating is problem ;)
Title: Re: Separate Sticky and Normal Topic
Post by: C4G-TK on March 29, 2009, 03:10:23 PM
Thanks hhy89.

If you want, I'll remove my post, so it doesn't confuse anyone!
Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 29, 2009, 03:53:47 PM
', empty($options['display_quick_mod']) ? '7' : '8', '

replace

', empty($options['display_quick_mod']) ? '8' : '9', '

;D
Title: Re: Separate Sticky and Normal Topic
Post by: C4G-TK on March 29, 2009, 04:08:09 PM
Wow! Great!!!

That's the MessageIndex.template

replace to:

if($topic['is_sticky'] && !$stickybar)
        {
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '8' : '9', '"><img src="', $settings['images_url'], '/icons/quick_sticky.gif" width="16"  /><b> ' . $txt['hhystick1'] . '</b></td></tr>';
            $stickybar = true;
        }
        else if(!$topic['is_sticky'] && $stickybar && !$normalbar)
        {
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '8' : '9', '"><img src="' . $settings['images_url'] . '/post/xx.gif" alt="" align="middle" /><b> ' . $txt['hhystick2'] . '</b></td></tr>';
            $normalbar = true;


Great it worked for the Sticky and Normal lines.  I just have one more gray box on the white line above those.

Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 29, 2009, 04:27:03 PM
' , !empty($options['display_quick_mod']) ? '8' : '7' , '"
replace
' , !empty($options['display_quick_mod']) ? '9' : '8' , '"
Title: Re: Separate Sticky and Normal Topic
Post by: C4G-TK on March 29, 2009, 04:33:32 PM
Thanks, hhy89!

That's a fix for me!

Replace to:


if (!empty($settings['display_who_viewing']))
{
echo '
<tr class="windowbg2">
<td colspan="' , !empty($options['display_quick_mod']) ? '9' : '8' , '" class="headerpadding smalltext">';
if ($settings['display_who_viewing'] == 1)


Worked like a charm!  Looks much nicer now.  (pic attached)

Thank you very much!!


Title: Re: Separate Sticky and Normal Topic
Post by: hhy89 on March 29, 2009, 04:34:49 PM
No problem ;)
Title: Re: Separate Sticky and Normal Topic
Post by: RIGILKENTARUS on April 13, 2009, 06:21:10 PM
Latin Spanish Translation
//  by smfmod.com
$txt['hhystick1'] = 'Temas Sujetos';
$txt['hhystick2'] = 'Temas Normales';


I made one change on this mod

Find:
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '"><img src="' . $settings['images_url'] . '/post/xx.gif" alt="" align="middle" /><b> ' . $txt['hhystick2'] . '</b></td></tr>';

Replace with:
            echo'<tr class="titlebg"><td colspan="', empty($options['display_quick_mod']) ? '7' : '8', '"><img src="' . $settings['images_url'] . '/topic/normal_post.gif" width="19"  /><b> ' . $txt['hhystick2'] . '</b></td></tr>';


;)
Title: Arabic Translation
Post by: 3wasef on May 03, 2009, 10:55:56 AM

Thanx a lot for the great Mod,
it's a big relief for me to arrange topics in my forum. 

Modifications.arabic-utf8.php

$txt['hhystick1'] = 'المواضيع المثبتة';<br>
$txt['hhystick2'] = 'المواضيع';


http://3wasef.com (http://3wasef.com)
Title: Re: Separate Sticky and Normal Topic
Post by: mattchewone on May 03, 2009, 11:53:33 AM
I have done the edits to MessageIndex.template.php as done above in your posts "hhy89" but at the bottom of the category where it says "MARK READ NOTIFY NEW TOPIC POST NEW POLL" Above that there is a grey box still.

I have the checkboxes for moderation enabled also, not sure if this will cause issues.

Thanks
Title: Re: Separate Sticky and Normal Topic
Post by: lucifur on June 14, 2009, 11:04:48 AM
This's for Thai.

$txt['hhystick1'] = 'กระทู้ปักหมุด';
$txt['hhystick2'] = 'กระทู้ปกติ';
Title: Re: Separate Sticky and Normal Topic
Post by: [SiNaN] on June 24, 2009, 03:05:21 PM
Mod has been removed from Mod Site due to a copyright infringement.