5531
Mamba
Re: Where is the latest stable NewBB hosted?
  • 2015/8/16 20:24

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


The current "stable" version in outdated, so it would not help you.

We have announced several versions for testing in the "Module Testing forum".

My latest code is currently on GitHub. It is the not yet released RC 10, but feel free to test it and report back if you see anything.

Cesag tested it and overall it seems pretty stable. Just yesterday she reported two bugs, but I didn't have a chance to see if I can reproduce it, as there are couple more details that I need from her.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



5532
Dante7237
Where is the latest stable NewBB hosted?
  • 2015/8/16 14:47

  • Dante7237

  • Friend of XOOPS

  • Posts: 294

  • Since: 2008/5/28


Help in locating the latest stable version of NewBB would be deeply appreciated.
This should also be a clue that a centralized repository is needed on "this" site for stable releases.



5533
Roby73
Re: Bug /class/textsanitizer/youtube
  • 2015/8/15 21:35

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


This is better .



5534
zyspec
Re: Bug /class/textsanitizer/youtube
  • 2015/8/15 15:15

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Roby73,

Another thing that should be done to fix this is to change the preg_match so either http: or https: will work if passed as the $url variable into the function. Something like:

static function decode($url$width$height)     {          
if (!
preg_match("/^http(s)?://(www.)?youtube.com/watch?v=(.*)/i"$url$matches)) {              
trigger_error("Not matched: {$url} {$width} {$height}"E_USER_WARNING);               
return 
"";          
}          
$src "https://www.youtube.com/v/" $matches[3];



5535
wishcraft
Re: @upgrade::- Hooking Stratum Preloaders by Trabis and Myself need to be exploited!!

Replacement for the Events handler to included a function/method handler as well for the events hooking stratums as well as by design to include preloads in theme as well the following class preloads.php need to be changed to so:~

class/preloads.php
class XoopsPreload
{
    
/**
     * @var array $_preloads array containing information about the event observers
     */
    
var $_preloads = array();

    
/**
     * @var array $_routines array containing the events that are being observed
     */
    
var $_routines = array();
    
    
/**
     * Constructor
     *
     * @return    void
     */
    
function XoopsPreload()
    {
        
$this->setPreloads();
        
$this->setEvents();
    }

    
/**
     * Allow one instance only!
     *
     * @return object
     */
    
static function &getInstance()
    {
        static 
$instance false;
        if (!
$instance) {
            
$instance = new XoopsPreload();
        }
        return 
$instance;
    }

    
/**
     * Get available preloads information and set them to go!
     *
     * @return void
     */
    
function setPreloads()
    {
        
//$modules_list = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . "/modules/");
        
if ($modules_list XoopsCache::read('system_modules_active')) {
            
$i 0;
            foreach (
$modules_list as $module) {
                if (
is_dir($dir XOOPS_ROOT_PATH "/modules/{$module}/preloads/")) {
                    
$file_list XoopsLists::getFileListAsArray($dir);
                    foreach (
$file_list as $file) {
                        if (
preg_match('/(.php)$/i'$file)) {
                            
$file substr($file0, -4);
                            
$this->_preloads[$i]['module'] = $module;
                            
$this->_preloads[$i]['file'] = $file;
                            
$i++;
                        }
                    }
                }
            }
            if (isset(
$GLOBALS["xoopsConfig"]['theme_set']))
            {
                
$theme $GLOBALS["xoopsConfig"]['theme_set'];
                if (
is_dir($dir XOOPS_ROOT_PATH "/themes/{$theme}/preloads/")) {
                    
$file_list XoopsLists::getFileListAsArray($dir);
                    foreach (
$file_list as $file) {
                        if (
preg_match('/(.php)$/i'$file)) {
                            
$file substr($file0, -4);
                            
$this->_preloads[$i]['theme'] = $theme;
                            
$this->_preloads[$i]['file'] = $file;
                            
$i++;
                        }
                    }
                }
            }
        }
    }

    
/**
     * Get available events and set them to go!
     *
     * @return void
     */
    
function setEvents()
    {
        foreach (
$this->_preloads as $preload) {
            if (isset(
$preload['module']))
            {
                include_once 
XOOPS_ROOT_PATH '/modules/' $preload['module'] . '/preloads/' $preload['file']. '.php';
                
$class_name ucfirst($preload['module']) . ucfirst($preload['file']) . 'Preload' ;
                if (!
class_exists($class_name)) {
                    continue;
                }
            } elseif (isset(
$preload['theme']))    { 
                include_once 
XOOPS_ROOT_PATH '/themes/' $preload['theme'] . '/preloads/' $preload['file']. '.php';
                
$class_name ucfirst($preload['theme']) . ucfirst($preload['file']) . 'Preload' ;
                if (!
class_exists($class_name)) {
                    continue;
                }
            }
            
$class_methods get_class_methods($class_name);
            foreach (
$class_methods as $method) {
                if (
strpos($method'event') === 0) {
                    
$event_name strtolower(str_replace('event'''$method));
                    
$event= array('class_name' => $class_name'method' => $method);
                    
$this->_routines[$event_name][] = $event;
                }
            }
        }
    }

    
/**
     * Triggers a specific event
     *
     * @param $event_name string Name of the event to trigger
     * @param $args array Method arguments
     *
     * @return void
     */
    
function triggerEvent($event_name$args = array())
    {
        
$event_name strtolower(str_replace('.'''$event_name));
        if (isset(
$this->_routines[$event_name])) {
            foreach (
$this->_routines[$event_name] as $event) {
                try {
                    
call_user_func(array($event['class_name'], $event['method']), $args);
                }
                catch(
Exception $err)
                {
                    
trigger_error("Preload Event Hooking Error: ".$event['class_name']."::".$event['method'] . " ~ $err"E_RECOVERABLE_ERROR);
                }
            }
        }
    }
    
    
/**
     * Triggers a specific function or method with variable of return
     *
     * @param $event_name string Name of the event to trigger
     * @param $args array Method arguments
     *
     * @return void
     */
    
function triggerMethod($method_name ''$dbtable 'default'$arga NULL$argb NULL$argc NULL$argd NULL$arge NULL$argf NULL$argg NULL$argh NULL$argj NULL)
    {
        if (!
is_null($argj))
            
$args "j";
        elseif (!
is_null($argh) && is_null($argj))
            
$args "h";
        elseif (!
is_null($argg) && is_null($argh))
            
$args "g";
        elseif (!
is_null($argf) && is_null($argg))
            
$args "f";
        elseif (!
is_null($arge) && is_null($argf))
            
$args "e";
        elseif (!
is_null($argd) && is_null($arge))
            
$args "d";
        elseif (!
is_null($argc) && is_null($argd))
            
$args "c";
        elseif (!
is_null($argb) && is_null($argc))
            
$args "b";
        elseif (!
is_null($arga) && is_null($argb))
            
$args "a";
        else
            
$args "-";
        
$method_name strtolower(str_replace('.'''$method_name));
        if (isset(
$this->_routines[$method_name])) {
            foreach (
$this->_routines[$method_name] as $event) {
                try {
                    switch (
$args)
                    {
                        case 
"j":
                            return 
call_user_func(array($event['class_name'], $event['method']), $dbtable$arga$argb$argc$argd$arge$argf$argg$arge$argj);
                            break;
                        case 
"h":
                            return 
call_user_func(array($event['class_name'], $event['method']), $dbtable$arga$argb$argc$argd$arge$argf$argg$argh);
                            break;
                        case 
"g":
                            return 
call_user_func(array($event['class_name'], $event['method']), $dbtable$arga$argb$argc$argd$arge$argf$argg);
                            break;
                        case 
"f":
                            return 
call_user_func(array($event['class_name'], $event['method']), $dbtable$arga$argb$argc$argd$arge$argf);
                            break;
                        case 
"e":
                            return 
call_user_func(array($event['class_name'], $event['method']), $dbtable$arga$argb$argc$argd$arge);
                            break;
                        case 
"d":
                            return 
call_user_func(array($event['class_name'], $event['method']), $dbtable$arga$argb$argc$argd);
                            break;
                        case 
"c":
                            return 
call_user_func(array($event['class_name'], $event['method']), $dbtable$arga$argb$argc);
                            break;
                        case 
"b":
                            return 
call_user_func(array($event['class_name'], $event['method']), $dbtable$arga$argb);
                            break;
                        case 
"a":
                            return 
call_user_func(array($event['class_name'], $event['method']), $dbtable$arga);
                            break;
                        default:
                            return 
call_user_func(array($event['class_name'], $event['method']), $dbtable);
                            break;
                    }
                    
                }
                catch(
Exception $err)
                {
                    
trigger_error("Preload Function Hooking Error: ".$event['class_name']."::".$event['method'] . " ~ $err"E_RECOVERABLE_ERROR);
                }
            }
        }
    }
}


This lists' the changes to the XoopsPreload that need to be made!!



5536
Roby73
Bug /class/textsanitizer/youtube
  • 2015/8/14 6:31

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


I include in the news module an youtube video.
I had the problem in the code /class/textsanitizer/youtube/youtube.php
static function decode($url$width$height)     {         
if (!
preg_match("/^http://(www.)?youtube.com/watch?v=(.*)/i"$url$matches)) {             
trigger_error("Not matched: {$url} {$width} {$height}"E_USER_WARNING);              
return 
"";         
}         
$src "http://www.youtube.com/v/" $matches[2];


I modified http to https for resolve.



5537
Roby73
Re: xfguestbook captcha not working
  • 2015/8/14 0:09

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


I am a donkey!!
In my defense i have a 40°C of fever,

PLease can you givme the link where can upload the module?
I am registered but i don't see where are the xoops module.

I make few modules but would be very useful for me



5538
Mamba
Re: xfguestbook captcha not working
  • 2015/8/13 19:31

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Quote:
For have repository on GitHub i have to pay minimun 7$ to mounth?

???

GitHub is free to use for individual users and Open Source projects.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



5539
Roby73
Re: xfguestbook captcha not working
  • 2015/8/13 12:24

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


Sorry Mamba i don't understand.
For have repository on GitHub i have to pay minimun 7$ to mounth?



5540
Roby73
Re: Wordpress on xoops
  • 2015/8/12 20:04

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


You are right .
To return to xpressme, if you try the module don't change the worpress theme, as it is predictable, cause big problem with xoops theme.




TopTop
« 1 ... 551 552 553 (554) 555 556 557 ... 29425 »



Login

Who's Online

431 user(s) are online (306 user(s) are browsing Support Forums)


Members: 0


Guests: 431


more...

Donat-O-Meter

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

Latest GitHub Commits