Strictly Business > SMF Forum discussion
Sticky First Post Mod
(1/1)
admin:
Description:
Fully reversible (uninstalls cleanly).
This modification extends basic sticky topics by stickying first post (it will be displayed on each page of multi-page topic) and adding a separator between sticky and non-sticky topics and posts.
No option to turn it on or off - automatically turned on for sticky topics.
Performance drawbacks: extra query (one quick first post select) only for topics marked as sticky.
Known bugs: post counter in a topic is offset by one on each page after first, since first post is inserted. Does not affect anything.
Version: 1.3.2
- minor fixes, 1.1.* support
- "newest first" sorting order support final
Version: 1.3.1 BETA - only for testing now
- Support for "newest first" sorting order - sticky post will be first anyway.
Version: 1.3.0
- 1.1 (and further) compliant
Version: 1.2.3
- Made 1.0.8+ and 1.1 RC3 compliant
Version: 1.2.2
- Don't print "Sticky topics" on a page with no stickies
- Verified that mod works with 1.0.7 (backwards compatible with 1.0.5) and latest 1.1RC2 update. 1.1RC1 support dropped.
- Joined both installers together. Added modification of the babylon theme in RC2+.
Version: 1.2
- Modifies classis theme, too
- Added text for both sticky and non-sticky topic headers to language dir
- Support for 1.1 RC2 added
Version: 1.1
- Released for 1.0.5
- Install/uninstall cleanly
Version: 1.0
- Released for 1.1 RC1
Down load here :
http://custom.simplemachines.org/mods/index.php?mod=235
admin:
If you want to add a "Sticky" word use font and red color right before every sticky topic title ,
Please do as below tutorial .
Add this line :
--- Code: ---if ($topic['is_sticky'])
echo '<div style="float:left; color:red; font-family:Georgia;">Sticky </div>';
--- End code ---
After this :
--- Code: ---<td class="windowbg' , $topic['is_sticky'] ? '4' : '' , '" valign="middle" ', (!empty($topic['quick_mod']['remove']) ? 'id="topic_' . $topic['first_post']['id'] . '" onmouseout="mouse_on_div = 0;" onmouseover="mouse_on_div = 1;" ondblclick="modify_topic(\'' . $topic['id'] . '\', \'' . $topic['first_post']['id'] . '\', \'' . $context['session_id'] . '\');"' : ''), '>';
--- End code ---
Navigation
[0] Message Index
Go to full version