11
panwac
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/8/1 10:42

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


Mamba,
Line:
$tpl->xoops_setCaching(2);

was changed to
$tpl->caching=2;


and I don't see any differences - an effect is good.



12
panwac
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/31 21:36

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


Quote:

Mamba wrote:
Can you change the line:

$tpl->xoops_setCaching(2);

to

$tpl->caching=2;


and see if it makes a difference?

I will try to do it and test tomorrow (it's 23:27 o'clock in my country) - in this moment I'm realy dead after 16 hours spending at work (changes in news templates ), so I haven't a power to do enything except... go to bed.

OT Sorry for my... confused info sending by me from time to time - I'm not a coder (only a webmaster without a solid php bacground), so for me the most important is to have modules working good (not to have "good code"). :)



13
panwac
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/31 17:00

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


News 1.67 - an error in RSS for topic (news/backendt.php) - after upgrade I lost my polish signs (sth is wrong with encoding).

I replaced backendt.php file with older version (in this moment I don't remember, it was from news by trabis or other) and now everything is O.K.

Below a code from old backendt.php (three differences in first part of code are on red)

Quote:
<?php
// $Id$
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
// <https://xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// 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. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //
/**
* RSS per topics
*
* This script is used to generate RSS feeds for each topic.
* You can enable and disable this feature with the module's option named "Enable RSS feeds per topics ?"
* The script uses the permissions to know what to display.
*
* @package News
* @author Xoops Modules Dev Team
* @copyright (c) The Xoops Project - www.xoops.org
* @param type $nomvariable description
*/
include_once 'header.php';
include_once '../../mainfile.php';
include_once XOOPS_ROOT_PATH.'/class/template.php';
include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php';
include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newstopic.php';
include_once XOOPS_ROOT_PATH.'/modules/news/include/functions.php';

error_reporting(0);
$GLOBALS['xoopsLogger']->activated = false;

if(!news_getmoduleoption('topicsrss')) {
exit();
}

$topicid = isset($_GET['topicid']) ? intval($_GET['topicid']) : 0;
if($topicid == 0) {
exit();
}

if (function_exists('mb_http_output')) {
mb_http_output('pass');
}

$restricted = news_getmoduleoption('restrictindex');
$newsnumber = news_getmoduleoption('storyhome');

$charset = 'utf-8';

header ('Content-Type:text/xml; charset='.$charset);
$story = new NewsStory();
$tpl = new XoopsTpl();
$tpl->xoops_setCaching(2);
$tpl->xoops_setCacheTime(3600);
if (!$tpl->is_cached('db:news_rss.html',$topicid)) {
xoops_load('XoopsLocal');
$xt = new NewsTopic($topicid);
$sarray = $story->getAllPublished($newsnumber, 0, $restricted, $topicid);
if (is_array($sarray) && count($sarray)>0) {
$sitename = htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES);
$slogan = htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES);
$tpl->assign('channel_title', XoopsLocal::convert_encoding($sitename));
$tpl->assign('channel_link', XOOPS_URL.'/');
$tpl->assign('channel_desc', XoopsLocal::convert_encoding($slogan));
$tpl->assign('channel_lastbuild', formatTimestamp(time(), 'rss'));
$tpl->assign('channel_webmaster', checkEmail($xoopsConfig['adminmail'],true)); // Fed up with spam
$tpl->assign('channel_editor', checkEmail($xoopsConfig['adminmail'],true)); // Fed up with spam
$tpl->assign('channel_category', $xt->topic_title());
$tpl->assign('channel_generator', 'XOOPS');
$tpl->assign('channel_language', _LANGCODE);
$tpl->assign('image_url', XOOPS_URL.'/images/logo.png');
$dimention = getimagesize(XOOPS_ROOT_PATH.'/images/logo.png');
if (empty($dimention[0])) {
$width = 88;
} else {
$width = ($dimention[0] > 144) ? 144 : $dimention[0];
}
if (empty($dimention[1])) {
$height = 31;
} else {
$height = ($dimention[1] > 400) ? 400 : $dimention[1];
}
$tpl->assign('image_width', $width);
$tpl->assign('image_height', $height);
$count = $sarray;
foreach ($sarray as $story) {
$storytitle = $story->title();
//if we are allowing html, we need to use htmlspecialchars or any bug will break the output
$description = htmlspecialchars($story->hometext(), ENT_QUOTES);
$tpl->append('items', array(
'title' => XoopsLocal::convert_encoding(htmlspecialchars($storytitle, ENT_QUOTES)) ,
'link' => XOOPS_URL.'/modules/news/article.php?storyid='.$story->storyid(),
'guid' => XOOPS_URL.'/modules/news/article.php?storyid='.$story->storyid(),
'pubdate' => formatTimestamp($story->published(), 'rss'),
'description' => XoopsLocal::convert_encoding($description)));
}
}
}
$tpl->display('db:news_rss.html', $topicid);
?>



14
panwac
Re: Starting a Content/News Module Development Team
  • 2012/7/31 10:29

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


Irmtfan, you are right, that's only my look on an Article module, based on my practice. I tryed adopt it to my site, prepare local lang etc. After 4 years experiences my opinion is: there was great number of good ideas inside the module, but... too complicated for end user (not for me, but for users and simple moderators). ;)






15
panwac
Re: How to convert/upgrade news 1.1 to 1.67?
  • 2012/7/29 17:20

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


In the past one of versions had a converter/upgrader. In this moment I don't remember the number of version (possibly 1.4x or 1.5x - it was between 2005 and 2007).



16
panwac
Re: From where to download news module?
  • 2012/7/29 13:10

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12





17
panwac
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/29 11:14

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


Quote:

black_beard wrote:
Thank you @panwac, just forget my part.
The download has been updated, version tcpdf_for_xoops: 1.01

It was a pleasure...
In ver. 1.01 I can see, the line no 26 in /Frameworks/tcpdf/config/tcpdf_config.php is double.

Quote:
define ('K_PATH_MAIN', XOOPS_ROOT_PATH.'/Frameworks/tcpdf/'); //panwac
define ('K_PATH_URL', XOOPS_URL.'/Frameworks/tcpdf/');
define ('K_PATH_URL', XOOPS_URL.'/Frameworks/tcpdf/');

should be replaced with
Quote:
define ('K_PATH_MAIN', XOOPS_ROOT_PATH.'/Frameworks/tcpdf/');
define ('K_PATH_URL', XOOPS_URL.'/Frameworks/tcpdf/');


And in my opinion, that's better to have default config file with the definitions of utf-fonts, not others.
So, I suggest to change in tcpdf_config.php lines from 47 to 66, e.g.:
Quote:
define ('PDF_FONT_NAME_SLOGAN', 'cid0cs');
define ('PDF_FONT_STYLE_SLOGAN', 'B');
define ('PDF_FONT_SIZE_SLOGAN', '8');
define ('PDF_FONT_NAME_TITLE', 'cid0cs');
define ('PDF_FONT_STYLE_TITLE', 'B');
define ('PDF_FONT_SIZE_TITLE', '12');
define ('PDF_FONT_NAME_SUB', 'cid0cs');
define ('PDF_FONT_STYLE_SUB', 'I');
define ('PDF_FONT_SIZE_SUB', '8');
define ('PDF_FONT_NAME_SUBSUB', 'cid0cs');
define ('PDF_FONT_STYLE_SUBSUB', '');
define ('PDF_FONT_SIZE_SUBSUB', '6');
define ('PDF_FONT_NAME_MAIN', 'cid0cs');
define ('PDF_FONT_SIZE_MAIN', 10);
define ('PDF_FONT_STYLE_MAIN','');
define ('PDF_FONT_NAME_DATA', 'cid0cs');
define ('PDF_FONT_STYLE_DATA','');
define ('PDF_FONT_SIZE_DATA', 8);
define ('PDF_FONT_MONOSPACED', 'cid0cs');

