| ||||
| ||||
| 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 |
|
||||||||||||||
| Disassociate new posts. | Rate Topic |
| Author | Post |
|---|
| Posted: Mon Feb 15th, 2010 11:43 am |
|
1st Post |
|
Robert Member
|
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.
|
||||||||||||||
| |||||||||||||||
| Posted: Mon Feb 15th, 2010 01:04 pm |
|
2nd Post |
|
martin_wynne Licence Holder
|
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 $pages</td></tr> <tr><td class="clean" valign="middle" width="25">$attachment </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> <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.
|
|||||||||||||
| ||||||||||||||
| Posted: Mon Feb 15th, 2010 04:03 pm |
|
3rd Post |
|
Robert Member
|
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 |
||||||||||||||
| |||||||||||||||
| Posted: Mon Feb 15th, 2010 04:11 pm |
|
4th Post |
|
martin_wynne Licence Holder
|
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.
|
|||||||||||||
| ||||||||||||||
| Posted: Mon Feb 15th, 2010 04:15 pm |
|
5th Post |
|
Robert Member
|
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
|
||||||||||||||
| |||||||||||||||
| Posted: Mon Feb 15th, 2010 04:33 pm |
|
6th Post |
|
Robert Member
|
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 |
|||||||||||||
| ||||||||||||||
| Posted: Mon Feb 15th, 2010 04:39 pm |
|
7th Post |
|
martin_wynne Licence Holder
|
Robert wrote:
Hi Bob, Closing bracket missing!
|
||||||||||||||
| |||||||||||||||
| Posted: Mon Feb 15th, 2010 04:46 pm |
|
8th Post |
|
Robert Member
|
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
|
|||||||||||||
| ||||||||||||||
| Posted: Tue Feb 16th, 2010 12:30 am |
|
9th Post |
|
wingnutter Forever Learning
|
Robert wrote: Well, well, old eagle eyes has done it again. Yes Martin doesn't miss much.
|
||||||||||||||
| |||||||||||||||
| Posted: Tue Feb 16th, 2010 09:07 am |
|
10th Post |
|
martin_wynne Licence Holder
|
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.
|
|||||||||||||
| ||||||||||||||
| Posted: Tue Feb 16th, 2010 11:52 am |
|
11th Post |
|
Robert Member
|
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
|
||||||||||||||
| |||||||||||||||
| Posted: Wed Nov 2nd, 2011 11:32 pm |
|
12th Post |
|
TVDinner Go UCONN!
|
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
|
|||||||||||||
| ||||||||||||||
| Current time is 08:02 pm | |
| UltraBB Forums > UltraBB > Software Assistance > Disassociate new posts. | Top |
![]() |