31
ccrstudioweb
SSL in registering new user

Hi all!
I got the ssl work fine for login in my site: it opens in a popup as described in other topics. But now I have a hard task: SSL on login (and after in edit user...).
My intention is protect the areas where user type the pswd.


I started by (backup the register.php) extracting the lines
include 'header.php';
from the register.php in order to the file not call anyhttp://.

This step is over: I can open register php whithout header in a ssl mode: (please check it our)https://mensageiro.org/portal/register.php
and I can complete the filds, but when clicking FINISHING, it tells: it was not possible made your registration. :( And really, the email wasn´t sent and the user was not registered.

My intention is after this all, open this page in a popup as when logging in.
Please, it will be very useful for many people.


I know that if I extract
include 'header.php';
, I have to put some include 'header.php'; code on it, but I don´t know what. I tried use header lines
defined("XOOPS_ROOT_PATH") or die( 'XOOPS root path not defined' ); 
 include_once 
XOOPS_ROOT_PATH.'/class
/xoopsblock.php'
;  //global 
$xoopsLogger;  if ( !isset( $xoopsLogger 
) ) {        $xoopsLogger =& 
$GLOBALS['xoopsLogger'];    }  
$xoopsLogger->stopTime'Module init' ); 
$xoopsLogger->startTime'XOOPS output 

init' 
);
but when debbug PHP
Fatal error: Call to undefined function
themefooter() in /home/wimbgiuia/public_html/portal/footer.php on line 44


Thank you all for helping.
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



32
ccrstudioweb
XCGAL scroll image caption

Hi all, I hope it help.
The case: The default caption for scroll images are the time and the submiter.

If you want to change it to the image title, do it as follow:

on xcgal/blocks/xcgal_blocks.php change about 317:
case '2'// Last uploads
                
$select_columns .= ', owner_id';

                
$result $xoopsDB->query("SELECT $select_columns FROM ".$xoopsDB->prefix("xcgal_pictures")." WHERE approved = 'YES' $ALBUM_SET_BLOCK ORDER BY pid DESC LIMIT $count");
                
$rowset fetch_rowset_block($result);
                
$xoopsDB->freeRecordSet($result);
                if (
$set_caption) foreach ($rowset as $key => $row){
                        
$user_handler =& xoops_gethandler('member');
                    
$pic_owner =& $user_handler->getUser($row['owner_id']);
            if (
is_object ($pic_owner)){
                            
$user_link '<br /><a href ="'.XOOPS_URL.'/userinfo.php?uid='.$pic_owner->uid().'">'.$pic_owner->uname().'</a>';
                        } else {
                                
$user_link '';
                        }
                        
$caption "<span style=" font-weight boldfont-size10pxpadding2pxdisplay block;">".formatTimestamp($row['ctime'],'m').$user_link.'</span>';
                        
$rowset[$key]['caption_text'] = $caption;
                }

                return 
$rowset;
                break;



chang it to:


case '2'// Last uploads
                
$select_columns .= ', title';

                
$result $xoopsDB->query("SELECT $select_columns FROM ".$xoopsDB->prefix("xcgal_pictures")." WHERE approved = 'YES' $ALBUM_SET_BLOCK ORDER BY pid DESC LIMIT $count");
                
$rowset fetch_rowset_block($result);
                
