1
wishcraft
xoops_version.php and adding RSS Feeds to Theme Template

As per the requirements listed in the XOOPS Documentation Team for 2.6 -->https://xoops.org/modules/newbb/viewtopic.php?topic_id=78350&post_id=363138 there is something that will need to be added like $GLOBALS['xoTheme']->addStylesheet() but $GLOBALS['xoTheme']->addRSSFeed()

for the following call see in this theme +1 This file is part of the theme.html calling in the theme, it is for adding the drop down menu to browsers that support it of available feeds on the site:https://github.com/Chronolabs-Cooperative/SuperExtremeClosest-Theme-Xoops25/blob/master/xotpl/xo_rss.html we will need in the theme template a system of ->addRSSFeed for the feed aggregation into the root backend.php and any module with RSS Feeds to add it in with a preloader exciter...
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

2
wishcraft
Re: xoops_version.php and adding RSS Feeds to Theme Template

For the CURL Routine you will have to include this piece of code for it for file attachments like screen shots of errors for the submit request, submit bug curl URL calls.. in the xoops_version.php
if (!function_exists("getURIData")) {
    
    
/* function getURIData()
     *
     *     Get a supporting domain system for the API
     * @author         Simon Roberts (Chronolabs) simon@labs.coop
     *
     * @return         float()
     */
    
function getURIData($uri ''$timeout 25$connectout 25$post = array(), $headers = array())
    {
        if (!
function_exists("curl_init"))
        {
            die(
"Install PHP Curl Extension ie: $ sudo apt-get install php-curl -y");
        }
        
$GLOBALS['php-curl'][md5($uri)] = array();
        if (!
$btt curl_init($uri)) {
            return 
false;
        }
        if (
count($post)==|| empty($post))
            
curl_setopt($bttCURLOPT_POSTfalse);
        else {
            
$uploadfile false;
            foreach(
$post as $field => $value)
                if (
substr($value 01) == '@' && file_exists(substr($value 1)))
                    
$uploadfile true;
                    
            
curl_setopt($bttCURLOPT_POSTtrue);
            
curl_setopt($bttCURLOPT_POSTFIELDShttp_build_query($post));
            
            if (!empty(
$headers))
                foreach(
$headers as $key => $value)
                    if (
$uploadfile==true && substr($value0strlen('Content-Type:')) == 'Content-Type:')
                        unset(
$headers[$key]);
            if (
$uploadfile==true)
                
$headers[]  = 'Content-Type: multipart/form-data';
        }
        if (
count($headers)==|| empty($headers))
            
curl_setopt($bttCURLOPT_HEADERfalse);
        else {
            
curl_setopt($bttCURLOPT_HEADERtrue);
            
curl_setopt($bttCURLOPT_HTTPHEADER$headers);
        }
        
curl_setopt($bttCURLOPT_CONNECTTIMEOUT$connectout);
        
curl_setopt($bttCURLOPT_TIMEOUT$timeout);
        
curl_setopt($bttCURLOPT_RETURNTRANSFERtrue);
        
curl_setopt($bttCURLOPT_VERBOSEfalse);
        
curl_setopt($bttCURLOPT_SSL_VERIFYHOSTfalse);
        
curl_setopt($bttCURLOPT_SSL_VERIFYPEERfalse);
        
$data curl_exec($btt);
        
$GLOBALS['php-curl'][md5($uri)]['http']['posts'] = $post;
        
$GLOBALS['php-curl'][md5($uri)]['http']['headers'] = $headers;
        
$GLOBALS['php-curl'][md5($uri)]['http']['code'] = curl_getinfo($bttCURLINFO_HTTP_CODE);
        
$GLOBALS['php-curl'][md5($uri)]['header']['size'] = curl_getinfo($bttCURLINFO_HEADER_SIZE);
        
$GLOBALS['php-curl'][md5($uri)]['header']['value'] = curl_getinfo($bttCURLINFO_HEADER_OUT);
        
$GLOBALS['php-curl'][md5($uri)]['size']['download'] = curl_getinfo($bttCURLINFO_SIZE_DOWNLOAD);
        
$GLOBALS['php-curl'][md5($uri)]['size']['upload'] = curl_getinfo($bttCURLINFO_SIZE_UPLOAD);
        
$GLOBALS['php-curl'][md5($uri)]['content']['length']['download'] = curl_getinfo($bttCURLINFO_CONTENT_LENGTH_DOWNLOAD);
        
$GLOBALS['php-curl'][md5($uri)]['content']['length']['upload'] = curl_getinfo($bttCURLINFO_CONTENT_LENGTH_UPLOAD);
        
$GLOBALS['php-curl'][md5($uri)]['content']['type'] = curl_getinfo($bttCURLINFO_CONTENT_TYPE);
        
curl_close($btt);
        return 
$data;
    }
}


just have to fix this part
if (count($headers)==|| empty($headers))
            
curl_setopt($bttCURLOPT_HEADERfalse);
        else {
            
curl_setopt($bttCURLOPT_HEADERtrue);
            
curl_setopt($bttCURLOPT_HTTPHEADER$headers);
        }
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

Login

Who's Online

238 user(s) are online (173 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

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

Latest GitHub Commits