Topic: Plugin to display static html

I've written a plugin named 'File' which can display the contents of a (html) file in a block.

More info and download:
http://vanslooten.com/?controller=post& … ;id_post=4

Re: Plugin to display static html

Hi Fjodor,
thanks for the plugin! I like the changes you made on your blog!

Re: Plugin to display static html

Fjodor:

Please tell me how to get my headings to display with something other than File. For example, if I have a file called about.html, I wish for the header to be About. It always shows File.

Re: Plugin to display static html

In the template, use it as follows:

$plugin->set_title("Facebook"); // Display file facebook.html
display_plugin($plugin);

I have added a function display_plugin:

<?php
function display_plugin($plugin) {
    echo '<div class="plugin">';
    $title=$plugin->get_field_db('title');
    if($title=="") $title=$plugin->get_name();
    $title=str_replace("_", " ", $title);
    echo '<h3>'.$title.'</h3>';
    echo $plugin->get_html();
    echo '</div>';
}
?>

For a complete example, review the photoheader example template. (file templates\default.bit)

Re: Plugin to display static html

Nibbleblog v3.4a
I can not install the plug "FILE".
I uploaded the folder "plugins" plugin files "FILE". I click on a link in the admin "Install" in the browser window displays information:

You can see the link - http://kruglokot.com/

Re: Plugin to display static html

http://kruglokot.me/ This link is set Nibbleblog v3.4a with the plugin "FILE"
You can install the plugin in the admin panel and see what happens.
Access to the admin panel:
username: nommo
password: nommo

How to fix?
How to install a plugin?

Re: Plugin to display static html

That plugin is written for version 3.2 or 3.3 of Nibbleblog. It does not work in the new version 3.4.
In this new version there's a plugin "HTML code" which does the same. So no need for my plugin.
Out-of-the-box only the theme "Simpler" shows the HTML code plugin. But you can modify the other themes to show the plugin.

Re: Plugin to display static html

Thank you, Fjodor! I saw "HTML" plugin.
I can not use this plugin to show links.
Plug-in "HTML" link to add extra slashes and the link is not working. <a href=\"http://www.ultra4.eu/\">ULTRA4</a><br>

How to fix it?
How to display a few blocks "HTML"?

In your plugin all described in detail, and the plug-in "HTML" is unclear.

Automated translation from Russian

Re: Plugin to display static html

Problem solved.
During archiving files in a zip archive for transfer to the server, the file was lost .htaccess with magic_quotes.

10 (edited by hariseldon 16-09-2013 07:15:37)

Re: Plugin to display static html

Fjodor wrote:

That plugin is written for version 3.2 or 3.3 of Nibbleblog. It does not work in the new version 3.4.
In this new version there's a plugin "HTML code" which does the same. So no need for my plugin.
Out-of-the-box only the theme "Simpler" shows the HTML code plugin. But you can modify the other themes to show the plugin.

Hi Fjdor I am still on 3.3 and I would like to use your plugin with your permission.

Where would I get it, that page does not load to me...


__________
Free hosting