Advertisement:
2by2host

Author Topic: First Post on Every Page [Now SMF 2.0.1 compatible]  (Read 40848 times)

Offline Karagül

  • Semi-Newbie
  • *
  • Posts: 17
Re: First Post on Every Page [Now SMF 2.0 Beta 4 compatible]
« Reply #40 on: November 05, 2009, 08:50:19 AM »
I'm also waiting at the update

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,367
  • Gender: Male
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Offline wladymeer

  • Jr. Member
  • **
  • Posts: 142
  • Gender: Male
Re: First Post on Every Page [Now SMF 2.0 RC1.2 compatible]
« Reply #42 on: November 06, 2009, 06:41:03 AM »
It works fine on RC 1.2.

Maybe you should consider changing display.template step 2 to "add after" instead of "replacing" because it reports some unnecessary error on signature line. When I had checked it manually it seemed to me that I should just add these lines instead of replacing whole part (or maybe I'm wrong?):

Code: [Select]
if(!empty($modSettings['enableFirstPostOnEveryPage']) && $message['id']==$context['topic_first_message']) {
echo '
<h3 class="catbg headerpadding">&nbsp;</h3>';
}

And if I may suggest, instead of empty catbg field maybe you could write down something like (first post on topic - sticky) or something like that.

Also, no need to mention that having option to switch on and off sticky first post for every thread and that I'm really looking forward to it :)

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,367
  • Gender: Male
Re: First Post on Every Page [Now SMF 2.0 RC1.2 compatible]
« Reply #43 on: November 06, 2009, 01:59:39 PM »
It works fine on RC 1.2.

Maybe you should consider changing display.template step 2 to "add after" instead of "replacing" because it reports some unnecessary error on signature line. When I had checked it manually it seemed to me that I should just add these lines instead of replacing whole part (or maybe I'm wrong?):

Code: [Select]
if(!empty($modSettings['enableFirstPostOnEveryPage']) && $message['id']==$context['topic_first_message']) {
echo '
<h3 class="catbg headerpadding">&nbsp;</h3>';
}

And if I may suggest, instead of empty catbg field maybe you could write down something like (first post on topic - sticky) or something like that.

Also, no need to mention that having option to switch on and off sticky first post for every thread and that I'm really looking forward to it :)


I tested on a fresh copy,so if you previously installed another mod,very possible the other mod manipulated the part,which is changed by this mod

About the features you are requesting,i will have a look,when i have time for it  ;)
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Offline Darkness_

  • Full Member
  • ***
  • Posts: 405
Re: First Post on Every Page [Now SMF 2.0 RC1.2 compatible]
« Reply #44 on: November 06, 2009, 05:50:58 PM »
Thank you duncan85 I planned the upgrade of my site for today, so it's realy just in time.

Offline dangermouse13

  • Semi-Newbie
  • *
  • Posts: 23
Re: First Post on Every Page [Now SMF 2.0 RC1.2 compatible]
« Reply #45 on: November 28, 2009, 05:56:46 AM »
Can this be used for smf2 rc2?

This mod could really be useful for some threads that are pages long.

Offline Alpay

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,355
  • Gender: Male
  • Turkish Translator
    • tayfunalpay on Facebook
    • @AlpayTayfun on Twitter
    • Personal Web Page
Re: First Post on Every Page [Now SMF 2.0 RC1.2 compatible]
« Reply #46 on: December 05, 2009, 07:36:45 AM »
Can this be used for smf2 rc2?

This mod could really be useful for some threads that are pages long.
Yes :) rc 2 ?

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,367
  • Gender: Male
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Offline Stigmartyr

  • Jr. Member
  • **
  • Posts: 300
  • Gender: Male
Re: First Post on Every Page [Now SMF 2.0 RC2 Curve compatible]
« Reply #48 on: February 04, 2010, 06:51:45 AM »
Is this updated to allow targeting just sticky topics for RC2 now?  It would be nice to have an option for Stickies only vs. All Posts.  I'll even settle for manual code edits.  I just want to apply this to my sticky topics :)

Thank you in advance for carrying the torch!

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,367
  • Gender: Male
Re: First Post on Every Page [Now SMF 2.0 RC2 Curve compatible]
« Reply #49 on: February 10, 2010, 06:13:09 AM »
Is this updated to allow targeting just sticky topics for RC2 now?  It would be nice to have an option for Stickies only vs. All Posts.  I'll even settle for manual code edits.  I just want to apply this to my sticky topics :)

Thank you in advance for carrying the torch!

Only for sticky topics,then you can do this

./Sources/Display.php

Code: (find) [Select]
// always get post number 0 for sticky topics
if (($start > 0 || !$ascending) && !empty($modSettings['enableFirstPostOnEveryPage']))

Code: (replace with) [Select]
// always get post number 0 for sticky topics
if (($start > 0 || !$ascending) && !empty($modSettings['enableFirstPostOnEveryPage']) && $context['is_sticky'])


