What happened to OC? - CLOSED Carnage?!
Down Under

Adding a Button (Template) to phpBB

Ok, here's my question. How do I add a "button" to my   php BB board that would call up a specific template so that others on the same board would always use. I tried looking on their site but could not find the correct info

 

for Example:

 

I would have a area in the forum that would have Admins go to "ban players" on Halo: this would be the Template I am thinking of:

 

Ban Report
Banned Player: A-Hacker
Ban Type: Perm
Server: Golden Eye
Ban Date: March 8th 2017
Player Hash: CD-Key Hash: f45c0d4f2efd9fe17a4ccc1d2f739b13
Banlist Data: IP: 91.233.178.203:2303

Share this post


Link to post
Share on other sites

Tiddy-bits:

Thanks I will look into it. I did see these but with my lack of managing a board (site) like yours; I thought you may have used this method at one time. Thanks for the help in the right direction!

Share this post


Link to post
Share on other sites

If you really just want a button that shows a template when clicked, this will do:

<a onclick='RevealInformation()' title='Toggle' href='javascript:;'>Show Template</a>
<div id='info_hidden' style='display: none;'>
Stuff Here
</div>
<script type='text/javascript'>
	function RevealInformation() {
		var displayed = document.getElementById("info_hidden").style.display != "none";
		if(displayed) {
			document.getElementById("info_hidden").style.display = "none";
		}
		else {
			document.getElementById("info_hidden").style.display = "block";
		}
	}
</script>

But you'll need some coding knowledge to integrate with your theme so that it aesthetically fits.

Down Under likes this

Oddly, this is familiar to you... as if from an old dream.  

Share this post


Link to post
Share on other sites
On 3/10/2017 at 3:57 PM, Down Under said:

Thanks, just sent you a "donation" ! always a pleasure visiting this site!

Thanks!


Oddly, this is familiar to you... as if from an old dream.  

Share this post


Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.