xoops forums

Forum Index


Board index » All Posts (blueteen)




blueteen

Quite a regular
Posted on: 2013/6/20 11:39
blueteen
blueteen (Show more)
Quite a regular
Posts: 379
Since: 2004/7/16
#1

Re: XOOPS 2.6.0 Alpha 2 released for Testing

Hello, xoops alpha 2 is just installed on my server. Great work
Php 5.3.25
MySQL 5.5.30

i see these error in log files.

File does not exist: /install/img/step-sep.png, referer: /install/css/style.css (line 6)

----

Class 'Xoops' not found in /index.php on line 27

----

File does not exist: /install/img/step-sep.png, referer: http://xoopsalpha2.smndc.com/install/css/style.css (line 114)

----

Undefined variable: rewrite in /install/page_configsave.php on line 89, referer: /install/page_dbsettings.php

----

Class 'Xoops' not found in /opt/www/html/xoopsalpha2/install/page_siteinit.php on line 29, referer: /install/page_configsave.php

----

date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /modules/system/xoops_version.php (on line 400, 4011, 603) referer: /install/page_configsave.php

----

File does not exist: /modules/system/themes/default/media/bootstrap/css/bootstrap.min.css, referer: /modules/system/themes/default/media/bootstrap/css/xoops.bootstrap.css


blueteen

Quite a regular
Posted on: 2009/4/1 19:19
blueteen
blueteen (Show more)
Quite a regular
Posts: 379
Since: 2004/7/16
#2

Re: WF-Channel 2.05 Sneak peek

Hello !
the presentation is pleasant and the features interesting !

the support of category would be a great feature !

can we clone this module ?


blueteen

Quite a regular
Posted on: 2009/3/24 11:04
blueteen
blueteen (Show more)
Quite a regular
Posts: 379
Since: 2004/7/16
#3

Re: Good bookings and reservations module

Did you try the module in my post above ?


blueteen

Quite a regular
Posted on: 2009/3/24 10:03
blueteen
blueteen (Show more)
Quite a regular
Posts: 379
Since: 2004/7/16
#4

Re: Good bookings and reservations module

Hello, did you see this ?
https://xoops.org/modules/news/article.php?storyid=4703


blueteen

Quite a regular
Posted on: 2009/2/27 15:21
blueteen
blueteen (Show more)
Quite a regular
Posts: 379
Since: 2004/7/16
#5

Re: Multimenu 2.84: Display Subcategories

This version 2.86a ?
You wrote 2.84 in your topic title.


blueteen

Quite a regular
Posted on: 2009/2/27 15:13
blueteen
blueteen (Show more)
Quite a regular
Posts: 379
Since: 2004/7/16
#6

Re: Multimenu 2.84: Display Subcategories

is it this module ?
http://www.frxoops.org/modules/refere ... lefile.php?cid=63&lid=130


blueteen

Quite a regular
Posted on: 2009/2/27 14:57
blueteen
blueteen (Show more)
Quite a regular
Posts: 379
Since: 2004/7/16
#7

Re: Multimenu 2.84: Display Subcategories

Can we have a link to your webpage ?


blueteen

Quite a regular
Posted on: 2008/12/24 9:59
blueteen
blueteen (Show more)
Quite a regular
Posts: 379
Since: 2004/7/16
#8

Re: Yogurt Tribes, two major issues/bugs

Hello, can you try this for the resizing problem ? (it works for me).

Edit /modules/yogurt/class/yogurt_tribes.php
Replace the whole function receiveTribe with this one
function receiveTribe($tribe_title,$tribe_desc,$tribe_img,$path_upload,$maxfilebytes,$maxfilewidth,$maxfileheight,$thumbwidth$thumbheight$pictwidth$pictheight,$change_img=1,$tribe="")
{
    global 
$xoopsUser$xoopsDB$_POST$_FILES;
    
//busca id do user logado
    
$uid $xoopsUser->getVar('uid');
    
//create a hash so it does not erase another file
    //$hash1 = date();
    //$hash = substr($hash1,0,4);
    
    // mimetypes and settings put this in admin part later
    
$allowed_mimetypes = array( 'image/jpeg''image/pjpeg');
    
$maxfilesize $maxfilebytes;
    
    
// create the object to upload
    
$uploader = new XoopsMediaUploader($path_upload$allowed_mimetypes$maxfilesize$maxfilewidth$maxfileheight);
    
// fetch the media
    
if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
        
//lets create a name for it
        
$uploader->setPrefix('tribe_'.$uid.'_');
        
//now let s upload the file
        
if (!$uploader->upload()) {
        
// if there are errors lets return them
        
        
echo "<div style="color:#FF0000; background-color:#FFEAF4; border-color:#FF0000; border-width:thick; border-style:solid; text-align:center"><p>".$uploader->getErrors()."</p></div>";
        
return false;
        } else {
        
// now let s create a new object picture and set its variables
        
$tribe $this->create();
        
$url $uploader->getSavedFileName();
        
$tribe->setVar("tribe_title",$tribe_title);
        
$tribe->setVar("tribe_desc",$tribe_desc);
        
$uid $xoopsUser->getVar('uid');
        
$tribe->setVar("owner_uid",$uid);
        
$url $uploader->getSavedFileName();
        
$saved_destination $uploader->getSavedDestination();
        
//print_r($_FILES);
        //$this->resizeImage($saved_destination,false, $thumbwidth, $thumbheight, $pictwidth, $pictheight,$path_upload);
        //$this->resizeImage($saved_destination,true, $thumbwidth, $thumbheight, $pictwidth, $pictheight,$path_upload);
        
$image_name $this->resizeImage($saved_destination$thumbwidth$thumbheight$path_upload);
        
$tribe->setVar("tribe_img",$image_name);
        
        }
    } else {
    echo 
"<div style="color:#FF0000; background-color:#FFEAF4; border-color:#FF0000; border-width:thick; border-style:solid; text-align:center"><p>".$uploader->getErrors()."</p></div>";
    
return false;
    }
    
