BD plugins

BDesign plugins

Unfortunately, Bebliuc (BDesign) had some problems with his hosting provider. This means his original site at http://frog.bebliuc.ro/ is down for the time being. Until his site is completely back up, I'm hosting the plugins. When I have the chance, I'll talk to Bebliuc to see what the status is of his site.

All of the plugins on this page were created by Bebliuc (BDesign).

Be aware: I do not have all of them (yet).

Current BD plugins:

  • BDesign Gallery plugin v1.2.0 (download)
  • BDesign Gallery plugin v?.?.? with support for MOD_REWRITE (download)
  • BDesign Statistics plugin v1.1.0 (download)
  • BDesign (download) Counter plugin v1.0.0 RC 1 (download)
  • BDesign (download) Counter plugin v1.0.0 Final (but slightly altered by mvdkleijn to work on his personal frog 0.9.5 site) (download)
  • BDesign blogroll plugin (download)
  • BDesign frogr plugin (download)
  • BDesign uploadR plugin (download)
  • BDesign Play plugin (swf/flash plugin) (download)
  • ---

Thanks to David for his help in retrieving these docs!

This documentation of the BDesign series of Frog plugins was fished out of Google’s cache on 2009.02.26; the Google cache copy is dated 15 Jan 2009 15:41:23 GMT. Note: the layout is a bit messy... ;-)

Bd Gallery 1.2.0

Hello everyone. I'm very sorry I've been keeping you waiting for this plugin, I know I've announced it for a while, but I was busy. And I was waiting for a public release of the Frog v0.9.3 (not 9.3 like others say) , because this plugin works best with this version. I hate to write docs , but here they are.

Changelog

Bd Gallery 1.2.0

  • Fixed "Blank Settings Page" bug.
  • Fixed "No thumbnails in front end" bug.
  • Fixed the back end errors.
  • Added better thumbnail quality.
  • Added quality switcher in the Settings Page
  • Added automatic version check.

Todo for 1.2.5

  • Add mass upload feature through a zip file.
  • Add feature to allow to fetch images from a directory.
  • Add compatibility with the Comments plugin.
  • Add watermark feature.

Update from 1.0.0 to 1.2.0

  • Download 1.2.0 from the bottom of the page.
  • Replace the old files from 1.0.0 with the new ones.
  • Deactivate the plugin. Be sure it deactivates correctly.
  • Activate it back. Now the database structure should be modified.
  • Enjoy

Requirements

  • A Frog v0.9.3 working install
  • A MySQL connection, with or without PDO. SQLite is not supported(yet) .
  • PHP 5.x.x
  • Some photos to upload :P

Installation

  1. Download the plugin from the bottom of the page.
  2. Extract the gallery.rar using your favorite extractor.
  3. Copy the gallery folder in the plugins directory.
  4. Login in the administration panel of Frog.
  5. Navigate to Administration - > Plugins tab.
  6. Select Bd Gallery and tick the checkbox for activation.

Now a new tab should appear : Gallery

Usage

  • Continue with the next steps only if the new tab appeared, else go to the Forum and post your problem
  • After you click on the Gallery tab, there should be a default album : Muffins (id:1) .
  • Select the Settingstab from the sidebar.
  • In the Images Folder field, you have to enter the folder where you want to upload the photos. The folder MUST be in the public folder, and has to have CHMOD 777 permissions .
  • In the Gallery Page field, you should enter the address to the page on which you will place the gallery. Ex : http://frog.bebliuc.ro/?gallery.html . There is one problem, you have to place the address with an ? like in the example, because at the moment the $_GET[] variable is not working on the front end because of the way queries are handled. If you use multiple pages with multiples albums, this field is important only if you have Script set to None.
  • The other Fields from the Settings tab are not mandatory to be modified, and are explained next to them.
  • Now, you have the settings all done, but there is no gallery displayed, no? So you have to create or modify a page, and place the following function in it :
     <?php gallery(); ?>
    That should do the trick
  • If you want to show only an certain album on a page, place this function in your page's content :
     <?php album('1'); ?>
    Where 1 is the id of the album shown in the Gallery administration panel.
  • This is all. Have fun with this plugin

Questions & Answers

Q: How to display a random photo ?
A: Place the following function where you want the random photo to appear :
 <?php random_photo(); ?>

Q: How to upload multiple photos in the same time?
A: When you press on the Add image tab from the sidebar, you'll see an "More upload fields" button. Press on it an select how many photos to update.

Bd Play

