21
adwin
a new user registration form
  • 2006/5/23 2:01

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


Hi,

I am using XOOPS 2.0.13 (recommended version) and I wanto replace default registration form with mine. So in register.php, I replace the case 'register' with my own code which is not using header.php and footer.php but using smarty (which is simpler than using XoopsThemeForm since I am going to use a bit complex table).
I don't need to display header and footer in this page (just for this page). All variables are same with the /include/registerform.php but has different layout.

default:
    include 
'header.php';
    include 
'include/registerform.php';
    
$reg_form->display();
    include 
'footer.php';
    break;


become

default:    
    include 
'include/registerform2.php';    
    break;


while in registerform2.php contains
$smarty = new Smarty();
   ... 
initial code and assign smarty variable...
   
$smarty->display('mytemplates.html');



But I got problem, in registration.php, it always stopped in
if (!$GLOBALS['xoopsSecurity']->check()) {
        echo 
implode('<br />'$GLOBALS['xoopsSecurity']->getErrors());
        exit();
    }
.


So I checked again on the original registrationform.php and I found hidden variable named:

XOOPS_TOKEN_REQUEST and it has encoded value. and i realise that this one makes my registration stopped. I also get confuse because I didnt know how the generate XOOPS_TOKEN_REQUEST value to be able matched with xoopsSecurity.

could someone help me ?

Thank you


regards,

adwin
www.adwin.org



22
adwin
Re: from 2.0.7.x to 2.0.10
  • 2005/5/8 10:30

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


Thx
:)

Got it .. i will try at home



23
adwin
from 2.0.7.x to 2.0.10
  • 2005/5/8 10:04

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


I used XOOPS ver 2.0.7 in my website. Is there any chances to upgrade directly to 2.0.10 ?

or do I need to just replace all files ? I just worry about database changes

thx



24
adwin
Preloaded class
  • 2005/2/24 10:55

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


Can I get the list of class and variables that loaded in all pages ?


Thx so much.



25
adwin
Re: Using Smarty in Admin
  • 2005/2/9 12:08

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


opps ... thx chap ...



26
adwin
Using Smarty in Admin
  • 2005/2/9 11:56

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


I am going to develop a module for XOOPS and I am going to use smarty on admin pages.

Can I use smarty in this page ?

I tried with the following code, but the smarty seems didnt loaded. Can somebody tell me how to do this ?




<?php
include("admin_header.php");
$table_name = $xoopsDB->prefix("prayer_request");


/// draw the header of administrator
// header and footer defined previosly in /include/cp_functions.php
xoops_cp_header();

/*** administrator content goes here ***/

$smarty = new Smarty();
echo dirname(__FILE__).'/templates/admin_prayer_request.html';
$smarty->display(dirname(__FILE__).'/templates/admin_prayer_request.html');


echo '<pre>';
print_r($smarty) ;
/*** administrator content end here ***/

// draw the footer of administrator
xoops_cp_footer();
?>


admin_header.php
<?php

include "../../../mainfile.php";
include_once XOOPS_ROOT_PATH."/class/xoopsmodule.php";
include_once XOOPS_ROOT_PATH."/class/smarty/Smarty.class.php";
include XOOPS_ROOT_PATH."/include/cp_functions.php";
if ( $xoopsUser ) {
$xoopsModule = XoopsModule::getByDirname("myModule");
if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) {
redirect_header(XOOPS_URL."/",3,_NOPERM);
exit();
}
} else {
redirect_header(XOOPS_URL."/",3,_NOPERM);
exit();
}
if ( file_exists("../language/".$xoopsConfig['language']."/main.php") ) {
include "../language/".$xoopsConfig['language']."/main.php";
} else {
include "../language/english/main.php";
}
?>



27
adwin
Re: Moving from NewBB1.0 to NewBB2.0
  • 2004/12/11 2:36

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


I tried with my dummy site (on my local comp), you have to turn off the forum first. Just uncheck the forum in the Admin Modules. After that do the update (manually, type www.site.com/modules/newbb/update/newbb1_to_newbb2.php) and follow the instruction there.

After you finished with updating the table. Please go to the System Modules again. Press update and then put the check on the Forum. and ... your forum will be updated :)


Btw, can someone tell me how to make backup for the forum ?

thank you



28
adwin
Re: Upgrading Module
  • 2004/11/26 23:45

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


It is 2.07 beta .. but it looks so good :)



29
adwin
Re: Upgrading Module
  • 2004/11/26 11:10

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


I know I have to test before I do the upgrade. But is the XOOPS modules that I mention above easy to upgrade ?



30
adwin
Upgrading Module
  • 2004/11/25 23:03

  • adwin

  • Just popping in

  • Posts: 68

  • Since: 2004/6/27


Hi

Currently I am using Wf-Channel 1.06 and I found the newest version is more better than that one. I want to upgrade it. Is it safe to replace old one with new one directly (I mean replace all the files) ? Or should I make a backup first before doing the upgrade ?

I also want to upgrade from NewBB 1.x to NewBB 2.0 :)

thx




TopTop
« 1 2 (3) 4 5 6 7 »



Login

Who's Online

231 user(s) are online (160 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

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

Latest GitHub Commits