Re: RSSFit module

I also have a copy of RSSFit, if you need one.

If you are running ImpressCMS 1.2, adding an RSS feed is rather simple - did it with SimplyWiki and an old version of News without any major difficulties (just wrestled with htmlspecialchars for some fields).

Create a new file in the root of your module and modify the following code for your module


<?php
/**
* Generating an RSS feed
*
* @copyright http://smartfactory.ca The SmartFactory
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @since SimplyWiki 1.2
* @package SimplyWiki
* @version $Id: rss.php 19368 2010-06-08 01:08:18Z skenow $
*/
/** Include the module's header for all pages */
include_once 'header.php';
/** Include the header for the site */
include_once ICMS_ROOT_PATH.'/header.php';

$clean_author = isset($_GET['author']) ? (int) ( $_GET['author'] ) : false;
$clean_type = isset( $_GET['type'] ) ? $_GET['type'] : false;

$module_name = $icmsModule->name();

/** Include the core rss class and create a new feed instance */
include_once ICMS_ROOT_PATH . '/class/icmsfeed.php';
$wiki_feed = new IcmsFeed();

$wiki_feed->title = $module_name . ' - ' . $icmsConfig['sitename'];
$wiki_feed->url = ICMS_URL. '/modules/' . $wikiModDir . '/';
$wiki_feed->description = $icmsConfig['slogan'];
$wiki_feed->language = _LANGCODE;
$wiki_feed->charset = _CHARSET;
$wiki_feed->category = $module_name;

/** Include the SimplyWiki class and create a new instance */
include_once 'class/wiwiRevision.class.php';
$wiki_page_handler = new WiwiRevisionHandler;

/** Establish a handler for determining the page author */
$wiki_author_handler = new XoopsMemberHandler( $xoopsDB );

$pages = $wiki_page_handler->getRevisions( $clean_author, $clean_type );

foreach($pages as $page) {
$wiki_feed->feeds[] = array (
'title' => $page->title,
'link' => str_replace('&', '&', ICMS_URL . '/modules/' . $wikiModDir . '/index.php?page=' . $page->keyword ),
'description' => htmlspecialchars(str_replace('&', '&', ICMS_URL . '/modules/' . $wikiModDir . '/index.php?page=' . $page->keyword ), ENT_QUOTES),
'pubdate' => $page->lastmodified,
'guid' => str_replace('&', '&', ICMS_URL . '/modules/' . $wikiModDir . '/index.php?page=' . $page->keyword ),
'category' => $module_name,
'author' => $wiki_author_handler->getUser( $page->creator )->uname()
);
}

$wiki_feed->render();

Steve Twitter: @skenow Facebook: Steve Kenow

Topic


Re: RSSFit module

You can get a copy from me if you want.

I am converting MyTube into a ICMS only module. With that version you don't need the RSSfit module anymore. See here for a demo.

Topic


Re: RSSFit module

Never mind, I found the japanese version of RSSFit 1.21 at Google Code . Even the Xoops site doesn't store that module anymore.

I'll try to update the link.

Cheers,
David J



RSSFit module

I'm looking for the RSSFit module. I want to add RSS feeds to myTube, and that is done using RSSFit.

The addons site points to the brandycoke site, but that site is offline.

Does anyone have a recent version of that module somewhere?

Thanks



Re: Profile Module - Bug

Hi srmcatee,

thank you for testing the profile module. This is always highly apreciated .

In the current stable version of profile, custom fields will only show up if you DEACTIVATE the social mode. index.php will then be replaced with userinfo.php. Unfortunately index.php is not yet dynamic. It's planned as a new enhancement (you can follow the status in trac).

The thing with register.php seems to be a new bug though. I'll check into it.

the german icms website : www.impresscms.de


Profile Module - Bug

Hello All,

I am working closely with the profile module and I have a few bugs to report.

The only place I can get a custom field to appear is on the edit user account. I think all fields you have added and made visible should show up on the profile page generated at : /modules/profile/index.php?uid=

If you add a custom field and make it visible but not editable. It does not show up anywhere on any screen. It does show up on registration screen. However any value you enter into the field during registration is not saved.

In the above scenario if you then change the field to editable it then shows up on the 'edit account' screen. And it will save the value when you are editing the account. Once again though, it will only show up on the edit account screen.


If anyone has any sample code or a template mod I would gladly test it out and give feedback.

Cheers.



Re: Marquee failing to scroll and show content