$xoopsDB->freeRecordSet($result);
                 if (
$set_caption) foreach ($rowset as $key => $row){
                        
$caption $rowset[$key]['title'] ? "<span class="thumb_title">".$rowset[$key]['title']."</span>" '';
                        if (
$xoopsModuleConfig['caption_in_thumbview']){
                           
$caption .= $rowset[$key]['caption'] ? "<span class="thumb_caption">".$myts->makeTareaData4Show($rowset[$key]['caption'],0)."</span>" '';
                        }
                        if (
$xoopsModuleConfig['display_comment_count']) {
                                
$comments_nr =  xoops_comment_count($xoopsModule->mid(),$row['pid'] );
                                if (
$comments_nr 0$caption .= "<span class="thumb_num_comments">".sprintf(_MD_FUNC_COM$comments_nr )."</span>";
                        }
                        
$rowset[$key]['caption_text'] = $caption;
                }

                return 
$rowset;
                break;


If it help you, let me know!!
Thanks!
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



33
ccrstudioweb
Re: ImageManager - Replacement - Long Post!...

I changed:

$numberImagesShown = in_array($group,12) ? 10 : 15;
to
$numberImagesShown = 15;
The erros desapeared, but the queries and the problens continue...
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



34
ccrstudioweb
Re: ImageManager - Replacement - Long Post!...

Hi, Thanks for replaies.
But I guess the probleme is not chmode.
I changed the line to mkdir($activeDir, 0777);
I get folder access, the file uploaded was there, but problem persists.

I debugged the white page (right after upload a file) and I get:

Errors
Warning: in_array() [function.in-array]: Wrong datatype for second argument in file /imagemanager.php line 52

Queries
SELECT * FROM 3b_y_config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC
SELECT sess_data, sess_ip FROM 3b_y_session WHERE sess_id = '6483d1a4caa2c69cce2072fe90a0ca46'
SELECT * FROM 3b_y_users WHERE uid=1
Total: 3 queries

Any tip? I've been trying here as well. Thanks in advanced.
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



35
ccrstudioweb
Re: ImageManager - Replacement - Long Post!...

Hi,
I am having the same problem Juan_r had. When I click the image maneger botton, I get a blank page. It opens on a pop-up, but don not resizes to 800.

But I had one discovery:
When the user first time opens the image maneger, it opens well. I choose the image to upload, but the next window is a blank page (uploaded images). After this first use, the user will always get the blank page.

Here we go: When I erase the user's folder (user_00001) I can use the imagemaneger as the first time: I see, I upload image, but after this I'll have always the blank page.

So instead of ereasing the folder, I'd tried to change CHMODE from original 700 to 744 and then the surprise:

Comand: SITE CHMOD 744 user_00002
Answer: 550 CHMOD 744 user_00002: Operation not permitted

I use linux server PHP Version 5.2.6.
Questions:
Is it right the original chmode 700?
Why can not I change the chmode?

I am crazy to have this working properly.
Thanks in advance!
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



36
ccrstudioweb
Re: Only one avatar by user, always with the same file name

This solution give me the option to subscribe only one image, in this case the avatar. I ask: Is there any image module in which I may set up the "subscription image" option, or easiely set up it on its code?

I mean I want site's user to have more tha one image to be subscribed on server.

For instance:
site_user0001_01.jpg
site_user0001_02.jpg
site_user0001_03.jpg
site_user0001_04.jpg
site_user0001_05.jpg
site_user0002_01.jpg
site_user0002_02.jpg
site_user0003_03.jpg
site_user0004_04.jpg
site_user0005_05.jpg
.
.
.

Any help or suggestion? Thanx in advance!

My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



37
ccrstudioweb
Re: Only one avatar by user, always with the same file name

I've got it!!

In edituser.php:
change:
$uploader->setPrefix(cavt');

$uploader->setPrefix('cavt');
$uploader->setPrefixb($xoopsUser->getVar('uname'));

On class/uploader.php:
1)Change:
var $prefix;
For:
var $prefix;
var $prefixb;

2)Change:
function setPrefix($value){
$this->prefix = strval(trim($value));
}



For:
function setPrefix($value){
$this->prefix = strval(trim($value));
}

function setPrefixb($value){
$this->prefixb = strval(trim($value));
}


3)Change the following line from:

elseif (isset($this->prefix)) {
$this->savedFileName = uniqid($this->prefix).'.'.strtolower($matched[1]);


To:
} elseif (isset($this->prefix)) {
$this->savedFileName = ($this->prefix).''.($this->prefixb).'.'.strtolower($matched[1]);
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



38
ccrstudioweb
Re: Only one avatar by user, always with the same file name

I feed it manually.
On exemple above (if works) wuould give me:

cavtXXXusername.jpg



the XXX I will change it to underline (_):
cavt_username.jpg

LOOK:
$this->savedFileName = ($this->prefix).'_'.$xoops_uname.'.'.strtolower($matched[1]);

My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



39
ccrstudioweb
Re: Only one avatar by user, always with the same file name

Hi,
Because I want avatar to appear in a flash application. The application can't change avatar's name when user changes it, because XOOPS save avatar using a diferent name (cavtfdud8273rb873rb.jpg). So if I have the cavtusername.jpg, flash application will be able to call avatar image trought it's XML file.


I'd tried
$this->savedFileName = ($this->prefix).'XXX'.$xoops_uname.'.'.strtolower($matched[1]);

I still have cavtXXX.jpg.
The image is subscribed, but all users's avatars will be saved using this same name.
I need put user_name om it.
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



40
ccrstudioweb
Re: Only one avatar by user, always with the same file name

It is on class/uploader.php line 350:

if (isset($this->targetFileName)) {
$this->savedFileName = $this->targetFileName;
} elseif (isset($this->prefix)) {
$this->savedFileName = ($this->prefix).'XXX'.($member_handler).'.'.strtolower($matched[1]);


The file I get on uploads is:
cavtXXX.jpg


Does anybody know hou to put usr name in place in red?
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/




TopTop
« 1 2 3 (4) 5 6 »



Login

Who's Online

161 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 161


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