Advertisement:

Author Topic: cross posting tool  (Read 8152 times)

Offline overhaul

  • Newbie
  • *
  • Posts: 4
cross posting tool
« 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!

Offline codenaught

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,653
  • Gender: Male
  • Formerly Known As akabugeyes
Re: cross posting tool
« Reply #1 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.
Dev Consultant
Former SMF Doc Coordinator

Offline overhaul

  • Newbie
  • *
  • Posts: 4
Re: cross posting tool
« Reply #2 on: October 23, 2004, 04:27:14 PM »
that's too bad...  thank you.

Offline Amacythe

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,060
  • Gender: Female
Re: cross posting tool
« Reply #3 on: October 23, 2004, 04:40:09 PM »
In the meantime, you can use the NEWS function and turn the NEWS on.

Offline Peter Duggan

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,663
  • Gender: Male
    • Peat Stack or Pete's Tack?
Re: cross posting tool
« Reply #4 on: October 23, 2004, 06:06:08 PM »
In the meantime, you can use the NEWS function and turn the NEWS on.

* Peter Duggan thanks Amacythe for an interesting idea!

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

Search sometheme/Display.template.php for:

Code: [Select]
// Is this topic also a poll?
And add before:

Code: [Select]
// 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:

Code: [Select]
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!
« Last Edit: October 24, 2004, 10:47:42 AM by Peter Duggan »

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: cross posting tool
« Reply #5 on: October 23, 2004, 06:07:40 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]

Offline Amacythe

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,060
  • Gender: Female
Re: cross posting tool
« Reply #6 on: October 24, 2004, 11:14:43 AM »
In the meantime, you can use the NEWS function and turn the NEWS on.

* Peter Duggan thanks Amacythe for an interesting idea!

Glad you like it... now to split it off from the regular news... um, News1 and News2?

Offline Peter Duggan

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,663
  • Gender: Male
    • Peat Stack or Pete's Tack?
Re: cross posting tool
« Reply #7 on: October 24, 2004, 11:43:04 AM »
Glad you like it... now to split it off from the regular news... um, News1 and News2?

So you could do:

Code: [Select]
', $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 on this, however, so I'm copying this response to that and hope we can continue the discussion there.

Offline Peter Duggan

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,663
  • Gender: Male
    • Peat Stack or Pete's Tack?
Re: cross posting tool
« Reply #8 on: October 24, 2004, 11:46:49 AM »
This topic effectively superseded by this one, so locked to avoid confusion/further duplication. :)