$this->insert($tribe);
    return 
true;
    
    
}


In the same file, replace the whole function resizeImage with this code
function resizeImage($img$thumbwidth$thumbheight,$path_upload) {
    
    
    
$img2 $img;
    
$path pathinfo($img);
    
$img=imagecreatefromjpeg($img);
    
$xratio $thumbwidth/(imagesx($img));
    
$yratio $thumbheight/(imagesy($img));

    if(
$xratio || $yratio 1) {
        if(
$xratio $yratio)
            
$resized imagecreatetruecolor($thumbwidth,floor(imagesy($img)*$xratio));
        else
            
$resized imagecreatetruecolor(floor(imagesx($img)*$yratio), $thumbheight);
            
imagecopyresampled($resized$img0000imagesx($resized)+1,imagesy($resized)+1,imagesx($img),imagesy($img));
            
imagejpeg($resized,$path_upload."/thumb_".$path["basename"]);
            
$image_name "thumb_".$path["basename"];
            
imagedestroy($resized);
        }               
    else{
        
imagejpeg($img,$path_upload."/thumb_".$path["basename"]);
        
$image_name "thumb_".$path["basename"];
    }
    
    
imagedestroy($img);
    return 
$image_name;

}


Edit /modules/yogurt/submit_tribes.php
Replace
if ($tribes_factory->receiveTribe($tribe_title,$tribe_desc,'',$path_upload,$maxfilebytes,$maxfilewidth,$maxfileheight))


With
if ($tribes_factory->receiveTribe($tribe_title,$tribe_desc,'',$path_upload,$maxfilebytes,$maxfilewidth,$maxfileheight,$thumbwidth$thumbheight$pictwidth$pictheight))


Try to upload an image on the tribes webpage.


blueteen

Quite a regular
Posted on: 2008/12/23 10:34
blueteen
blueteen (Show more)
Quite a regular
Posts: 379
Since: 2004/7/16
#9

Re: Yogurt again!

Hello, are you talking about this tab ?
Resized Image

On my website, anonymous can't see it.

Check if you have this code in : yogurt/templates/yogurt_navbar.html (line 41 to 43)
<{if $isOwner}>
            <
li <{if $section_name==$lang_configs}>class="tabs-selected" <{/if}>> <a href="configs.php?uid=<{$uid_owner}>"><span><img class="yogurt-nav-bar-icon" src="images/configs.gif"  /><{$lang_configs}></span></a></li>
<{/if}>


The tab displays only for the owner.

For you second question, try this :
In modules/yogurt/xoops_version.php, look for
$modversion['hasMain'] = 1;


Add this code after :
if (is_object($xoopsUser)){
$groupsok $xoopsUser->getGroups();
}
else {
$groupsok=99;}
if (!
in_array("3"$groupsok)){


And after
$modversion['sub'][9]['url'] = "configs.php";


Add :
}



blueteen

Quite a regular
Posted on: 2008/12/23 9:58
blueteen
blueteen (Show more)
Quite a regular
Posts: 379
Since: 2004/7/16
#10

Re: Yogurt Tribes, two major issues/bugs

Hello, in tribe.php, lines 50 to 55, replace
$uid intval($xoopsUser->getVar('uid'));
if(
$xoopsUser)
{
    if(
in_array($uid,$uids)) $xoopsTpl->assign('memberOfTribe'1);
    
$xoopsTpl->assign('useruid'$uid);
}


With :
if($xoopsUser)
{
$uid intval($xoopsUser->getVar('uid'));
    if(
in_array($uid,$uids)) $xoopsTpl->assign('memberOfTribe'1);
    
$xoopsTpl->assign('useruid'$uid);
}


But it's not perfect.
If we look at this module being anonymous, we are automatically placed on the page with user's uid #1

There is indeed a problem with resizing the image.
Because of the line 466 (yogurt_tribes.php)
$image_name $this->resizeImage2($saved_destination12580,$path_upload);


The function is line 539, in the same file
function resizeImage2($img_path$thumbwidth$thumbheight$path_upload) {


We should correct this function or simply use another.
But I do not have the level for that.



TopTop
(1) 2 3 4 ... 33 »