21
fibri
Re: xNews 1.68 RC1 - Bug report
  • 2010/7/23 9:02

  • fibri

  • Just popping in

  • Posts: 14

  • Since: 2010/5/20


Thanks dude.

22
Valio69
Re: xNews 1.68 RC1 - Bug report
  • 2010/7/23 10:14

  • Valio69

  • Just popping in

  • Posts: 46

  • Since: 2010/1/2 1


Sorry, whats about my question?

23
dnprossi
Re: xNews 1.68 RC1 - Bug report
  • 2010/7/23 12:17

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Hi valio69...

looking at it...

have you tried other applications like publisher because it has same problem.. only standard xoops settings are saved like left right position active or not etc but not module specific ones...

Do not know yet if it is a bug or simply some spec changes in programming modules...


EDIT:

Also system blocks have same problem eg. options columns block settings do not work...

they are not saved on submit...



24
Valio69
Re: xNews 1.68 RC1 - Bug report
  • 2010/7/23 17:10

  • Valio69

  • Just popping in

  • Posts: 46

  • Since: 2010/1/2 1


dnprossi, thanks for reply!

you're right. I just never used system blocks and when I tried - the same problems:(

So it is not xNews problem...

Interesting that only "options part" of blocks not saving on submit. Parametrs like name of a block or weight is working, but not options...

25
Valio69
Re: xNews 1.68 RC1 - Bug report
  • 2010/7/23 19:31

  • Valio69

  • Just popping in

  • Posts: 46

  • Since: 2010/1/2 1


I tried to find this error, but it seems that the problem is around ajax... I cant fix it :(

26
voltan
Re: xNews 1.68 RC1 - Bug report
  • 2010/8/18 15:03

  • voltan

  • Theme Designer

  • Posts: 724

  • Since: 2006/12/5


Hello

I add some changes in tcpdf_config.php for get xoops informations like site logo or site name and slogan :

please test this code :

<?php
//============================================================+
// File name   : tcpdf_config.php
// Begin       : 2004-06-11
// Last Update : 2008-11-17
//
// Description : Configuration file for TCPDF.
//
// Author: Nicola Asuni
//
// (c) Copyright:
//               Nicola Asuni
//               Tecnick.com s.r.l.
//               Via Della Pace, 11
//               09044 Quartucciu (CA)
//               ITALY
//               www.tecnick.com
//               info@tecnick.com
//============================================================+

/**
 * Configuration file for TCPDF.
 * @author Nicola Asuni
 * @copyright 2004-2008 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
 * @package com.tecnick.tcpdf
 * @version 4.0.014
 * @link http://tcpdf.sourceforge.net
 * @license http://www.gnu.org/copyleft/lesser.html LGPL
 * @since 2004-10-27
 */
if (!defined('XOOPS_ROOT_PATH')){ exit(); }

// If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.

if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
    
    include 
"../../mainfile.php";  // added for xoops 
    
include_once XOOPS_ROOT_PATH.'/include/functions.php'// added for xoops 
    
    // DOCUMENT_ROOT fix for IIS Webserver
    
if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) {
        if(isset(
$_SERVER['SCRIPT_FILENAME'])) {
            
$_SERVER['DOCUMENT_ROOT'] = str_replace'\''/'substr($_SERVER['SCRIPT_FILENAME'], 00-strlen($_SERVER['PHP_SELF'])));
        } elseif(isset(
$_SERVER['PATH_TRANSLATED'])) {
            
$_SERVER['DOCUMENT_ROOT'] = str_replace'\''/'substr(str_replace('\\''\'$_SERVER['PATH_TRANSLATED']), 00-strlen($_SERVER['PHP_SELF'])));
        }    else {
            
// define here your DOCUMENT_ROOT path if the previous fails
            
$_SERVER['DOCUMENT_ROOT'] = '/var/www';
        }
    }
    
    
// Automatic calculation for the following K_PATH_MAIN constant
    
$k_path_main str_replace'\''/'realpath(substr(dirname(__FILE__), 00-strlen('config'))));
    if (
substr($k_path_main, -1) != '/') {
        
$k_path_main .= '/';
    }
    
    
/**
     * Installation path (/var/www/tcpdf/).
     * By default it is automatically calculated but you can also set it as a fixed string to improve performances.
     */
    
define ('K_PATH_MAIN'$k_path_main);
    
    
// Automatic calculation for the following K_PATH_URL constant
    
if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
        if(isset(
$_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') {
            
$k_path_url 'https://';
        } else {
            
$k_path_url 'http://';
        }
        
$k_path_url .= $_SERVER['HTTP_HOST'];
        
//DNPROSSI - FIXED WRONG URL CUT
        //$k_path_url .= str_replace( '\', '/', substr($_SERVER['PHP_SELF'], 0, -24));
        
$k_path_url .= str_replace'\''/'$_SERVER['PHP_SELF']);
        
$k_path_url dirname($k_path_url). '/tcpdf/';
    }
    
    
/**
     * URL path to tcpdf installation folder (http://localhost/tcpdf/).
     * By default it is automatically calculated but you can also set it as a fixed string to improve performances..
     */
    
