Post by Miss Lemon on Nov 8, 2016 4:15:01 GMT
Kami's code to make message on every page for members to click and find out new stuff other members are posting at other parts of the site.
support.proboards.com/thread/601319/recent-posts-thread-viewable-screen?page=3
oct 5 7:58pm
support.proboards.com/thread/601319/recent-posts-thread-viewable-screen?page=3
oct 5 7:58pm
Oct 6, 2016 0:58:30 GMT @kamiyakaoru said:
OK! Here you go, let me know if you need any changes (:
Step 1: Place the following CSS at the bottom of your stylesheet (if you have multiple themes, this will need to go in every style sheet, or you can wrap it in <style></style> tags and put it in your global header. Note that the latter option will not allow for the css to be cached, which will make it have to reload on every page load).
Step 2: For the Home page, go to structure > layout templates > home.
Find the $[news] variable, and place the following code BELOW it:
{if $[route.name] == 'home'}
<div class="recent-posts-header">
Don't forget to check out what the rest of the site has to offer! <br />
Have a look at the $[recent_posts_link] and interact with your fellow members!
</div>
{/if}
Step 3: For everywhere else, go to structure > layout templates > forum wrapper.
Find the $[header] variable, and place the following code BELOW it:
{if $[route.name] != 'home'}
<div class="recent-posts-header">
Don't forget to check out what the rest of the site has to offer! <br />
Have a look at the <a href="/posts/recent">Recent Posts</a> and interact with your fellow members!
</div>
{/if}
Let me know how that works out.
Step 1: Place the following CSS at the bottom of your stylesheet (if you have multiple themes, this will need to go in every style sheet, or you can wrap it in <style></style> tags and put it in your global header. Note that the latter option will not allow for the css to be cached, which will make it have to reload on every page load).
/* ======================================
For Recent Posts Box
=======================================*/
.recent-posts-header {
padding: 10px;
text-align: center;
background-color: #fff;
color: #000;
border-radius: 5px;
border: 1px solid #061d42;
margin-top: 10px;
margin-bottom: 10px;
}
Step 2: For the Home page, go to structure > layout templates > home.
Find the $[news] variable, and place the following code BELOW it:
{if $[route.name] == 'home'}
<div class="recent-posts-header">
Don't forget to check out what the rest of the site has to offer! <br />
Have a look at the $[recent_posts_link] and interact with your fellow members!
</div>
{/if}
Step 3: For everywhere else, go to structure > layout templates > forum wrapper.
Find the $[header] variable, and place the following code BELOW it:
{if $[route.name] != 'home'}
<div class="recent-posts-header">
Don't forget to check out what the rest of the site has to offer! <br />
Have a look at the <a href="/posts/recent">Recent Posts</a> and interact with your fellow members!
</div>
{/if}
Let me know how that works out.