11
oilkp
Re: Publisher RSS to Facebook - Import Failed
  • 2010/12/10 5:40

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


Yes using the rssfit module solve the problem

Thank you

Btw heres the rssfit plugin for publisher module

https://xoops.org/modules/newbb/viewtopic.php?topic_id=72485



12
oilkp
Re: Publisher RSS to Facebook - Import Failed
  • 2010/11/29 12:35

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


so is there anywhere to post our site rss to fb..

and people who like our fb page can see this rss ?



13
oilkp
Re: Publisher rss not working in 2.5.0
  • 2010/11/29 12:32

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


My feed is blank, but right-clicking and viewing the source code shows the content of the feed.

i check my feed at rss validator

and it warns of the module name have the symbol "&"

i edit and remove the symbol in module admin and now the rss is working fine


the strange thing is in 2.45 i have the same symbol & in my module name but yet the rss is working




14
oilkp
Re: Publisher rss not working in 2.5.0
  • 2010/11/28 18:44

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


i have the same environment in 2.4.5 and publisher rss working fine but not in 2.50

helpp



15
oilkp
Re: Publisher rss not working in 2.5.0
  • 2010/11/28 18:43

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


the error was no new or old rss is displayed

comment out the line as posted by Ghia..on debugging

but no error is displayed

XOOPS Version XOOPS 2.5.0
PHP Version 5.2.9
mySQL Version 5.0.91-community



16
oilkp
Publisher rss not working in 2.5.0
  • 2010/11/28 10:03

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


Hi

I have another publisher installation in another xoops site using 2.4.5

and its working fine..same setup

but not in xoops 2.5.0

this is publisher backend.php
<?php
/*
 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 XUUPS Project http://sourceforge.net/projects/xuups/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         Publisher
 * @subpackage      Action
 * @since           1.0
 * @author          trabis <lusopoemas@gmail.com>
 * @author          The SmartFactory <www.smartfactory.ca>
 * @version         $Id: backend.php 0 2009-06-11 18:47:04Z trabis $
 */

include_once dirname(__FILE__) . '/header.php';

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

include_once 
XOOPS_ROOT_PATH '/class/template.php';
if (
function_exists('mb_http_output')) {
    
mb_http_output('pass');
}

$categoryid = isset($_GET['categoryid']) ? $_GET['categoryid'] : -1;

if (
$categoryid != -1) {
    
$categoryObj $publisher->getHandler('category')->get($categoryid);
}

header('Content-Type:text/xml; charset=' _CHARSET);
$tpl = new XoopsTpl();
$tpl->xoops_setCaching(2);
$tpl->xoops_setCacheTime(0);
$myts MyTextSanitizer::getInstance();
if (!
$tpl->is_cached('db:publisher_rss.html')) {
    
$channel_category $publisher->getModule()->name();
    
// Check if ML Hack is installed, and if yes, parse the $content in formatForML
    
if (method_exists($myts'formatForML')) {
        
$xoopsConfig['sitename'] = $myts->formatForML($xoopsConfig['sitename']);
        
$xoopsConfig['slogan'] = $myts->formatForML($xoopsConfig['slogan']);
        
$channel_category $myts->formatForML($channel_category);
    }
    
$tpl->assign('channel_charset'_CHARSET);
    
$tpl->assign('channel_title'htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES));
    
$tpl->assign('channel_link'PUBLISHER_URL);
    
$tpl->assign('channel_desc'htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES));
    
$tpl->assign('channel_lastbuild'formatTimestamp(time(), 'rss'));
    
$tpl->assign('channel_webmaster'$xoopsConfig['adminmail']);
    
$tpl->assign('channel_editor'$xoopsConfig['adminmail']);

    if (
$categoryid != -1) {
        
$channel_category .= " > " $categoryObj->name();
    }

    
$tpl->assign('channel_category'htmlspecialchars($channel_category));
    
$tpl->assign('channel_generator'$publisher->getModule()->name());
    
$tpl->assign('channel_language'_LANGCODE);
    
$tpl->assign('image_url'XOOPS_URL '/images/logo.gif');
    
$dimention getimagesize(XOOPS_ROOT_PATH '/images/logo.gif');
    if (empty(
$dimention[0])) {
        
$width 140;
        
$height 140;
    } else {
        
$width = ($dimention[0] > 140) ? 140 $dimention[0];
        
$dimention[1] = $dimention[1] * $width $dimention[0];
        
$height = ($dimention[1] > 140) ? $dimention[1] * $dimention[0] / 140 $dimention[1];
    }
    
