By the way I don't quite understand your title... Are you saying people are wanting to charge you for creating a custom twitter module? If that's the case, they may be charging you because they value their time.
<?php
include ("../../../mainfile.php");
include_once XOOPS_ROOT_PATH."/modules/message/message.textsanitizer.php";
function b_message_blocks_show($options)
{
global $xoopsUser, $xoopsConfig, $xoopsDB, $xoopsModule, $xoopsTheme;
$block = array ();
$myOption = (int) $options[1];
$myts = & messageTextSanitizer::getInstance();
$sql = $xoopsDB->query("select count(xid) from ".$xoopsDB->prefix("message"));
include_once XOOPS_ROOT_PATH."/include/xoopscodes.php";
list ($numrows) = $xoopsDB->fetchRow($sql);
$result = $xoopsDB->query("SELECT name, comment, submitter, ip, date FROM ".$xoopsDB->prefix("message")." order by xid desc limit ".$myOption."");
include XOOPS_ROOT_PATH."/modules/message/badwords.php";
while ($myrow = $xoopsDB->fetchArray($result))
{
$message = array ();
$Badwordfilter = $xoopsModuleConfig['message']; //
$message['name'] = $myts->htmlSpecialChars($myrow['name']);
$message['comment'] = $myts->makeTareaData4Show(SmartCensor($myrow['comment'], $Badwordfilter), 0);
$message['date'] = formatTimestamp($myrow['date'], 'm');
$block['lang_xname'] = _MB_MESSAGENAME;
$block['lang_xcomment'] = _MB_MESSAGE_COMMENT;
$block['lang_xdate'] = _MB_MESSAGEDATE;
$block['lang_xsubmit'] = _MB_MESSAGESUBMIT;
$block['lang_guestuser'] = _MB_MESSAGEGUESTUSER;
$block['message'][] = $message;
}
return $block;
}
function b_message_blocks_edit($options)
{
$form = ""._MB_MESSAGE_DISP." ";
$form .= "<input type='hidden' name='options[]' value='";
$form .= "date'";
$form .= " />";
$form .= "<input type='text' name='options[1]' value='".$options[1]."' /> "._MB_MESSAGE_NUM."";
return $form;
}
?>
<?php
$x = 0;
$modversion['config'][$x]['name'] = 'message';
$modversion['config'][$x]['title'] = '_MI_MESAAGE';
$modversion['config'][$x]['description'] = '';
$modversion['config'][$x]['formtype'] = 'yesno';
$modversion['config'][$x]['valuetype'] = 'int';
$modversion['config'][$x]['default'] = 0;
?>
<?php
// Blocks
$modversion['blocks'][1]['file'] = "message_blocks.php";
$modversion['blocks'][1]['name'] = _MI_MESSAGE_TITLE;
$modvertion['blocks'][1]['description'] = "MESSAGE";
$modversion['blocks'][1]['show_func'] = "b_message_blocks_show";
$modversion['blocks'][1]['edit_func'] = "b_message_blocks_edit";
$modversion['blocks'][1]['can_clone'] = true ;
$modversion['blocks'][1]['options'] = "date|10|19";
$modversion['blocks'][1]['template'] = 'message_blocks.html';
?>
$cid = $_POST['cid'];
$pid = $_POST['pid'];
$title = $myts->htmlSpecialChars($_POST['title']);
$imgurl = "";
if ( empty($title))
{
redirect_header("index.php", 2, _MD_X_MOVIE_ERRORTITLE);
}
if (($_POST["imgurl"]) || ($_POST["imgurl"] != ""))
{
$imgurl = $myts->htmlSpecialChars($_POST["imgurl"]);
}
$weight = $myts->htmlSpecialChars($_POST['weight']);
$cid = (int) $_POST['cid'];
$pid = (int) $_POST['pid'];
$title = mysql_real_escape_string($_POST['title']);
$imgurl = "";
if ( empty($title))
{
redirect_header("index.php", 2, _MD_X_MOVIE_ERRORTITLE);
}
if (($_POST["imgurl"]) || ($_POST["imgurl"] != ""))
{
$imgurl = mysql_real_escape_string($_POST["imgurl"]);
}
$weight = (int) $_POST['weight'];