Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Topic started by: overhaul on October 21, 2004, 10:34:45 PM

Title: cross posting tool
Post by: overhaul on October 21, 2004, 10:34:45 PM
How can I make a post as admin and have it show up in all the boards ?      I am trying to do with without having to type up teh same post over and over . 

thanks!
Title: Re: cross posting tool
Post by: codenaught on October 23, 2004, 03:36:59 PM
This is currently not possible. Usually this feature is referred as a global post or announcement. I think a lot of us would like this feaure or at least see a mod for it. It has been requested many times in the features request forum.
Title: Re: cross posting tool
Post by: overhaul on October 23, 2004, 04:27:14 PM
that's too bad...  thank you.
Title: Re: cross posting tool
Post by: Amacythe on October 23, 2004, 04:40:09 PM
In the meantime, you can use the NEWS function and turn the NEWS on.
Title: Re: cross posting tool
Post by: Peter Duggan on October 23, 2004, 06:06:08 PM
Quote from: Amacythe on October 23, 2004, 04:40:09 PM
In the meantime, you can use the NEWS function and turn the NEWS on.

/me thanks Amacythe for an interesting idea!

To display the news as 'forum rules' within every topic:

Search sometheme/Display.template.php for:

// Is this topic also a poll?

And add before:

// Show news as 'forum rules'.
echo '
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">
<tr><td style="padding: 1px 1px 0 1px;">
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="windowbg">
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>Blah (Forum Rules?)</b>
</td>
</tr>
<tr>
<td valign="top" class="windowbg" width="85%">
', $context['random_news_line'], '
</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>
<tr><td style="padding: 0 0 1px 0;">
</table>
<br />';



To display the news as 'forum rules' within every message index:

Search sometheme/MessageIndex.template.php for:

if (!empty($options['show_board_desc']) && $context['description'] != '')

And add the same new code before.

NB While these hacks will still work if you disable news from your Current Theme's Settings (so obviating the need to hack any more templates to remove the normal news display), you should only post one news item at a time if you're using it as a substitute for forum-wide stickies!
Title: Re: cross posting tool
Post by: [Unknown] on October 23, 2004, 06:07:40 PM
Quote from: akabugeyes on October 23, 2004, 03:36:59 PM
This is currently not possible. Usually this feature is referred as a global post or announcement. I think a lot of us would like this feaure or at least see a mod for it. It has been requested many times in the features request forum.

Not as many or as often as you imply here, I'm sorry to tell you, although it has been requested by some.

-[Unknown]
Title: Re: cross posting tool
Post by: Amacythe on October 24, 2004, 11:14:43 AM
Quote from: Peter Duggan on October 23, 2004, 06:06:08 PM
Quote from: Amacythe on October 23, 2004, 04:40:09 PM
In the meantime, you can use the NEWS function and turn the NEWS on.

/me thanks Amacythe for an interesting idea!

Glad you like it... now to split it off from the regular news... um, News1 and News2?
Title: Re: cross posting tool
Post by: Peter Duggan on October 24, 2004, 11:43:04 AM
Quote from: Amacythe on October 24, 2004, 11:14:43 AM
Glad you like it... now to split it off from the regular news... um, News1 and News2?

So you could do:

', $context['news_lines'][0], '

(Where the number in brackets selects the news item identified by the relevant array key)

But you'd need to do some more fiddling to stop that item being displayed as part of the 'random' news, and might be quicker just to hack the templates to select single separate news items for the normal news display, message index and/or topic pages.

Just started a 'Tips and Tricks' topic (http://www.simplemachines.org/community/index.php?topic=18735.0) on this, however, so I'm copying this response to that and hope we can continue the discussion there.
Title: Re: cross posting tool
Post by: Peter Duggan on October 24, 2004, 11:46:49 AM
This topic effectively superseded by this one (http://www.simplemachines.org/community/index.php?topic=18735.0), so locked to avoid confusion/further duplication. :)