$tpl->assign('image_width'$width);
    
$tpl->assign('image_height'$height);
    
$sarray $publisher->getHandler('item')->getAllPublished(100$categoryid);
    if (
is_array($sarray)) {
        
$count $sarray;
        foreach (
$sarray as $item) {
            
$tpl->append('items',
                         array(
'title' => htmlspecialchars($item->title(), ENT_QUOTES),
                               
'link' => $item->getItemUrl(),
                               
'guid' => $item->getItemUrl(),
                               
'pubdate' => formatTimestamp($item->getVar('datesub'), 'rss'),
                               
'description' => htmlspecialchars($item->getBlockSummary(300true), ENT_QUOTES)));
        }
    }
}
$tpl->display('db:publisher_rss.html');
?>


is there any change should i make to make it work in 2.5.0?

I have updated the publisher module several times




17
oilkp
Re: Willing to Pay - Someone look at it ? - Make All pages Private
  • 2010/11/26 8:50

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


Hi

what exactly you want to do?

make your site private ?

You can turn your site off in preference and allow only certain group to access it

you can create/edit in groups management waht user can see/do etc



18
oilkp
Publisher RSS to Facebook - Import Failed
  • 2010/11/8 6:16

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


im trying to add my rss feed to my facebook website page wall by adding the rss of my website to the notes section of fb

but when adding the rss i received this error in fb
Quote:

Import Failed
We couldn't find a feed using the URL you provided.



accessing the rss from the browser mysite.com/modules/publisher/backend.php is working fine

help



19
oilkp
Re: Publisher and xlanguage problem
  • 2010/11/8 1:39

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


solved by increasing the last item and title size



20
oilkp
Re: XOBILE - Newbb Plugin Help
  • 2010/7/31 13:53

  • oilkp

  • Just popping in

  • Posts: 23

  • Since: 2010/6/30


for read.php done..

<?php
###############################################################################
##   Copyright (C) 2009  Dylian Melgert                                      ##
##                                                                           ##
##      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 3 of the License, or    ##
##      (at your option) any later version.                                  ##
##                                                                           ##
##      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, see <http://www.gnu.org/licenses/>.##
###############################################################################
$replacements = array(
        
"à" => "a'",
        
"á" => "a'",
        
"è" => "e'",
        
"é" => "e'",
        
"ì" => "i'",
        
"ò" => "o'",
        
"ù" => "u'",
        
"ú" => "u'",
    
"[img align=left]" => "[IMG]",
    
"[img align=right]" => "[IMG]",
    
"[/img]" => "[IMG]",
        
"&nbsp;" => " ",
    );

$post_id intval($_GET['id']);

$sql "SELECT * FROM ".$GLOBALS['xoopsDB']->prefix("bb_posts")." WHERE post_id = $post_id";
$result $GLOBALS['xoopsDB']->queryF($sql);
$row $GLOBALS['xoopsDB']->fetchArray($result);
$subject strtr(strip_tags($row["subject"]), $replacements);
$uid strtr(strip_tags($row["uid"]), $replacements);


$sql "SELECT * FROM ".$GLOBALS['xoopsDB']->prefix("users")." WHERE uid = $uid";
$result $GLOBALS['xoopsDB']->queryF($sql);
$row $GLOBALS['xoopsDB']->fetchArray($result);
$username strtr(strip_tags($row["uname"]), $replacements);



$sql "SELECT * FROM ".$GLOBALS['xoopsDB']->prefix("bb_posts_text")." WHERE post_id = $post_id";
$result $GLOBALS['xoopsDB']->queryF($sql);
$row $GLOBALS['xoopsDB']->fetchArray($result);
$content strtr(strip_tags($row["post_text"]), $replacements);

$xoBile_text = new HAW_text("$subject:"HAW_TEXTFORMAT_BOLD);
$xoBile_text->set_br(1);
$xoBile_page->add_text($xoBile_text);
$xoBile_page->renderXoCode($content);
$xoBile_text->set_br(1);
$xoBile_page->renderXoCode("- by $username");

$xoBile_page->backURL "index.php?mod=newbb";
?>


still trying to figure out how to do this in main.php




TopTop
« 1 (2) 3 »



Login

Who's Online

84 user(s) are online (63 user(s) are browsing Support Forums)


Members: 0


Guests: 84


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