21
Alex_Grey
Re: Hello d3forum, goodbye CBB
  • 2008/2/24 14:30

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


can it import from xhnewbb?. i'm assumming yes.
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯



22
Alex_Grey
Re: change smilies size
  • 2008/2/24 14:27

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


Quote:

carolinaz wrote:
Works great!
I found the exact same thing on line 118 so i needed to change that too


Yes. I didn't notice it earlier but its for saving your smilies for when it is being editing.
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯



23
Alex_Grey
Re: change smilies size
  • 2008/2/23 13:49

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


Quote:

JAVesey wrote:

I don't know where one sets the maximum size of a smiley/emoticon.


It is hard coded in modules/system/admin/smilies/main.php on line 71. Link.

The parameters are.
/**
     * @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)
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯



24
Alex_Grey
Re: server redirecting the request for this address way that will never complete
  • 2007/11/23 3:35

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


Lately with the php5, people some have been having an issue dealing with register_long_arrays being set to off by default.

You should turn on debugging to see if any errors appear in some of the other modules.
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯



25
Alex_Grey
Re: Help to load a SELECT MENU
  • 2007/11/23 1:13

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


this is how to use it.

example.
<?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';
?>
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯



26
Alex_Grey
Re: dropdown menu in register.php
  • 2007/11/22 19:00

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


are you using.
$user_icq = isset($_POST['user_icq ']) ? $myts->stripSlashesGPC($_POST['user_icq ']) : '';


Also, are you setting the variable in the object.
$newuser->setVar('user_icq ',$user_icq,true);
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯



27
Alex_Grey
Re: new users aren't getting into the "users" group
  • 2007/11/14 4:16

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


check the _groups_users_link table for the groupid on one of the new users. what groupid are they assigned?

is it 2? if so then check the _groups table and see a groupid that is equal to 2 (Registered Users). if both are ok then idk what is wrong.

is it not 2? then check if define('XOOPS_GROUP_USERS', '2'); is present in mainfile.php.
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯



28
Alex_Grey
Re: problems moving xoops page from one host to another
  • 2007/11/11 21:03

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


Is it possible that there is a config setting on the server or the site that is disabling the $_GET superglobal. It seems that all of the issues deal with the $_GET variable not working.
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯



29
Alex_Grey
Re: protect admin's profile from other user ?
  • 2007/11/9 13:46

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


Below is some code for userinfo.php. it is set so only system_admin can view that profile.

$isAdmin $gperm_handler->checkRight'system_admin'XOOPS_SYSTEM_USER$groups);            // isadmin is true if user has 'edit users' admin rights

//Added Code
if ($uid == && !$isAdmin){
    
redirect_header('index.php'3_NOPERM); 
}
//End
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯



30
Alex_Grey
Re: Updated xoops_getLinkedUnameFromId
  • 2007/11/4 3:51

  • Alex_Grey

  • Just popping in

  • Posts: 43

  • Since: 2007/6/16


John. i was reading your code and i dont understand some of the things you are coding.

can i suggest this code? (based on your code)

function xoops_getLinkedUnameFromId$userid 0$usereal 0$is_linked ) {
   
        
$userid intval$userid ) > 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;
}

untested code though.
(sry about my 8 space tabs..)
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯




TopTop
« 1 2 (3) 4 »



Login

Who's Online

166 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 166


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits