By sphankin on
I'm looking for someone to help turn a simple wordpress plugin into a Drupal plugin for use on my non-profit website.
I can send you a copy of the plugin on request as it is not readily available from the Wordpress site.
If you would like more information, please contact me.
Regards,
Sam
Comments
You might want to mention the
You might want to mention the plugin and provide a link to it.
Thanks - forgot to mention -
Thanks - forgot to mention - I can send you a copy of the plugin on request as it is not readily available from the Wordpress site.
You might also want to post
You might also want to post it (together with more information) to http://groups.drupal.org/projects-needing-volunteer-developers . There might be a chance.
Thanks for pointing it out -
Thanks for pointing it out - I've now posted it there - fingers crossed!
Turning a Wordpress plugin into a Drupal module
Hi i would like to convert a wordpess plugin to drupal module. The code in Wordpess looks like that.
<?php
/*
Plugin Name: RTI Viewer
Description: Plugin uses PTM Java viewer available from materialobjects.com
Version: 0.1
Author: Hembo Pagi
Author URI: mailto:hembo.pagi@arheovisioon.ee
*/
if (!defined("AUTH_KEY")) {
header("location: /");
exit;
}
/*
* Makes the relative path based on URL
*
*/
function relative_path() {
$out = "";
$path_count = count(explode('/',$_SERVER['REQUEST_URI']));
for ($i=0; $i<$path_count-2; $i++) {
$out .= "../";
}
return $out;
}
/*
* Lets make PTM-file upload possibe
* Based on: http://howto.blbosti.com/2010/03/wordpress-modify-the-upload-list-of-all...
*
*/
add_filter('upload_mimes', 'custom_upload_mimes');
function custom_upload_mimes ( $existing_mimes=array() ) {
// add your extension to the array
$existing_mimes['ptm'] = 'application/x-ptm';
return $existing_mimes;
}
/*
* Proccesses the shortcode arguments and returns Java-applet
*
*/
function rtiviewer_func( $atts ) {
extract( shortcode_atts( array(
'src' => '',
'width' => '986',
'height' => '655'
), $atts ) );
return '
';
}
add_shortcode( 'rti', 'rtiviewer_func' );
Thank you