inherit
182159
0
Dec 2, 2019 21:02:31 GMT -8
Thaïs
Mac OS 10.10.3
505
August 2012
thais
|
Post by Thaïs on Jan 17, 2013 12:06:01 GMT -8
What does that mean in terms of what I should be doing now, Brian Brian? Sorry, I'm not to be trusted around coding
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 17, 2013 12:47:45 GMT -8
That means start over and paste the new code in those templates.
|
|
inherit
154088
0
Jan 6, 2014 7:13:23 GMT -8
Liz
499
May 2010
frenchliving
|
Post by Liz on Jan 17, 2013 13:01:45 GMT -8
That means start over and paste the new code in those templates. Which one? I'm lost as well
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 17, 2013 13:05:05 GMT -8
|
|
inherit
154088
0
Jan 6, 2014 7:13:23 GMT -8
Liz
499
May 2010
frenchliving
|
Post by Liz on Jan 17, 2013 13:58:52 GMT -8
If it was this..... <div class="edited_by">{if $[post.edited]}<span class="italic">Last Edit:</span> $[post.edited.date] by $[post.edited.by_user]{if $[post.edited.reason]}: $[post.edited.reason]{/if} - {/if}<a onclick="scroll(0,0);">Back to Top</a></div>
It still doesn't work But it's been a long day and maybe I'm using the wrong one!
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 17, 2013 14:24:24 GMT -8
If it was this..... <div class="edited_by">{if $[post.edited]}<span class="italic">Last Edit:</span> $[post.edited.date] by $[post.edited.by_user]{if $[post.edited.reason]}: $[post.edited.reason]{/if} - {/if}<a onclick="scroll(0,0);">Back to Top</a></div>
It still doesn't work But it's been a long day and maybe I'm using the wrong one! I looked at your forum and I still see <a href="#">Back to Top</a>, which means you're using the old code. I went to Structure > Layout Templates > Thread and clicked on the Post List tab. You need to replace Line 32 with the code you just posted.
|
|
inherit
154088
0
Jan 6, 2014 7:13:23 GMT -8
Liz
499
May 2010
frenchliving
|
Post by Liz on Jan 17, 2013 14:38:56 GMT -8
Thank you Brian - not sure how that happened, but it's working now
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 17, 2013 14:50:36 GMT -8
Glad to hear.
|
|
inherit
182159
0
Dec 2, 2019 21:02:31 GMT -8
Thaïs
Mac OS 10.10.3
505
August 2012
thais
|
Post by Thaïs on Jan 17, 2013 15:55:08 GMT -8
Thanks Brian, it works now!
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 17, 2013 16:01:10 GMT -8
Sweet.
|
|
inherit
yllaciledehcysP citsatkranS
161169
0
Nov 28, 2013 18:47:45 GMT -8
moonbeam
I have NO IDEA what "psychedelic insultment" is, but I'm clearly a victim of it!
7,230
December 2010
lmccull
|
Post by moonbeam on Jan 17, 2013 16:31:18 GMT -8
It scrolls to the top fine, but it's only on posts that have been edited. Not all of them.
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 17, 2013 16:38:07 GMT -8
It scrolls to the top fine, but it's only on posts that have been edited. Not all of them. Did you replace the entire section of code I quoted in my first post in the thread? In your Layout Templates you have it in between the {if} statement that checks for edited posts, which will cause that to happen. You'll also need to make this change on every theme on your forum if you haven't already.
|
|
inherit
yllaciledehcysP citsatkranS
161169
0
Nov 28, 2013 18:47:45 GMT -8
moonbeam
I have NO IDEA what "psychedelic insultment" is, but I'm clearly a victim of it!
7,230
December 2010
lmccull
|
Post by moonbeam on Jan 17, 2013 16:43:03 GMT -8
I got it now, Brian, thanks. This is when it's bad to have a ton of themes though! I did know it would have to be done on all of them.
|
|
inherit
186864
0
Jul 12, 2013 13:07:52 GMT -8
triplew64
78
December 2012
triplew64
|
Post by triplew64 on Jan 18, 2013 9:23:21 GMT -8
Well something happened on my end. It was working fine yesterday. I installed the update for the Smilie Dropdown plugin (http://support.proboards.com/thread/431128/smilie-dropdown-option-view-all) and now the Back to Top feature is not showing up. The code is still in the Post List but the link does not show up on the posts.
<div class="edited_by">{if $[post.edited]}<span class="italic">Last Edit:</span> $[post.edited.date] by $[post.edited.by_user]{if $[post.edited.reason]}: $[post.edited.reason]{/if} - {/if}<a onclick="scroll(0,0);">Back to Top</a></div>
|
|
inherit
133488
0
Nov 22, 2024 11:06:39 GMT -8
toetapping
1,583
November 2008
toetapping
|
Post by toetapping on Jan 24, 2013 12:06:34 GMT -8
Brian my back to top is missing.
{foreach $[post]} <tr id="$[post.content_id]" class="$[post.content_class]{if $[post.even]} even{/if}{if $[viewing_recent_posts]} recent{/if}"> <td class="$[post.unblocked_class]"> <table role="grid"> <tr> <td class="left-panel" rowspan="2"> $[post.created_by_user.miniprofile] </td> <td class="content"> <div class="content-head ui-helper-clearfix"> <div class="info"> <span class="thread-link">$[post.thread]</span> <span id="post-text-$[post.id]" class="post-method"></span> <script type="text/Javascript"> {if $[post.index] == 0} var post = { page: location.href.match(/page=(\d+)/)?RegExp.$1-0:1, index: 0 }; {/if} var index = (post.page-1)*15 + post.index++; if(!location.href.match(/(\?|\&)q=/) && proboards.data("route").name == "thread"){ $("#post-text-$[post.id]").html(index == 0?"Thread started on ":"Reply #"+index+" on "); } </script> <span id="post-text-$[post.id]" class="post-method"></span> <script type="text/Javascript"> {if $[post.index] == 0} var post = { page: location.href.match(/page=(\d+)/)?RegExp.$1-0:1, index: 0 }; {/if} var index = (post.page-1)*15 + post.index++; if(!location.href.match(/(\?|\&)q=/) && proboards.data("route").name == "thread"){ $("#post-text-$[post.id]").html(index == 0?"Thread started on ":"Reply #"+index+" on "); } </script> <span class="date">$[post.date]</span> {if $[post.how_posted]} <span class="post-method">via $[post.how_posted]</span> {/if} $[post.likes] </div> <div class="controls"> $[post.quote_button] $[post.edit_button] $[post.likes.button] $[post.select_options] </div> </div> <h3 class="title aria-hidden">Post by $[post.created_by_user.name] on $[post.date]</h3> <div class="message">$[post.message]</div> </td> </tr> <tr> <td class="foot"> {if $[post.edited]} <div class="edited_by"><span class="italic">Last Edit:</span> $[post.edited.date] by $[post.edited.by_user]{if $[post.edited.reason]}: $[post.edited.reason]{/if}</div> {/if} {if $[post.created_by_user.signature]} <div class="signature">$[post.created_by_user.signature]</div> {/if} </td> </tr> </table> </td> {if $[post.is_blocked]} <td class="$[post.blocked_class] content center"> <div class="message note pad-bottom">This post is hidden</div> $[post.display_blocked_post_button] </td> {/if} </tr> {/foreach} {if !$[post]} <tr class="last"><td class="last center" colspan="1">No posts were found.</td></tr> {/if}
|
|