1
cutley
Re: My forum software is giving me this error...
  • 2007/7/20 9:35

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


they are only notices in the debug, so shouldn't cause that
- - - - -
xoops FTW



2
cutley
Re: Frameworks Captcha
  • 2007/7/19 13:22

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


ooooo how did I not find that, my google skills are obviously not as good as they used to be. I'll give it a go later but it looks correct to me.

TANKS!
- - - - -
xoops FTW



3
cutley
Re: My forum software is giving me this error...
  • 2007/7/18 16:22

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


Are there any differences between that forum and the others?

or ishttp://blackfootcountry.com/modules/newbb/viewforum.php?forum=1 the same as your other ones? permissions etc

If not, make a new forum and transfer the thread acrost


There may be a fix for it, but I am not very good with cbb so just offering a simple soultion
- - - - -
xoops FTW



4
cutley
Re: redirecting user.php
  • 2007/7/18 16:11

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


you will only be redirected to the page you were on if you were redirected to the user.php page not if you just load the url ...user.php
- - - - -
xoops FTW



5
cutley
Re: My site takes 40 seconds to START loading, help...
  • 2007/7/18 15:57

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


took me just under 2 seconds to fully load

again nice site btw
- - - - -
xoops FTW



6
cutley
Re: Frameworks Captcha
  • 2007/7/18 14:16

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


Sorry to bump this up but I really need some help.

Iv been trying to get this to work for hours with no luck.

I want to get it to work with 2.2

I can get the form element to be generated fine but it doesnt check for it be valid.

Iv put this:


<?php
// $Id: register.php,v 1.1.2.13.2.1 2005/09/18 13:59:36 mithyt2 Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <https://xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
include '../../mainfile.php';
[
color=CC0000]include_once XOOPS_ROOT_PATH.'/Frameworks/captcha/formcaptcha.php';[/color]
include_once 
'include/functions.php';
$myts =& MyTextSanitizer::getInstance();



if (empty(
$xoopsModuleConfig['allow_register'])) {
    
redirect_header('../../index.php'6_PROFILE_MA_NOREGISTER);
    exit();
}
include 
XOOPS_ROOT_PATH.'/header.php';

