PDA

View Full Version : New Posts Tab


ForceHSS
09-10-2013, 04:14 AM
search.php?{sessionurl}do=getnew&contenttype=vBForum_Post
How do I make an extra new posts tab so it shows at the bottom of each post the one that's at the top tab

RickyH
09-10-2013, 10:22 AM
Can you link us to your site? Not having the correct link to your site won't help us give you the code and where to place it.

ForceHSS
09-10-2013, 11:46 AM
The code is in the same place as any other forum. Look at any forum running 4.2.1 and on any topic below the quick reply box you will see the same as the screenshot i posted if you think a link is needed i will post but as all forum software is the same i dont think its needed

Spangle
09-10-2013, 11:24 PM
Daft question, but have you tried duplicating the code at the bottom of the template ?

ForceHSS
09-10-2013, 11:37 PM
Yes i have tried a few things

ozzy47
09-10-2013, 11:50 PM
Maybe described what you have tried, so people don't post things you have already failed at while trying.

ForceHSS
09-11-2013, 03:14 PM
I took the code from new posts and put it same place « Previous Thread Next Thread » is but it messed the coding up for the quick reply box

tbworld
09-11-2013, 09:14 PM
Sorry, took me awhile to understand the post -- I am getting old I guess :)
So if I understand corretly you are just wanting to add "New Post" link to the "div class=navlinks" on showthread template.

My initial thinking is that you were running into a DOM situation, so I decided to try it myself. Unfortunately, I did not have any problems, but be very careful about html comments in this area. Post the code you are inserting and I will take a look.

Or maybe I have the whole question wrong?

ForceHSS
09-11-2013, 09:38 PM
Ok if you look at this forum see the New Posts tab at the top I am wanting to make a copy of that and put it to the left of ? Previous Thread | Next Thread ? just under Post Reply were you see it here above quick reply box

tbworld
09-11-2013, 09:55 PM
Try this... I did not work out the CSS, since I figured you could handle it.


<!-- next / previous links -->
<div class="navlinks">
<a class="my_newpost" href="{vb:raw $vboptions.vbforum_url}search.php?{vb:raw session.sessionurl}&amp;do=getnew&amp;contenttype=vBForum_ Post">New Posts</a>
If you need help with the CSS just yell :)

Hope this helps.

ForceHSS
09-11-2013, 10:34 PM
Can you post the css as well. Worked out what I said in the pm.

tbworld
09-11-2013, 11:07 PM
SHOWTHREAD template
Search for: <div class="navlinks">
Add the anchor element given below.

<!-- next / previous links -->
<div class="navlinks">
<a class="my_newpost" href="{vb:raw $vboptions.vbforum_url}search.php?{vb:raw session.sessionurl}&amp;do=getnew&amp;contenttype=vBForum_ Post">New Posts</a>
Add this to your additional.css

.my_newpost {
left: 75px;
position: absolute;
}
I did not test the CSS, but it should work.

ForceHSS
09-11-2013, 11:57 PM
Thx works well