1
Biolit11
Forum module question
  • 2013/5/28 4:01

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


So which forum is currently the one to use because if the xoops site is running on 2.5.6 and none of the forum modules in the downloads come even close the supporting this version. Im a bit stumped. Any suggestions?



2
Biolit11
Re: 2.3 Registering issues
  • 2008/9/26 4:28

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


Sorry for not replying Marco but Im not sure what exactly the reason behind this is. I have in the meantime with the same build that I had the problem done a separate install and that functioned without a problem. And the newer builds do not have that issue.

I am finding tho that for some reason fresh installs have little problem and that being the install in a brand new folder on the server. But if I remove old files from an existing folder that had a XOOPS install I constantly have problems.

And as for the captcha it works fine in a fresh install in a new folder but not from where an old install was.



3
Biolit11
Re: Took the 2.3 plunge - My Report
  • 2008/9/16 5:27

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


If there is one thing I dont get about XOOPS is that for some reason one install will work and then another will not. I did another install in a diff folder and that one works just fine.....



4
Biolit11
Re: Took the 2.3 plunge - My Report
  • 2008/9/16 0:45

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


Im wondering, I have a site that is running the same version of php and it has errors when you go to the register page. Does yours do the same or not?



5
Biolit11
Re: 2.3 Registering issues
  • 2008/9/14 16:23

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


On the site where I am having troubles with the captcha image I have setup another install of it and that one works fine. So I at first figured that it might be the theme on the site but changing it back to default had no effect on it. On this site instead of showing the captcha image it has the following

Confirmation CodeClick to refresh the image if it is not clear enough.


And this is the php and MySQL for the server.

XOOPS Version - XOOPS 2.3.0 RC2
PHP Version - 5.2.3
MySQL Version - 5.0.41-community-log
Server API Version - cgi-fcgi
OS Version - Linux

On the site where the php error occurred when going to register it is running a newer version of PHP.

XOOPS Version - XOOPS 2.3.0 RC2
PHP Version - 5.2.6
MySQL Version - 4.1.22-standard
Server API Version - cgi
OS Version - Linux



6
Biolit11
Re: 2.3 Registering issues
  • 2008/9/14 7:34

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


Well anyone can look at the 2.3 register.php file but here you go, lines 28 - 220

//$xoopsOption['pagetype'] = 'user';

include 'mainfile.php';
$module_handler xoops_gethandler('module');
$profile_module $module_handler->getByDirname('profile');
if (
$profile_module && $profile_module->getVar('isactive')) {
    
header("location: ./modules/profile/register.php" . (empty($_SERVER['QUERY_STRING']) ? "" "?" $_SERVER['QUERY_STRING']) );
    exit();
}

xoops_loadLanguage('user');
xoops_load("userUtility");

$myts =& MyTextSanitizer::getInstance();

$config_handler =& xoops_gethandler('config');
$xoopsConfigUser $config_handler->getConfigsByCat(XOOPS_CONF_USER);

if (empty(
$xoopsConfigUser['allow_register'])) {
    
redirect_header('index.php'6_US_NOREGISTER);
    exit();
}

    
function 
userCheck($uname$email$pass$vpass)
{
    
trigger_error("Function " __FUNCTION__ " is deprecated, use XoopsUserUtility::validate() instead"E_USER_WARNING);
    return 
XoopsUserUtility::validate($uname$email$pass$vpass);
}

$op = isset($_POST['op']) ? $_POST['op'] : ( isset($_GET["op"]) ? $_GET["op"] : 'register' );
$uname = isset($_POST['uname']) ? $myts->stripSlashesGPC($_POST['uname']) : '';
$email = isset($_POST['email']) ? trim($myts->stripSlashesGPC($_POST['email'])) : '';
$url = isset($_POST['url']) ? trim($myts->stripSlashesGPC($_POST['url'])) : '';
$pass = isset($_POST['pass']) ? $myts->stripSlashesGPC($_POST['pass']) : '';
$vpass = isset($_POST['vpass']) ? $myts->stripSlashesGPC($_POST['vpass']) : '';
$timezone_offset = isset($_POST['timezone_offset']) ? intval($_POST['timezone_offset']) : $xoopsConfig['default_TZ'];
$user_viewemail = (isset($_POST['user_viewemail']) && intval($_POST['user_viewemail'])) ? 0;
$user_mailok = (isset($_POST['user_mailok']) && intval($_POST['user_mailok'])) ? 0;
$agree_disc = (isset($_POST['agree_disc']) && intval($_POST['agree_disc'])) ? 0;

