The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
go to new post link
If I want to add a go to last post like
Code:
?goto=newpost Here's the page in question http://www.vdubaddiction.com/forums/splashpage my users would like to have the latest topic links go to the last response. I know the code above will do that. But I'm not sure where to put it. Thanks! |
#2
|
||||
|
||||
The >> icon in the Last Post column already does that.
|
#3
|
|||
|
|||
I'm aware of that. They'd like the link itself to do that. Just like phpBB can.
|
#4
|
||||
|
||||
You need to create a template hook at footer_before_body_end hook location. Then the template code to use is below:
Code:
<script> (function($) { var $container = $('#widget_182'); if ($container.length) { $('.go-to-last-post', $container).each(function() { var $this = $(this), $postTitleLink = $this.closest('.js-topic-item').find('.js-topic-title'); $postTitleLink.attr('href', $this.attr('href')); }); } })(jQuery); </script> Code:
var $container = $('#widget_182'); Code:
var $container = $('.topic-list-container'); |
Благодарность от: | ||
nelsantiago |
#5
|
|||
|
|||
Do I need to clear the cache on the board cause that did nothing. Hopefully I followed the instructions correctly. See below
|
#6
|
||||
|
||||
You need to create a new template named go_to_last_post under the theme/style that you're using and paste the code there not in that last field (Hook Arguments) which you should leave empty.
|
Благодарность от: | ||
MarkFL |
#7
|
|||
|
|||
You sir, Are a genius! that was it. Sorry it wasn't clear that I had to make those two separately. Worked like a charm. Thank you. One last question. So now that it's going to last post, what would I need to do to make it go to last unread post? BTW This thread should be helpful to sooo many people. I've seen this question asked a lot of times in the archives with no real solution until now. Fantastic!
|
Благодарность от: | ||
MarkFL |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|