UltraBB Forums Home 
Home Search search Menu menu Not logged in - Login | Register
UltraBB Forums > UltraBB > Software Assistance > Disassociate new posts.

Welcome to the UltraBB public support forum! Did you know there is an inexpensive totally integrated gallery available for UltraBB? Read more here: Gallery Details

 Moderated by: Jim
New Topic Reply Printer Friendly
Disassociate new posts.  Rate Topic 
AuthorPost
 Posted: Mon Feb 15th, 2010 11:43 am
  PM Quote Reply
1st Post
Robert
Member


Joined: Fri Jul 18th, 2008
Location: Benidorm, Spain
Posts: 1318
Status: 
Offline
Mana: 
User Gallery
Is it possible to have a forum so that when a new post is made it doesn't show up as such on the Recent page?

The reason I ask is that I have one particular forum (section) that is not really relevant to the main purpose of the main forum but is popular so that the Recent page gets clogged up with posts from it.

Back To Top PM Quote Reply  

 Posted: Mon Feb 15th, 2010 01:04 pm
  PM Quote Reply
2nd Post
martin_wynne
Licence Holder


Joined: Sun May 25th, 2008
Location: West Of The Severn, United Kingdom
Posts: 1818
Status: 
Offline
Mana: 
User Gallery
Robert wrote: Is it possible to have a forum so that when a new post is made it doesn't show up as such on the Recent page?
Hi Bob,

Yes, you can do that quite easily.

Edit the index_active_topics_row template.

Put two extra lines as in blue below. One right at the start, and one right at the end. Change the forum id number (in red) to the id number of the forum which you wish to exclude. Don't change or lose any of the punctuation marks.

(Make sure you use the same number in both lines, otherwise the page will be well wrecked. :) )

This code has the effect of "commenting out" the unwanted details. Your template code may differ from mine, but provided you add the new lines at the beginning and end, it will work:

?forum_id='0'('<!-- ' : '')
<tr>
<td class="$posted_in$topicrow1" style="border-right:none;" align="center" width="26"><img src="/forum/themes/largefont/$topic_icon.gif" width="24" height="24" alt="$topic_icon_desc" title="$topic_icon_desc"></td>
   <td class="$posted_in$topicrow1" style="border-left:none; border-right:none;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td colspan="2" class="clean" valign="middle" style="padding-bottom:4px;">$topic_name &nbsp; $pages</td></tr>
<tr><td class="clean" valign="middle" width="25">$attachment &nbsp;</td><td class="clean" valign="middle" style="padding-bottom:4px; font-size:13px;">$topic_description</td></tr>
<tr><td colspan="2" class="clean" valign="middle" style="font-size:13px;">$jump_to</td></tr>
</table></td>
   <td class="$posted_in$topicrow2" style="border-right:none;" align="center" valign="top" nowrap>&nbsp;<br>$topic_rating</td>
   <td class="$posted_in$topicrow1" style="border-right:none;" align="center" nowrap>$topic_replies</td>
   <td class="$posted_in$topicrow2" style="border-right:none;" align="center" nowrap>$topic_views</td>
   <td class="$posted_in$topicrow1" style="border-right:none;" align="center">$topic_started_by</td>
   <TD CLASS="$posted_in$topicrow2" style="border-right:none; padding-left:10px; font-size:13px;" align="center" NOWRAP>$topic_last_post</TD>
   <td class="$posted_in$topicrow1" align="center">$forum_name</td>
</tr>
?forum_id='0'(' -->' : '')


regards,

Martin.

Back To Top PM Quote Reply

 Posted: Mon Feb 15th, 2010 04:03 pm
  PM Quote Reply
3rd Post
Robert
Member


Joined: Fri Jul 18th, 2008
Location: Benidorm, Spain
Posts: 1318
Status: 
Offline
Mana: 
User Gallery
Hi there Martin,

That seems to be exactly what I want but I do have one query before I do anything and that is where do I find the forum ID number.

Bob

PS. They are indeed different Martin as mine just deals with top and bottom borders.

Last edited on Mon Feb 15th, 2010 04:13 pm by Robert

Back To Top PM Quote Reply  

 Posted: Mon Feb 15th, 2010 04:11 pm
  PM Quote Reply
4th Post
martin_wynne
Licence Holder


Joined: Sun May 25th, 2008
Location: West Of The Severn, United Kingdom
Posts: 1818
Status: 
Offline
Mana: 
User Gallery
Robert wrote: That seems to be exactly what I want but I do have one query before I do anything and that is where do I find the forum ID number.
Hi Bob,

Go to your board's front page.

Hover the mouse over the name of the relevant forum.

Look in the browser status bar at the bottom left of the screen.

regards,

Martin.

Back To Top PM Quote Reply

 Posted: Mon Feb 15th, 2010 04:15 pm
  PM Quote Reply
5th Post
Robert
Member


Joined: Fri Jul 18th, 2008
Location: Benidorm, Spain
Posts: 1318
Status: 
Offline
Mana: 
User Gallery
Thanks again Martin,

I am just off to add those two lines now and then I will test it and get back to you with the results.

All the best.

Bob

Back To Top PM Quote Reply  

 Posted: Mon Feb 15th, 2010 04:33 pm
  PM Quote Reply
6th Post
Robert
Member