This is a simple plugin, used to play a flash video. And when I say simple, I mean simple. With this plugin I'll share Philippes little secret , hehe. His flash player . I hope he won't mind. So here comes the docs.

Installation

  1. Download the plugin from the bottom of this page
  2. Extract the play.zip using your favorite extractor.
  3. Copy the play folder in your plugins directory.
  4. Navigate to Administration -> Plugins, and activate Bd Play!.
  5. This is all

Usage

To use this plugin, you need swfobject installed. It's already in the package, and if you don't have it installed, just go to the header section an place the following code :
 <?php swfobject(); ?> 
After this step, you just have to include the flash video. To do this, you have to use the following syntax :
 <?php play("video_address", "width", "heigth"); ?> 
Example
 <?php play("demo.flv", "300", "300"); ?> 
A more advance with more features would be this :
 <?php play($video,  $width, $height, $div, $background, $image, $autoplay, $autorepeat, $allow_full_screen); ?> 
Where :
$video = The address to the video : http://example.com/video.flv
$width = The width of the video : 300
$height = The height of the video : 300
$div = The html div where the video to appear, will be automatically created
$image = The image to display before the video will be played : http://example.com/image.jpg
$autoplay = Auto play the video : true/false
$autorepeat = Auto repeat the video : true/false
$allow_full_screen = Allow full screen or not : true/false

Bd UploadR

At Robf's request, I've made this plugin. So if you'll find it useful, thank him for it :P With this plugin, you can upload files on the page, I mean, you can upload while you are writing a new page/article or modifying it.

Installation

  1. Download the plugin from the bottom of this page
  2. Extract the uploadR.zip using your favorite extractor.
  3. Copy the uploadR folder in your plugins directory.
  4. Navigate to Administration -> Plugins, and activate Bd uploadR.
  5. Using your favorite FTP Explorer, go to /frog/plugins/uploadR/ and CHMOD 777 the uploads.
  6. This is all

Usage

  • Write/modify a page, and you'll see 4 uploads fields.
  • Select the Browse button.
  • Select the file you want to upload.
  • Click on Upload
  • A new link should appear: Drag me
  • Drag that link into the textarea where you want to get the link to the uploaded file
  • Enjoy

Bd Highlighter

Here is another plugin, not very sophisticated, but very useful, at least for my needs. It's perfect if you're a developer and post excerpts of code on your blog. This plugin is using PrettyPrint, and it's very easy to use. Here are some code examples.

Some HTML

 <ul id="accessability"> 	<li><a href="#content" title="Skip to Content">Skip to Content</a></li>  	<li><a href="#sidebar" title="Skip to Sidebar">Skip to Sidebar</a></li>  	<li><a href="#search" title="Skip to Search">Skip to Search</a></li> </ul> 

Some PHP

function highlighter() {
$sql = "SELECT * FROM " . TABLE_PREFIX . "table";
global $__FROG_CONN__;
$stmt = $__FROG_CONN__->prepare($sql);
$stmt->execute();
$row = $stmt->fetchObject();
}

Some CSS

code {
display:block;
overflow:auto;
clear:both;
padding:2px 2px 15px 2px;
border-left:4px solid green;
background :#F4F2E4 none repeat scroll 0 0;
font-size:10px;
font-family:monaco,courier,monospace;
}

Installation

  1. Download the plugin from the bottom of this page
  2. Extract the highlighter.zip using your favorite extractor.
  3. Copy the highlighter folder in your plugins directory.
  4. Navigate to Administration -> Plugins, and activate Bd Highlighter.
  5. Navigate to Layouts, and select the current template. If you have your template sectioned in Snippets, select the snippet/layout where the <head></head> HTML tags are, and insert between them this piece of code :
     <?php highlighter(); ?> 
  6. Save the template
  7. Now, selecte the Layout where the <body></body> HTML tags are, and replace this :
     <body> 
    With this:
     <body onload="prettyPrint()"> 
  8. Save the template
  9. All done

Usage

To use the highlighter, you have to place your code between <code class="code lang-css"> </code> tags. So it will be like this: <code class="code lang-css"> code { display:block; overflow:auto; clear:both; padding:2px 2px 15px 2px; border-left:4px solid green; background :#F4F2E4 none repeat scroll 0 0; font-size:10px; font-family:monaco,courier,monospace; } </code> Where CSS is the language you are highlighting. Here is a list of known languages :
  • C
  • CC
  • CPP
  • CS
  • CSS
  • CYC
  • JAVA
  • BSH
  • CSH
  • SH
  • CV
  • PY
  • PERL
  • PHP
  • PL
  • PM
  • RB
  • xHTML
  • XML
  • XSL
This is all :). Happy highlighting.

