PDA

View Full Version : Quote-Top-Down button in each post


Sworm
11-02-2008, 04:46 PM
Hi all,
anybody can help me to add this 3 button in each post of my forum?
http://img514.imageshack.us/img514/7677/catturaxt0.jpg

-Quote post in PM- First button
-Top Button- Clicking this my users will go upper on the forum
-Down Button- Clicking this button my users will go down on my forum

Please help me.

Konstantinos
11-02-2008, 05:43 PM
find to postbit _legacy

<if condition="$show['inlinemod']">

ADD BEFORE

<a href="#top" onclick="self.scrollTo(0, 0); return false;"><img class="inlineimg" src="$stylevar[imgdir_button]/top.png" alt="Top" border="0"/></a>

--------------- Added 1225655114 at 1225655114 ---------------

for the bottom do the same like

<a href="#bottom" onclick="self.scrollTo(0, 0); return false;"><img class="inlineimg" src="$stylevar[imgdir_button]/bottom.png" alt="Top" border="0"/></a>

and in your footer template add in the first line

<a name="bottom"></a>

Sworm
11-02-2008, 06:11 PM
Don't work :(
Nothing buttons are showed in the showthread page :(

And sorry, but where is the quote post? https://vborg.vbsupport.ru/external/2008/11/25.gif

--------------- Added 1225657883 at 1225657883 ---------------

I have added this code in my postbit under :
<!-- icon and title -->
<div class="smallfont">
i have added:
<span style="float:right">
<a href="private.php?do=newpm&postid=$post[postid]"><img src="http://www.myforum.com/forum/images/misc/pmquote.gif" alt="Cita questo messaggio in privato" border="0" /></a> <a href="#top"><img src="http://www.myforum.com/forum/images/buttons/top.gif" alt="Vai in cima" border="0" width=22 height=15 /></a>&nbsp;<a href="#down"><img src="http://www.myforum.com/forum/images/buttons/down.gif" alt="Vai in basso" border="0" width=14 height=10 /></a></span>

Ok the 3 images are showed, but work only the "top" button, the quote and the down# button don't work.
The pm button don't quote the username (Recipient Username) and the content of the pm (the post quoted).
The down# button i don't know why don't work :( .

Please anybody can correct this code?

Thanks

Konstantinos
11-02-2008, 07:08 PM
this code works cause i am using it. u need to add top.png and bottom.png to /buttons folder

Sworm
11-03-2008, 04:09 PM
Re-Tryed on my 3.73 version, and the Kostantinos code work, but there's a problem.

If i click on the "Bottom" arrow, the page scroll to up.
If i copy the link of the bottom arrow the page scroll correctly in the bottom of the page.

Why this?

What is the error?

Kostantinos, can you post the exact location of the bottom code in postbit_legacy and the exact location in the footer template?

Sorry but i'm not expert. (i have seo installed , i don't know if is it that cause this problem)

Thanks