$member_handler =& xoops_gethandler('member');
$newuser =& $member_handler->createUser();
$op = !isset($_POST['op']) ? 'register' $_POST['op'];
if (
$op != "register") {
    
$newuser->setVar('uname', isset($_POST['uname']) ? trim($_POST['uname']) : '');
    
$newuser->setVar('loginname', isset($_POST['loginname']) ? trim($_POST['loginname']) : '');
    
$newuser->setVar('email', isset($_POST['email']) ? trim($_POST['email']) : '');

    
//Dynamic fields
    
$profile_handler =& xoops_gethandler('profile');
    
// Get fields
    
$fields =& $profile_handler->loadFields();
    if (
count($fields) > 0) {
        foreach (
array_keys($fields) as $i) {
            
$fieldname $fields[$i]->getVar('field_name');
            if (
$fields[$i]->getVar('field_register') && isset($_POST[$fieldname])) {
                
$newuser->setVar($fieldname$_POST[$fieldname]);
            }
        }
    }

    
$vpass = isset($_POST['vpass']) ? $myts->stripSlashesGPC($_POST['vpass']) : '';
    
$agree_disc = (isset($_POST['agree_disc']) && intval($_POST['agree_disc'])) ? 0;
}
switch ( 
$op ) {
    case 
'newuser':
    if (!
$GLOBALS['xoopsSecurity']->check()) {
        echo 
implode('<br />'$GLOBALS['xoopsSecurity']->getErrors());
        break;
    }
    
$newuser->setVar('pass', isset($_POST['pass']) ? md5(trim($_POST['pass'])) : '');
    
$stop '';
    if (
$xoopsModuleConfig['display_disclaimer'] != && $xoopsModuleConfig['disclaimer'] != '') {
        if (empty(
$agree_disc)) {
            
$stop .= _PROFILE_MA_UNEEDAGREE.'<br />';
        }
    }
    if (!empty(
$xoopsModuleConfig['minpass']) && strlen(trim($_POST['pass'])) < $xoopsModuleConfig['minpass']) {
        
$stop .= sprintf(_PROFILE_MA_PWDTOOSHORT,$xoopsModuleConfig['minpass'])."<br />";
    }
    
$stop .= userCheck($newuser);
    if (empty(
$stop)) {
    [
color=CC0000]if(@include_once XOOPS_ROOT_PATH."/Frameworks/captcha/formcaptcha.php") {
            
$cpatcha = new XoopsFormCaptcha();
            echo 
$cpatcha->getCaption().": ".$cpatcha->render()."<br />";
        }[/
color]
        echo 
_PROFILE_MA_USERNAME.": ".$newuser->getVar('loginname')."<br />";
        echo 
_PROFILE_MA_EMAIL.": ".$newuser->getVar('email')."<br />";
        echo 
_PROFILE_MA_DISPLAYNAME.": ".$newuser->getVar('uname')."<br />";
        
$profile_handler =& xoops_gethandler('profile');
        
// Get fields
        
$fields =& $profile_handler->loadFields();
        if (
count($fields) > 0) {
            foreach (
array_keys($fields) as $i) {
                
$fieldname $fields[$i]->getVar('field_name');
                if (
$fields[$i]->getVar('field_register') && isset($_POST[$fieldname])) {
                    
$value $newuser->getVar($fieldname);
                    if (
is_array($value)) {
                        
$values = array();
                        
$options $fields[$i]->getVar('field_options');
                        foreach (
$value as $thisvalue) {
                            
$values $options[$thisvalue];
                        }
                        
$value implode(', '$values);
                    }
                    echo 
$fields[$i]->getVar('field_title').": ".$value."<br />";
                }
            }
        }
        
//hidden POST form with variables
        
include_once 'include/forms.php';
        
$finish_form =& getFinishForm($newuser$vpass);
        
$finish_form->display();
    } else {
        echo 
"<div class='errorMsg'>$stop</div><br clear='both'>";
        include_once 
'include/forms.php';
        
$reg_form =& getRegisterForm($newuser);
        
$reg_form->display();
    }
    break;
    
    case 
'finish':
    if (!
$GLOBALS['xoopsSecurity']->check()) {
        echo 
implode('<br />'$GLOBALS['xoopsSecurity']->getErrors());
        break;
    }
    [
color=CC0000]if(@include_once XOOPS_ROOT_PATH."/Frameworks/captcha/captcha.php") {
    
$xoopsCaptcha XoopsCaptcha::instance();
        if(! 
$xoopsCaptcha->verify() ) {
        
$stop .= $xoopsCaptcha->getMessage()."<br />";
        }
    }[/
color]
    
$stop '';
    if (
$xoopsModuleConfig['display_disclaimer'] != && $xoopsModuleConfig['disclaimer'] != '') {
        if (empty(
$agree_disc)) {
            
$stop .= _PROFILE_MA_UNEEDAGREE.'<br />';
        }
    }
    
$stop userCheck($newuser);
    if ( empty(
$stop) ) {
        
$newuser->setVar('pass'$_POST['pass']);
        
$newuser->setVar('user_avatar','blank.gif');
        
$actkey substr(md5(uniqid(mt_rand(), 1)), 08);
        
$newuser->setVar('actkey'$actkey);
        
$newuser->setVar('user_regdate'time());
        if (
$xoopsModuleConfig['activation_type'] == 1) {
            
$newuser->setVar('level'1);
        }

        
$profile_handler =& xoops_gethandler('profile');
        
// Get fields
        
$fields =& $profile_handler->loadFields();
        if (
count($fields) > 0) {
            foreach (
array_keys($fields) as $i) {
                
$fieldname $fields[$i]->getVar('field_name');
                if (
$fields[$i]->getVar('field_register') && isset($_POST[$fieldname])) {
                    
$newuser->setVar($fieldname$_POST[$fieldname]);
                }
            }
        }
        if (!
$member_handler->insertUser($newuser)) {
            echo 
_PROFILE_MA_REGISTERNG;
            echo 
implode('<br />'$newuser->getErrors());
            break;
        }
        
$newid $newuser->getVar('uid');
        if (!
$member_handler->addUserToGroup(XOOPS_GROUP_USERS$newid)) {
            echo 
_PROFILE_MA_REGISTERNG;
            break;
        }
        
        
//Welcome PM Hack start
        //Yeah,already defined above^^
        // $newid = $newuser->getVar('uid');
        
$pm_handler =& xoops_gethandler('privmessage');
        
$pm =& $pm_handler->create();
        
$pm->setVar("subject""Welcome to Swift");
        
$pm->setVar("msg_text""Thanks for taking the time to register on the site. You can now reply to/comment articles and use the forum.
        If you are based in/around Essex please [url=http://swift-freedom.com/x/essex/modules/articles/article.php?id=19]add yourself to the location directory[/url].
        If you have any problems with the site please email swift@swift-freedom.com"
);
        
//Newuser's id
        
$pm->setVar("to_userid"$newid);
        
// Admin's id,1 in my case
        
$pm->setVar("from_userid"1);
        if (!
$pm_handler->insert($pm)) {
        
// echo "Failed to send Welcome Private Message!!";
        // No need to echo this failure-message here,I think so!!...Just optional^^
        
}
        
//Welcome PM Hack end

        
if ($xoopsModuleConfig['activation_type'] == 1) {
            
redirect_header(XOOPS_URL.'/index.php'4_PROFILE_MA_ACTLOGIN);
        }
        if (
$xoopsModuleConfig['activation_type'] == 0) {
            
$xoopsMailer =& getMailer();
            
$xoopsMailer->useMail();
            
$xoopsMailer->setTemplate('register.tpl');
            
$xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH."/modules/profile/language/".$xoopsConfig['language']."/mail_template");
            
$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(_PROFILE_MA_USERKEYFOR$newuser->getVar('uname')));
            if ( !
$xoopsMailer->send() ) {
                echo 
_PROFILE_MA_YOURREGMAILNG;
            } else {
                echo 
_PROFILE_MA_YOURREGISTERED;
            }
        } elseif (
$xoopsModuleConfig['activation_type'] == 2) {
            
$xoopsMailer =& getMailer();
            
$xoopsMailer->useMail();
            
$xoopsMailer->setTemplate('adminactivate.tpl');
            
$xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH."/modules/profile/language/".$xoopsConfig['language']."/mail_template");
            
$xoopsMailer->assign('USERNAME'$newuser->getVar('uname'));
            
$xoopsMailer->assign('USEREMAIL'$newuser->getVar('email'));
            
$xoopsMailer->assign('USERACTLINK'XOOPS_URL.'/modules/profile/activate.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($xoopsModuleConfig['activation_group']));
            
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
            
$xoopsMailer->setFromName($xoopsConfig['sitename']);
            
$xoopsMailer->setSubject(sprintf(_PROFILE_MA_USERKEYFOR$newuser->getVar('uname')));
            if ( !
$xoopsMailer->send() ) {
                echo 
_PROFILE_MA_YOURREGMAILNG;
            } else {
                echo 
_PROFILE_MA_YOURREGISTERED2;
            }
        }
        if (
$xoopsModuleConfig['new_user_notify'] == && !empty($xoopsModuleConfig['new_user_notify_group'])) {
            
$xoopsMailer =& getMailer();
            
$xoopsMailer->useMail();
            
$member_handler =& xoops_gethandler('member');
            
$xoopsMailer->setToGroups($member_handler->getGroup($xoopsModuleConfig['new_user_notify_group']));
            
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
            
$xoopsMailer->setFromName($xoopsConfig['sitename']);
            
$xoopsMailer->setSubject(sprintf(_PROFILE_MA_NEWUSERREGAT,$xoopsConfig['sitename']));
            
$xoopsMailer->setBody(sprintf(_PROFILE_MA_HASJUSTREG$newuser->getVar('uname')));
            
$xoopsMailer->send();
        }
    } else {
        echo 
"<div class='errorMsg'>$stop</div><br clear='both'>";
        include_once 
'include/forms.php';
        
$reg_form =& getRegisterForm($newuser);
        
$reg_form->display();
    }
    break;
    
    case 
