The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
adding printable thread button in the sidebar
Hi all,
I want to remove the popup menu above the threads and planning to put them on the sidebar on the same thread page where a user can push the printable version button as it is easy to see aside. I took this code from Showthread template and tried to set it up on the sidebar, but it doesn't pick the thread number!! HTML Code:
<a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}printthread.php?{vb:raw session.sessionurl}t={vb:raw threadid}&pp={vb:raw perpage}&page={vb:raw pagenumber}" accesskey="3" rel="nofollow">{vb:rawphrase show_printable_version}</a> Thanks |
#2
|
|||
|
|||
How are you doing that exactly? If you're using a template, you would need to register the threadid and pagenumber values to the template before rendering it (and remove the $ from vboptions the first time it appears).
|
#3
|
|||
|
|||
Quote:
how do I register the threadid and pagenumber values? do I have to use a plugin or write a php code? any clue on that?? by the way, the printable version button is going to be on the same page where it is used to be except that I will move it to the sidebar that appears on the same page as showthread Thanks |
#4
|
|||
|
|||
So when you say you're moving it to the sidebar, do you mean you're creating a forum block? Then you'd need a php type forum block that renders a template.
Well, OK, you could just code the html into your php wihout a template, and it might be a little easier to code. The convention is to use templates for html, but you don't have to follow that. |
#5
|
|||
|
|||
Quote:
can you give some example please! Thanks |
#6
|
|||
|
|||
Hmm...Well, the sidebar only shows up on the forum home page, so I don't understand how it's going to let you print a thread.
|
#7
|
|||
|
|||
Quote:
http://www.forexmegacashback.com/sho...0440#post30440 I want to show the print thread on the left side where you can see the sidebar under the menu |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|