switch ( 
$op ) {
case 
'newuser':
    include 
'header.php';
    
$stop '';
    if (!
$GLOBALS['xoopsSecurity']->check()) {
        
$stop .= implode('<br />'$GLOBALS['xoopsSecurity']->getErrors())."<br />";
    }
    if (
$xoopsConfigUser['reg_dispdsclmr'] != && $xoopsConfigUser['reg_disclaimer'] != '') {
        if (empty(
$agree_disc)) {
            
$stop .= _US_UNEEDAGREE.'<br />';
        }
    }
    
$stop .= XoopsUserUtility::validate($uname$email$pass$vpass);
    if (empty(
$stop)) {
        echo 
_US_USERNAME.": ".$myts->htmlSpecialChars($uname)."<br />";
        echo 
_US_EMAIL.": ".$myts->htmlSpecialChars($email)."<br />";
        if (
$url != '') {
            
$url formatURL($url);
            echo 
_US_WEBSITE.': '.$myts->htmlSpecialChars($url).'<br />';
        }
        
$f_timezone = ($timezone_offset 0) ? 'GMT '.$timezone_offset 'GMT +'.$timezone_offset;
        echo 
_US_TIMEZONE.": $f_timezone<br />";
        echo 
"<form action='register.php' method='post'>";
        
xoops_load("XoopsFormCaptcha");
        
$cpatcha = new XoopsFormCaptcha();
        echo 
"<br />".$cpatcha->getCaption().": ".$cpatcha->render();
        echo 
"
        <input type='hidden' name='uname' value='"
.$myts->htmlSpecialChars($uname)."' />
        <input type='hidden' name='email' value='"
.$myts->htmlSpecialChars($email)."' />";
        echo 
"<input type='hidden' name='user_viewemail' value='".$user_viewemail."' />
        <input type='hidden' name='timezone_offset' value='"
.(float)$timezone_offset."' />
        <input type='hidden' name='url' value='"
.$myts->htmlSpecialChars($url)."' />
        <input type='hidden' name='pass' value='"
.$myts->htmlSpecialChars($pass)."' />
        <input type='hidden' name='vpass' value='"
.$myts->htmlSpecialChars($vpass)."' />
        <input type='hidden' name='user_mailok' value='"
.$user_mailok."' />
        <br /><br /><input type='hidden' name='op' value='finish' />"
.$GLOBALS['xoopsSecurity']->getTokenHTML()."<input type='submit' value='"_US_FINISH ."' /></form>";
    } else {
        echo 
"<span style='color:#ff0000;'>$stop</span>";
        include 
'include/registerform.php';
        
$reg_form->display();
    }
    include 
'footer.php';
    break;
    
case 
'finish':
    include 
'header.php';
    
$stop XoopsUserUtility::validate($uname$email$pass$vpass);
    if (!
$GLOBALS['xoopsSecurity']->check()) {
        
$stop .= implode('<br />'$GLOBALS['xoopsSecurity']->getErrors()) . "<br />";
    }
    
xoops_load("captcha");
    
$xoopsCaptcha XoopsCaptcha::getInstance();
    if( !
$xoopsCaptcha->verify() ) {
        
$stop .= $xoopsCaptcha->getMessage()."<br />";
    }
    if ( empty(
$stop) ) {
        
$member_handler =& xoops_gethandler('member');
        
$newuser =& $member_handler->createUser();
        
$newuser->setVar('user_viewemail',$user_viewemailtrue);
        
$newuser->setVar('uname'$unametrue);
        
$newuser->setVar('email'$emailtrue);
        if (
$url != '') {
            
$newuser->setVar('url'formatURL($url), true);
        }
        
$newuser->setVar('user_avatar','blank.gif'true);
        
$actkey substr(md5(uniqid(mt_rand(), 1)), 08);
        
$newuser->setVar('actkey'$actkeytrue);
        
$newuser->setVar('pass'md5($pass), true);
        
$newuser->setVar('timezone_offset'$timezone_offsettrue);
        
$newuser->setVar('user_regdate'time(), true);
        
$newuser->setVar('uorder',$xoopsConfig['com_order'], true);
        
$newuser->setVar('umode',$xoopsConfig['com_mode'], true);
        
$newuser->setVar('user_mailok',$user_mailoktrue);
        if (
$xoopsConfigUser['activation_type'] == 1) {
            
$newuser->setVar('level'1true);
        }
        if (!
$member_handler->insertUser($newuser)) {
            echo 
_US_REGISTERNG;
            include 
'footer.php';
            exit();
        }
        
$newid $newuser->getVar('uid');
        if (!
$member_handler->addUserToGroup(XOOPS_GROUP_USERS$newid)) {
            echo 
_US_REGISTERNG;
            include 
'footer.php';
            exit();
        }
        if (
$xoopsConfigUser['activation_type'] == 1) {
            
XoopsUserUtility::sendWelcome($newuser);
            
redirect_header('index.php'4_US_ACTLOGIN);
            exit();
        }
        
// Sending notification email to user for self activation
        
if ($xoopsConfigUser['activation_type'] == 0) {
            
$xoopsMailer =& xoops_getMailer();
            
$xoopsMailer->useMail();
            
$xoopsMailer->setTemplate('register.tpl');
            
$xoopsMailer->assign('SITENAME'$xoopsConfig['sitename']);
            
$xoopsMailer->assign('ADMINMAIL'$xoopsConfig['adminmail']);
            
$xoopsMailer->assign('SITEURL'XOOPS_URL."/");
            
$xoopsMailer->setToUsers(new XoopsUser($newid));
            
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
            
$xoopsMailer->setFromName($xoopsConfig['sitename']);
            
$xoopsMailer->setSubject(sprintf(_US_USERKEYFOR$uname));
            if ( !
$xoopsMailer->send() ) {
                echo 
_US_YOURREGMAILNG;
            } else {
                echo 
_US_YOURREGISTERED;
            }
        
// Sending notification email to administrator for activation
        
} elseif ($xoopsConfigUser['activation_type'] == 2) {
            
$xoopsMailer =& xoops_getMailer();
            
$xoopsMailer->useMail();
            
$xoopsMailer->setTemplate('adminactivate.tpl');
            
$xoopsMailer->assign('USERNAME'$uname);
            
$xoopsMailer->assign('USEREMAIL'$email);
            
$xoopsMailer->assign('USERACTLINK'XOOPS_URL.'/register.php?op=actv&id='.$newid.'&actkey='.$actkey);
            
$xoopsMailer->assign('SITENAME'$xoopsConfig['sitename']);
            
$xoopsMailer->assign('ADMINMAIL'$xoopsConfig['adminmail']);
            
$xoopsMailer->assign('SITEURL'XOOPS_URL."/");
            
$member_handler =& xoops_gethandler('member');
            
$xoopsMailer->setToGroups($member_handler->getGroup($xoopsConfigUser['activation_group']));
            
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
            
$xoopsMailer->setFromName($xoopsConfig['sitename']);
            
$xoopsMailer->setSubject(sprintf(_US_USERKEYFOR$uname));
            if ( !
$xoopsMailer->send() ) {
                echo 
_US_YOURREGMAILNG;
            } else {
                echo 
_US_YOURREGISTERED2;
            }
        }
        if (
$xoopsConfigUser['new_user_notify'] == && !empty($xoopsConfigUser['new_user_notify_group'])) {
            
$xoopsMailer =& xoops_getMailer();
            
$xoopsMailer->useMail();
            
$member_handler =& xoops_gethandler('member');
            
$xoopsMailer->setToGroups($member_handler->getGroup($xoopsConfigUser['new_user_notify_group']));
            
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
            
$xoopsMailer->setFromName($xoopsConfig['sitename']);
            
$xoopsMailer->setSubject(sprintf(_US_NEWUSERREGAT,$xoopsConfig['sitename']));
            
$xoopsMailer->setBody(sprintf(_US_HASJUSTREG$uname));
            
$xoopsMailer->send();
        }
    } else {
        echo 
"<span style='color:#ff0000; font-weight:bold;'>$stop</span>";
        include 
'include/registerform.php';
        
$reg_form->display();
    }
    include 
'footer.php';
    break;
    
case 
'actv':
case 
'activate':



7
Biolit11
2.3 Registering issues
  • 2008/9/13 16:01

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


I have one site where the CAPTCHA image does not come up for new
registrations, I am still looking to see where the problem lies there.

I have another one on a different webserver that when trying to register it
gives the following error:

Parse error: syntax error, unexpected T_CASE in
/home/..../...../.../Test/register.php on line 219

I noticed that case statement does not have a break; and adding one in
didnt help. Looking at the previous case statement I could not find
anything wrong with it. Any thoughts?



8
Biolit11
Re: admin login loop caused by inability to create adminmenu.pnp
  • 2008/1/15 16:01

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


Well it is a fresh install so there is no adminmenu.php to start with, and I did say I double checked the permissions.



9
Biolit11
admin login loop caused by inability to create adminmenu.pnp
  • 2008/1/15 5:45

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


Now I am hoping someone could maybe explain to me why the rest of the site works on a template system but not the admin menu. After doing a fresh install with the latest version 2.0.18 I have been bugged with the admin login loop. I have tried everything mentioned in here

When I skip the referer I get a empty admin menu that only contains the header and footer, but no menu. All file settings have been set and double checked. I have tried to create a blank adminmenu.php file hoping that it will be able to edit the file but still no go. Having the $content printed out from cp_functions : function xoops_module_write_admin_menu($content) Produces the folowing
"; $xoops_admin_menu_dv = "
System
 Banners
 Blocks
 Groups
 Images
 Modules
 Preferences
 Smilies
 User Ranks
 Edit User
 Find Users
 Mail Users
 Avatars
 Templates
 Comments
[Close]

"._VERSION."1.02
"._DESCRIPTION.": For administration of core settings of the site.
"; ?>


After looking at backups of the olderverions of my site I have found that there is a lot more to the adminmenu.php file. And looking at the code that generates the file there seems to be a good chunk missing. Any suggestions? For some reason the code is unable to write the file. Can anyone point me into a direction of possible culprit.



10
Biolit11
Re: Images in themes
  • 2005/6/3 8:13

  • Biolit11

  • Just popping in

  • Posts: 11

  • Since: 2003/6/19


Well here is my code for the first table, but even what you sent me still did not do the trick, any other help?

<table width="100%" height="150" align="center" cellspacing="0" cellpadding="0">
  <
tr>
    <
td>
      <
table width="965" height="150" align="center" cellspacing="0" cellpadding="0">
        <
tr>
      <
td width="139" height="150" background="<{$xoops_theme}>/images/header_01.gif"></td>
            <
td>
          <
table width="693">
            <
tr>
          <
td width="673" height="91" background="<{$xoops_theme}>/images/header_02.jpg"></td>
        </
tr>
        <
tr>
          <
td height="28" width="693">
            <
table>
              <
tr>
            <
td width="174"><a href="<{$xoops_url}>"><img src="<{$xoops_imageurl}>images/header_05.gif" alt="" /></a></td>
            <
td width="164"><a href="<{$xoops_url}>/modules/formulaire/"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/images/header_06.gif" alt="" /></a></td>
            <
td width="163"><a href="<{$xoops_url}>/modules/newbb/"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/images/header_07.gif" alt="" /></a></td>
            <
td width="174"><a href="<{$xoops_url}>/modules/mydownloads/"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/images/header_08.gif" alt="" /></a></td>
            <
td width="18" background="<{$xoops_url}>/themes/<{$xoops_theme}>/images/header_09.gif"></td>
            </
tr>
              </
table>
            </
td>
          </
tr>
          <
tr>
                    <
td background="<{$xoops_url}>/themes/<{$xoops_theme}>/images/header_04.gif" width="693" height="31" ></td>
                  </
tr>
        </
table>
          </
td>
          <
td background="<{$xoops_url}>/themes/<{$xoops_theme}>/images/header_03.gif" width="153" height="150" ></td>
        </
tr>
          </
table>
    </
td>
      </
tr>
  </
table>




TopTop
(1) 2 »



Login

Who's Online

114 user(s) are online (77 user(s) are browsing Support Forums)


Members: 0


Guests: 114


more...

Donat-O-Meter

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

Latest GitHub Commits