"Go Down" or "Bottom" button

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
Locked
MsIrey
BBCoder I
BBCoder I
Posts: 2
Joined: 21 Jul 2010, 06:44

"Go Down" or "Bottom" button

Post 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?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3558
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: "Go Down" or "Bottom" button

Post 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:
Board rules! No PM support
MsIrey
BBCoder I
BBCoder I
Posts: 2
Joined: 21 Jul 2010, 06:44

Re: "Go Down" or "Bottom" button

Post by MsIrey »

Thank you so much, Stoker. I knew I could count on you!
Locked