Bd FeedBurner

Hello. Here I am, and not alone, with another plugin :P . This time, it's a pretty simple one, but useful when you don't like the ugly chicklets, bleah. With this plugin you can display the number of your subscribers, in text format, so it's much more customizable, and no credits for feedburner, ha ha. And there's more, you can even display the number of hits which the RSS Feed receives. Here are some docs.

Installation

  1. Download the plugin from the bottom of this page
  2. Extract the feedburner.zip using your favorite extractor.
  3. Copy the feedburner folder in your plugins directory.
  4. Navigate to Administration -> Plugins, and activate Bd FeedBurner.
  5. All done.

Usage

  • To display the number of the subscribers, you only have to use this php function :
    <?php subscribers('feedburner_id'); ?>
    , where feedburner_id, is what you think it is. Yes, your feedburner id :P .
  • If you want to change the text displayed, and add other stuff like the number of hits and the date, you can go in the following folder : /frog/plugins/feedburner/ and edit index.php . There, at line 34, you'll see something like this :
    $template = "You have {$subs} subscribers.";
  • There you can add some extra stuff. If you want to display the number of hits, use :
    {$hits}
  • If you want to display the date corresponding with the subscribers and hits, use this :
    {$date}
This is all.

Bd Download Manager

Hello everyone. Today I'm releasing my latest plugin, the Bd Download Manager. Why I say Manager instead of Counter? Because I've almoust fully rewrite the code, many modifications were made, new features were added. So I think it deserves the name, Manager. I tried to make this plugin available quicker, but I encountered some little problems, which in the end became big ones. One of them was the possibility to keep the curent downloads from the older version while upgrading, because I've modified the structure of the MySQL tables. You'll see that it's a bit rusty. There are some new features like :

  • Better administration interface, more user friendly .
  • Possibility to edit the entries after submitting
  • Template support.
  • Import/Export/Backup possibility

Installation

The installation is different. If you plan to install it, and never used Bd Download Counter ( this is Bd Download Manager) , you have to follow this steps:
  • Download the plugin
  • Extract it and copy it's content in the plugin directory , so it will be something like frog/plugins/counter/index.php
  • Go to Administration -> Plugins -> BD Download Manager and activate it.
  • Click on Counter Tab and select Import/Export/Install from the sidebar.
  • A field named ACTION will apear. Type "INSTALL" in it, without quotes. It's case sensitive, so please insert the text uppercase.
  • If all worked ok, this message should be shown :
  • Bd Download Manager has been installed.
    download has been created.
    download_template has been created.
    Happy downloading.
  • That's all. Now all you have is add some downloads to count(or links).

For updating from a older version of Bd Download Counter to Bd Download Manager, please follow the instructions from the VIDEO ( it the only video from the VIDEOS section, lol ). Just in case, here are some written steps :) .

  • DELETE COUNTER FOLDER FROM PLUGINS DIRECTORY.
  • COPY BD DOWNLOAD MANAGER IN THE PLUGINS DIRECTORY.
  • ACTIVATE THE PLUGIN.
  • CLICK ON THE NEW "COUNTER" TAB.
  • CLICK ON IMPORT/EXPORT/INSTALL BUTTON FROM THE SIDEBAR.
  • IN THE ACTION FIELD INSERT "EXPORT" , WITHOUT BRACKETS.
  • HIT GO.
  • COPY SOMEWHERE SAFE THE SQL SYNTAX FROM THE "EXPORT SQL" TEXTAREA.
  • CLICK ON IMPORT/EXPORT/INSTALL BUTTON FROM THE SIDEBAR.
  • IN THE ACTION FIELD INSERT "INSTALL" , WITHOUT BRACKETS.
  • HIT GO .
  • THIS MESSAGE SHOULD APPEAR :
    Bd Download Manager has been installed.
    download has been created.
    download_template has been created.
    Happy downloading.
  • CLICK ON IMPORT/EXPORT/INSTALL BUTTON FROM THE SIDEBAR.
  • IN THE ACTION FIELD INSERT "IMPORT", WITHOUT BRACKETS.
  • PASTE THE EXPORTED SQL SYNTAX FROM STEP 8 .
  • HIT GO.

Template system

