Page 1 of 1

"Go Down" or "Bottom" button

Posted: 05 Aug 2010, 05:49
by MsIrey
I got help on the old site with adding a down arrow to posts . When clicked on, it would take you to the bottom of the posting page. I don't see it here. I may have registered as ladybug on the old site.

Styles/Template folder: Open your viewtopic_body.html and FIND
(around line 139 in Prosilver and around line 153 in Subsilver2)

Code: Select all

<p class="author"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --></a><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF -->{L_POST_BY_AUTHOR} <strong>{postrow.POST_AUTHOR_FULL}</strong> &raquo; {postrow.POST_DATE} </p>
After <!-- ELSE --> ADD

Code: Select all

<a href="#bottom"><img src='images/down.jpg' border='0'></a>
This is still working fine in prosilver but not in subsilver2 since we've switched hosts for our forum. I came back to review directions but can't find them in case I forgot to document another step for subsilver2. Is it possible to find and add the directions here at this late date?

Re: "Go Down" or "Bottom" button

Posted: 05 Aug 2010, 12:11
by Stoker
Ladybug wrote:Using Blue Moon on a test site, I found and added the code. It now looks like this:

Code: Select all

<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><a href="#bottom"><img src='images/custom/down.jpg' border='0'></a><!-- ENDIF --><b>{L_POSTED}:</b> {postrow.POST_DATE}&nbsp;</div></td>
The image shows just as your sample. I click on it and it does nothing. Is there a command that should be added? Oh! Yes, I purged the cache.
Ladybug wrote:I got a tip on how to get it to work in Blue Moon. I had to add some code to the overall_footer.html file. I copied the code from Subsilver2 and added it to Blue Moon.

Template: Blue Moon
File: overall_footer.html
Find near the very bottom of file:

Code: Select all

<!-- IF DEBUG_OUTPUT --><br /><bdo dir="ltr">[ {DEBUG_OUTPUT} ]</bdo><!-- ENDIF --></span>
</div>
After, add:

Code: Select all

<div>
	<a id="bottom" name="bottom" accesskey="z"></a>
	<!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
When finished, the bottom of the file will look like this:

Code: Select all

<!-- IF DEBUG_OUTPUT --><br /><bdo dir="ltr">[ {DEBUG_OUTPUT} ]</bdo><!-- ENDIF --></span>
</div>

<div>
	<a id="bottom" name="bottom" accesskey="z"></a>
	<!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->
</body>
</html>
After adding this to the overall_footer.html file, your Go Down MOD works perfectly in Blue Moon.

:thumb:

Re: "Go Down" or "Bottom" button

Posted: 07 Aug 2010, 03:26
by MsIrey
Thank you so much, Stoker. I knew I could count on you!