Joined: Fri Jul 18th, 2008
Location: Benidorm, Spain
Posts: 1318
Status: 
Offline
Mana: 
User Gallery
Back again Martin,

This is the alteration I have made in the index_active_topics_row:, as per your post :


?forum_id='75'('<!-- ' : '')
<tr>
   <td style="border-right: none; border-bottom: none" class="$topicrow1" align="center" width="24"><img src="/forum/themes/beige/$topic_icon.gif" width="24" height="24" alt="$topic_icon_desc"></td>
   <td style="border-right: none; border-bottom: none" class="$topicrow1" width="35%">$topic_name $pages $jump_to<br>$topic_description</td>
   <td style="border-right: none; border-bottom: none" class="$topicrow2" align="right" width="5%">$topic_replies</td>
   <td style="border-right: none; border-bottom: none" class="$topicrow1" align="right" width="5%">$topic_views</td>
   <td style="border-right: none; border-bottom: none" class="$topicrow2" align="center" width="15%">$topic_started_by</td>
   <td style="border-right: none; border-bottom: none" class="$topicrow1" align="center" width="20%">$topic_last_post</td>
   <td style="border-right: none; border-bottom: none" class="$topicrow2" align="center" width="20%">$forum_name</td>
</tr>
?forum_id='75'(' -->' : ''



It seems to work just as I want it to with regard to not showing a new post on the Recent page but has put this at the top of the Recent Topics page underneath the buttons as shown.


  Forums Recommended   Popular   Recent  Recently Active Topics:

?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->' : '' ?forum_id='75'(' -->'

Last edited on Mon Feb 15th, 2010 04:37 pm by Robert

Back To Top PM Quote Reply

 Posted: Mon Feb 15th, 2010 04:39 pm
  PM Quote Reply
7th Post
martin_wynne
Licence Holder


Joined: Sun May 25th, 2008
Location: West Of The Severn, United Kingdom
Posts: 1818
Status: 
Offline
Mana: 
User Gallery
Robert wrote:

  align="center" width="20%">$forum_name</td>
</tr>
?forum_id='75'(' -->' : '')



Hi Bob,

Closing bracket missing!

Back To Top PM Quote Reply  

 Posted: Mon Feb 15th, 2010 04:46 pm
  PM Quote Reply
8th Post
Robert
Member


Joined: Fri Jul 18th, 2008
Location: Benidorm, Spain
Posts: 1318
Status: 
Offline
Mana: 
User Gallery
Well, well, old eagle eyes has done it again. I copied and pasted those two lines as well Martin. It emphasises once more just how exact one has to be when making alterations.

It works fine now Martin and has solved a problem that was beginning to cause a little friction and I don't need that.

Many, many thanks once more.

All the best.

Bob

Back To Top PM Quote Reply

 Posted: Tue Feb 16th, 2010 12:30 am
  PM Quote Reply
9th Post
wingnutter
Forever Learning


Joined: Wed May 14th, 2008
Location: Ireland
Posts: 1839
Status: 
Offline
Mana: 
User Gallery
Robert wrote: Well, well, old eagle eyes has done it again.
Yes Martin doesn't miss much.

Back To Top PM Quote Reply  

 Posted: Tue Feb 16th, 2010 09:07 am
  PM Quote Reply
10th Post
martin_wynne
Licence Holder


Joined: Sun May 25th, 2008
Location: West Of The Severn, United Kingdom
Posts: 1818
Status: 
Offline
Mana: 
User Gallery
Robert wrote: It works fine now Martin and has solved a problem that was beginning to cause a little friction and I don't need that. Many, many thanks once more.
You're welcome, Bob.

One point I should have mentioned is that this method will shorten the page.

For example if you have your board set to display 30 lines per page, and 7 of them are from the excluded forum, the "Recent" page would display with only 23 lines showing. Your members would need to click "Page 2" to see the next lot of lines. That page will be similarly shortened, and so on.

I doubt this will be noticed unless the excluded forum has a sudden burst of activity, so that there are only a few other lines left on the page.

It is something to be aware of if anyone mentions it.

A proper solution to avoid this would involve a significant mod to the php files.

regards,

Martin.

Back To Top PM Quote Reply

 Posted: Tue Feb 16th, 2010 11:52 am
  PM Quote Reply
11th Post
Robert
Member


Joined: Fri Jul 18th, 2008
Location: Benidorm, Spain
Posts: 1318
Status: 
Offline
Mana: 
User Gallery
Hello Martin,

Thanks for the extra information. If someone does notice it then I have the answer straight away now instead of flapping around trying to discover it for myself.

Much appreciated.

All the best.

Bob

Back To Top PM Quote Reply  

 Posted: Wed Nov 2nd, 2011 11:32 pm
  PM Quote Reply
12th Post
TVDinner
Go UCONN!


Joined: Wed May 9th, 2007
Location: North Carolina USA
Posts: 1615
Status: 
Offline
Mana: 
User Gallery
This is actually something I am about to do for a new section tonight. Glad I found this old topic for reference.

We have a new section I am going to be adding and don't want the posts to show on the New Posts / Recent Page

Back To Top PM Quote Reply

Current time is 08:02 pm  
UltraBB Forums > UltraBB > Software Assistance > Disassociate new posts. Top



Hosting

UltraBB 1.17 Copyright © 2007-2011 Data 1 Systems, INC.
Page processed in 0.3163 seconds (16% database + 84% PHP). 30 queries executed.