'register':
    default:
    include_once 
'include/forms.php';
    
$reg_form =& getRegisterForm($newuser);
    
$reg_form->display();

    break;
}
include 
XOOPS_ROOT_PATH.'/footer.php';
?>


p.s why am i not notified of new user registeration if it is set to automatic activation.
- - - - -
xoops FTW



7
cutley
"YUTCstUTCrday" language error
  • 2007/7/12 9:26

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


In CBB its coming up as:

Last Post:
YUTCstUTCrday bla bla bla


I think its because of frameworks replacing some of the the language files but am not shore
- - - - -
xoops FTW



8
cutley
CBB Module:
  • 2007/7/4 10:04

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


I am going to feel really stupid for asking this

but


What does the view permission actually do?

The access permission seems to control if the user can see the forum or not and nothing seems to change when the user is allowed or disallowed to view a forum.


and..

Is there a cbb manual anywhere, i looked on the modules's site and on xoopsdocs. could not see anything.


I am using 2.32 btw


What I would like to do is let the users access forum threads (via links from other modules) but not see the catagory they are under on the forum's index page. So i tried to allow access but dissallow view and they could see it.


Ta in advance
- - - - -
xoops FTW



9
cutley
Re: shoutbox <xoops url> error
  • 2007/5/24 6:30

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


That does make a lot of sence, so if somone could point me in the right direction of the file(s) i need to edit Im shore I can figure it out myself.

Do I need to edit the XOOPS sanitizer file

OR

How would a module be edited to use the sanitizer



Thanks for the replys people


EDIT: just installed edito on to site and having the same problem with a few links on that module as well.

So my guess is either my mainfile is wrong or my tetx sanitiser
- - - - -
xoops FTW



10
cutley
Re: shoutbox <xoops url> error
  • 2007/5/22 20:58

  • cutley

  • Just popping in

  • Posts: 38

  • Since: 2005/11/27


shoutbox 4.0

here

xoops im running is 2.3
- - - - -
xoops FTW




TopTop
(1) 2 3 4 »



Login

Who's Online

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


Members: 0


Guests: 144


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