¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
carolinaz wrote:
Works great!
I found the exact same thing on line 118 so i needed to change that too
JAVesey wrote:
I don't know where one sets the maximum size of a smiley/emoticon.
/**
* @param string $uploadDir
* @param array $allowedMimeTypes
* @param int $maxFileSize
* @param int $maxWidth
* @param int $maxHeight
* @param int $cmodvalue
**/
function XoopsMediaUploader($uploadDir, $allowedMimeTypes, $maxFileSize=0, $maxWidth=null, $maxHeight=null)
<?php
include 'mainfile.php';
include 'header.php';
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$my_form = new XoopsThemeForm("form title", "form name", "action", "post", true); //post is method.
$drop = new XoopsFormSelect('some caption','item_name');
$options_array = array();
$options_array = unserialize('a:4:{s:13:"italia-verona";s:15:"Italia - Verona";s:13:"italia-milano";s:15:"Italia - Milano";s:16:"brasil-fortaleza";s:18:"Brasil - Fortaleza";s:15:"brasil-salvador";s:17:"Brasil - Salvador";}');
$drop->addOptionArray($options_array);
$my_form->addElement($drop);
$my_form->addElement(new XoopsFormHidden("op", "op_name"));
$my_form->addElement(new XoopsFormButton("", "submit", _SUBMIT, "submit"));
$my_form->display();
include 'footer.php';
?>
$user_icq = isset($_POST['user_icq ']) ? $myts->stripSlashesGPC($_POST['user_icq ']) : '';
$newuser->setVar('user_icq ',$user_icq,true);
$isAdmin = $gperm_handler->checkRight( 'system_admin', XOOPS_SYSTEM_USER, $groups); // isadmin is true if user has 'edit users' admin rights
//Added Code
if ($uid == 1 && !$isAdmin){
redirect_header('index.php', 3, _NOPERM);
}
//End
function xoops_getLinkedUnameFromId( $userid = 0, $usereal = 0, $is_linked = 1 ) {
$userid = intval( $userid ) > 0 ? intval( $userid ) : 0;
$member_handler = &xoops_gethandler( 'member' );
$user = &$member_handler->getUser( $userid );
$name = '';
if ( is_object( $user ) ) {
if ( $is_linked ) {
$url = XOOPS_URL . '/userinfo.php?uid=';
$name .= '<a href="' . $url . $userid . '">';
}
$name .= ( intval( $usereal ) && $user->getVar( 'name' ) != '' ) ? $user->getVar( 'name' ) : $user->getVar( 'uname' );
if ( $is_linked ) {
$name .= '</a>';
}
} else {
$name = $GLOBALS['xoopsConfig']['anonymous'];
}
return $name;
}