./Themes/default/Display.template.php

Code: (find) [Select]
if(!empty($modSettings['enableFirstPostOnEveryPage']) && $message['id']==$context['topic_first_message']) {

Code: (replace with) [Select]
if(!empty($modSettings['enableFirstPostOnEveryPage']) && $message['id']==$context['topic_first_message'] && $context['is_sticky']) {
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Offline Stigmartyr

  • Jr. Member
  • **
  • Posts: 300
  • Gender: Male
Re: First Post on Every Page [Now SMF 2.0 RC2 Curve compatible]
« Reply #50 on: February 10, 2010, 03:48:08 PM »
Thanks for the update, but I am unable to find the codes you mention for Display.php or Display.template.php (attached).


Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,367
  • Gender: Male
Re: First Post on Every Page [Now SMF 2.0 RC2 Curve compatible]
« Reply #51 on: February 10, 2010, 07:40:34 PM »
You cannot find,because you didn't install the mod yet,after installing it,you need to make the changes from above
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Offline Stigmartyr

  • Jr. Member
  • **
  • Posts: 300
  • Gender: Male
Re: First Post on Every Page [Now SMF 2.0 RC2 Curve compatible]
« Reply #52 on: February 10, 2010, 08:27:34 PM »
You cannot find,because you didn't install the mod yet,after installing it,you need to make the changes from above

Ah ha...  Makes sense!  I thought that was strictly a manual edit.

Offline Les Paul

  • Semi-Newbie
  • *
  • Posts: 62
  • Gender: Male
  • Así es la cosa che..
    • Sinbo Forum v3.0
Re: First Post on Every Page [Now SMF 2.0 RC2 Curve compatible]
« Reply #53 on: February 19, 2010, 01:41:00 PM »
I can't do this, I got an error when I try to do this operation:

Find:

Code: [Select]
</h5> <div class="smalltext">« <strong>', !empty($message['counter']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' »</div> <div id="msg_', $message['id'], '_quick_mod"></div> 
Replace:

Code: [Select]
</h5> <div class="smalltext">« <strong>', !($message['id'] == $context['topic_first_message']) ? $txt['reply_noun'] . ' #' . $message['counter'] : '', ' ', $txt['on'], ':</strong> ', $message['time'], ' »</div> <div id="msg_', $message['id'], '_quick_mod"></div> 
« Last Edit: February 19, 2010, 01:44:56 PM by Les Paul »

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,367
  • Gender: Male
Re: First Post on Every Page [Now SMF 2.0 RC2 Curve compatible]
« Reply #54 on: February 26, 2010, 02:47:44 AM »
@Les Paul

Then you need to try to find a similar line in your custom theme  ;)
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Offline Neverhurry

  • Sophist Member
  • *****
  • Posts: 1,019
  • Life is compromise.
    • We love Slovakia!
Re: First Post on Every Page [Now SMF 2.0 RC2 Curve compatible]
« Reply #55 on: March 10, 2010, 01:53:26 AM »
Hi,

Duncan85, this is a great MOD, will the version for rc2.0 support rc3.0 too? Thanks a bunch!
I am using SMF 2.0.1, curve themes.

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,367
  • Gender: Male
Re: First Post on Every Page [Now SMF 2.0 RC3 compatible]
« Reply #56 on: March 10, 2010, 05:38:43 AM »
Quote
Changelog:

v1.3 - 10 March 2010

o Added support for SMF 2.0 RC3.
Added an option for enabling only for sticky topics.
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Offline sbt

  • Jr. Member
  • **
  • Posts: 112
Re: First Post on Every Page [Now SMF 2.0 RC3 compatible]
« Reply #57 on: April 09, 2010, 06:15:12 PM »
Thank You for this wonderful mod.

Question please if something can be added to the display of it?

In the first post on the second or more pages, there is no notice that this is a repeated post from the first page.
Can we add something to it, like in the display file, maybe, something like
First Topic Message Reminder:
In bold, then all members would know it is a repeat post?
Then after that would be the actual repeated post?

Thank You for any replies.

Offline Scratching my Head

  • Jr. Member
  • **
  • Posts: 171
  • Yes. I see. Thanks.
Re: First Post on Every Page [Now SMF 2.0 RC3 compatible]
« Reply #58 on: April 18, 2010, 05:57:56 PM »
Using it on 1.1.11 - Excellent Mod. Thanks so much!

Offline flipzo

  • Semi-Newbie
  • *
  • Posts: 31
Re: First Post on Every Page [Now SMF 2.0 RC3 compatible]
« Reply #59 on: May 13, 2010, 02:55:43 AM »
I just installed this Mod on 1.1.11, But I can't seem to see any option to activate it under "Admin > Post and topics", is it because of my theme or what? Thanks in advance...