6051
zyspec
Re: tdmdownloads categories block
  • 2015/2/11 21:46

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


This is really strange. I believe it has to do with the other blocks I have loaded on my page - it worked here. It is interesting that the list category block works on your site, although this bug wouldn't show up if you don't show subcategories.

I have fixed it and placed the fixed files (both of the ./blocks category php files) on SVN. Please download it again to see if this solves the issue.




6052
Bleekk
Re: tdmdownloads categories block
  • 2015/2/11 20:28

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


Hi,

The list categories block works perfectly! thank you!

The category dropdown block doesn't work
here the debugger msg:
Class 'XoopsObjectTree' not found in \htdocs\xoops2571\modules\TDMDownloads\blocks\tdmdownloads_cat_selbox.php on line 79



6053
wishcraft
Re: Preloaders: Perfect xoops_sef(); utf8, utf16... supportive!!

Come on guys there is only one change needed in it, 118 views and no one corrected, common zealots..

/**
 * Xoops_sef Preloads & Language Stylesheet loader
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright   The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license     GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
 * @author          Cointin Maxime (AKA Kraven30)
 * @author          Andricq Nicolas (AKA MusS)
 * @version         $Id: Sef.php 12537 2014-05-19 14:19:33Z beckmi $
 */

if (!function_exists('xoops_sef'))
{

    
/**
     * Xoops safe encoded url elements
     *
     * @param unknown $datab
     * @param string $char
     * @return string
     */
    
function xoops_sef($value ''$stripe ='-')
    {
        
$replacement_chars = array();
        
$accepted = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","m","o","p","q",
                
"r","s","t","u","v","w","x","y","z","0","9","8","7","6","5","4","3","2","1");
        for(
$i=0;$i<256;$i++){
            if (!
in_array(strtolower(chr($i)),$accepted))
                
$replacement_chars[] = chr($i);
        }
        
$result = (str_replace($replacement_chars$stripe, ($value)));
        while(
substr($result0strlen($stripe)) == $stripe)
            
$result substr($resultstrlen($stripe), strlen($result) - strlen($stripe));
        while(
substr($resultstrlen($result) - strlen($stripe), strlen($stripe)) == $stripe)
            
$result substr($result0strlen($result) - strlen($stripe));
        while(
strpos($result$stripe $stripe))
            
$result str_replace($stripe $stripe$stripe$result);
        return(
strtolower($result));
    }
}

/**
 * Class ModuleSefPreload
 */
class ModuleSefPreload extends XoopsPreloadItem
{

    
/**
     * 
     * @param array $arg
     */
    
function eventCoreHeaderAddmeta($arg)
    {
        
        
$parts explode(DIRECTORY_SEPARATOR$_SERVER['PHP_SELF']);
        
$moddir basename(dirname(dirname(__FILE__)));
        if (
in_array($moddir$parts))
            
$GLOBALS['xoTheme']->addStylesheet(XOOPS_URL '/modules/' $moddir '/language/' $GLOBALS['xoopsConfig']['language'] . '/' $moddir '.css', array(), '' );
    }
}



6054
Bleekk
Re: tdmdownloads categories block
  • 2015/2/11 10:07

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


hi,

thank you very much! this is awesome community work!
I will test as soon as I get home frome work



6055
wishcraft
Preloaders: Perfect xoops_sef(); utf8, utf16... supportive!!

/**
 * Xoops_sef Preloads & Language Stylesheet loader
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright   The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license     GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
 * @author          Cointin Maxime (AKA Kraven30)
 * @author          Andricq Nicolas (AKA MusS)
 * @version         $Id: Sef.php 12537 2014-05-19 14:19:33Z beckmi $
 */