define ('K_PATH_URL'$k_path_url);
    
    
/**
     * path for PDF fonts
     * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts
     */
    
define ('K_PATH_FONTS'K_PATH_MAIN.'fonts/');
    
    
/**
     * cache directory for temporary files (full path)
     */
    
define ('K_PATH_CACHE'XOOPS_VAR_PATH.'caches/smarty_compile/'); // added for xoops 
    
    /**
     * cache directory for temporary files (url path)
     */
    
define ('K_PATH_URL_CACHE'XOOPS_VAR_PATH.'caches/smarty_compile/'); // added for xoops 
    
    /**
     *images directory
     */
    
define ('K_PATH_IMAGES'XOOPS_ROOT_PATH .'/images/'); // added for xoops 
    
    /**
     * blank image
     */
    
define ('K_BLANK_IMAGE'XOOPS_ROOT_PATH.'/images/_blank.png'); // added for xoops 
    
    /**
     * page format
     */
    
define ('PDF_PAGE_FORMAT''A4');
    
    
/**
     * page orientation (P=portrait, L=landscape)
     */
    
define ('PDF_PAGE_ORIENTATION''P');
    
    
/**
     * document creator
     */
    
define ('PDF_CREATOR''TCPDF');
    
    
/**
     * document author
     */
    
define ('PDF_AUTHOR''TCPDF');
    
    
/**
     * header title
     */
    
define ('PDF_HEADER_TITLE'$xoopsConfig['sitename']); // added for xoops 
    
    /**
     * header description string
     */
    
define ('PDF_HEADER_STRING'$xoopsConfig['slogan']); 
    
    
/**
     * image logo
     */
    
define ('PDF_HEADER_LOGO''logo.png'); // added for xoops 
    
    /**
     * header logo image width [mm]
     */
    
define ('PDF_HEADER_LOGO_WIDTH'30);
    
    
/**
     *  document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
     */
    
define ('PDF_UNIT''mm');
    
    
/**
     * header margin
     */
    
define ('PDF_MARGIN_HEADER'5);
    
    
/**
     * footer margin
     */
    
define ('PDF_MARGIN_FOOTER'10);
    
    
/**
     * top margin
     */
    
define ('PDF_MARGIN_TOP'27);
    
    
/**
     * bottom margin
     */
    
define ('PDF_MARGIN_BOTTOM'25);
    
    
/**
     * left margin
     */
    
define ('PDF_MARGIN_LEFT'15);
    
    
/**
     * right margin
     */
    
define ('PDF_MARGIN_RIGHT'15);
    
    
/**
     * main font name
     */
    
define ('PDF_FONT_NAME_MAIN''helvetica');
    
    
/**
     * main font size
     */
    
define ('PDF_FONT_SIZE_MAIN'10);
    
    
/**
     * data font name
     */
    
define ('PDF_FONT_NAME_DATA''helvetica');
    
    
/**
     * data font size
     */
    
define ('PDF_FONT_SIZE_DATA'8);
    
    
/**
     * Ratio used to scale the images
     */
    
define ('PDF_IMAGE_SCALE_RATIO'4);
    
    
/**
     * magnification factor for titles
     */
    
define('HEAD_MAGNIFICATION'1.1);
    
    
/**
     * height of cell repect font height
     */
    
define('K_CELL_HEIGHT_RATIO'1.25);
    
    
/**
     * title magnification respect main font size
     */
    
define('K_TITLE_MAGNIFICATION'1.3);
    
    
/**
     * reduction factor for small font
     */
    
define('K_SMALL_RATIO'2/3);
}

//============================================================+
// END OF FILE                                                 
//============================================================+
?>


tcpdf have to many font and big size ( About 15 Mg ) - how we can remove some ones ?

27
btesec
Re: xNews 1.68 RC1 - Bug report
  • 2010/8/18 22:04

  • btesec

  • Friend of XOOPS

  • Posts: 623

  • Since: 2007/2/20


if I can remember Trabis, version of this mod had all stuff removed, the mod was leaner. probably he can guide you somehow.

28
Valio69
Re: xNews 1.68 RC1 - Bug report
  • 2010/8/19 15:13

  • Valio69

  • Just popping in

  • Posts: 46

  • Since: 2010/1/2 1


Does someone know why the blocks like "Moderate News" & "Latest News Block" not working (at all)???

THX!

29
voltan
Re: xNews 1.68 RC1 - Bug report
  • 2010/8/19 16:06

  • voltan

  • Theme Designer

  • Posts: 724

  • Since: 2006/12/5


Quote:
if I can remember Trabis, version of this mod had all stuff removed, the mod was leaner. probably he can guide you somehow.


I think xnews development based news 1.66 ! in news 1.66 pdf generator removed from module file and in xnews 1.68 tcpdf generator add in Frameworks folder and it is out of module ( it very good ) but tcpdf are about 15 mb . ( just fonts is large )


and I think if tcpdf added in xoops_lib/Frameworks is better

Login

Who's Online

56 user(s) are online (41 user(s) are browsing Support Forums)


Members: 0


Guests: 56


more...

Donat-O-Meter

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

Latest GitHub Commits