Ask Donneker
Google
Klarmachen zum Ändern! Piratenpartei


b2evolution plugin custom page:
b2evolution plugin: custom page by Stefan Hummert
more about the creators here

custom page is a plugin for advanced bloggers that wanna include their own content easy in the main column of the blogpage without showing the blog posts. You have to know about html/php because you have to upload a php file that consists of html and/or php. With that little plugin its really easy to customize your main column while letting the base design of the rest of your blog as it is. In order to use it, you need b2evolution 1.10.2 (version I tested). To see a demo blog page with this plugin have a look at Erfolgswelt.de/blogs and look at the bottom of the page for "Impressum".


@custom page plugin b2evolution plugin: custom page - based on skeleton plugin

b2evolution plugin: custom page - based on skeleton plugin

General information
plugin name custom page
b2volution version: 1.10.2
Notes This is an experimental Plugin.
It provides advanced customization of the main column of your page. You can include own php files (of course, they also just can have html content - they must not include php code. The customization can be done on a per blog basis, or on a per skin basis, as you parameter the settings.
Developer Donneker (custom page plugin)
Credits b2evolution team
HTML version XHTML 1.0 Transitional


So, my thanks to the people developed b2evolution and for all that people who did the nice work with the plugins and skins.

installation:

The custom page plugin is proved to work with b2evolution 1.10.2
To install, download the file, remove the ".txt" extension and upload it in your plugin directory. Then go to the settings / plugins Tab at the admin section and install the "custom page" plugin.
You have to add a few lines to your _main.php in all skins you want to use that plugin with.

File _main.php (in your skin directory)
search for


// --------------------------------- END OF MESSAGES ---------------------------------
?>

Add the following lines AFTER these:

<?php
// CUSTOM PAGE Plugin
if ( isset( $CustomPage_Plugin ) )
{
// $mediapath = $Blog->get_media_dir(false); // check in the media dir of the blog!
// dirname(__FILE__)
$CustomPage_Plugin->includeTarget( $Blog->get_media_dir(false) );
}
?>

Parameters includeTarget function:
The parameter is the base directory to search for your content.
I advice to use: $Blog->get_media_dir(false) as you see in the example. Because then you have custom content on a per blog basis.
If you put there in dirname(__FILE__) then you would have to upload your content to the skin directory where your _main.php is. But as you could think of, then that content is only available to the choosen skin, which may be not what you want.

Howto is at the screenshots.

download:
b2evolution custom page plugin

screenshots:
click here to see demo page!

In order for customizing the content on a per blog basis, look at the screenshots below to enable the upload of ".php" files. Look at the red marked sections of the screenshots. The red closed security icon should switch to a green based one for the php files then.
click for fullsize screenshot


After installation you can upload your html/php file content to your blog media directory. To use it you take the base name of your uploaded file, and that you use as link to get your custom page.
click for fullsize screenshot


Example: you uploaded a file called "impressum.php" (as you see on my screenshot)
The basename is "impressum" (so without extension)
Now, if you want to link it from your blog, the URL must be as your normal URL with the target param set to the basename. That is in my case http://www.erfolgswelt.de/blogs/?target=impressum
Note: if you have more then one param like ?blog=4 before, then just put it as additional param, so it also could be http//www.erfolgswelt.de/blogs/?blog=5&target=impressum
click for fullsize screenshot





Diese Seite bewerten / Vote this site:

Rating: 1.6/5 (85 votes cast)

Disclaimer/Impressum

  visits:

(c) 2006-2009 by Stefan Hummert

Back2Main