1
blueteen
Re: XOOPS 2.6.0 Alpha 2 released for Testing
  • 2013/6/20 11:39

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


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



2
blueteen
Re: WF-Channel 2.05 Sneak peek
  • 2009/4/1 19:19

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Hello !
the presentation is pleasant and the features interesting !

the support of category would be a great feature !

can we clone this module ?



3
blueteen
Re: Good bookings and reservations module
  • 2009/3/24 11:04

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Did you try the module in my post above ?



4
blueteen
Re: Good bookings and reservations module
  • 2009/3/24 10:03

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


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



5
blueteen
Re: Multimenu 2.84: Display Subcategories
  • 2009/2/27 15:21

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


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



6
blueteen
Re: Multimenu 2.84: Display Subcategories
  • 2009/2/27 15:13

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


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



7
blueteen
Re: Multimenu 2.84: Display Subcategories
  • 2009/2/27 14:57

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Can we have a link to your webpage ?



8
blueteen
Re: Yogurt Tribes, two major issues/bugs
  • 2008/12/24 9:59

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


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.



9
blueteen
Re: Yogurt again!
  • 2008/12/23 10:34

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


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 :
}




10
blueteen
Re: Yogurt Tribes, two major issues/bugs
  • 2008/12/23 9:58

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


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 »



Login

Who's Online

137 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 137


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