Former Member
inherit
guest@proboards.com
134807
0
Nov 24, 2024 7:46:31 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 5, 2013 14:04:30 GMT -8
I was running the following scrip on v4.5 is it possible to achieve the same on v5 please?
<script type="text/javascript"> // Change Latest Post Link to Board - Main Footer if(pb_action=="home"){ var n=document.links,a,b,x=-1; while(n[++x]){a=n[x].parentNode.parentNode,b=n[x].href; if(a&&a.width=="24%"&&b.indexOf("display&thread")!=-1){ n[x].href=b.split("&")[0]; }}} </script>
|
|
Former Member
inherit
guest@proboards.com
134807
0
Nov 24, 2024 7:46:31 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 7, 2013 2:27:14 GMT -8
Bump.
|
|
Former Member
inherit
guest@proboards.com
134807
0
Nov 24, 2024 7:46:31 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 7, 2013 23:37:44 GMT -8
Have I posted this on the wrong board? :/
|
|
Former Member
inherit
guest@proboards.com
134807
0
Nov 24, 2024 7:46:31 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 9, 2013 1:21:30 GMT -8
Hello.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 11, 2013 14:32:17 GMT -8
I assume this stopped the 'last post' link from taking you to the thread, and took you to the board it was in instead, yes? =]
|
|
Former Member
inherit
guest@proboards.com
134807
0
Nov 24, 2024 7:46:31 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 11, 2013 14:33:44 GMT -8
That's right yes pawl.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 11, 2013 14:40:57 GMT -8
Find this in your Board List template;
{if $[board.posts] > 0} {if $[board.last_thread]} $[board.last_thread.recent_link]<br /> by $[board.last_thread.last_post.created_by_user]<br /> <span class="date">$[board.last_thread.last_post.date]</span> {/if} {else} No posts have been made on this board. {/if}
Try replacing it with this for me;
{if $[board.posts] > 0} {if $[board.last_thread]} <a href="/board/$[board.last_thread.board_id]/" target="_parent">$[board.last_thread.subject]</a><br /> by $[board.last_thread.last_post.created_by_user]<br /> <span class="date">$[board.last_thread.last_post.date]</span> {/if} {else} No posts have been made on this board. {/if}
That should sort you out. =]
|
|
Former Member
inherit
guest@proboards.com
134807
0
Nov 24, 2024 7:46:31 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 11, 2013 14:49:41 GMT -8
Brilliant, working well thanks pawl.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 11, 2013 14:52:16 GMT -8
No worries. =]
|
|