31
soconfused
Re: Rss backendforums.php (Great Idea) Will newbb be able to handel it?
  • 2005/7/19 18:35

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hello

I'm trying to get this to work with the pbboard but I just get 'feed contains no items' when accessed through rss reader. Any ideas?

<?php
include("mainfile.php");
$rssid = $_GET['rssid'];
$prefix = $xoopsConfig['prefix'];
header("Content-Type: text/xml");
echo "
<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">
<channel><title>";
$forumresult = mysql_query("SELECT forum_name,forum_desc FROM ".$prefix."_xpbb_forums where

forum_id=$rssid");
while($row = mysql_fetch_array($forumresult)) {
echo $row["forum_name"]." - ".$row["forum_desc"];
}
echo

"</title><link>http://".$_SERVER['SERVER_NAME']."/modules/pbboard/viewforum.php?forum=".$rssid.

"</link>
<description>".$meta['description']."</description>
<language>en-us</language>
";

$result = mysql_query("SELECT topic_id,subject,post_text,type,post_time FROM

".$prefix."_xpbb_posts where forum_id=$rssid ORDER BY post_time DESC LIMIT 30");
while($row = mysql_fetch_array($result)) {
$realtime = formatTimestamp($row["post_time"], "m");
echo "
<item>
<title>".$row["subject"]."</title>
<link>http://".$_SERVER['SERVER_NAME']."/modules/pbboard/viewtopic.php?topic_id=".$row["topic_i

d"]."&forum=".$rssid."</link>
<description>".$row["post_text"]."</description>
<dc:creator>".$row["type"]."</dc:creator>
<dc:date>$realtime</dc:date>
</item>";
}
echo "
</channel>
</rss>
";
?>



32
soconfused
Xphbb plugin for RSS Fit?
  • 2005/7/19 18:13

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Not really a module request but a plugin for the RSSfit module that will fetch the latest posts from the XOOPS phpbb module.
I've been trying to make one but have failed miserably



33
soconfused
Re: WhiteSpace issue
  • 2005/7/19 1:16

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


If you're using frontpage go to 'tools' and use 'optimise html' (check both the 'remove white space' boxes) This works ok for me



34
soconfused
Re: RSSFit plugins
  • 2005/7/14 19:46

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hello,
sorry to gate crash your post
If anyone has a plugin for the pbboard could they let me know.
Thanks



35
soconfused
Custom xppb plugin for rss fit module
  • 2005/7/14 19:32

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hello,

I'm trying to create a custom plugin for the rss fit module, but I'm stuck - I want to output latest topics to an rss feed, I've got it so far but the rss doesn't display any topics, here's the code - can anyone see whats wrong.
Quote:
<?php
// $Id: rssfit.pluginsample.php,v 1.1 2005/03/07 09:20:05 tuff Exp $
###############################################################################
## RSSFit - Extendable XML news feed generator ##
## Copyright (c) 2004 - 2005 NS Tai (aka tuff) ##
## <http://www.brandycoke.com/> ##
###############################################################################
## 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 ##
###############################################################################
/*
* This file is a dummy for making a RSSFit plug-in, follow the following steps
* if you really want to do so.
* Step 0: Stop here if you are not sure what you are doing, it's no fun at all
* Step 1: Clone this file and rename as something like rssfit.[mod_dir].php
* Step 2: Replace the text "RssfitSample" with "Rssfit[mod_dir]" at line 58 and
* line 64, i.e. "RssfitNews" for the module "News"
* Step 3: Modify the word in line 59 from 'sample' to [mod_dir]
* Step 4: Modify the function "grabEntries" to satisfy your needs
* Step 5: Move your new plug-in file to the RSSFit plugins folder,
* i.e. your-xoops-root/modules/rss/plugins
* Step 6: Install your plug-in by pointing your browser to
* your-xoops-url/modules/rss/admin/?do=plugins
* Step 7: Finally, tell us about yourself and this file by modifying the
* "About this RSSFit plug-in" section which is located... somewhere.
*
* [mod_dir]: Name of the driectory of your module, i.e. 'news'
*
* About this RSSFit plug-in
* Author: John Doe <http://www.your.site/>
* Requirements:
* Module: Blah <http://www.where.to.find.it/>
* Version: 1.0
* RSSFit verision: 1.1
*/

if( !defined('RSSFIT_ROOT_PATH') ){ exit(); }
class rssfitpbboard{
var $dirname = 'pbboard';
var $modname;
var $grab;
var $module; // optional, see line 74

function RssfitPbboard(){
}

function loadModule(){
global $module_handler;
$mod = $module_handler->getByDirname($this->dirname);
if( !$mod || !$mod->getVar('isactive') ){
return false;
}
$this->modname = $mod->getVar('name');
$this->module =& $mod; // optional, remove this line if there is nothing
// to do with module info when grabbing entries
return $mod;
}

function grabEntries(&$obj){
global $xoopsDB;
$ret = array();
$i = 0;
// The following example code grabs the latest entries from the module MyLinks
$sql = "SELECT l.lid, l.cid, l.title, l.date, t.description FROM ".$xoopsDB->prefix("xoops_pbb")." l, ".$xoopsDB->prefix("xoops_pbb_topics")." t WHERE l.status > 0 AND l.lid = t.lid ORDER BY date DESC";
$result = $xoopsDB->query($sql, $this->grab, 0);
while( $row = $xoopsDB->fetchArray($result) ){
$link = XOOPS_URL.'/modules/'.$this->dirname.'topic.forum_id'.$row['cid'].'&lid='.$row['lid'];
/*
* Required elements of an RSS item
*/
// 1. Title of an item
$ret[$i]['title'] = $row['title'];
// 2. URL of an item
$ret[$i]['link'] = $link;
// 3. Item modification date, must be in Unix time format
$ret[$i]['timestamp'] = $row['date'];
// 4. The item synopsis, or description, whatever
$ret[$i]['description'] = $row['description'];
/*
* Optional elements of an RSS item
*/
// 5. The item synopsis, or description, whatever
$ret[$i]['guid'] = $link;
// 6. A string + domain that identifies a categorization taxonomy
$ret[$i]['category'] = $this->modname;
$ret[$i]['domain'] = XOOPS_URL.'/modules/'.$this->dirname.'/';
$i++;
}
return count($ret) > 0 ? $ret : false;
}
}
?>



36
soconfused
Re: Getting comments to center and stretch full width on page
  • 2005/7/11 21:00

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Having read a bit more I think it's the theme.html
I've managed to get the comments in the center of the page by adding the <div align="center"> but can' get the width 100% - anyone know what I need to add/modify to do this? This is the bit in the theme - "content"


</td>
<td valign="top" class="content" width="100%"><div align="center">
<{$xoops_contents}><br><br></div>
<{if $xoops_showcblock == 1}>
<{foreach item=block from=$xoops_ccblocks}>
<{include file="rmdigital/theme_blockcenter_c.html"}><br>
<{/foreach}>
<{/if}><br />
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td id="centerLcolumn" valign="top" width="100%">
<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}> <{include file="rmdigital/theme_blockcenter_l.html"}> <{/foreach}>
<!-- End center-left blocks loop -->
</td>



37
soconfused
Getting comments to center and stretch full width on page
  • 2005/7/11 17:12

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hi,

I've modified a theme and I have a small problem which I just can't find how to fix. Users comments are aligning to the left - the whole comment block not the text and they aren't full screen unless in 800 x 600, I can't find how to change it anywhere and it's driving me nuts
I've been going through the style sheet for days and the comments template. But I can't fix it.

This is the style sheet:

body {
color: #2079BB;
background: #D0E6F4;
margin: 5;
padding: 0;
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666666;
}

table.main{
background-color: #FFFFFF;
padding: 0px;
border-left: 1px solid #1A5E91;
border-right: 1px solid #1A5E91;
}
td.header{
background: #4E57B2;
height: 134;
padding: 0px;
}
td.subHLinks{
height: 20px;
text-align: right;
color: #FFFFFF;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
padding: 1px;
font-weight: normal;
vertical-align: middle;
}
td.banner{
background-color: #4E57B2;
text-align: center;
vertical-align: middle;
}
td.search{
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
text-align: right;
vertical-align: middle;
height: 20px;
padding: 2px;
padding-right: 10px;
}
td.copy{
background: #8694D6;
height: 17px;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
color: #FFFFFF;
text-align: center;
vertical-align: middle;
}
input{
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
border: 1px solid #2079BB;
color: #2079BB;
padding-left: 2px;
padding-right: 2px;
background-color: #FFFFFF;
}
td.left{
width: 150px;
padding-left: 8px;
padding-right: 8px;
}
.blockTitle{
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #DD6900;
padding-bottom: 1px;
border-bottom: 2px solid #5FA6E4;
text-transform: uppercase;
text-align: left;

}
.blockContent{
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: normal;
color: #666666;
padding: 0px;
text-align: left;
}
.content{
padding: 8px;
text-align: left;
}
td.menuEven{
background-color: #F2F6FB;
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
border-bottom: 1px dashed #3A9ECF;
height: 20px;
padding: 0px;
padding-left: 4px;
}
td.menuOdd{
border-bottom: 1px dashed #3A9ECF;
background-color: #EEF7FF;
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
height: 20px;
padding: 0px;
padding-left: 4px;
}
.submenu{
padding: 0px;
height: 16px;
padding-left: 4px;
}

a {color: #333333; text-decoration: none; font-weight: normal; background-color: transparent;}
a:hover {
color: #DD6900;
text-decoration: underline;
}

h1 {}
h2 {}
h3 {}
h4 {}
h5 {}
ul { margin: 2px; padding: 2px; list-style: decimal inside; text-align: left;}
li { margin-left: 2px; list-style: square inside; color: #559ED1;}

input.formButton {}

.item {border: 0px;}
.itemHead {padding: 3px; background-color: #FFFFFF; color: #2079BB; border-bottom: 2px solid #DD6900;}
.itemInfo {text-align: right; padding: 3px; background-color: #FFFFFF;}
.itemTitle a {font-size: 130%; font-weight: bold; font-variant: small-caps; color: #2079BB; background-color: transparent;}
.itemPoster {font-size: 90%; font-style:italic;}
.itemPostDate {font-size: 90%; font-style:italic;}
.itemStats {font-size: 90%; font-style:italic;}
.itemBody {padding-left: 5px;}
.itemText {margin-top: 5px; margin-bottom: 5px; line-height: 1.5em;}
.itemText:first-letter {font-size: 133%; font-weight: bold;}
.itemFoot {text-align: right; padding: 3px; background-color: #FFFFFF; border-top: 1px dashed #6495ED; }
.itemAdminLink {font-size: 90%;}
.itemPermaLink {font-size: 90%;}

th {
background-color: #FFFFFF;
color: Silver;
padding : 2px;
vertical-align : middle;
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
text-transform: uppercase;
border-bottom: 1px dashed #1E90FF;
}

.outer {border: 0px;}
.head {background-color: #FFFFFF; padding: 5px; font-weight: bold; color: #2079BB; border-bottom: 1px dashed #D3D3D3;}
.even {background-color: #D0E9FF; padding: 5px;}
.odd {background-color: #E8F4FF; padding: 5px;}
.foot {background-color: #FFFFFF; padding: 5px; font-weight: bold; border-top: 1px solid #DCDCDC; }
tr.even td {background-color: #D0E9FF; padding: 5px;}
tr.odd td {background-color: #E8F4FF; padding: 5px;}

div.errorMsg { background-color: #FFCCCC; text-align: center; border-top: 1px solid #DDDDFF; border-left: 1px solid #DDDDFF; border-right: 1px solid #AAAAAA; border-bottom: 1px solid #AAAAAA; font-weight: bold; padding: 10px;}
div.confirmMsg { background-color: #DDFFDF; color: #136C99; text-align: center; border-top: 1px solid #DDDDFF; border-left: 1px solid #DDDDFF; border-right: 1px solid #AAAAAA; border-bottom: 1px solid #AAAAAA; font-weight: bold; padding: 10px;}
div.resultMsg { background-color : #CCCCCC; color: #333333; text-align: center; border-top: 1px solid silver; border-left: 1px solid silver; font-weight: bold; border-right: 1px solid #666666; border-bottom: 1px solid #666666; padding: 10px;}

div.xoopsCode { background: #FFFFFF; border: 1px inset #000080; font-family: "Courier New",Courier,monospace; padding: 0px 6px 6px 6px;}
div.xoopsQuote { background: #FFFFFF; border: 1px inset #000080; font-family: "Courier New",Courier,monospace; padding: 0px 6px 6px 6px;}


.comTitle {font-weight: bold; margin-bottom: 2px;}
.comText {padding: 2px;}
.comUserStat {font-size: 10px; color: #2F5376; font-weight:bold; border: 1px solid silver; background-color: #ffffff; margin: 2px; padding: 2px;}
.comUserStatCaption {font-weight: normal;}
.comUserStatus {margin-left: 2px; margin-top: 10px; color: #2F5376; font-weight:bold; font-size: 10px;}
.comUserRank {margin: 2px;}
.comUserRankText {font-size: 10px;font-weight:bold;}
.comUserRankImg {border: 0;}
.comUserName {}
.comUserImg {margin: 2px;}
.comDate {font-weight: normal; font-style: italic; font-size: smaller}
.comDateCaption {font-weight: bold; font-style: normal;}

and this is the system_comment.html template:

<!-- start comment post -->
<tr>
<td class="head"><a id="comment<{$comment.id}>"></a> <{$comment.poster.uname}></td>
<td class="head"><div class="comDate"><span class="comDateCaption"><{$lang_posted}>:</span> <{$comment.date_posted}>&nbsp;&nbsp;<span class="comDateCaption"><{$lang_updated}>:</span> <{$comment.date_modified}></div></td>
</tr>
<tr>

<{if $comment.poster.id != 0}>

<td class="odd"><div class="comUserRank"><div class="comUserRankText"><{$comment.poster.rank_title}></div><img class="comUserRankImg" src="<{$xoops_upload_url}>/<{$comment.poster.rank_image}>" alt="" /></div><img class="comUserImg" src="<{$xoops_upload_url}>/<{$comment.poster.avatar}>" alt="" /><div class="comUserStat"><span class="comUserStatCaption"><{$lang_joined}>:</span> <{$comment.poster.regdate}></div><div class="comUserStat"><span class="comUserStatCaption"><{$lang_from}>:</span> <{$comment.poster.from}></div><div class="comUserStat"><span class="comUserStatCaption"><{$lang_posts}>:</span> <{$comment.poster.postnum}></div><div class="comUserStatus"><{$comment.poster.status}></div></td>

<{else}>

<td class="odd"> </td>

<{/if}>

<td class="odd">
<div class="comTitle"><{$comment.image}><{$comment.title}></div><div class="comText"><{$comment.text}></div>
</td>
</tr>
<tr>
<td class="even"></td>

<{if $xoops_iscommentadmin == true}>

<td class="even" align="right">
<a href="<{$editcomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/edit.gif" alt="<{$lang_edit}>" /></a><a href="<{$deletecomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/delete.gif" alt="<{$lang_delete}>" /></a><a href="<{$replycomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a>
</td>

<{elseif $xoops_isuser == true && $xoops_userid == $comment.poster.id}>

<td class="even" align="right">
<a href="<{$editcomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/edit.gif" alt="<{$lang_edit}>" /></a><a href="<{$replycomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a>
</td>

<{elseif $xoops_isuser == true || $anon_canpost == true}>

<td class="even" align="right">
<a href="<{$replycomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a>
</td>

<{else}>

<td class="even"> </td>

<{/if}>

</tr>
<!-- end comment post -->



38
soconfused
Getting comments to center and stretch full width on page
  • 2005/7/11 17:09

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


sorry! double posted it





39
soconfused
Re: Selected module does not exist - instead of 404 page not found
  • 2005/7/10 12:11

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hi,

Thanks

Would the redirect (with either of the 2 options) have an effect on seo? - don't want to be penalized by google

And is it normal? ie - I haven't got anything wrong with my database etc

I don't mind leaving the modules in place with the custom blocks (I may find uses for them, just worried about loosing serps).



40
soconfused
Selected module does not exist - instead of 404 page not found
  • 2005/7/10 10:40

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hello,

Read & searched through the XOOPS site but can't find anything.

I uninstalled a couple of modules because I'd found a better one to replace them with, but the links in Google etc pointing to the content that was in thoses modules brings up "Selected module does not exist" instead of my custom 404 page, I've tried re-installing them & uninstalling again but without any luck.

In the end I've had to re-install them and add a custom block to each module pointing visitors to the new location.

I've tried all the debugs but everything seems normal, is this normal? do I have a problem somewhere? Shouldn't my 404 page show instead?




TopTop
« 1 2 3 (4) 5 6 7 ... 10 »



Login

Who's Online

305 user(s) are online (177 user(s) are browsing Support Forums)


Members: 0


Guests: 305


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