Former Member
inherit
guest@proboards.com
195316
0
Nov 27, 2024 17:29:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jun 16, 2013 0:59:38 GMT -8
Tested - Chrome - Firefox - Opera - Internet Explorer
Go - admin - Layout Templates - BoardAnd at the very top of the template add the code belowWhen viewing a board
It will show the latest thread posted & username & board name at the top of each board That will link to the latest post in that board & Sub-boards{if $[route.name] == "board"} <center>Latest Posting This Board - $[board.display_name]<br>$[board.last_thread.recent_link] by $[board.last_thread.last_post.created_by_user]</center><br /> {/if} If you wish to display the time and date of the posting Use the code below{if $[route.name] == "board"} <center>Latest Posting This Board<br>$[board.last_thread.recent_link] by $[board.last_thread.last_post.created_by_user]<br> $[board.last_thread.last_post.date]</center><br /> {/if}
Suboard Board If you want to wrap it into a container use the code below{if $[route.name] == "board"} <center><div class="container"> <div class="title-bar"><h2><b>Our Latest Posting This Board</b></h2></div> <div class="content"> <center><br>Latest Posting This Board - $[board.display_name] <br>$[board.last_thread.recent_link] by $[board.last_thread.last_post.created_by_user]</center><br /></div></div></center> {/if}
How it looks within the container using the code above If You wish the container code to display the time and date of the posting Use the code below{if $[route.name] == "board"} <center><div class="container"> <div class="title-bar"><h2><b>Our Latest Posting This Board</b></h2></div> <div class="content"> <center><br>Latest Posting This Board - $[board.display_name] <br>$[board.last_thread.recent_link] by $[board.last_thread.last_post.created_by_user]<br> $[board.last_thread.last_post.date]<br> </center><br /></div></div></center> {/if}
How it it looks the container with time and date added Updated to display the name of each board When viewing a board or sub-boardAlso added the option to display time and date of the posting postedJust copy the code for time and date UPDATED CODES SO IT WILL NOT DISPLAY ON THE RECENT THREADS BOARD Thank You - David ClarkSteve
|
|
inherit
(?)?
188910
0
Jan 26, 2013 13:30:48 GMT -8
♥ ℒʊ√ ♥
Clouds float into my life no longer to carry rain or usher storm but to add color to my sunset sky.
10,458
January 2013
luv
|
Post by ♥ ℒʊ√ ♥ on Jun 16, 2013 1:36:24 GMT -8
I like this. I'm almost tempted to place it on all of my themes. It's just that I have so many, I'm not sure I have the stamina!
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 27, 2024 17:29:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jun 16, 2013 13:09:48 GMT -8
While all seems to be displaying correctly on all the boards & sub-boards I'm seeking a little help to see if can stop it displaying on the recent threads board see this post support.proboards.com/post/5369562/threadAdding the code at the top of the board template seems to display it also on the RECENT THREADS BOARD?
See this thread for more info support.proboards.com/post/5369562/thread
I'm seeking help or any suggestions as how to stop it displaying on (the recent threads board) Thank you for any any help & suggestions if it's possible I have updated the template above Thanks to David Clark for the fix It will not now show on the recent threads boardJust recopy the code to stop it showing above the recent threads board Steve
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 27, 2024 17:29:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 13, 2014 6:24:44 GMT -8
If you wish to show the latest post above each board USING ROUNDED CORNERSNote rounded corners do not display using Internet ExplorerGo - Admin - Layout Templates - BoardScreen-Shot This code uses the TRANSPARENT BACKGROUNDYou can change the border colour border:1px solid #000000{if $[route.name] == "board"}<br /><center><div class="content"><div style="padding:2px;border:1px solid #000000;border-radius:5px; text-align:center;">Latest Posting This Board - $[board.display_name]<br>$[board.last_thread.recent_link] by $[board.last_thread.last_post.created_by_user]</div></div></center><br />{/if} This code allows you to change the background colour & Border Colourbackground-color:white border:1px solid #000000{if $[route.name] == "board"}<br /><center><div class="content"><div style="padding:2px;border:1px solid #000000;border-radius:5px; background-color:white; text-align:center;">Latest Posting This Board - $[board.display_name]<br>$[board.last_thread.recent_link] by $[board.last_thread.last_post.created_by_user]</div></div></center><br />{/if} Reminder you can always preview how it will look Before you click to save any changes to your templateSteve EDITED: So it will not display on the Recent Threads & Recent Post pages
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 27, 2024 17:29:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jul 25, 2014 5:36:02 GMT -8
A LITTLE UPDATE!When viewing a board
It will show the latest thread link created & the username OF THE THREAD CREATOR And the username of the last member to comment that thread At the top of each board
SEE SCREENSHOT
HERE IS HOW IT LOOKS ON MY FORUM
Go - admin - Layout Templates - Board
And at the very top of the template add the code below
{if $[route.name] == "board"}
<center>Latest Thread Posted This Board $[board.display_name]<br>$[board.last_thread.recent_link]<br> Thread Creator:$[board.last_thread.created_by]
<br>The Last Poster To Comment $[board.last_thread.last_post.created_by_user]<br>
$[board.last_thread.last_post.date]</center><br />
{/if}
You can change the text to suit your forum
Steve
REMINDER YOU CAN ALWAYS CLICK ON THE PREVIEW BUTTON TO VIEW HOW IT WILL LOOK BEFORE SAVING ANY CHANGES TO YOUR TEMPLATE
LAST EDIT: To show board name! & updated screenshots
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 27, 2024 17:29:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Sept 3, 2014 3:19:06 GMT -8
Show who created the last thread on the board And the last user to reply To the thread at the top of each boards.. Go > admin > Layout Templates > Board
And at very top of the board template add the code below
You change the font size
<font size="2">{if $[route.name] == "board"} <center>Latest Thread This Board - $[board.display_name]<br>$[board.last_thread.recent_link] by $[board.last_thread.created_by] last member to comment this thread was $[board.last_thread.last_post.created_by_user]</center><br /> {/if}</font> Screen-Shot how it looks on my forum Code: for the above screen-shot<font size="3">{if $[route.name] == "board"} <center><b>Latest Thread This Board - $[board.display_name]</b><br>$[board.last_thread.recent_link] by $[board.last_thread.created_by]<br> Our last member to comment this thread was $[board.last_thread.last_post.created_by_user]</center><br />{/if}</font> Steve
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 27, 2024 17:29:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 15, 2015 3:16:09 GMT -8
A Little Update To Show NEW POSTWhen a new thread or post has been posted on the board
When logged in you will see New Post when a new post/thread has been posted Once viewed the board the word New Post Will not show at the top of the board
Screenshot how it looks my forumGo - admin - Layout Templates - Board
And at the very top of the template add the code below{if $[route.name] == "board"}
<center>{if $[board.is_new]}<b>New Post</b>{else} {/if}<br>Latest Thread Posted This Board $[board.display_name]<br>$[board.last_thread.recent_link]<br> Thread Creator:$[board.last_thread.created_by]
<br>The Last Poster To Comment $[board.last_thread.last_post.created_by_user]<br>
$[board.last_thread.last_post.date]</center><br />
{/if}
You can change the text to suit your forum
SteveREMINDER YOU CAN ALWAYS CLICK ON THE PREVIEW BUTTON TO VIEW HOW IT WILL LOOK BEFORE SAVING ANY CHANGES TO YOUR TEMPLATE Steve
|
|
Former Member
inherit
guest@proboards.com
222576
0
Nov 27, 2024 17:29:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 26, 2016 8:51:55 GMT -8
hi @xsteveuk is this your template at the top of my boards ? goldenbeatz.uk/board/32/music-actsIf yes then could you help me get rid of the ones which show up on our profile pages pls
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 27, 2024 17:29:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 26, 2016 10:27:22 GMT -8
Hi, @joecool111
I'm not having any issues with it showing on any of the profile pages can you link to a profile page it showing it on
Steve
EDIT: Ah I did see it on a profile when viewing the members recent threads on your forum when viewing a profile - if that's what you mean
try replacing the code you have in your board template - With the code below and see if that helps It's the same code I use on my forum and have had no problems..
{if $[route.name] != "recent_threads" && $[route.name] != "all_recent_posts" && $[route.name] != "bookmarks" && $[route.name] != "recent_posts" && $[route.name] != "recent_threads_created"} <div class="container" id="boardtop1-important"> <center> <div style="padding:2px;border:1px dashed #cccccc;border-radius:5px;background-color: #f8f8f8; text-align:center;"> <font size="3"> <br><b><font size="5">Our Latest Post This Board $[board.display_name]</font></b><br>{if $[board.is_new]}<b>New</b>{else} {/if} {if !$[current_user.is_member]}<br><b>New</b>{else} {/if}<br>$[board.last_thread.recent_link] By $[board.last_thread.created_by] <br>Has received <b>$[board.last_thread.replies]</b> comment{if $[board.last_thread.num_posts] != 2}s{/if} and {if $[board.last_thread.first_post.likes.total]} <b>$[board.last_thread.first_post.likes.total]</b> post like{if $[board.last_thread.first_post.likes.total] != 1}s{/if}{else}<b>0</b> Likes {/if}<br><a href="$[board.last_thread.created_by.link.href]"><font size="3"><b>Follow $[board.last_thread.created_by_user.name]</b></font></a><br> $[board.last_thread.last_post.created_on] <br><br> </font></div></center> </div> <script type="text/javascript"> $('#boardtop1-important .thread-participants').after($('#boardtop1-important .thread-participants').html()); $('#boardtop1-important .thread-participants').hide(); </script><br />{/if}
|
|
Former Member
inherit
guest@proboards.com
222576
0
Nov 27, 2024 17:29:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 26, 2016 14:33:23 GMT -8
@xsteveuk thank you thats worked. Could i have not show in this board aswell pls goldenbeatz.uk/board/22/works i've got an image its messing about with, so im not bothered about it being on that board. edit: i think i've done it but im just checking with you so it still lets your template work. ok i've out this at the top after the 1st if $[board.id] != "22" && will this be ok to leave ? it works.
|
|
inherit
231319
0
May 12, 2016 23:50:58 GMT -8
diydenmark
12
April 2016
diydenmark
|
Post by diydenmark on May 11, 2016 23:49:40 GMT -8
I have tried adding this code to my forum however, I would like to add it on the homepage and not on a specific board. Will that be possible? I don't have enough skill to change the code even though I have tried. Thanks for the code
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 27, 2024 17:29:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 12, 2016 1:11:47 GMT -8
Hi, diydenmark If you are wanting it to show the latest post and username and what board they posted into Try the code below Templates - TOP OF HOMEPAGE You can change the height & width font color font size & border color <center><div style="width: 965px; height: 130px; border:1px solid #808080; background-color: #ffffff; border-radius: 30px;"><font size="3"> <font color="#000000"><center><br>Our Latest Posting<br>$[last_updated_thread.recent_link] By $[last_updated_thread.created_by] Posted into $[last_updated_thread.board]</center></font><br>Forum Stats: $[total_threads] {if $[total_threads] == 1}Thread{else}Threads{/if} $[total_posts] {if $[total_posts] == 1}Post{else}Posts{/if}<br>We Have Currently $[total_online] Online Viewing. There Have Been $[total_guests_online_24] Guest{if $[total_guests_online_24] != 1}s{/if}. Viewing The Forum Today!</font><br> </div></center><br /> Steve
|
|
inherit
231319
0
May 12, 2016 23:50:58 GMT -8
diydenmark
12
April 2016
diydenmark
|
Post by diydenmark on May 12, 2016 9:24:49 GMT -8
Hi @xsteveuk Yes, that is perfect. Thank you for that!
|
|
Former Member
inherit
guest@proboards.com
195316
0
Nov 27, 2024 17:29:44 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 12, 2016 10:26:27 GMT -8
Hi @xsteveuk Yes, that is perfect. Thank you for that! You are very welcome Glad to help Steve
|
|
inherit
221104
0
Feb 17, 2018 21:50:59 GMT -8
Assassin #1
80
May 2015
assassin1
|
Post by Assassin #1 on May 25, 2016 22:55:08 GMT -8
How can I unlink the "view paticipants" from the replies column. The reason why I would like it unlinked is so that I can make the columns numbers the same as the views without changing the authors and last post contributors colors? I just want the replies and views columns to match in color. That's all.
|
|