with
Quote:
define ('PDF_FONT_NAME_SLOGAN', 'dejavusansb');
define ('PDF_FONT_STYLE_SLOGAN', '');
define ('PDF_FONT_SIZE_SLOGAN', '8');
define ('PDF_FONT_NAME_TITLE', 'dejavusansb');
define ('PDF_FONT_STYLE_TITLE', '');
define ('PDF_FONT_SIZE_TITLE', '12');
define ('PDF_FONT_NAME_SUB', 'dejavusansi');
define ('PDF_FONT_STYLE_SUB', '');
define ('PDF_FONT_SIZE_SUB', '8');
define ('PDF_FONT_NAME_SUBSUB', 'dejavusans');
define ('PDF_FONT_STYLE_SUBSUB', '');
define ('PDF_FONT_SIZE_SUBSUB', '6');
define ('PDF_FONT_NAME_MAIN', 'dejavusans');
define ('PDF_FONT_SIZE_MAIN', 10);
define ('PDF_FONT_STYLE_MAIN','');
define ('PDF_FONT_NAME_DATA', 'dejavusansi');
define ('PDF_FONT_STYLE_DATA','');
define ('PDF_FONT_SIZE_DATA', 8);
define ('PDF_FONT_MONOSPACED', 'dejavusans');




18
panwac
Re: Starting a Content/News Module Development Team
  • 2012/7/29 10:50

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


Article by phppp was interesting, but not user friendly. To complicated (with strange CPanel), not usefull for creating content section (e.g. book, almanach) and managing static pages, I think.



19
panwac
Re: News 1.67 Final released for XOOPS 2.5.5
  • 2012/7/28 16:22

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


Quote:

Mamba wrote:
Quote:
'TCPDF for Xoops' : download it here

I've downloaded it, but at the moment it shows an empty page when I'm trying to generate a PDF file. I'll try to test some more over the weekend, but I am curious if anybody else experiences the same behavior.


The same.
In "/Frameworks/tcpdf/config/tcpdf_config.php" replace lines 25 and 26:

define ('K_PATH_MAIN',  XOOPS_ROOT_PATH.'/modules/news/tcpdf/');    //panwac     define ('K_PATH_URL', XOOPS_URL.'/modules/news/tcpdf/');


with

define ('K_PATH_MAIN',  XOOPS_ROOT_PATH.'/Frameworks/tcpdf/');    //panwac     define ('K_PATH_URL', XOOPS_URL.'/Frameworks/tcpdf/');


After that I've got a pdf document generated, but with a '?' sign in any place, there should be polish characters. I changed 'helvetica' with 'dejavusans' and now everything is O.K.



20
panwac
WF-Links 1.09?
  • 2012/5/22 15:28

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


Some time ago I found two informations written by wishcraft about changes in WF-Links 1.06:

1. News about it
2. Forum topic

McDonald, the author of this module wrote, that in 2008 sbd created ver. 1.07, so it should be better to continue that; ailtonlopes sent a link to the ver. 1.08: diaadia-plugins.googlecode.com/files/wflinks.zip . The last information from wishcraft was:

Quote:
Actually eventually I will remove all the SQL Injections from this version and make it use the persistence class modeler, so it is true blue room. I have no intention to look at the two branches you have both spoke of, as you can see with this one where people have to put a link on their site for backlinking referencing and spam control will be all the changes made in this old module.


My question is, which version of WF-Links module is the last, working with xoops 2.5.x?

I'm asking, because this is very good module by McDonald, with a structure looks like in Xoopstube, in last time updated by Mamba to 1.05 beta. Maybe it will be good to have this module fully compatibile with last ver. of XOOPS?




TopTop
« 1 (2) 3 4 »



Login

Who's Online

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


Members: 0


Guests: 142


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