stevetheipad wrote:
Is this compatible with Fluxbb 1.5? And where do we add the image files and where do we find them?
It is compatible. Add the pun/fluxbb code to main.tpl (in include/template) just before </body>
Add the image files to your forum's root directory.
Find them here: http://joren.tk/blocks
Offline
SciTecCf wrote:
Didn't work. I'm using PunBB 1.4.1. Added images to root dir, added code to main.tpl. What did I do wrong? Thanx.
I'd have to see... did you add the code before </body>?
EDIT: oh, I see the problem... updating code.
You should use the code for FluxBB 1.4.
Last edited by GeonoTRON2000 (2012-06-16 17:46:40)
Offline
GeonoTRON2000 wrote:
SciTecCf wrote:
Didn't work. I'm using PunBB 1.4.1. Added images to root dir, added code to main.tpl. What did I do wrong? Thanx.
I'd have to see... did you add the code before </body>?
EDIT: oh, I see the problem... updating code.
You should use the code for FluxBB 1.4.
Thanks!
Last edited by SciTecCf (2012-06-18 03:25:08)
Offline
GeonoTRON2000 wrote:
I've figured out how!
First, you need to add the block images.
Those are the .png files here.
Next, you need to parse the scripts, which is where we split into 2:
For phpBB
Add this code to the top of your scripts_footer.html (in template) or overall_footer.html if you don't have it:Code:
<script type="text/javascript" src="http://scratch.mit.edu/ext/blocksplugin/blocksplugin.js"></script> <script type="text/javascript"> var blocks = document.getElementsByClassName("blocks"); var i; for (i=0; i<blocks.length; i++) { if (blocks[i].innerText) blocks[i].innerHTML = blocks[i].innerText; else { blocks[i].innerHTML = blocks[i].innerHTML.replace(/<br \/>/gi, "\r\n"); blocks[i].innerHTML = blocks[i].innerHTML.replace(/<br>/gi, "\r\n"); blocks[i].innerHTML = blocks[i].innerHTML.replace(/&/g, "&"); blocks[i].innerHTML = blocks[i].innerHTML.replace(/</g, "<"); blocks[i].innerHTML = blocks[i].innerHTML.replace(/>/g, ">"); blocks[i].innerHTML = blocks[i].innerHTML.replace(/"/g, """); blocks[i].innerHTML = blocks[i].innerHTML.replace(/'/, "'"); } } scratchBlocksPlugin.parse({containerTag: 'pre', containerClass: 'blocks'}); </script>And add the following BBCode tag:
Code:
[scratchblocks]{TEXT}[/scratchblocks]Makes:
Code:
<pre class="blocks">{TEXT}</pre>For PunBB/FluxBB
Add the code that corresponds to your version to the bottom of main.tpl, just before </body>:
PunBBCode:
<script type="text/javascript" src="http://geonotron.net84.net/scratchblocks/punbb.js"></script>FluxBB 1.2
Code:
<script type="text/javascript" src="http://geonotron.net84.net/scratchblocks/fluxbb-1.2.js"></script>FluxBB 1.3 (Rare)
Code:
<script type="text/javascript" src="http://geonotron.net84.net/scratchblocks/fluxbb-1.3.js"></script>FluxBB 1.4
Code:
<script type="text/javascript" src="http://geonotron.net84.net/scratchblocks/fluxbb-1.4.js"></script>FluxBB 1.5
Code:
<script type="text/javascript" src="http://geonotron.net84.net/scratchblocks/fluxbb-1.5.js"></script>If you use PunBB Hosting or other hosting where you can't access the filesystem and add the block images (below), you should add this right beneath the Pun/Flux code:
Code:
<script type="text/javascript" src="http://geonotron.net84.net/forums/plugins/resourcegrab.js"></script>Next, we must celebrate!
when gf clicked repeat (1000) celebrate end stop all
that helps
Offline
SciTecCf wrote:
Hey Geono, I'm still having trouble on my forums. Can you help? Thanks!
I'm not sure your error is a problem with my code...
Yeah, that's an error by the ST.
Last edited by GeonoTRON2000 (2012-06-21 20:31:52)
Offline
soniku3 wrote:
It doesn't work on Punbb hosting!
PunBB hosting uses FluxBB 1.2
Make sure you use the right one!
Offline
GeonoTRON2000 wrote:
soniku3 wrote:
It doesn't work on Punbb hosting!
PunBB hosting uses FluxBB 1.2
Make sure you use the right one!
I DID SHOULD I MAKE YOU ADMIN? http://pinkie-pie.punbb-hosting.com/index.php
Offline
Hey, Geono... I know you're probably very, very tired of this, but I was wondering if you could help set up my forums? They aren't scratch approved yet, but they are 100% safe. Since they aren't approved, I would need to email you the link. If you aren't comfortable sharing your email, that's fine. I understand. See your forum posts soon!
EDIT: I have everything... Other than scripts_footer.html and overall_footer.html. Any other things I could use? I'm using phpbb.
Last edited by PullJosh (2012-07-08 19:51:23)

Offline