if (!function_exists('xoops_sef'))
{

    
/**
     * Xoops safe encoded url elements
     *
     * @param unknown $datab
     * @param string $char
     * @return string
     */
    
function xoops_sef($datab$char ='-')
    {
        
$replacement_chars = array();
        
$accepted = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","m","o","p","q",
                
"r","s","t","u","v","w","x","y","z","0","9","8","7","6","5","4","3","2","1");
        for(
$i=0;$i<256;$i++){
            if (!
in_array(strtolower(chr($i)),$accepted))
                
$replacement_chars[] = chr($i);
        }
        
$return_data = (str_replace($replacement_chars,$char,($datab)));
        while(
substr($return_data01) == $char)
            
$return_data substr($return_data1strlen($return_data)-1);
        while(
substr($return_datastrlen($return_data)-11) == $char)
            
$return_data substr($return_data0strlen($return_data)-1);
        while(
strpos($return_data$char $char))
            
$return_data str_replace($char $char$char$return_data);
        return(
strtolower($return_data));
    }
}

/**
 * Class ModuleSefPreload
 */
class ModuleSefPreload extends XoopsPreloadItem
{

    
/**
     * 
     * @param array $arg
     */
    
function eventCoreHeaderAddmeta($arg)
    {
        
        
$parts explode(DIRECTORY_SEPARATOR$_SERVER['PHP_SELF']);
        
$moddir basename(dirname(dirname(__FILE__)));
        if (
in_array($moddir$parts))
            
$GLOBALS['xoTheme']->addStylesheet(XOOPS_URL '/modules/' $moddir '/language/' $GLOBALS['xoopsConfig']['language'] . '/' $moddir '.css', array(), '' );
    }
}


The great thing about this code is the xoops_sef... allows for arabic URLS with mixed english etc..

Made while working on a new front portal for Chronolabs at http://web.au.labs.coop



6056
zyspec
Re: tdmdownloads categories block
  • 2015/2/11 4:10

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Bleekk,

I have checked in 2 new category blocks for you to try. One allows you to list categories (and subcategories if you want) in a list. The second block displays a HTML dropdown (select) box with the categories.

There are some block Preferences to give you flexibility in what you want to display. I did not take a lot of time formatting the template so you may want/need to adjust them some.

Let me know if this works for you.

http://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/TDMDownloads/branches/zyspec/



6057
fabou78
Re: Issue instaling XOOPS 2.5.7.1
  • 2015/2/10 16:45

  • fabou78

  • Friend of XOOPS

  • Posts: 43

  • Since: 2012/6/16


Thanks,

The install worked last night, I can't figure out why it failed last time with the file from /extras

I beileve the only thing I was doing differently was to rename the secure.dist.php to secure.php

I can give it try again if you want to confirm. This is easy for me to do since I am using snapshots.

Just let me know?

Fabou



6058
polits1210
Re: Central Repository for Translations
  • 2015/2/10 8:06

  • polits1210

  • Just popping in

  • Posts: 2

  • Since: 2015/1/22


thank you for the response.
i have seen the translations in the website.



6059
bitcero
Re: Custom PHP Page with no header and footer
  • 2015/2/9 16:56

  • bitcero

  • Quite a regular

  • Posts: 318

  • Since: 2005/11/26


With fetch you need to provide the path where template is located, tah can be a relative path or full path. Relative is when your template is located inside "themes" directory:
$xoopsTpl->fetch("my_theme/mytemplate.tpl");
and full when is located in other place:
$xoopsTpl->fetch(XOOPS_ROOT_PATH '/my/template/path.tpl');



6060
Mamba
Re: Issue instaling XOOPS 2.5.7.1
  • 2015/2/9 15:34

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Quote:
1) Should I still make "secure.dist.php" writable?

No, just follow the Installation instructions. We never asked for this file to be writable.

Quote:
2) Do you have any idea why some hosts have problems with generating the "mainfile.php" file?

Follow this thread and the explanations by Richard

Keep us posted on your progress....
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 ... 603 604 605 (606) 607 608 609 ... 29425 »



Login

Who's Online

457 user(s) are online (322 user(s) are browsing Support Forums)


Members: 0


Guests: 457


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