As you can see, I've added a new feature, the template system. What is it about? For me, as a designer, I need my code to be very flexible, so I can adapt it very easily to every site. The Bd Download Counter only had 2 css classes which you couldn't change without modifying the PHP code from the plugin. And that's not to comfortable for every designer, or normal user. With this new feature, you can modify the output of the Bd Download Manager very easily. Here are the tags to use in the template :

<?php $bdcounter->title(); ?> => Download title
<?php $bdcounter->url(); ?> => Download url (for usage with the download title)
<?php $bdcounter->description(); ?> => Download description
<?php $bdcounter->password(); ?> => Download password protection field
<?php $bdcounter->type(); ?> => Download type (ex: Rar, Zip)
<?php $bdcounter->counts(); ?> => Number of downloads

The default template uses them all, but none of them are required. You can post only the download link.

Conditional tags in template

Here is a very simple demonstration of how to use the Conditional tags (if/else) in the template.
Example : Hide the description if the field is empty.
 <?php
  
if ($bdcounter->description() != "") {
?>
Description<br />
<?php
      $bdcounter
->description();
?>
<?php
  
}
?>

How to use

The usage is exactly like in the previous version. You just have to place <?php dcounter('1'); ?> where you want your download link to appear (as configured in the template feature) . Instead of 1 , you have to place the ID of the download. You get it by clicking on the title of the download in the administration panel. It should be named : "Old link template".
This is all. Feedback is welcome, as usual. Use the comment form if you have any questions. Thanks.

Bd Statistics

Hello everyone. Long time no see. I finally found some time to write a new plugin for FrogCMS. I really needed this plugin for myself, so I thought it'll be nice to have it. So here it is.

Bd Statistics v1.0 Features:

- Projected hits for today
- Hits For Last * Days
- Total
- Average
- Most hits
- Least hits
- Latest Referrers
- Online users

Bd Statistics v1.0 Installation Guide

1. Copy the plugin in Frog's plugin directory.
2. Go to Administration -> Plugin and activate Bd Statistics from the list.
3. A new tab should show up. Click on it. If everything worked fine, it should display :
Plugin succesfully installed.
All tables created successfully!
Please hit again the Statistics Tab
4. Now go to Layouts and select you're theme. Insert this code in the above everything ( above tag ) : <?php bd_statistics(); ?>
5. If you want to show the online members, include this in your template : <?php bd_onlineUsers(); ?>
6. That's all.

Bd Contact

Hello everyone. It's been a while from my latest plugin. Today I'll present you the Bd Contact Plugin. It's a pretty cool, but simple contact form. But the most important, it's simple to use, so everybody can use it without having a hard time with it. I really don't have what to say about it, I think is better to let you use it, and wait for your feedback.

Installation

  • Download the plugin
  • Copy it in the plugins directory
  • Go to Administration/Plugins and activate Bd Contact Form
  • That's all

Usage Guide

First you have to initiate the JavaScript code. To do that, you have to place this code in your <head> section of your template:

<?php js_contact(); ?> 

Then, where you want to use the contact form, insert this syntax :
 <?php advanced_contact('yourEmail@yourSite.com'); ?>
Don't forget to change yourEmail@yourSite.com with your email address.
This should do the trick. Have fun.
This is powered by Moo.Floor.CH FormCheck Javascript.

Bd FrogR

I made this plugin David's request. It's a very simple plugin to use, witch uses Flickr's Rss Feed.

Instructions for v1.0.0

  1. Download FrogR v1.0.0
  2. Extract it and copy the extracted files in your plugin directory
  3. Go to Administration -> Plugins and activate it
  4. That's all
  5. If you have the old version delete it first, and then follow the 1 step.

Usage of FrogR v1.0.0

  1. Go in your template/page where you want to place the FrogR Feed
  2. Copy and paste this code in the above place <?php FrogR('73157524@N00','10','Original','72157594476328792'); ?>
  3. Copy and paste this in the <head> section of your TEMPLATE : <?php js_frogr(); ?>
In the above example of FrogR, you have 3 4 parameters : 3157524@N00, 10 and Original. Let me explain them.
73157524@N00 is the Flickr user id. You can get it using the Flick Id Getter from below.
10 is the number of photos to display . Maximum value is 18.
Original is the size value. This is new in this version. Use Small to display 75x75 photos, Medium is to display 240 on the longest size, Original to disply photos with their original size. The size counts only if using Slimbox.
72157594476328792
is the set id. You can get it from the URL of the set while you are exploring it on Flickr.
That's all. Enjoy.
TinyMCE « Previous Next » Statistics API