Customizing SMF > Modifications and Packages

First Post on Every Page [Now SMF 2.0.1 compatible]

<< < (34/34)

Kermit:

--- Quote from: luuuciano on May 26, 2012, 02:55:09 PM ---Thanks a lot for this mod Kermit, it is very interesting and useful...

BTW... where we can change/add a style, for that 1st post showed everywhere? can we add that?

I want to change the background, or maybe adding a new green border, or something like that... to make more obvious that is a post that came from the 1st one (a mirror of it)... outside the regular reply path

--- End quote ---

There is no option to change the layout of border and honestly i don't plan to add new features in near future

dimiurg:
Hello Kermit,

thank you again for the mod - but please let me know if you are planning to add 2.0.3 compatibility?

luuuciano:
There is an annoying issue when thread has many pages and the link points to the "first real" reply on that page...

I mean, for example... page 2... the 1st post is the number one... of course, we are using this mod! :)...
The problem is that the anchor link to the 1st real reply (below the 1st post on every page...) is not located on the "second place"... so the pointer goes up, and maybe some people do not see that reply... because when there is another reply it points where its belong...
Or, maybe... the anchor link is always -1 on pages +1?

luuuciano:

--- Quote from: Kermit on May 29, 2012, 12:54:15 PM ---
--- Quote from: luuuciano on May 26, 2012, 02:55:09 PM ---Thanks a lot for this mod Kermit, it is very interesting and useful...

BTW... where we can change/add a style, for that 1st post showed everywhere? can we add that?

I want to change the background, or maybe adding a new green border, or something like that... to make more obvious that is a post that came from the 1st one (a mirror of it)... outside the regular reply path

--- End quote ---

There is no option to change the layout of border and honestly i don't plan to add new features in near future

--- End quote ---

Well... I have tried editing the Display.template.php file, from:


--- Code: ---<div class="', $message['approved'] ? ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') : 'approvebg', '">
--- End code ---

to


--- Code: ---<div class="', $message['approved'] ? ( empty($message['counter']) ? 'windowbgfirst' : ($message['alternate'] == 0 ? 'windowbg2' : 'windowbg')) : 'approvebg', '">
--- End code ---

And added at the theme CSS file the .windowbgfirst background style, and "Common styles used to add corners to divisions" styles section was added too...

In a regular thread it works!
But... how is it build the 1st post in every page? do not follow that file...

I was reading the mod changes, trying to figure it out... but do not get it :(

OR... maybe may idea was wrong... and I should not use empty($message['counter']) to achieve it... ?

Navigation

[0] Message Index

[*] Previous page

Go to full version