This is the archived version of my b2evolution code blog.
If you require any help regarding b2evolution then
visit it's support forums
You can find my current blogs here
Code : {@link : WafflesOn}
Personal : {@link : InnerVisions}
| « Potential exploit | Extra Comment control » |
Posted on 29th Nov 2006 in : Plugins & Widgets
As EdB points out in this post on the forums, lots of people want custom pages and there's no "native" way to do this with evo. So, I decided to have a play and see if it was possible to do.
I've knocked together a plugin that allows you to include files in a blog post by using a comment like this :-
Code:
<!--include my_page --> |
The contents of that file are :-
Code:
<?php | |
// yet another hello world :D | |
echo '<p style="border:1px solid #ff0;">hello world from my page ...... '.rand( 1, 100 ).' is a random number between 1 and 100 ;)</p>'; | |
?> |
and here's the results :-
With a tad of abuse to the linkblog you could turn this into a bunch of custom pages that are shown in your sidebar, although you then lose your linkblog, but there's ways round that as well.
In it's current form this one's definately not for public consumption, so if you want to have a play with it then you'll need to register and leave a comment, or send me a pm via the forums.
I'm probably not going to go much further with this, although I might incorporate it as part of my linkblogPlus plugin
¥
Page archived : 28th Feb 2010