11
jayjay
Re: RSSFit in Xoops 2.0.18.1 + extra plugins
  • 2008/6/10 14:26

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi everybody!

I changed my rssfit copy to work with the current XOOPS version and added plugins for myalbum, pical and xoopstube:

Download here



12
jayjay
Re: RSSFit in Xoops 2.0.16/2.0.18.1
  • 2008/6/9 12:02

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


This is a reference post. I like the RSSFit module a lot and I think it should be added to the core (just like 'what's new', 'sitemap' and other cross-module modules ).

Anyway, RSSFit still works under XOOPS 2.0.18.1. You have to change one word to fix the news webfeed.

In plugins/rssfit.news.php at line 66, change
$news NewsStory::getAllPublished($this->grab0getmoduleoption('restrictindex'));

to
$news NewsStory::getAllPublished($this->grab0news_getmoduleoption('restrictindex'));


All done I guess

Credit to poster Jeffou on Brandycoke board.

Edit: You can also edit the rssfit_rss.html template to make your feeds 100% RSS standards valid:

Change
<rss version="2.0">

to
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">


and add
<atom:link href="<{$xoops_url}><{$smarty.server.REQUEST_URI}>" rel="self" type="application/rss+xml" />

between these two:
<{/foreach}>
...
<{if 
$feed.image != ''}>


Edit 2: Better change the image link in the same file too. Delete the slash just before </link>:
<link><{$feed.image.link}></link>



13
jayjay
Re: Protector is causing a Sessions issue-
  • 2008/6/9 7:24

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


I like the idea behind XOOPS Protector. Some of these features should be in the XOOPS core but maybe the dev team is working on that already

Anyway, I like the XOOPS_TRUST_PATH concept, the prefix manager and most of the security settings. Too bad it comes at such a high cost. I hope this gets fixed if it ever becomes part of the XOOPS core.

Go XOOPS



14
jayjay
Re: Protector is causing a Sessions issue-
  • 2008/6/8 7:02

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


I had the same thing happening, only not to the extent that you saw. My web server was overloaded because of a peak in visitors amount. I enabled the Fastest Cache Hack and the problem was solved.

After analyzing database and session data I saw that Protector took up some serious database traffic. Protector consults the database every time someone visits your site and it stores IP-data for almost every visitor. Most visitors have dynamic IP addresses you know...

I immediately disabled Protector because I can't live with this overhead. I'll protect my server some other way



15
jayjay
Re: DokuWiki Upgrade Message
  • 2008/6/4 5:30

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Quote:

anhDP wrote:
Hi All,
I commented out the checkUpdateMessages(); in the doku.php file and that did the trick.

Cheers,


You shouldn't hack that file. You can switch off update check in conf/dokuwiki.php with the updatecheck option:
http://wiki.splitbrain.org/wiki:config#updatecheck

I will suppress this option in a following release.



16
jayjay
Re: WF-Downloads 3.2 RC2 - Now Available
  • 2008/6/2 8:11

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


I agree. This should be in the news section. This module is widely used by XOOPS users and I have to stumble upon this forum message to find out it's been updated?

Please admin, can you post this item in news?



17
jayjay
Re: Better Xoops select boxes - makeMySelBox beautification
  • 2008/4/24 13:36

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Quote:

script_fu wrote:
What select boxes does this effect? Where are the "--" at?


Well, they're everywhere in my admin area... Help!

Seriously now, I see makeMySelBox in wf-links, xoopstube, xdirectory and my hacked wfdownloads. MakeSelBox can be found in the original wfdownloads and in myalbum, among others.

Module developers mostly use these two functions to select categories for your pages or files in admin area.

When you have a lot of categories to select from (50+), it is difficult to differentiate one from the other. The standard XOOPS way is to prefix "--" to subcategories. I believe colours are a lot clearer.



18
jayjay
Better Xoops select boxes - makeMySelBox beautification
  • 2008/4/24 13:04

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi everybody!

I beautified makeMySelBox a bit. The standard XOOPS select boxes are a pain to use when you have a lot of module categories. This will give background colours to different category levels, instead of those dashes "--" we have now.

Edit class/xoopstree.php:

//makes a nicely ordered selection box
    //$preset_id is used to specify a preselected item
    //set $none to 1 to add a option with value 0
    
function makeMySelBox($title,$order="",$preset_id=0$none=0$sel_name=""$onchange="")
    {
        if ( 
$sel_name == "" ) {
            
$sel_name $this->id;
        }
        
$myts =& MyTextSanitizer::getInstance();
        echo 
"<select name='".$sel_name."'";
        if ( 
$onchange != "" ) {
            echo 
" onchange='".$onchange."'";
        }
        echo 
">n";
        
$sql "SELECT ".$this->id.", ".$title." FROM ".$this->table." WHERE ".$this->pid."=0";
        if ( 
$order != "" ) {
            
$sql .= " ORDER BY $order";
        }
        
$result $this->db->query($sql);
        if ( 
$none ) {
            echo 
"<option value='0'>----</option>n";
        }
        while ( list(
$catid$name) = $this->db->fetchRow($result) ) {
            
$sel "";
            if ( 
$catid == $preset_id ) {
                
$sel " selected='selected'";
            }
            echo 
"<option class='title' value='$catid'$sel>$name</option>n"//edit jayjay
            
$sel "";
            
$arr $this->getChildTreeArray($catid$order);
            foreach ( 
$arr as $option ) {
            
//start edit jayjay
                
$option['prefix'] = str_replace(".","&nbsp;&nbsp;",$option['prefix']);
                if ( 
$option['prefix'] == "&nbsp;&nbsp;" ) {
                
$option['prefix'] = substr($option['prefix'], 6);
                
$catpath $option['prefix'].$myts->makeTboxData4Show($option[$title]);
                if ( 
$option[$this->id] == $preset_id ) {
                    
$sel " selected='selected'";
                }
                echo 
"<option class='title2' value='".$option[$this->id]."'$sel>$catpath</option>n";
                }
                else {
                
$catpath $option['prefix'].$myts->makeTboxData4Show($option[$title]);
                if ( 
$option[$this->id] == $preset_id ) {
                    
$sel " selected='selected'";
                }
                echo 
"<option value='".$option[$this->id]."'$sel>$catpath</option>n";
                }
            
//end edit jayjay
                
$sel "";
            }
        }
        echo 
"</select>n";
    }


Edit xoops.css:
option.title {
background-color:#ddd;
color:#000;
}

option.title2 {
background-color:#F2F2F2;
color:#000;
}


Change colors and add subcategories to your liking!

I guess a similar thing can be done to makeSelBox in class/tree.php.



19
jayjay
Re: title tag hack for wfdownloads
  • 2008/4/22 7:29

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Another update!

I found that my addie destroyed the catarray functionality (you know: sort by letter or number...) so I moved the code. Find this in viewcat.php:
if (isset($cid) && $cid && isset($categories[$cid])) {


and add this between the brackets:
$xoopsTpl->assign('xoops_pagetitle'$categories[$cid]->getVar('title').' | '.$xoopsModule->name());


I hope this gets added if there ever comes a new wf-downloads



20
jayjay
Re: Backend.php RSS hack for valid feeds
  • 2008/4/1 12:14

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Quote:

jayjay wrote:

Line 14 - after channel language:
<atom:link href="<{$xoops_url}><{$smarty.server.REQUEST_URI}>" rel="self" type="application/rss+xml" />



I haven't tested this, but I think you can also use <{$xoops_requesturi}> instead of <{$smarty.server.REQUEST_URI}>. I think this has the same result.




TopTop
« 1 (2) 3 4 5 ... 12 »



Login

Who's Online

217 user(s) are online (134 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

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

Latest GitHub Commits