Link to Mod (http://mods.simplemachines.org/index.php?mod=235)
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.1
- 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
- Joined all installs into one file
- Babylon theme is now modified in RC2 as well (previous default)
Version: 1.2.1
- Don't print "Sticky topics" on a page with no stickies
- Verified that mod works with 1.0.7 (use 1.0.5 version) and latest 1.1RC2 update.
Version: 1.2
- Modifies classis theme, too
- Added text for both sticky and non-sticky topic headers to language dir
- Support for 1.1RC2 release of SMF
Version: 1.1
- Released for 1.0.5
- Install/uninstall cleanly
Version: 1.0
- Released for 1.1 RC1
Originally requested here: http://www.simplemachines.org/community/index.php?topic=23726.0
Sample here, browse stickied topics (Russian, but you can get the idea - default theme): http://pooltalk.spb.ru/board,1.0/
is it possible to have a version that works on SMF 1.0.5 classic theme??
:) Nice mod anyway ...!!!!!
Great mod, although it doesn't work on the theme I am currently using (Daze Skin (Blue)). Would mean the world if it was possible to fix this! :)
Link to theme: http://www.simplemachines.org/community/index.php?topic=24950.0
I've tested on default themes for 1.0.5 and 1.1RC1, I can adapt to other themes if you post their MessageIndex.template.php and Display.template.php zipped up somewhere.
Azumi, I looked at the theme you mention and I see that the 1.0.5 version should install correctly on it. Do you get any problems installing? Which forum version? Which files show errors installing?
Version Information:
Forum version: SMF 1.0.5
Current SMF version: SMF 1.0.5
(more detailed)
I had no problem installing, I've tried other themes and it works great for them, just not the "Daze" series >.<
I guess I see your point. It installs on the default theme, while Daze theme have custom versions of MessageIndex.template.php and Display.template.php. You will need to do manual replace on those files for your theme, open up install.xml from the mod package, and then look at the pieces of code starting with "search position="replace"", find them in the corresponding .template.php file, and replace with contents of the following <add> clause :) If that's too hard, post your .template.php and i'll do it for you :)
i did that on classic theme, stickys seperated from others allright but only in first page, is this the way your mod works? in that case not really sticky eh? ;)
Quote from: kuklovod on December 19, 2005, 03:37:44 AM
I guess I see your point. It installs on the default theme, while Daze theme have custom versions of MessageIndex.template.php and Display.template.php. You will need to do manual replace on those files for your theme, open up install.xml from the mod package, and then look at the pieces of code starting with "search position="replace"", find them in the corresponding .template.php file, and replace with contents of the following <add> clause :) If that's too hard, post your .template.php and i'll do it for you :)
It would be very darling of you to do it for me :)
My messageindex+display template -> http://s65.yousendit.com/d.aspx?id=18SGUZOI0HWI00K4AKPUI3L58V
Just send them to:
[email protected] when you're done :D
mforum, I see what you mean. Sticky topics do not appear on second page of topics and further, right? I tried to do it but it would require a some database changes OR a major slowdown for additional very intensive query, which I both try to avoid to be as compatible as possible. The current topic select DB query is very strict and hardly fixable, I would have to pull in all of the topics since stickied ones are in the very beginning, so for a board with say 150 pages of topics it would be a killer. Still looking for a way to maybe modify the existing query somehow, but I really doubt it's possible.
Azumi, fixed files available here: http://s22.yousendit.com/d.aspx?id=2IN3ZXVWFSZID22HLQXV9WJEBJ
Save originals for backup, and please let me know if it worked allright or not.
It works great, thanks a lot! :D
Quote from: kuklovod on December 19, 2005, 03:39:44 PM
mforum, I see what you mean. Sticky topics do not appear on second page of topics and further, right? I tried to do it but it would require a some database changes OR a major slowdown for additional very intensive query, which I both try to avoid to be as compatible as possible. The current topic select DB query is very strict and hardly fixable, I would have to pull in all of the topics since stickied ones are in the very beginning, so for a board with say 150 pages of topics it would be a killer. Still looking for a way to maybe modify the existing query somehow, but I really doubt it's possible.
I am not much of a coder but i know what you mean :)
Another thing is that sticky`s dont have "Sticky" above them, but other topics have "non sticky topic" above them, it would be nice to fix that as it would be nicer in "view"...I also suggest to put a modofication for classic theme too, as it is a theme build in SMF... :)
Thanks a lot :)
You're right, adding "Sticky topics" too. I'd look how to modify classic theme as well, as I currently use $themedir for installation, I thought it installs the mod for the currently default theme.
Quote from: kuklovod on December 21, 2005, 05:14:35 AM
I'd look how to modify classic theme as well, as I currently use $themedir for installation, I thought it installs the mod for the currently default theme.
It should be but it doesnt... actually make changes at themes/deafault/.... but classics dir is themes/classic/.... :)
version 1.2 should install on both classic and default themes and use sticky/non-sticky wording for topic headers from language file :)
cool mod, anyway to make this so even the topic not set to sticky get the first post shown throughout the thread?
thanks
-snork
For now, you can manually modify two files: first, edit Sources/Display.php:
find "// always get post number 0 for sticky topics"
on next line after it remove "&& $context['is_sticky']"
And then, edit Themes/(yourtheme)/Display.template.php:
find "</td></tr>';"
on next line after it, remove "$context['is_sticky'] && "
This way, first post will be sticky for all topics. I will make it into a topic option someday, but it requires extra topic moderator options which is alot of changes with permissions etc :)
Quote from: kuklovod on December 21, 2005, 07:34:45 AM
version 1.2 should install on both classic and default themes and use sticky/non-sticky wording for topic headers from language file :)
Installs fine, works fine, uninstalls fine.......
Great work great support,, thanks a lot...!!! :)
I need some help. When i add this code in Display.template.php i receipt an error:
if($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;"> </td></tr>';
}
I use the 1.0.5 vercion of SMF and SMFGeneration theme.
which error do you get?
Somthing like that:
Quotetemplate pase error in Display.template.php
That's very strange, you probably modified something else too or inserted it in the wrong place (if there are more than one "</tr></td>';" in your file). If you attach your file, I can check.
This is mi Display.template.php:
<?php
// Version: 1.0; Display
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Show the anchor for the top and for the first message. If the first message is new, say so.
echo '
<a name="top"></a>
<a name="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a name="new"></a>' : '';
// Show the linktree as well as the "Who's Viewing" information.
echo '
<table width="100%" align="center" cellpadding="3" cellspacing="0">
<tr>
<td valign="bottom">', theme_linktree(), '</td>';
if (!empty($settings['display_who_viewing']))
{
echo '
<td align="right" class="smalltext">';
// Show just numbers...?
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
// Or show the actual people viewing the topic?
else
echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . (empty($context['view_num_hidden']) || $context['can_moderate_forum'] ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
// Now show how many guests are here too.
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '</td>';
}
echo '
</tr>
</table>';
// Is this topic also a poll?
if ($context['is_poll'])
{
echo '
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="120" height="30" align="left" valign="top"><img src="' . $settings['images_url'] . '/top_left.gif" width="120" height="30" alt=" " border="0" /></td>
<td width="100%" style="background-image:url(' . $settings['images_url'] . '/top.gif)" valign="middle" align="center">
<img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="top" />
<b>', $txt['smf43'], '</b>
</td>
<td width="120" height="30" align="right" valign="top"><img src="' . $settings['images_url'] . '/top_right.gif" width="120" height="30" alt=" " border="0" /></td>
</tr>
</table>
<table cellpadding="3" cellspacing="0" border="0" align="center" width="100%" class="tborder">
<tr class="windowbg">
<td width="5%" valign="top"><b>', $txt['smf21'], ':</b></td>
<td>
', $context['poll']['question'];
if (!empty($context['poll']['expire_time']))
echo '
(', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': ', $context['poll']['expire_time'], ')';
// Are they not allowed to vote but allowed to view the options?
if (!$context['allow_vote'])
{
echo '
<table>
<tr>
<td style="padding-top: 2ex;">
<table border="0" cellpadding="0" cellspacing="0">';
// Show each option with it's corresponding percentage bar.
foreach ($context['poll']['options'] as $option)
echo '
<tr>
<td style="padding-right: 2ex;">', $option['option'], '</td>', $context['allow_poll_view'] ? '
<td nowrap="nowrap">' . $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)</td>' : '', '
</tr>';
echo '
</table>
</td>
<td valign="bottom" style="padding-left: 15px;">';
// If they are allowed to revote - show them a link!
if ($context['allow_change_vote'])
echo '
<a href="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], ';sesc=', $context['session_id'], '">', $txt['poll_change_vote'], '</a><br />';
// If they're allowed to lock the poll, show a link!
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';
// If they're allowed to edit the poll... show a link!
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr>', $context['allow_poll_view'] ? '
<tr>
<td colspan="2"><b>' . $txt['smf24'] . ': ' . $context['poll']['total_votes'] . '</b></td>
</tr>' : '', '
</table><br />';
}
// They are allowed to vote! Go to it!
else
{
echo '
<form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" style="margin: 0px;">
<table>
<tr>
<td colspan="2">';
// Show a warning if they are allowed more than one option.
if ($context['poll']['allowed_warning'])
echo '
', $context['poll']['allowed_warning'], '
</td>
</tr><tr>
<td>';
// Show each option with it's button - a radio likely.
foreach ($context['poll']['options'] as $option)
echo '
', $option['vote_button'], ' ', $option['option'], '<br />';
echo '
</td>
<td valign="bottom" style="padding-left: 15px;">';
// Allowed to view the results? (without voting!)
if ($context['allow_poll_view'])
echo '
<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], ';viewResults">', $txt['smf29'], '</a><br />';
// Show a link for locking the poll as well...
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';
// Want to edit it? Click right here......
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr><tr>
<td colspan="2"><input type="submit" value="', $txt['smf23'], '" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
}
echo '
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="120" height="16" align="left" valign="top"><img src="' . $settings['images_url'] . '/bottom_left.gif" width="120" height="16" alt="" border="0" /></td>
<td width="100%" style="background-image:url(' . $settings['images_url'] . '/bottom.gif)" align="center" valign="middle"></td>
<td width="120" height="16" align="right" valign="top"><img src="' . $settings['images_url'] . '/bottom_right.gif" width="120" height="16" alt="" border="0" /></td>
</tr>
</table><br />';
}
// Show the page index... "Pages: [1]".
echo '
<table width="100%" align="center" cellpadding="0" cellspacing="1" border="0" class="bordercolor">
<tr><td height="10" class="catbg"></td></tr>
<tr>
<td align="left" class="windowbg2" width="100%">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td>
<b>', $txt[139], ':</b> ', $context['page_index'];
// Show a "go down" link?
if (!empty($modSettings['topbottomEnable']))
echo $context['menu_separator'], '<a href="#bot">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_down.gif" alt="' . $txt['topbottom5'] . '" border="0" align="top" />' : $txt['topbottom5'], '</a>';
echo '
</td>
<td align="right" style="font-size: smaller;">';
$buttonArray = array();
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
if ($context['can_mark_notify'])
$buttonArray[] = '<a href="' . $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/notify.gif" alt="' . $txt[131] . '" border="0" />' : $txt[131]) . '</a>';
// This is a special case; if they can see mark unread, put it at the top... otherwise show add poll.
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$buttonArray[] = '<a href="' . $scripturl . '?action=markasread;sa=topic;topic=' . $context['current_topic'] . '.' . $context['start'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markunread.gif" alt="' . $txt['mark_unread'] . '" border="0" />' : $txt['mark_unread']) . '</a>';
elseif ($context['can_add_poll'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;poll;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/addpoll.gif" alt="' . $txt['add_poll'] . '" border="0" />' : $txt['add_poll']) . '</a>';
if ($context['can_send_topic'])
$buttonArray[] = '<a href="' . $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/sendtopic.gif" alt="' . $txt[707] . '" border="0" />' : $txt[707]) . '</a>';
$buttonArray[] = '<a href="' . $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0" target="_blank">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/print.gif" alt="' . $txt[465] . '" border="0" />' : $txt[465]) . '</a>';
echo implode($context['menu_separator'], $buttonArray);
echo '</td>
</tr>
</table>
</td>
</tr>
<tr><td height="10" class="catbg"></td></tr>
</table>
<br />';
// Get all the messages...
while ($message = $context['get_message']())
{
echo '
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="120" height="30" align="left" valign="top"><img src="' . $settings['images_url'] . '/top_left.gif" width="120" height="30" alt=" " border="0" /></td>
<td width="100%" style="background-image:url(' . $settings['images_url'] . '/top.gif)" valign="middle" align="center">
<a href="', $message['href'], '"><img src="', $settings['images_url'], '/post/' . $message['icon'] . '.gif" alt="" border="0" /></a>
<b><a href="', $message['href'], '">', $message['subject'], '</a></b>
</td>
<td width="120" height="30" align="right" valign="top"><img src="' . $settings['images_url'] . '/top_right.gif" width="120" height="30" alt=" " border="0" /></td>
</tr>
</table>
<table border="0" class="bordercolor" cellpadding="0" align="center" cellspacing="1" width="100%">
<tr>
<td>';
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
echo '
<form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" name="quickModForm" style="margin: 0;">';
echo '
<table cellpadding="0" align="center" cellspacing="0" border="0" width="100%">';
echo '
<tr><td style="padding: 0px 0px 0 0px;">';
// Show the message anchor and a "new" anchor if this message is new.
if ($message['id'] != $context['first_message'])
echo '
<a name="msg', $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" align="center" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $message['member']['link'], '</b>
<div class="smalltext">';
// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br />';
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';
// Is karma display enabled? Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br />
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';
// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" align="middle" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />';
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
// This shows the popular messaging icons.
echo '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '';
// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';
// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';
// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
// Since we know this person is a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
}
}
// Otherwise, show the guest's email.
else
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
echo '
<br />', $message['member']['icq']['link'], '
', $message['member']['yim']['link'], '<br />';
// Done with the information about the poster... on to the post itself.
echo '
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td align="left" valign="middle">';
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<div class="smalltext">« <b>', !($message['id'] == $context['topic_first_message']) ? $txt[146] . ' #' . $message['counter'] : '', ' Posted ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
<td align="right" valign="bottom" height="20" nowrap="nowrap" style="font-size: smaller;">';
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="if (!currentSwap) doQuote(', $message['id'], '); else window.location.href = this.href; return false;">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/quote.gif" alt="' . $txt[145] . '" border="0" />' : $txt[145]), '</a>';
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/modify.gif" alt="' . $txt[66] . '" border="0" />' : $txt[17]), '</a>';
// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete.gif" alt="' . $txt[121] . '" border="0" />' : $txt[31]), '</a>';
// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/split.gif" alt="' . $txt['smf251'] . '" border="0" />' : $txt['smf251']), '</a>';
// Show a checkbox for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
echo '
<input type="checkbox" name="msgs[]" value="', $message['id'], '" class="check" />';
// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%;">', $message['body'], '</div>
</td>
</tr>';
// Now for the attachments, signature, ip logged, etc...
echo '
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td align="left" colspan="2" class="smalltext" width="100%">';
// Assuming there are attachments...
if (!empty($message['attachment']))
{
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%;">';
foreach ($message['attachment'] as $attachment)
{
if (isset($attachment['image']))
echo '
', $attachment['image'], '<br />';
echo '
<a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" /> ' . $attachment['name'] . '</a> (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['width'] . 'x' . $attachment['height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
}
echo '
</div>';
}
echo '
</td>
</tr><tr>
<td align="left" valign="bottom" class="smalltext">';
// Show "« Last Edit: Time by Person »" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
« <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> »';
echo '
</td>
<td align="right" valign="bottom" class="smalltext">';
// Maybe they want to report this post to the moderator(s)?
if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['rtm1'], '</a> ';
echo '
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />';
// Show the IP to this user for this post - because you can moderate?
if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
echo '
<a href="', $scripturl, '?action=trackip;searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
// Or, should we show it because this is you?
elseif ($message['can_see_ip'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';
// Okay, are you at least logged in? Then we can show something about why IPs are logged...
elseif (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt[511], '</a>';
// Otherwise, you see NOTHING!
else
echo '
', $txt[511];
echo '
</td>
</tr></table>';
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%; padding-bottom: 3px;" class="signature">', $message['member']['signature'], '</div>';
echo '
</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="120" height="16" align="left" valign="top"><img src="' . $settings['images_url'] . '/bottom_left.gif" width="120" height="16" alt="" border="0" /></td>
<td width="100%" style="background-image:url(' . $settings['images_url'] . '/bottom.gif)" align="center" valign="middle"></td>
<td width="120" height="16" align="right" valign="top"><img src="' . $settings['images_url'] . '/bottom_right.gif" width="120" height="16" alt="" border="0" /></td>
</tr>
</table><br />';
}
echo '
<a name="lastPost"></a>
<table width="100%" cellpadding="0" align="center" cellspacing="1" border="0" class="bordercolor">
<tr><td height="10" class="catbg"></td></tr>
<tr>
<td align="left" class="windowbg2" width="100%">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td>
<a name="bot"></a><b>', $txt[139], ':</b> ', $context['page_index'], ($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="right" style="font-size: smaller;">';
$buttonArray = array();
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
if ($context['can_mark_notify'])
$buttonArray[] = '<a href="' . $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/notify.gif" alt="' . $txt[131] . '" border="0" />' : $txt[131]) . '</a>';
// Another special case, similar to above but reversed. Show "add poll" unless they can't - then show unread here too.
if ($context['can_add_poll'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;poll;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/addpoll.gif" alt="' . $txt['add_poll'] . '" border="0" />' : $txt['add_poll']) . '</a>';
elseif ($context['user']['is_logged'] && $settings['show_mark_read'])
$buttonArray[] = '<a href="' . $scripturl . '?action=markasread;sa=topic;topic=' . $context['current_topic'] . '.' . $context['start'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markunread.gif" alt="' . $txt['mark_unread'] . '" border="0" />' : $txt['mark_unread']) . '</a>';
if ($context['can_send_topic'])
$buttonArray[] = '<a href="' . $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/sendtopic.gif" alt="' . $txt[707] . '" border="0" />' : $txt[707]) . '</a>';
$buttonArray[] = '<a href="' . $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0" target="_blank">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/print.gif" alt="' . $txt[465] . '" border="0" />' : $txt[465]) . '</a>';
echo implode($context['menu_separator'], $buttonArray);
echo '
</td>
</tr>
</table>
</td>
</tr>
<tr><td height="10" class="catbg"></td></tr>
</table>
<script language="JavaScript1.2" type="text/javascript"><!--';
if (!empty($options['display_quick_reply']))
echo '
var currentSwap = ', $options['display_quick_reply'] == 2 ? 'false' : 'true', ';
function swapOptions()
{
document.getElementById("quickReplyExpand").src = smf_images_url + "/" + (currentSwap ? "collapse.gif" : "expand.gif");
document.getElementById("quickReplyOptions").style.display = currentSwap ? "" : "none";
currentSwap = !currentSwap;
}
setTimeout("fetchSession();", 600000);
function fetchSession()
{
document.getElementById("fetchSessionTemp").src = "', $scripturl, '?action=jsoption;sesc=', $context['session_id'], ';" + (new Date().getTime());
setTimeout("fetchSession();", 600000);
}';
else
echo '
var currentSwap = true';
echo '
function doQuote(messageid)
{
if (currentSwap)
window.location.href = "', $scripturl, '?action=post;quote=" + messageid + ";topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '";
else
{
window.open("', $scripturl, '?action=quotefast;quote=" + messageid + ";sesc=', $context['session_id'], '", "quote", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,top=40,left=40,width=240,height=90,resizable=no;");
if (navigator.appName == "Microsoft Internet Explorer")
window.location.hash = "quickreply";
else
window.location.hash = "#quickreply";
}
}
// --></script>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>';
if ($settings['linktree_inline'])
echo '
<td valign="top" align="left">', theme_linktree(), '</td> ';
echo '
<td valign="top" align="right" class="smalltext"> <span class="nav"> ', $context['previous_next'], '</span></td>
</tr>
</table>
<div style="padding-top: 10px; padding-bottom: 4px;">', theme_show_mod_buttons(), '</div>';
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post'])
echo '
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
echo '
<div align="right" style="margin-bottom: 1ex;">
<form action="', $scripturl, '" method="get" name="jumptoForm">
<span class="smalltext">' . $txt[160] . ':</span>
<select name="jumpto" onchange="if (this.options[this.selectedIndex].value) window.location.href=\'', $scripturl, '\' + this.options[this.selectedIndex].value;">
<option value="">' . $txt[251] . ':</option>';
foreach ($context['jump_to'] as $category)
{
echo '
<option value="" disabled="disabled">-----------------------------</option>
<option value="#', $category['id'], '">', $category['name'], '</option>
<option value="" disabled="disabled">-----------------------------</option>';
foreach ($category['boards'] as $board)
echo '
<option value="?board=', $board['id'], '.0"', $board['is_current'] ? ' selected="selected"' : '', '> ' . str_repeat('==', $board['child_level']) . '=> ' . $board['name'] . '</option>';
}
echo '
</select>
<input type="button" value="', $txt[161], '" onclick="if (document.jumptoForm.jumpto.options[document.jumptoForm.jumpto.selectedIndex].value) window.location.href = \'', $scripturl, '\' + document.jumptoForm.jumpto.options[document.jumptoForm.jumpto.selectedIndex].value;" />
</form>
</div>
<br />';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
if ($context['show_spellchecking'])
echo '
<script language="JavaScript1.2" type="text/javascript" src="' . $settings['default_theme_url'] . '/spellcheck.js"></script>';
echo '
<a name="quickreply"></a>
<table border="0" cellspacing="1" cellpadding="3" class="bordercolor" width="100%" style="clear: both;">
<tr>
<td colspan="2" class="catbg"><a href="javascript:swapOptions();"><img src="', $settings['images_url'], '/', $options['display_quick_reply'] == 2 ? 'collapse' : 'expand', '.gif" alt="+" border="0" id="quickReplyExpand" /></a> <a href="javascript:swapOptions();">', $txt['quick_reply_1'], '</a></td>
</tr>
<tr id="quickReplyOptions"', $options['display_quick_reply'] == 2 ? '' : ' style="display: none"', '>
<td class="windowbg" width="25%" valign="top">', $txt['quick_reply_2'], $context['is_locked'] ? '<br /><br /><b>' . $txt['quick_reply_warning'] . '</b>' : '', '</td>
<td class="windowbg" width="75%" align="center">
<form action="', $scripturl, '?action=post2" method="post" name="postmodify" onsubmit="submitonce(this);" style="margin:0;">
<input type="hidden" name="topic" value="' . $context['current_topic'] . '" />
<input type="hidden" name="subject" value="' . $txt['response_prefix'] . $context['subject'] . '" />
<input type="hidden" name="icon" value="xx" />
<input type="hidden" name="notify" value="', $context['is_marked_notify'] || empty($options['auto_notify']) ? '0' : '1', '" />
<input type="hidden" name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '" />
<input type="hidden" name="num_replies" value="', $context['num_replies'], '" />
<textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea><br />
<input type="submit" name="post" value="' . $txt[105] . '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="2" />
<input type="submit" name="preview" value="' . $txt[507] . '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="4" />';
if ($context['show_spellchecking'])
echo '
<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\');" />';
echo '
<input type="hidden" name="sc" value="' . $context['session_id'] . '" />
<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
</form>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="120" height="16" align="left" valign="top"><img src="' . $settings['images_url'] . '/bottom_left.gif" width="120" height="16" alt="" border="0" /></td>
<td width="100%" style="background-image:url(' . $settings['images_url'] . '/bottom.gif)" align="center" valign="middle"></td>
<td width="120" height="16" align="right" valign="top"><img src="' . $settings['images_url'] . '/bottom_right.gif" width="120" height="16" alt="" border="0" /></td>
</tr>
</table>';
if ($context['show_spellchecking'])
echo '
<form name="spell_form" id="spell_form" method="post" target="spellWindow" action="', $scripturl, '?action=spellcheck"><input type="hidden" name="spell_formname" value="" /><input type="hidden" name="spell_fieldname" value="" /><input type="hidden" name="spellstring" value="" /></form>';
echo '
</div>';
}
echo '<img src="', $settings['images_url'], '/blank.gif" alt="" id="fetchSessionTemp" />';
}
function theme_show_mod_buttons()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
$moderationButtons = array();
if ($context['can_move'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_move.gif" alt="' . $txt[132] . '" border="0" />' : $txt[132]) . '</a>';
if ($context['can_delete'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . $txt[162] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_rem.gif" alt="' . $txt[63] . '" border="0" />' : $txt[63]) . '</a>';
if ($context['can_lock'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_lock.gif" alt="' . (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280']) . '" border="0" />' : (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280'])) . '</a>';
if ($context['can_sticky'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_sticky.gif" alt="' . (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278']) . '" border="0" />' : (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278'])) . '</a>';
if ($context['can_merge'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/merge.gif" alt="' . $txt['smf252'] . '" border="0" />' : $txt['smf252']) . '</a>';
if ($context['can_remove_poll'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . '&q
Somewhere close to 2/3rds of your file, there is this line:
</table><br />';
Add something like this after it:
if ($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo 'Add a separator';
}
As your template uses separate table for each post, you will have to come up with some separator between sticky and non-sticky posts yourself - just replace 'Add a separator' text above with any html (try to avoid single quotes in it); it could be as simlpe as '<hr />' or some table with gfx or anything else. I would write something but I can't test how it will look so you will have to do it yourself. Really, it's not possible to cover every existing theme, especially those which change generic "one row for one post" appearance of SMF.
Ok, i will try this. Thanks for the help ;)
Quote from: kuklovod on December 22, 2005, 11:07:35 AM
For now, you can manually modify two files: first, edit Sources/Display.php:
find "// always get post number 0 for sticky topics"
on next line after it remove "&& $context['is_sticky']"
And then, edit Themes/(yourtheme)/Display.template.php:
find "</td></tr>';"
on next line after it, remove "$context['is_sticky'] && "
This way, first post will be sticky for all topics. I will make it into a topic option someday, but it requires extra topic moderator options which is alot of changes with permissions etc :)
Excellent !!! 8)
But it's possible to add to "additional Option" the check : Sticky First Post ???
Hum I'm french, I hope you understand me ... :-[
hello :
when i used this MOD , i got the pages numbers Not working in the same topic , and the result is always the same , First page
i tried to post a new posts at the topic , but Not worked .
Can someone make this mod work with RC2, perhaps, or does it already?
Quote from: ExistenZ on January 04, 2006, 12:10:38 PM
Can someone make this mod work with RC2, perhaps, or does it already?
ya im looking too for RC2
thx
will be ported to RC2 in a day or two at most.
Can't get the RC2 version to work with the "Amber" theme, some help please? :)
Post the files again :)
I uploaded the index.template file here. :)
http://s21.yousendit.com/d.aspx?id=2GSITEFTZXXVS0EECF7LAVHZ2F
Nope, need MessageIndex.template.php for first post sticky and Display.template.php for sticky topic separator (if you need, since RC2 has color distinction of stickied topics).
Quote from: Tarek on January 01, 2006, 11:25:37 AM
hello :
when i used this MOD , i got the pages numbers Not working in the same topic , and the result is always the same , First page
i tried to post a new posts at the topic , but Not worked .
I get this problem also, , I removed the mod and everthing was fine as it should , then re-installed the mod and yes page numbers within stickys do
not work. I'm using a default template with RC2 1.1
Anyone find a fix to this yet?, as its a shame not having this wonderful mod running on my boards.
What exactly you mean by page numbers not working? They sure work fine for all forums I installed this on.
Can you send me a screenshot/link, since I can't figure out from your description what seems to be the problem. Forum link preferrable if something is really broken, to look at the code.
The page numbers that are in a sticky thread, i.e. if there is a big thread with 30 posts it may span over 3 pages, on the subject title is shows the number i.e This is a stick thread << 1 2 3 >> or down at the bottom of the page it will show Pages : 1 2 3 >>
Basically if I select page 2 or 3 it does nothing, just stays on page 1, this meaning that nobody is able to view page 2 or page 3.
hello,
I have installed this mod a few weeks ago and it installed successfully ie no errors and 'seems' to be working correctly...
BUT in the forum error log I get pages and pages of errors that say:
8: Undefined index: sticky_topics
File: /home/mysite/public_html/forum/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 160
and
8: Undefined index: sticky_topics
File: /home/mysite/public_html/forum/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 162
and
8: Undefined index: non_sticky_topics
File: /home/mysite/public_html/forum/Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 213
Do you know what is wrong and how to fix it please?
yes, you are not using english language? For all non-english installations you have to copy two lines from Themes/your_theme/languages/Modifications.english.php - to Modifications.your_language.php - the lines which define sticky and non_sticky strings.
No I am using the english language. I am english.
Can you check Themes/default/Modifications.english.php then, whether it exists and has sticky and non_sticky defined? You probably downloaded older version which did not have it, or your languagedir is not default.
It modifies/creates the $languagedir/Modifications.english.php and adds the following two lines to it:
$txt['non_sticky_topics'] = "Regular topics";
$txt['sticky_topics'] = "Sticky topics";
ah ok, I think I understand.
I will go check and report back :)
It works great, thanks a lot! =)
Quote from: kuklovod on March 28, 2006, 01:38:33 PM
Can you check Themes/default/Modifications.english.php then, whether it exists and has sticky and non_sticky defined? You probably downloaded older version which did not have it, or your languagedir is not default.
It modifies/creates the $languagedir/Modifications.english.php and adds the following two lines to it:
$txt['non_sticky_topics'] = "Regular topics";
$txt['sticky_topics'] = "Sticky topics";
can you please tell me where this should be in the file and where I should add it?
Thanks
Any place really :) Right on the line before the last ?> would do. This file should usually be empty or with just a few lines in it, it's where mods add new strings.
I installed this mod and it's working great!
Only one problem:
Not all of my boards have sticky topics. The boards that do not have sticky topics shows "Sticky Topics" at the top. It's kinda hard to explain.
For example: on a board with sticky topics, the topics are split into two groups "Sticky Topics" and "Regular Topics" wich is a great feature, and the reason I wanted to use this mod.
The problem is that on boards without sticky topics, the header says "Sticky Topics" instead of "Regular Topics" or not having a title at all.
Here's a link (http://community.wildextremes.tv/forum/index.php?board=6.0) to one of my boards with sticky topics.
Here's a link (http://community.wildextremes.tv/forum/index.php?board=1.0) to one of my boards with no sticky topics.
It makes it look like all of the topics are sticky on a board with no sticky topics.
How can I make it so that the boards with no sticky topics say "Regular Topics" or nothing at all?
bloodlust, you are totally right, I didn't catch this as I have stickies in all boards - bummer. Uploading versions 1.2.1 both for 1.0.7 and 1.1RC2 with this fixed, need to uninstall 1.2 before applying the fix. Thanks for the tip!
I have this problem too but I thought it was a problem with my theme and was trying to work out why it was like that lol
I tried to uninstall 1.2 but got the following errors :(
Uninstall Actions "Sticky First Post (extends sticky topic)":
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/Display.php Test successful
2. Execute Modification ./Themes/default/Display.template.php Test failed3. Execute Modification ./Themes/default/MessageIndex.template.php Test successful
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed5. Execute Modification ./Themes/classic/MessageIndex.template.php Test successful
6. Execute Modification ./Themes/classic/Display.template.php Test successful
strange, probably you modified something? Do the uninstall (ignore the warnings), after that:
In Modifications.english.php, remove two lines with "sticky" in them
In Display.template.php, find
if($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;"> </td></tr>';
}
(or similar code, in one place) and remove all three lines.
well i got the following (simple as it seems, but difficult to trace) problem.
I upload the 1.2.1 for the 1.0.7 smf in the packages folder and then i apply the mod. I have double and triple checked that all the files that have to be modified have permissions set correctly but whatever i do i cannot get past this screen. where it shows me that everything has to be succesful, but in a matter of fact it's not... :-\
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg218.imageshack.us%2Fimg218%2F9505%2Fmodforum5jr.th.jpg&hash=bb03e539fa3b3afa18f2e4d3ba283c36e6dad977) (http://img218.imageshack.us/my.php?image=modforum5jr.jpg)
any ideas?? :-[
there is a link right below this, something like "Proceed" or "Install", dont remember what it was in 1.0.x. Click it :)
yes i know. proceed. I am clicking it. and instead of getting on the next screen i get the same screen again... :-[
hm that really strange. worked without any troubles on my 1.0.7 test forum, just tried removing/installing it once more. no clue then :(
Great mod works fine in Rc2 :D
Has anyone made this work with Bloc's Helios theme.
I cant figure out where to put the code ??? in MessageIndex.template.php or Display.template.php
Thanks kuklovod!
Only problem is that I'm running SMF RC1, and get errors when I try to install the new version of the mod. Not really a big deal though as I will be upgrading to SMF RC2 at the end of this month. I'll just keep using 1.2 until then ;)
Over all a great mod! 8)
beemer, there are changes needed in both of the files. MessageIndex is to add separator between topics, Display to add first post on every page in multi-page topic. You can see needed changes in install.xml file.
Quote from: kuklovod on April 08, 2006, 02:11:07 PM
strange, probably you modified something? Do the uninstall (ignore the warnings), after that:
In Modifications.english.php, remove two lines with "sticky" in them
In Display.template.php, find
if($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;"> </td></tr>';
}
(or similar code, in one place) and remove all three lines.
I removed the text from modifications.english.php
BUT
I dont have any lines that resemble your code for the display.template.php ???
I searched the template and the only places where the word 'sticky' appears is here:
$mod_buttons = array(
'move' => array('test' => 'can_move', 'text' => 132, 'image' => 'admin_move.gif', 'lang' => true, 'url' => $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0'),
'delete' => array('test' => 'can_delete', 'text' => 63, 'image' => 'admin_rem.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt[162] . '\');"', 'url' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id']),
'lock' => array('test' => 'can_lock', 'text' => empty($context['is_locked']) ? 'smf279' : 'smf280', 'image' => 'admin_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_locked']) ? 'smf277' : 'smf278', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'merge' => array('test' => 'can_merge', 'text' => 'smf252', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),
Any suggestions?
I now have the mod uninstalled and the change made to modifications only ???
Try looking for this snippet then:
($message['id'] == $context['topic_first_message'])
It should be replaced with
empty($message['counter'])
All verbatim. If you don't find this one either, then all is fine and the mod is not there :) Verified by installing newer version, if installation preview says that all passed then you're fine.
ok all seems to be well, that code wasnt there either and I installed the new version 1.2.1
Just one question... are the words 'sticky' topic meant to be at the top of the boards? I thought it was meant to show an image with a pin in it or nothing at all? I just see the words :(
Yes but if you edit Modifications.english.php and replace the words which appear there for $txt['sticky_topics'] = "..." with an "<img src='...wherever_the_pin_is.gif' />" it will show the img :)
Quote from: kuklovod on April 09, 2006, 08:04:40 AM
beemer, there are changes needed in both of the files. MessageIndex is to add separator between topics, Display to add first post on every page in multi-page topic. You can see needed changes in install.xml file.
None of the code from the install file exists in the Helios files :(
Ah, I remember, it's a totally different theme with separate tables for each post etc. Would need designer work to make it look nice - if you have a designer who would come up with the needed HTML changes I tell yuo where to insert that.
Quote from: kuklovod on April 09, 2006, 02:37:33 PM
Yes but if you edit Modifications.english.php and replace the words which appear there for $txt['sticky_topics'] = "..." with an "<img src='...wherever_the_pin_is.gif' />" it will show the img :)
ah I see, that seems to have fixed it thanks but I notice that locked topics are not displayed either :( Do you know if there should be a padlock in the same space as this stickied image if the thread is both locked and sticky? ???
Locked or unlocked status is absolutely irrelevant to this mod. Locked status is separate thing, and it displays a lock icon when you open the locked topic.
Ok...I've upgraded to 1.1 RC2 and installed the mod, but i'm having a problem with it using the babylon theme. It does make the first post in sticky topics show on every page....but on the topic index, it doesn't seperate sticky topics from regular topics.
Can you give a link to your forum? I think it's a usual custom theme problem though - if your theme is neither default nor classic (IPB built-in themes), and is not just a simple mod but a full theme, you will have to look at the mod code, especially for the two files: Display.template.php and MessageIndex.template.php in your $Themedir, and do the needed changes in php yourself.
There is no way I can insert layout changes for all possible themes into SMF mod, and I also can't support them all. If it's a popular theme, attach your Display.template.php and MessageIndex.template.php to your post and I'll try to help you when I get time.
PS wait, I just figured out that you're speaking about the previous default, which is now called babylon. Will probably be able to help here, I'll post a babylon-fixer mod addon soon.
Thanks!
I went ahead and started using the new default theme. At first it was working, but now I'm having the same problem I had with babylon (old default).
Link to forum (http://community.wildextremes.tv/forum/index.php?board=4.0)
I would attach my display.template.php and my messageindex.template.php , but it looks like they've disabled attachments on this board. I can email them to you if you like.
Ok. 1.2.2 is up, did what I wanted some time ago and joined both installers together + added mod for babylon to RC2 installer. Uninstall 1.2.1, install 1.2.2, tell me if it works.
Your posts are separated allright, the topics aren't. Send me your MessageIndex.template.php after installing 1.2.2, I will see what the problem is. I PMed you my email.
That did it!
Thanks alot! :)
Hi I have a fresh 1.07 installation but the mod doesnt appear when uploaded and the button to install the mod is not showing.It isnt compatible with 1.07???
Hello
"Hi I have a fresh 1.07 installation but the mod doesnt appear when uploaded and the button to install the mod is not showing.It isnt compatible with 1.07???"
I have exactly the same problem. Have you a solution.
THank you for your help.
That is strange, I have 1.0.7 forum and it installs just fine on it. Have you tried installing it by downloading to your computer, then uploading from your computer to the package manager (not from package server)? If you tried it, what does it say after you hit "submit"? Should say "Package uploaded succesfully, install?" Then you click [Apply mod] and it gets installed :)
after I push the button to install I get..
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg122.imageshack.us%2Fimg122%2F2887%2Fstick5qm.jpg&hash=c920dc71774bb74a0269964d2748310d8fb95892) (http://imageshack.us)
Package Manager - Install Actions
Install Actions for archive stickyFirstPost_1.2.2.zip:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
I have 1.07 with just ad management installed and default theme.
the site is www.octech.gr
what could you recomend me to do?
I totally see the problem now. On my test forum, package manager installed older version when I clicked Apply mod, sorry for confusion.
Uploaded fixed version, sorry - that package manager format is not exactly very smart, have to list all supported versions :) It's still marked 1.2.2, but it works now for 1.0.5-1.0.7, too. Delete the previously uploaded package and install the new one, it would work.
finally it works!
thanks a lot!
I have another question,if someone upgrades lets say from 1.07 to 1.1 rc2
should you recommend uninstallation and reinstallation of the mod???
Yes, it's best to first remove the mod since 1.1 upgrade does not replace all of the files changed by the mod, only half, so it would need to be reinstalled anyway and might cause some warnings.
kuklovod
I have attempted and for the most part, succeeded, in modifying this for the Electron theme. My only problem thusfar is in the Sticky Post and Regular Post display. The Sticky Post heading above the sticky section is displayed in Black bold font and the Regular post heading is displayed in non-bold, white font. This makes it somewhat more difficult to read and it kind of sticks out (no pun intended).
This is what I added to the installer:
<file name="$boarddir/Themes/Electron/MessageIndex.template.php" error="skip">
<operation>
<search position="replace"><![CDATA[<td width="9%" colspan="2" class="windowbg3"></td>]]></search>
<add><![CDATA[<td width="9%" colspan="2" class="windowbg3">';
$first_topic = current($context['topics']);
echo $first_topic['is_sticky'] ? $txt['sticky_topics'] : '' ,'</td>]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
foreach ($context['topics'] as $topic)
{
]]></search>
<add><![CDATA[
if ($first_topic['is_sticky'] && !$topic['is_sticky']) {
$first_topic['is_sticky'] = 0;
// Display separator
echo '<tr class="titlebg"><td colspan="7"> ', $txt['non_sticky_topics'], '</td></tr>';
}
]]></add>
</operation>
</file>
<file name="$boarddir/Themes/Electron/Display.template.php" error="skip">
<operation>
<search position="replace"><![CDATA[empty($message['counter'])]]></search>
<add><![CDATA[($message['id'] == $context['topic_first_message'])]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
</td></tr>';]]></search>
<add><![CDATA[
if ($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;"> </td></tr>';
}
]]></add>
</operation>
</file>
<file name="$boarddir/Themes/Electron/languages/Modifications.english.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
$txt['non_sticky_topics'] = "Regular topics";
$txt['sticky_topics'] = "Sticky topics";
]]></add>
</operation>
How can I fix this? Any help is appreciated.
Thanks!
try this: in the replacement for the non_sticky part, modify
// Display separator
echo '<tr class="titlebg"><td colspan="7"> ', $txt['non_sticky_topics'], '</td></tr>';
into
// Display separator
echo '<tr class="titlebg"><td colspan="7" class="windowbg3"> ', $txt['non_sticky_topics'], '</td></tr>';
can't be sure it would help, as I have not seen Electron theme or it's css, but it seems to be the only possible cause.
PS Thanks for posting your changes btw, now I can add it into the package for possible Electron users if you show a forum on which it works :)
I found this map too late :( :( :(
I followed the "separated pinned topics & normal topics" in tips and trick already.
Quote from: kuklovod// Display separator
echo '<tr class="titlebg"><td colspan="7"> ', $txt['non_sticky_topics'], '</td></tr>';
into
// Display separator
echo '<tr class="titlebg"><td colspan="7" class="windowbg3"> ', $txt['non_sticky_topics'], '</td></tr>';
kuklovod
That fixed the weight of the font. I am assuming that the color is due to the original css of the theme. I haven't really looked into it because correcting the weight of the font made a huge difference in the look. If you want to see it in action, here is the test board I am using.
www.netoutpost.orgIn testing, everything appears to work. The installation, use and uninstall of the mod are all functioning as expected using the Electron theme.
Thanks for the work on such a useful mod. If I make any further modifications to it, I'll post them or PM you with the changes.
kuklovod
I have added 2 new themes to the installer. The two themes added are pN-pN for 1.1 RC2 and Amber for 1.1 RC2.
Here are the changes made.
<!------------------------------>
<!-- Modify pN pN 11RC2 -->
<!-- Added by whouse -->
<!------------------------------>
<file name="$boarddir/Themes/pnpn11rc2b/MessageIndex.template.php" error="skip">
<operation>
<search position="replace"><![CDATA[<td width="9%" colspan="2"></td>]]></search>
<add><![CDATA[<td width="9%" colspan="2" class="titlebg">';
$first_topic = current($context['topics']);
echo $first_topic['is_sticky'] ? $txt['sticky_topics'] : '' ,'</td>]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
foreach ($context['topics'] as $topic)
{
]]></search>
<add><![CDATA[
if ($first_topic['is_sticky'] && !$topic['is_sticky']) {
$first_topic['is_sticky'] = 0;
// Display separator
echo '<tr class="titlebg"><td colspan="7"> ', $txt['non_sticky_topics'], '</td></tr>';
}
]]></add>
</operation>
</file>
<file name="$boarddir/Themes/pnpn11rc2b/Display.template.php" error="skip">
<operation>
<search position="replace"><![CDATA[empty($message['counter'])]]></search>
<add><![CDATA[($message['id'] == $context['topic_first_message'])]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
</td></tr>';]]></search>
<add><![CDATA[
if ($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;"> </td></tr>';
}
]]></add>
</operation>
</file>
<file name="$boarddir/Themes/pnpn11rc2b/languages/Modifications.english.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
$txt['non_sticky_topics'] = "Regular topics";
$txt['sticky_topics'] = "Sticky topics";
]]></add>
</operation>
</file>
<!------------------------------>
<!-- Modify Amber Theme -->
<!-- Added by whouse -->
<!------------------------------>
<file name="$boarddir/Themes/amber11rc2/MessageIndex.template.php" error="skip">
<operation>
<search position="replace"><![CDATA[<td class="titlebg0" width="10%" colspan="2"></td>]]></search>
<add><![CDATA[<td class="titlebg0" width="10%" colspan="2">';
$first_topic = current($context['topics']);
echo $first_topic['is_sticky'] ? $txt['sticky_topics'] : '' ,'</td>]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
foreach ($context['topics'] as $topic)
{
]]></search>
<add><![CDATA[
if ($first_topic['is_sticky'] && !$topic['is_sticky']) {
$first_topic['is_sticky'] = 0;
// Display separator
echo '<tr class="titlebg"><td colspan="7"> ', $txt['non_sticky_topics'], '</td></tr>';
}
]]></add>
</operation>
</file>
<file name="$boarddir/Themes/amber11rc2/Display.template.php" error="skip">
<operation>
<search position="replace"><![CDATA[empty($message['counter'])]]></search>
<add><![CDATA[($message['id'] == $context['topic_first_message'])]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
</td></tr>';]]></search>
<add><![CDATA[
if ($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;"> </td></tr>';
}
]]></add>
</operation>
</file>
<file name="$boarddir/Themes/amber11rc2/languages/Modifications.english.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
$txt['non_sticky_topics'] = "Regular topics";
$txt['sticky_topics'] = "Sticky topics";
]]></add>
</operation>
</file>
You can see the mod in action at www.netoutpost.org and use the following for login:
user = tester
pass = tester1
I have the board set to allow users to change themes so you can cycle thru all the installed themes to see them work.
I'll keep posting here as I make changes. I can't help myself. I love this mod and want it to work for many of the themes that are popular and/or the themes that I like myself.
thanks for the work, I'll add the changes to the next build :)
however, i can't seem to change themes on your test forum.
Quote from: kuklovod on May 16, 2006, 02:14:23 AM
thanks for the work, I'll add the changes to the next build :)
however, i can't seem to change themes on your test forum.
Sorry about that. I had been playing with the permissions and messed them up. I fixed it AND tested it this time! :P Anyway, it should allow you to make the changes to the theme. Currently everything works except for the helios theme. I'm working on it now.
Thanks!
Hi
How i erase first post from next page when first post in sticky topics shows on each page
thanks very much
anybody me not help ??? ??? ???
you erase first post on next page by clicking delete near to that first post which would be a second post after you install that mod.
am I making sense? :)
ok i trying ;D
Quote from: kuklovod on May 12, 2006, 12:49:07 AM
try this: in the replacement for the non_sticky part, modify
// Display separator
echo '<tr class="titlebg"><td colspan="7"> ', $txt['non_sticky_topics'], '</td></tr>';
into
// Display separator
echo '<tr class="titlebg"><td colspan="7" class="windowbg3"> ', $txt['non_sticky_topics'], '</td></tr>';
can't be sure it would help, as I have not seen Electron theme or it's css, but it seems to be the only possible cause.
PS Thanks for posting your changes btw, now I can add it into the package for possible Electron users if you show a forum on which it works :)
would this above, also fix this problem that I have?
I have this dark black theme installed and when I have sticky topics in a board, there seems to be a background image missing.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi6.photobucket.com%2Falbums%2Fy219%2Flavenderbanners%2Fmissingbackgroundsticky.jpg&hash=411b29d2831d03b17204653f06da781d46f0694f)
see where the pale grey is on the end of the header, well it should be black like the one above it, but every time there is a board with sticky topics in it, it looks like this :-\
~thanks
Yes, that's the piece of code that should be changed, but a different template issue:
replace colspan="7" with colspan="8", as your template has one more column (I assume it's an admin template with an extra column for topic moderation). This should work for non-admin users as well, but please verify in IE/Mozilla just to be sure.
installed this mod in smf 1.0.7 classic theme
if a sticky topic has more than 1 pages all pages show first page.
Quote from: mforum on June 22, 2006, 12:16:37 PM
installed this mod in smf 1.0.7 classic theme
if a sticky topic has more than 1 pages all pages show first page.
you wanted to say all pages show first post? that's the idea.
I ve seen now that all pages show first post actually :) you are right !!
i don't need that ::) can i do something to avoid it?
well, that's what this mod does, so if you don't need it why would you want this mod? :)
anyway, if you want to disable this you will have to remove all edits for Display.php and Display.template.php (i.e., restore them to what they were before applying the mod). This way you will only have sticky topic separator code working.
Quote from: kuklovod on June 24, 2006, 06:07:10 PM
well, that's what this mod does, so if you don't need it why would you want this mod? :)
hmmm that`s a good question ::)
the truth is i haven`t read carefully what this mod does :-[
anyway i will follow your tip to have only a separator on sticky topic, thanks a lot for your help and sorry for my dam replies :(
Quote from: kuklovod on April 08, 2006, 02:11:07 PM
strange, probably you modified something? Do the uninstall (ignore the warnings), after that:
In Modifications.english.php, remove two lines with "sticky" in them
In Display.template.php, find
if($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;"> </td></tr>';
}
(or similar code, in one place) and remove all three lines.
Hi I have decided to uninstall this mod, but I am getting an error on the uninstall
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
Can you please tell me what I have to do to this file so that it uninstalls successfully?
It's a good mod, but I am trying to cut down on my mods.
thanks
Quote from: perplexed on July 14, 2006, 10:57:35 AM
Hi I have decided to uninstall this mod, but I am getting an error on the uninstall
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
Can you please tell me what I have to do to this file so that it uninstalls successfully?
It's a good mod, but I am trying to cut down on my mods.
thanks
Look in the package file, or whatever file it is that tells you what changes were added to modifications.english.php and remove them manually.
kuklovod told me to remove a couple of lines from modifications to fix something earlier in this thread but I wondered if it was anything to do with those two missing lines (about sticky topics) and whether I would need to put those back in?
Can you make it compatible eith 1.1 RC3?
I uset to have it in RC2..but now it doesnt work :(
Thanks for your time ;)
Yes, it would be really great, if anybody could make it compatible with SMF 1.0.8
I really loce this Mod! ;D
Greetz'n'Thanx,
Badelehrling
What about compatibly with RC3? now not work :-((
Quote from: perplexed on June 16, 2006, 09:32:06 AM
Quote from: kuklovod on May 12, 2006, 12:49:07 AM
try this: in the replacement for the non_sticky part, modify
// Display separator
echo '<tr class="titlebg"><td colspan="7"> ', $txt['non_sticky_topics'], '</td></tr>';
into
// Display separator
echo '<tr class="titlebg"><td colspan="7" class="windowbg3"> ', $txt['non_sticky_topics'], '</td></tr>';
can't be sure it would help, as I have not seen Electron theme or it's css, but it seems to be the only possible cause.
PS Thanks for posting your changes btw, now I can add it into the package for possible Electron users if you show a forum on which it works :)
would this above, also fix this problem that I have?
I have this dark black theme installed and when I have sticky topics in a board, there seems to be a background image missing.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi6.photobucket.com%2Falbums%2Fy219%2Flavenderbanners%2Fmissingbackgroundsticky.jpg&hash=411b29d2831d03b17204653f06da781d46f0694f)
see where the pale grey is on the end of the header, well it should be black like the one above it, but every time there is a board with sticky topics in it, it looks like this :-\
~thanks
I'm having a simliar problem only I'm actually two columns short. One up in the sticky first post section and two columns in the lower section. I didn't notice it until I installed the topic ratings mod and it added another column. It's currently running at eight columns.
I can change it but I can't find which file that I need to edit. I've looked in several including display, board index and others.
I'm running 1.1 RC2 with a few basic mods
14. Sticky First Post (extends sticky topic) 1.2
15. SMF 1.0.7 / 1.1 RC2 Update 1.0
16. VisualWarning 1.3
17. Create Topic on Report to Moderator 0.2
18. Users Online Today Mod 1.4.0 Beta 2
19. ImageShack12 1.0
20. Topic Ratings
Thanks for any help,
GG
Anyone tried making it work on RC3?
Yeah, I'd like to have it again, was working nice in RC2...
Still hoping it could be fixed to work with 1.0.8
Sorry for the two-week delay, still didn't install RC1.3. Will be done shortly!
As for 1.0.8, I have it installed and 1.2.2 sticky mod works just fine on it. What are the problems?
Hi, nice to see you back here :)
Quote from: kuklovod on September 15, 2006, 06:07:13 PM
As for 1.0.8, I have it installed and 1.2.2 sticky mod works just fine on it. What are the problems?
Well, if I want to install it on 1.0.8, it says
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Mybe you could fix this :)
Really love this mod ;)
I was so hoping this mod would become a feature in the 1.1 line.
Would be really great to have it for RC3 and Final (Gold) though ;)
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Oh, that's because it is listed as 1.0.7 only. This is easy to fix, just one number in the installer :) I want to chekc RC3 compatibility first, though.
If I change the
package-info.xml to:
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<id>kuklovod:extendedStickyTopic</id>
<name>Sticky First Post (extends sticky topic)</name>
<version>1.2.2</version>
<type>modification</type>
<install for="1.0.5, 1.0.6, 1.0.7, 1.0.8">
<readme>readme.txt</readme>
<modification>install.1.0.xml</modification>
</install>
<uninstall for="1.0.5, 1.0.6, 1.0.7, 1.0.8">
<modification reverse="true">install.1.0.xml</modification>
</uninstall>
<install for="1.1 RC2">
<readme>readme.txt</readme>
<modification>install.1.1.xml</modification>
</install>
<uninstall for="1.1 RC2">
<modification reverse="true">install.1.1.xml</modification>
</uninstall>
</package-info>
I get:
QuoteModifikation parse Error
??? :(
New version up, seems to be unaffected by 1.0.8/RC3 changes but please report if anything is not right.
Works perfect for my SMF 1.0.8!
Thank You!
I really hope this will become a standart feature in SMF 1.1 ;)
It's a really nice Mod!
I've just installed this mod but the first sticky topic do not be displayed on each page of multi-page topic. It is enable just for first page. I couldn't figure it out.. You can check it out on www.sevgivekultur.com
RC3 , Default theme..
Just installed on my forums and all seems to be good to go. 8) ;D
Hmm, i think i little bit misunderstood the behave of this mod :-) I've check your site out and it's as exactly same as mine. So, there is no problem, great mod, thanks Skipdawg ;-)
how to turn off the 1st post in every thread ?
Quote from: Vinspire on October 02, 2006, 08:10:22 AM
how to turn off the 1st post in every thread ?
What do you mean by "turn off"?
you want to turn off stickying first post in sticky topics?
Yeah...I think thats what he meant. Im finding how to do that too.
Turning off the sticky first post in sticky topics...
Quote from: kuklovod on October 02, 2006, 12:06:37 PM
you want to turn off stickying first post in sticky topics?
Yeap. :)
That's the idea behind this mod but it's your choice: to do this you have to restore $themedir/MessageIndex.template.php and $sourcedir/Display.php to what they were before applying the patch :)
kuklovod, thanks ... I've got it fixed ;D
How do i make this mods to work on helios theme ? :(
Quote from: Vinspire on October 04, 2006, 04:13:23 AM
How do i make this mods to work on helios theme ? :(
You would need to check what changes the mod does to which files, and then do those changes manually.
Quote from: haktanir2 on October 05, 2006, 02:03:16 AM
You would need to check what changes the mod does to which files, and then do those changes manually.
Which would be "$themedir/Display.template.php" file only if i am not mistaken as I don't want to sticky the first post in sticky topics. I've did the manual installation for few times but it didn't work out.
From my understand the code that i need to modified should be
search
empty($message['counter'])
and replace it with
($message['id'] == $context['topic_first_message'])
Then search for
</td></tr>';
and add in this code before it
if($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;"> </td></tr>';
}
Your theme may very well don't have the </td></tr> as the end of the topic block, so you'll have to find it yourself, and for this HTML knowledge is required...
Quote from: kuklovod on October 05, 2006, 05:07:48 AM
Your theme may very well don't have the </td></tr> as the end of the topic block, so you'll have to find it yourself, and for this HTML knowledge is required...
Thanks. I've got it fixed. Modified 3 files :)
1. Display.template.php
2. MessageIndex.template.php
3. Modifications.english.php
Does this mod work with the Global Announcement mod?
Quote from: TheBlackKnight on October 13, 2006, 11:20:35 PM
Does this mod work with the Global Announcement mod?
Think so ... I had a Global Announcement Mod & Sticky First Post (extends sticky topic) Mod in my board and both of them work flawlessly :)
I must have not installed them right Thanks.
Quote from: TheBlackKnight on October 14, 2006, 09:08:19 AM
I must have not installed them right Thanks.
Are you using custom theme ?
I am using Dilber MC.
Quote from: TheBlackKnight on October 14, 2006, 04:29:35 PM
I am using Dilber MC.
You need to manually install this mod if you are using custom theme :)
Thanks Vinspire, yes, custom themes would require manual modifications obviously as this mod modifies appearance of post and topic listings and it can't possibly know HTML layouts of all themes for SMF.
Quote from: kuklovod on October 03, 2006, 10:53:52 AM
That's the idea behind this mod but it's your choice: to do this you have to restore $themedir/MessageIndex.template.php and $sourcedir/Display.php to what they were before applying the patch :)
hi there , can u prehaps elaborate more on this ????
Do you mean i just need to replace the above mentioned files with the default 1s ?????
Yes that's right. Just replace with originals. It will warn you when uninstalling (since those two files will already be reversed) but just ignore the warning. It will be fine.
Will be testing for 1.1 final soon.
it dosen't work with 1.1 RC3
nor, it does very well
Looking forward for 1.1 final version, as it is not possible to install this mod on newest forum version. 8)
right I promise to do this very soon now (tm). also want to add option to disable topic separation for people who only need first post stickied, and to sticky first post in all topics. this would make the mod complete...
sounds good :)
I just hope it will be compatible with "topic solved" mod... then i got a real Q/A area :)
was it compatible in 1.1RC3? I never used "topic solved" mod
So is the Latest Version: 1.2.3 compatible with 1.1 final or not? Only says it is for 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.1 RC2, 1.1 RC3 ???
not yet tested
It doesn't even allow to install on 1.1
Is there a ETA on updating this MOD yet?
Ok updated the old package to work under 1.1-1.1.1, verified that it works. Now back to adding configuration options...
OK in the time I have been using SMF I had not seen this before and figured I'd ask before continuing. Not a error message but on some of the files it has Not installed or something like that. I removed it till I could fine out if that is a problem. ???
I have just tried to install this on 1.1 and this is the error I get:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
can anybody else confirm that it does not work on 1.1? Since it installed just fine for 1.1.1, I specified 1.1.* as supported version, maybe that is the problem? Adding 1.1 to the list, please redownload.
Skipdawg, it is not a problem, just means your installation does not have some files that the package is trying to modify, I think. It does change few themes including default and babylon, you might not have the babylon theme? It should not be a problem for sure.
Thanks for the reply. That is indeed the case after looking more closely. Those are files that are unrelated to my SMF setup. ;) ;D
It works now, thanks alot. ;)
Hi!
First of all, thx for this mod! :)
Im running an online rpg /pnp/ forum, and this mod is wery useful for us :) , to store the campaign settings (Player names, languages, maps, etc...) in the first post on every page. But we r using "Show most recent posts at the top." option...
With this option, the sticky first post is posted on every page but not at the top of the page, but on the bottom of it.
Any1 have an idea how can i fix this?
/PS Sorry for my spelling. :)/
Try reinstalling to version 1.3.1 - I think I fixed the problem though it involved some tweakery. Should now display stickied post for both display orders.
Thanks m8 I will try it. ;)
/If my host is back online... :angry:/
Im installed it and it is working, but i have a problem again... :/
It is putting the post in random order or it is puts the newest post to the bottom, if the topic isnt sticky. If I make it sticky, it is put the sticky post to the top /withot separator/, it also puts the newest post to the top. So it is chaotic now. :/
Here some links:
A sticky topic:
http://farm1.static.flickr.com/138/343993601_43816a7261_o.jpg
And a normal topic:
http://farm1.static.flickr.com/144/343993602_4f17a571e8_o.jpg
/watch the post dates/
As you can see, im using a custom theme. Maybe that is the problem.
I have install Sticky First Post but whenever member reads one topic, I see below error (on Admin Screen)
Quote8: Undefined variable: sticky_post
file name: /home/congcumi/public_html/cdcs/Sources/Display.php
in line: 779
source of 779 line:
QuoteORDER BY ID_MSG != " . $sticky_post . "ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);
What wrong?
Quote from: kuklovod on December 23, 2006, 12:06:51 PM
can anybody else confirm that it does not work on 1.1? Since it installed just fine for 1.1.1, I specified 1.1.* as supported version, maybe that is the problem? Adding 1.1 to the list, please redownload.
First off let me say this is one of my favorite mods. I've used it for a long time.
But after upgrading yesterday and reinstalling the latest version my board was a little scrambled. Inside of each post the first post was second and the rest were kind of moved around. There were some posts that were aligned by date correctly but for the most part they were scrambled.
running 1.1.1
with
1. View Single PM 1.1
2. Sticky First Post (extends sticky topic) 1.3.1
3. Users Online Today Mod 1.4.0
4. SMF Staff Page 1.5
5. MessagePreviewOnHover 1.4
SFP was the first mod I added. I didn't check deep enough to say that the problem started right away but when my other admin pointed out the problem this morning I removed SFP first and the problem went away.
Any ideas? Really want to get this one back in. Thanks.
ok, reverting version back to the previous one which worked. this needs a little more testing, sorry for the rushed release (but it works on my board, weird).
please remove 1.3.1 and install 1.3.0, it works for normal post order as it did before.
I also include 1.3.1 beta for testing of the new functionality, please let me know if everything works for you (I did check and it works for both orders, also there's no message about unknown $sticky_post variable, but to make sure I'll wait for a couple of success reports before switching to it).
Thanks. I'll go try 1.3.0. Sometimes it's the simple things in life that make it so much fun. ;)
Side note, on my test board it works fine. The test board is running the same mods plus some more but there are only a couple test threads and posts. I'll go add some more to see if there is an issue with size.
Quote from: kuklovod on January 03, 2007, 05:58:38 PM
ok, reverting version back to the previous one which worked. this needs a little more testing, sorry for the rushed release (but it works on my board, weird).
please remove 1.3.1 and install 1.3.0, it works for normal post order as it did before.
I also include 1.3.1 beta for testing of the new functionality, please let me know if everything works for you (I did check and it works for both orders, also there's no message about unknown $sticky_post variable, but to make sure I'll wait for a couple of success reports before switching to it).
Now its working! :) Thanks, kuklovod! :)
One simple question:
Is there a way to change the BG of the sticky ost? /Only this one post's BG/
Yes, in Display.template.php find the place where the row for a topic is being printed. There should be text "// Get all the messages..."
Now you have two options, either change the border around the first post, by changing
echo '
<tr><td style="padding: 1px 1px 0 1px;">';
two lines to:
// This is for the sticky first post only
if ($context['is_sticky'] && ($message['id']==$context['topic_first_message']))
echo '<tr bgcolor="black"><td style="padding: 1px 1px 1px 1px;">';
else
echo '<tr><td style="padding: 1px 1px 0 1px;">';
(change the color and padding to whatever you like), or do the same thing with the line a little below which sets the background of the post:
<tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';
You can just do a <tr><td style="whatever you want"> for a stickied post (use the same if from above).
I hope it will be usefull :0
Reinstalled for 1.1.1 ... works great ..
I used 1.3.0 not the 1.3.1 version.
Great mod, thanks!
Quote from: kuklovod on January 04, 2007, 11:41:41 AM
Yes, in Display.template.php find the place where the row for a topic is being printed. There should be text "// Get all the messages..."
Now you have two options, either change the border around the first post, by changing
echo '
<tr><td style="padding: 1px 1px 0 1px;">';
two lines to:
// This is for the sticky first post only
if ($context['is_sticky'] && ($message['id']==$context['topic_first_message']))
echo '<tr bgcolor="black"><td style="padding: 1px 1px 1px 1px;">';
else
echo '<tr><td style="padding: 1px 1px 0 1px;">';
(change the color and padding to whatever you like), or do the same thing with the line a little below which sets the background of the post:
<tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';
You can just do a <tr><td style="whatever you want"> for a stickied post (use the same if from above).
I hope it will be usefull :0
Cool, thx. :)
This is my favourite mod, after TinyPortal. :)
Could this error be caused by the sticky mod?
QuoteFile: /home/vine/public_html/Sources/MessageIndex.php
Line: 457
That's the message I get when I try to view my board for the admins and mods. The rest of the mod works fine.
I also get this other error in the forum error log at exactly the same time
Quote2: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Unable to save result set
File: /home/vine/public_html/Sources/Subs.php
Line: 321
Running the following mods
1. View Single PM 1.1
2. Users Online Today Mod 1.4.0
3. Sticky First Post (extends sticky topic) 1.3.0
4. Thank You Mod 1.0.3
5. SMF Staff Page 1.5
6. User Email System
On a previous note, here are the errors the board was getting when running SFP 1.3.1
Quote8: Undefined variable: sticky_post
File: /home/vine/public_html/Sources/Display.php
Line: 730
And the others were just like it but lines 58 and 59. Hope that helps.
I did try to upload the messageindex file again, several times including a back up version but nothing is working which makes me think something else is interfering with it.
What is the actual error? SFP does not modify Subs.php so second error has nothing to do with it. Line 457 in MessageIndex is a topic select query, also its not modified by SFP, so it should be some other mod. As for sticky_post warnings, they are from a previous, broken version. I believe the current 1.3.1beta would never produce this warning, let me know if it isn't so.
Okay, thanks. I'll try and run it down. Turns out it well may have been some server error on the host side.
And since installing 1.3.0 I do not get any of the sticky errors.
Sticky errors? lol
Anyone running this on 1.1.2?
yes, I am. works fine ;)
cool that's good to know kuklovod :)
It does not work in my forum SMF 1.1.2.
can you elaborate?
Hello, I attach the 2 files: Display.php and the Display.Template.php of my theme CLASSIC. The modifications to the Messageindex.template.php I do not need it.
This code:
if($context['is_sticky'] && ($message['id']==$context['topic_first_message'])) {
echo '<tr><td class="titlebg" style="padding: 3px 0px;"> </td></tr>';
}
I have not put it in the Display.Template.php file because it does not work to me.
It tell me that it is what this badly in those 2 files because apparently all this good.
Thanks for the interest to help me.
hello...thank you for providing the most wanted mod :)..its very nice
however..I've install ig goodly..but something weird appear when i'm in themes & layout and current themes section...i'm not good with coding as am a new user..it makes me feeling dizzy...
this code appear at the top..
/ Begin stickyFirstPost entries $txt['non_sticky_topics'] = "Regular topics"; $txt['sticky_topics'] = "Sticky topics"; // End stickyFirstPost entries
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg250.imageshack.us%2Fimg250%2F1918%2Fscreenhunter1nk0.th.png&hash=db5017f18b6dba8545d2c4eb010f09cff0ea833b) (http://img250.imageshack.us/my.php?image=screenhunter1nk0.png)
thank you for ur help in advance..
-ME-
These look like errors from your modification.english.php file. Go into that file and make sure the
?>
Is right at the end of the file on it's own line.
hello..
thank you..i tried to do like how u have suggest but i've faced error but then when i re-install the language setting.english php file..everything seems to be fine..
anyway..i appreciate ur reply very much..;)
Quote from: URPG on February 13, 2007, 05:56:37 AM
Sticky errors? lol
Anyone running this on 1.1.2?
Just installed it on my heavily modded 1.1.2 and it installed perfectly and works great!
Nice mod! Thanks!
Working 95% in my 1.1.2 install(100% if the issue i have is unrelated)
basicly, the 'normal topics' thing isnt extending all the way across.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmembers.iinet.com.au%2F%7Evifa01%2Fforum2.gif&hash=dc965d3afb0c6ca142b63732de7cd80ba7a8ba34)
tensop, it's a known thing. it shows this way for moderators only (users, who don't have quick mod column, would see it allright).
anyway, if you want to fix this, find the line "// Display separator" in MessageIndex.template.php and after it, where it says colspan="7"
, replace with colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"
I have added the fix so it'll appear in the next version.
How do I take out the 1st post in every page on sticky topic ?
Which code should I remove from which file or there is a setting option to it ?
take out?
Quote from: kuklovod on March 20, 2007, 03:01:03 AM
take out?
Which files and which codes plz ? Thank in advance :)
For those that want to do this.
Quote from: Vinspire on March 19, 2007, 11:09:11 PM
How do I take out the 1st post in every page on sticky topic ?
Which code should I remove from which file or there is a setting option to it ?
Open ur Display.php file
Look for
// Get each post and poster in this topic.
Remove this code
// Get each post and poster in this topic.
]]></search>
<add><![CDATA[
$messages = array();
$posters = array();
$sticky_post = "";
// always get post number 0 for sticky topics
if ((($start > 0) || !($ascending)) && $context['is_sticky']) {
$request = db_query("
SELECT ID_MSG, ID_MEMBER
FROM {$db_prefix}messages
WHERE ID_TOPIC = $topic
ORDER BY ID_MSG LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($request);
if (!empty($row['ID_MEMBER']))
$posters[] = $row['ID_MEMBER'];
$sticky_post = $row['ID_MSG'] . ", ";
mysql_free_result($request);
}
// now fetch the rest of the posts
does anyone have a picture of what this looks like? I went through the pages, couldnt find anything.. but honestly started skimming fast after about page 5.
Thanks,
Nate
Hmm, are there any scripts around that do the display first post at top of page thing? it would be a useful option for certain sections of my forum
Minor update with fixed moderator's display and 1.1.2 support declared is uploaded. Try this if something didn't work on your 1.1.2...
It doesn't appear to work with the Arcane Magic theme. I'm on SMF 1.1.2. I'm afraid also that not only do i have not knowledge of PHP but for some reason I can't get at my folders via FTP as my comp blocks FTP working for some reason. :(
Quote from: Marcus Orentius on May 12, 2007, 09:43:23 AM
It doesn't appear to work with the Arcane Magic theme. I'm on SMF 1.1.2. I'm afraid also that not only do i have not knowledge of PHP but for some reason I can't get at my folders via FTP as my comp blocks FTP working for some reason. :(
Most mods only install into the default theme... If you can't use ftp then I'm at a loss to know how you'll manage to do much about it as you need to do a manual installation into the files of any custom theme to use these mods. Please see if it is working in the default theme and consider only using the default theme unless you can get your ftp issues resolved.
I've got FTP working now, just a case of changing the settings for the router firewall. Anyway, now it's working, I'm ready to go and make it work. ;)
Quote from: Vinspire on March 19, 2007, 11:09:11 PM
How do I take out the 1st post in every page on sticky topic ?
Which code should I remove from which file or there is a setting option to it ?
Quote from: Vinspire on March 28, 2007, 03:18:47 AM
For those that want to do this.
Quote from: Vinspire on March 19, 2007, 11:09:11 PM
How do I take out the 1st post in every page on sticky topic ?
Which code should I remove from which file or there is a setting option to it ?
Open ur Display.php file
Look for
// Get each post and poster in this topic.
Remove this code
// Get each post and poster in this topic.
]]></search>
<add><![CDATA[
$messages = array();
$posters = array();
$sticky_post = "";
// always get post number 0 for sticky topics
if ((($start > 0) || !($ascending)) && $context['is_sticky']) {
$request = db_query("
SELECT ID_MSG, ID_MEMBER
FROM {$db_prefix}messages
WHERE ID_TOPIC = $topic
ORDER BY ID_MSG LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($request);
if (!empty($row['ID_MEMBER']))
$posters[] = $row['ID_MEMBER'];
$sticky_post = $row['ID_MSG'] . ", ";
mysql_free_result($request);
}
// now fetch the rest of the posts
I was trying to do this. what she/he means is to take out the 1st post(in the sticky topic) on every single page.
I used your sugegstion and it worked, but now I get tons of errors in my error Log, due to the code i deleted...
should i be concerned? = /
Yes. First, you should only remove the code between "// always get post number 0" and "// now fetch the rest of the posts" comments.
Also, I think you should remove the code which displays the first post on every page, but it may work as is even though the post is not retrieved from the database.
yeah that took care of alot of the erros, but now I found out im getting more, also related to the sticky topics, it seems that Im getting problems on messageindex.template.php
im getting this
8: Undefined index: sticky_topics
File: ........./forum/Themes/green/MessageIndex.template.php (eval?)
Line: 135
and
8: Undefined index: non_sticky_topics
File:......./forum/Themes/green/MessageIndex.template.php (eval?)
Line: 168
This is line 135 : echo $first_topic['is_sticky'] ? $txt['sticky_topics'] : '' ,'</td>
line 168: echo '<tr class="titlebg"><td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"> ', $txt['non_sticky_topics'], '</td></tr>';
Anyone able to use this mod on DilberMC theme? I have tried to install manually but some files do not exist in the dilbermc, ie : Display.template.php, Modifications.english.php
Anyone got it work in 1.1.3? Please upload it how, im on 1.1.3 with that version and doesnt work...
I couldnt find it this was asked before. But questions:
#1 - Would it be possible to set any post as sticky and not nessasarily the first post?
#2 - Is it possible to only make the post sticky and not the entire topic?
I am using smf 1.1.2 http://www.ocmoto.com
Thank you for the help and this is a great mod!!!
shaiss, no unfortunately, this was done as a sticky topic extension on purpose (using logic that only stickied, long-running topics need to have first post displayed on every page). I can see that there are cases when you would need #2, but I can't see why a feature #1 would be needed for anyone - it would be wildly confusing for the forum users, don't you think?
assasin, what *exactly* does not work for you on 1.1.3? it works just fine for me.
Quote from: kuklovod on July 31, 2007, 04:34:50 AM
shaiss, no unfortunately, this was done as a sticky topic extension on purpose (using logic that only stickied, long-running topics need to have first post displayed on every page). I can see that there are cases when you would need #2, but I can't see why a feature #1 would be needed for anyone - it would be wildly confusing for the forum users, don't you think?
this is a good example of why I think you should be able to stick any post in the thread:
http://www.ocmoto.com/index.php?topic=1170.msg16392#new
notice my post with the map has all the details, so this is the one that should always be on top of every page.
I dont think it would get to confusing, maybe on the right side of the post next to the "quote" button there can be a "sticky this post button" for the admins/mods to use.
Just a thought, but if you could do it that would be really NICE!
Thank you!
That is doable but definitely a much more intrusive change since it would require writing, for each topic, a new column in database, with the id of the post to "sticky". And I don't want to get that involved (compatibility across versions, breaking user databases on install/uninstall, yadda yadda :) ).
I, on my forum, solve the problem by editing first post with the information which should be displayed across forum's 50-page topics :)
PS Nice forums!
Hello...
I read a few posts back that you could make this particular mod work on different themes if we would send you the two files
QuoteMessageIndex.template.php for first post sticky and Display.template.php for sticky topic separator
we currently use 1.1.3
if this information is still correct, please let me know and I will get those to you, however you would like them
thx a million
Sorry I'm now out of time to support different themes but it should be easy, just find where the html for separators is generated and insert the needed code from the modification.
Hi Im getting an error when installing through package manager...
/Themes/default/languages/Modifications.english.php Test failed
can anyone help?
Thanks in advance
Nat
probably some other mod has added text to this file, you can simply ignore this warning and then edit the Modifications.english.php by hand adding the text from the modification:
// Begin stickyFirstPost entries
$txt['non_sticky_topics'] = "Regular topics";
$txt['sticky_topics'] = "Sticky topics";
// End stickyFirstPost entries
(this should go right before the last line which should only contain "?>")
Quote from: locomotion182 on June 08, 2007, 10:15:09 AM
yeah that took care of alot of the erros, but now I found out im getting more, also related to the sticky topics, it seems that Im getting problems on messageindex.template.php
im getting this
8: Undefined index: sticky_topics
File: ........./forum/Themes/green/MessageIndex.template.php (eval?)
Line: 135
and
8: Undefined index: non_sticky_topics
File:......./forum/Themes/green/MessageIndex.template.php (eval?)
Line: 168
This is line 135 : echo $first_topic['is_sticky'] ? $txt['sticky_topics'] : '' ,'</td>
line 168: echo '<tr class="titlebg"><td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"> ', $txt['non_sticky_topics'], '</td></tr>';
Hi
ThemesTHEMESlanguages
Themesdefaultlanguages
Modifications.english.php
end add>
$txt['sticky_topics'] = 'Sticky Topic';
$txt['non_sticky_topics'] = 'Regular topics';
i got an error in Display.php (i uploaded it for anyone who could help to see it) !
i use smf 1.1.3/tp 0.9.8 ! any ideas ?
thnx !
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Thanks mod works wonderfully 8)
Quote from: TrueSatan on September 07, 2007, 12:28:57 PM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
thnx ... again !
Quote from: Alpay on August 31, 2007, 01:53:48 PM
Quote from: locomotion182 on June 08, 2007, 10:15:09 AM
yeah that took care of alot of the erros, but now I found out im getting more, also related to the sticky topics, it seems that Im getting problems on messageindex.template.php
im getting this
8: Undefined index: sticky_topics
File: ........./forum/Themes/green/MessageIndex.template.php (eval?)
Line: 135
and
8: Undefined index: non_sticky_topics
File:......./forum/Themes/green/MessageIndex.template.php (eval?)
Line: 168
This is line 135 : echo $first_topic['is_sticky'] ? $txt['sticky_topics'] : '' ,'</td>
line 168: echo '<tr class="titlebg"><td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"> ', $txt['non_sticky_topics'], '</td></tr>';
Hi
ThemesTHEMESlanguages
Themesdefaultlanguages
Modifications.english.php
end add>
$txt['sticky_topics'] = 'Sticky Topic';
$txt['non_sticky_topics'] = 'Regular topics';
thanks A LOT
=)
8: Undefined index: sticky_topics
File: /home/jade/public_html/forums/Themes/ONTOPIC/MessageIndex.template.php
Line: 157
and
8: Undefined index: non_sticky_topics
File: /home/jade/public_html/forums/Themes/ONTOPIC/MessageIndex.template.php
Line: 208
tried the above, no help....
it happens in all the themes, heres the lines 207, 208, and 209:
// Display separator
echo '<tr class="titlebg"><td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"> ', $txt['non_sticky_topics'], '</td></tr>';
}
and lines 156 and 157:
$first_topic = current($context['topics']);
echo $first_topic['is_sticky'] ? $txt['sticky_topics'] : '' ,'</td>
i tried to parse the mod to check if there was something missing, but it wont parse at all :( so i went and read it myself...i think everythings in it okay...but i dunno
umm...bump :P
this is spamming my log and driving me nuts. i wont turn the log off :P so please help me :(
i have the correct strings. it should work :(
Quote from: Natz on August 23, 2007, 03:14:46 AM
Hi Im getting an error when installing through package manager...
/Themes/default/languages/Modifications.english.php Test failed
can anyone help?
Thanks in advance
Nat
I'm getting this error when trying to UNinstall. Any ideas on how to solve this?
Cheers
If you have multiple sticky posts, eg 10 and there's one you want to be at the top, is there a way to make a certain sticky always appear at the top so that it will remain there no matter if new stickys are added?
Would that be a code modification or can it be done through SQL?
Hello kuklovod,
Thank you for providing this mod.
I noticed, if I had this mod installed and I was doing some topic merging, there was some weird behavior with the posts. It would put an old post on top (in the most recent post position) of the new topic (the merged topic) instead of listing it in chronological order. I uninstalled the mod and everything's back to normal. Obviously I don't want to have to uninstall and reinstall the mod every time I want to merge topics so I'll probably just have to leave it uninstalled, but I wanted to let you know of the issue I found.
Cheers.
Hi!
I have installed this mod and it works fine but only now i have see that first post will be displayed on every page:
http://darkwolf.altervista.org/forum/index.php?topic=21.0
and
http://darkwolf.altervista.org/forum/index.php?topic=21.15
can i disable this "feature"?
I want use this mod but i don't wont (if is possible) first post in every pages!
Thanks in advance, regards DarkWolf!
PS sorry for my bad english :-[
as per mod info, it's kinda a feature of the mod
Quote from: kuklovod on December 16, 2005, 01:21:28 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=235)
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.
Yes you're reason!
But now i have test to uninstal and i receive some error of different nature (probably caused of other mod), maybe i can test to uninstal manually! ;)
Quote from: kuklovod on June 16, 2006, 12:35:41 PM
Yes, that's the piece of code that should be changed, but a different template issue:
replace colspan="7" with colspan="8", as your template has one more column (I assume it's an admin template with an extra column for topic moderation). This should work for non-admin users as well, but please verify in IE/Mozilla just to be sure.
Hello kuklovod
Just to let you know that I am now using Topic Ratings mod which adds an extra column (another one!) to the message index, so I had to change the code in MessageIndex.template.php from
// Display separator
echo '<tr class="titlebg"><td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"> ', $txt['non_sticky_topics'], '</td></tr>';
to '9' and '8' to cater for the new additional column
FYI in case anyone else has the same problem.
What bothers me is that you can't choose this option for seperate threads, but only by stickying a thread, and furthermore making it work like this for all stickied threads. I'd much rather be able to have this as an extra option when posting a thread; the same way you can choose whether you want to close it, sticky it or announce it you could also choose to page-sticky it.
Why I can't see the modifications in the package parser?
Because I want to change this mod a bit for myself.
Alundra, sorry for the very late reply, the only reason for this is that you don't have sticky_topics in Modifications.<your_language>.php, there's no other possible reason.
Darkness, you don't see what? You can sure download the mod zip file and edit it as you wish then install it manually.
Sadr, yes, but this would be too intrusive - would need a new graphic button for every theme, new options in configuration, and so on. I want to keep it as simple as possible.
perplexed, thanks for the tip, glad that someone finds his way around :)
forumguy, there is a lot of topic merging going on on the forum where this mod was originally created for, and no such problems. Can you elaborate, what you think is the problem? When merging any two topics new topic (if it's sticky) will have the first post (oldest of two topics) become the sticky one. That's I think is just how SMF works when merging - all posts from the two threads are date-sorted in the new thread.
no probs, kuklovod, I'd just got used to not having to edit it for the quick mod column and now I have to do it again for the topic ratings lol
Does it work on SMF 1.1.4 ? Thanks.
yes it does, I use it on 1.1.4 no probs
Will you be modding this to work on SMF 2.0 Beta 3?
Is there any way for me to turn "OFF" the 1st post in every pages for sticky topic? Thanks.
Is there a way to make sticky posts not only for "sticky" topics but also for "normal" topics? Thank you.
I don't know the variables for a normal post, but conceivably you could replace $context['is_sticky'], $sticky_post, and $sticky_sort with the proper equivalents for normal posts. That would be on the Display.template.php and Display.php page.
And I would like to inquire as well if this mod is on the to-do list for getting an upgrade to 2.0. Doesn't look like it'd be too difficult to do, IMO, a few queries and it looks like it'd be done.
Hello Kuklovod,
At first it looks to me like a great mod, i have installed the mod and on de default theme is looks great.
The problem that i have is the same problem that others members have, i tried a few days to solve it but is will not work on my theme and gives a error on the message index template in line 1526/1535
I have tried many options but it stil don't work.
My theme is DilberMC and my SMF version 1.1.4
My origanel display and message index template is here:
http://download.yousendit.com/D9BC0CE1316D7F42
Would you be soo kind to look for the problem?
Sorry formy poor englisch i am Dutch
Thanks a lot
Harry
Quote from: marazmus on April 08, 2008, 05:21:07 AM
Is there a way to make sticky posts not only for "sticky" topics but also for "normal" topics? Thank you.
Will it work on a custom theme if we aren't using the default theme. I want it to work but not sure if it will.
Is it possible to make that first post in every topic is sticky and not just in sticky topics?
Quote from: marylina on April 24, 2008, 04:00:06 PM
Quote from: marazmus on April 08, 2008, 05:21:07 AM
Is there a way to make sticky posts not only for "sticky" topics but also for "normal" topics? Thank you.
Will it work on a custom theme if we aren't using the default theme. I want it to work but not sure if it will.
you will have to edit your theme manually to make it work
Quote from: W. Riker on April 28, 2008, 08:17:32 PM
Is it possible to make that first post in every topic is sticky and not just in sticky topics?
this mod makes the first post in sticky topics appear at the top of every page of the topic.
If you wanted all your topics to do this you could make them all sticky but that would defeat the purpose of having the sticky (important) topics as that would make all your topics the same
Quote from: quiteperplexed on April 29, 2008, 04:38:12 AM
this mod makes the first post in sticky topics appear at the top of every page of the topic.
If you wanted all your topics to do this you could make them all sticky but that would defeat the purpose of having the sticky (important) topics as that would make all your topics the same
Sticky topics are always on the top in boards (that is important for me)...
But it would be great if the first post could appear at the top of every page in all topics. ;)
Will this be modified to work with SMF 2.0?
Thanks for a good an useful mod. It works well on my 1.1.4 default theme.
suggestion for future enhancement, if possible; add option to change bg color of sticky post listing.
Have anyone tried to run it on 2.0 beta 3 ?
Quote from: kuklovod on December 22, 2005, 11:07:35 AM
For now, you can manually modify two files: first, edit Sources/Display.php:
find "// always get post number 0 for sticky topics"
on next line after it remove "&& $context['is_sticky']"
And then, edit Themes/(yourtheme)default/Display.template.php:
find "</td></tr>';"
on next line after it, remove "$context['is_sticky'] && "
This way, first post will be sticky for all topics. I will make it into a topic option someday, but it requires extra topic moderator options which is alot of changes with permissions etc :)
Works for me. Thanks
Works line a charm on SMF 1.1.5 and TP 1.05 Beta1 ;D
If you have a mod which adds an extra column on the normal topic list this will leave again the last part grayish. I have made a small modification on Sticky First Post (extends sticky topic) with removes this grayish part as well...
I have attached it to this post. Works with Default theme and the Green theme
For example of live site check http://www.lum-chan.com/
Hope this helps a few of us with more than 8 columns (this small update gives 9 columns)
Enjoy!
thanks for a confirmation that it works with 1.1.5!
Anyone can confirm if it work with SMF 2.0 Beta 3.1 Public?
I`m using SMF 1.1.5 and template camo.
I just went to admin -> packages
and installed this mod.
Now sticky and normal topics have difference between them, except on few sections
if you didnt understand it, this is:
difference - http://www.imagesforme.com/show.php/114578_1.JPG
no difference - http://www.imagesforme.com/show.php/114579_2.JPG
...on ftp, in directory: /Themes/camo/
these are this directory and files
directory: images, languages (i have croatian as my first language)
files: index.php, index.template.php, settings.template.php, style.css and theme_info.xml
I modify it to the style that I would like.
screenshot:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg510.imageshack.us%2Fimg510%2F647%2Fscreenshotap2.jpg&hash=982a24dc62e09c59f8fb52fda78b6ca2732b6347)
If you like it,you can dowload from attactments.
P.S. That is only foy Default theme and I add chinese-traditional-utf8 language.
X-Plosiv, there's totally nothing that can make different forum sections to behave differently, unless two sections of your forum use different themes (maybe copies?) - please check this, seems that one of the themes was not modified.
knarf, I don't see what you had changed but thanks for sharing anyway!
Quote from: kuklovod on September 01, 2008, 12:09:37 PM
knarf, I don't see what you had changed but thanks for sharing anyway!
I just fix the style as follow:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg182.imageshack.us%2Fimg182%2F4910%2Fsc1uw3.png&hash=b00bc3fd72981acf1bf6d3125ade3ee8e90ff625)
change to:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg161.imageshack.us%2Fimg161%2F7026%2Fscreenshotap2ba1.jpg&hash=e149efc441d1d5c22970176a7cf0ad38c59189ed)
I see, that does look better indeed. I'll include it in the next update if you don't mind.
Quote from: kuklovod on September 02, 2008, 04:56:58 AM
I see, that does look better indeed. I'll include it in the next update if you don't mind.
OK, I agree that. :D
I am having a problem with the installation on SMF Default (1.1.6)
I went to automatically install it as a package, and found that Display.Template.php had an error. So I opened up Display.Template and tried to find:
empty($message['counter'])
to replace with:
($message['id'] == $context['topic_first_message'])
Only problem is I can't find the code within the display.template.
Attached is my Display.Template.php - Someone please help
i have installed 1.3.2_mod i have smf version 1.1.6, i have this error
8: Undefined variable: first_topic
File: /home/eknights/domains/eknights.it/public_html/clan/Themes/default/MessageIndex.template.php (main sub template - eval?)
Riga: 261
// No topics.... just say, "sorry bub".
else
echo '
<td class="catbg3" width="100%" colspan="7"><b>', $txt[151], '</b></td>';
echo '
</tr>';
if($first_topic['is_sticky']) echo '<tr class="titlebg"><td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"> ', $txt['sticky_topics'], '</td></tr>';
if (!empty($settings['display_who_viewing']))
{
echo '
<tr class="windowbg2">
<td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"><small>';
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
else
echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '
</small></td>
</tr>';
}
help thanks
jusplay, 1.1.6 has the same Display.template as 1.1.5 where it installs without problems. You have some mod which modified Display.template.
Mystiquo, you can install the plain version - does it work?
same error
:'(
That means you have some incompatible mod.
Hi all!
First, congratulations to the author for this great mod, it's very interesting.
I have the same problem when I install this mod that X-Plosiv. The mod appears install ok and it only works when i have 2 or more sticky posts, but if i have one sticky it doesn't work :(
When i install it, all is ok and it doesn't work perfect none...
Any chance of making this compatible with SMF 2 Beta 4?
I know you said you wouldn't until the full version... but, this mod is awesome
Oh I didn't even know there is a public beta out, ouch. Will try to install it and check when I get time! Of course would be better to wait until the release, but just in case the beta will go on for half a year...
Well this beta added new stylesheets, which i'm guessing will be in the RCs and final release. So it's probably good to get a head start now :P
Please, can someone help me?
martrek, sure, but I can't understand what you are saying. you have two or more sticky posts where? there can only be one sticky post in each topic, and that's the very first post...
Basically, i have the same problem that X-Plosiv. This mod works me if I have 2 or more sticky posts in a subforum (separate). If I have only 1 post sticky, it doesn't work (not separate sticky posts and normal posts) :(
An example is the screenshots of X-plosiv.
There can't be any posts in the forum, posts are made in topics. Can you give a link to a section of your forum which does not work?
http://www.forosdelmisterio.es/foro/index.php?board=55.0 (doesn´t work)
http://www.forosdelmisterio.es/foro/index.php?board=35.0 (works perfect)
Quote from: Mystiquo on September 21, 2008, 09:09:45 PM
i have installed 1.3.2_mod i have smf version 1.1.6, i have this error
8: Undefined variable: first_topic
File: /home/eknights/domains/eknights.it/public_html/clan/Themes/default/MessageIndex.template.php (main sub template - eval?)
Riga: 261
// No topics.... just say, "sorry bub".
else
echo '
<td class="catbg3" width="100%" colspan="7"><b>', $txt[151], '</b></td>';
echo '
</tr>';
if($first_topic['is_sticky']) echo '<tr class="titlebg"><td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"> ', $txt['sticky_topics'], '</td></tr>';
if (!empty($settings['display_who_viewing']))
{
echo '
<tr class="windowbg2">
<td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"><small>';
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
else
echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '
</small></td>
</tr>';
}
help thanks
I understood when I get this error: in practice when I visit a board where there isn't post I have that bug, even if there is only one post or "important" or "normal" I do not have the error, soon I will have no more errors in the board because there will be at least one post. however it is important to correct this error?
Thank you
Mystiquo, yes, thanks - that could be possible, will make sure it is fixed.
btw if you come out with a version for 2.0 beta 4, i'll test it out for you
bros I have taken first look and seems they changed everything, damn :) so will need to install 2.0 and make a new mod basically.
I get a display.template error and when I try to post the mod into a package parser I get this
ERROR: The package-info.xml file is invalid!
Any thoughts?
Does the changes to the code in the first post still work?
Or any chance of getting the xml file fixed?
When will this one be upgraded to smf 2.0?
Duncan85 is working on a fuller mod that would include this one, stay tuned.
ok I hope it will be done soon.
Because I'm waiting for this to go grom sfm 1.1 to 2.0
Quote from: marazmus on April 08, 2008, 05:21:07 AM
Is there a way to make sticky posts not only for "sticky" topics but also for "normal" topics? Thank you.
I've done that myself
http://www.simplemachines.org/community/index.php?topic=263273.msg1723077#msg1723077
take a look in this topic....
How much time will it take till it's updated?
Anyway to have this mod active on all topics, not just stickied ones? A lot of our users like to have the most recent posts on top but then the original post drops to the bottom. Would be great if a copy of it stayed on top followed by the most recent posts.
I'm with the Coyote :)
It would also be really useful to my forum to be able to choose to sticky the topic (in my case teaching games) above the comments to follow...
will there be an update to SMF 2.0?
Is it possible to make all sticky topic (cells in tables) have different class than normal topics....??
**********************************************************
Hi I need this mode for ver 2.0 RC1 any help or idea.
Thank you
**********************************************************
Anynews to support ver 2.0?
I would def like this for SMF 2
one more for 2.0 RC-1-1 / 1-2 ;D
Sorry I will only have time to release it after 2.0 final is out, as I don't install RC versions now (1.x works just fine) and no time for updates for changes which would still come.
Once 2.0 is out, I'll see what has been done there in regard to stickies and make the mod compatible.
Quote from: kuklovod on October 10, 2009, 06:17:43 AM
Sorry I will only have time to release it after 2.0 final is out, as I don't install RC versions now (1.x works just fine) and no time for updates for changes which would still come.
Once 2.0 is out, I'll see what has been done there in regard to stickies and make the mod compatible.
Well that sucks.. :(
We couldn't somehow talk you into just sharing whatever edit makes it work for RC2 for now? Who knows how long it takes SMF to decide when to go to production. Any support is appreciated now.
Well i was looking for this mod, but can it be used just to add a seprator between sticky and non-sticky threads only. As i don't want to sticky the first post on every page of a sticky thread. Please if that is possible can you help me out.............
looking for a reply............
Any chance of this one being upgraded so it's usable with 2.0?
It would be quite nice if there were some way to make it selectable. . .i.e. if you could make a thread sticky, or sticky with first post sticky. . . as there are instances where it's preferable to sticky the first post, and some where the original sticky thread without the sticky first post would be preferable.
Perhaps rather than override the original sticky, have it add a button so you can do one or the other?
Would really like to know how to make this work for 1.1.13 It installed OK, but the mod is not working. :(
Anyone can update this for SMF 2 4.0
yes anyone? for smf 2.0...
Not compatible with Thank-O-Matic mod?
When we sticky the first post, the «thank you» list is not displayed, any ideas on how to fix it?
Anyone?
Anynews to support ver 2.0? :'(
I'd love smf 2.0 support for this
Quote from: bros on January 31, 2013, 02:44:12 PM
I'd love smf 2.0 support for this
https://custom.simplemachines.org/mods/index.php?mod=4144