Sorry about the slow reply - I was monitoring a related thread I started ("imagemanager seems broken") and forgot about this one. The short answer is that this was a xoops 2.0.17 site, upgraded a couple of years ago to icms 1.0 (I think) and since upgraded whenever icms went final, so now its 1.2.1.

I added marquee a few years ago too and it worked well enough with fixed text (faultlessly but clunky to set up) until the latest icms upgrade. I've been posting my js errors to the related thread and while the first one was in xoops.js subsequent ones appear to be in deprecated js frameworks (scriptaculous and one other, lost to memory). Once I started comparing the website against a virgin icms 1.2.1 directory I realized there is a fair bit of xoops related cruft in there so I deleted what was obviously unnecessary too. I don't know if I got it all, nor do I know if the remaining files are the latest, although since the rest of the site functions perfectly I suppose its up to date.

Firefox is no longer reporting js errors and Marquee is now scrolling again but I still can't get ImageManager to insert an imagelink. I can insert the links by hand, so Marquee is no longer the problem. I guess the answer will arise in the other thread.



Re: Marquee failing to scroll and show content

could be a javascript library conflict.

@lucidlee - xoops or ImpressCMS? Which version? Any other js libraries being loaded?

Steve Twitter: @skenow Facebook: Steve Kenow



Re: Marquee failing to scroll and show content

Can you tell me a bit more about the Marquee you added?
Is it a fixed text or is it from a module? Which module?
Can you tell the behaviour, direction and loop settings?
Are you using Marquee on ImpressCMS?
With the module's options (preferences), did you set the Method to use to "Marquee" or Javascript?
Can you try the "Marquee" option instead of the Javascript option?

I've managed to get the Marquee working for ImpressCMS with a tinyMCE editor, using the Marquee method
with a fixed text

I've managed to get the Marquee working for ImpressCMS with a tinyMCE editor, using the Marquee method (haven't tried javascript)
with the News module



Re: Marquee failing to scroll and show content

I'm working on News at the moment, but I'll take a look at Marquee today. I'll let you know what the problem is.

I should be able to solve the content showing problem however the problem with scrolling (probably javascript) will be more difficult to solve.
I'll report back after I've taken a look.



Marquee failing to scroll and show content

From the Instant Zero links thread:

Is there any news about these modules?

I've just reactivated Marquee on a school site and its failing to scroll or indeed show any content at all.

I've searched fruitlessly for an alternative module that will allow me to show scrolling content so I'm hanging out for any good news here.



Re: Profile Module - Option Fields

Quote:

I must have missed something. Where is it?


Where it was for the last 18 months



Re: Profile Module - Option Fields

Quote:

That's what our all new and improved re-released Wiki is for



I must have missed something. Where is it?

the german icms website : www.impresscms.de


Re: Profile Module - Option Fields

Quote:

For example autotasks. This feature is awesome, however, I don't think that a lot of people will use it (since they don't know how to use it).


That's what our all new and improved re-released Wiki is for



Re: Profile Module - Option Fields

I totally agree that adding fields isn't as straight forward as it maybe could be but for now, I don't see how this could be improved.

On the other hand I don't want to support each and everyone who calls himself a webmaster or whatever . Some features are a little more complicated because they have to be. For example autotasks. This feature is awesome, however, I don't think that a lot of people will use it (since they don't know how to use it).

Anyway: If you have good ideas how to improve it, let me know and I'll see what I can do .

the german icms website : www.impresscms.de


Re: Profile Module - Option Fields

Quote:

I put in the option a:0:{} for a radio yes/no field


Stooooopppppp.
You never ever never ever never have to make up your own a:0:{} information.
All you need to do is figure out whether your field needs a serialized string (which is rare)
Then, you either use serialize to put things into the database
and
unserialize after you've gotten the data out of the database.



Re: Profile Module - Option Fields

Ahhh. I turned on debug. It appears the radio button wanted a default value set. I set it to 0 and it took.

This is not simple or user friendly. We might preset some of the fields based on selections or add some help to the screen.



Re: Profile Module - Option Fields

K. I put in the option a:0:{} for a radio yes/no field. I still get error when I submit the field and it is not created.



Re: Profile Module - Option Fields

You don't have to reinvent the wheel for that . Simply create a field as a copy of user_viewemail. This field is a yes/no field.

the german icms website : www.impresscms.de


Re: Profile Module - Option Fields

Steve,

I am trying to add fields to the registration process with the new profile module. I have been unable to add radio yes/no buttons. Not sure what string of options the system is expecting.




 Top