xoops forums

Forum Index


Board index » All Posts (hmagoo)




hmagoo

Just popping in
Posted on: 2004/9/3 17:08
hmagoo
hmagoo (Show more)
Just popping in
Posts: 15
Since: 2004/7/31
#1

Re: news RSS feed request

I don't know. But I can view the source of your feed with Mozilla Firefox. Maybe try that.

IE says unavailable for viewing.

Excellent site too!!


hmagoo

Just popping in
Posted on: 2004/8/31 10:19
hmagoo
hmagoo (Show more)
Just popping in
Posts: 15
Since: 2004/7/31
#2

Re: news RSS feed request

Hi,

I have RssFit working well, and it validates. I believe I had to change one of the headers. It was a week or two ago, so I can't tell you exactly what I changed. But, if you view the SOURCE of my feed, not how it shows on the webpage.. The first three lines are like this.

<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
    <channel>

you would change the format/header lines in the template in the XOOPS admin panel. "rssfit_rss.html"
looks like this on my install now:
<?xml version="1.0" encoding="<{$rss_encoding}>"?>
<rss version="2.0">
    <channel>

Last time I checked it validated, I will check again after I post this. But, it wouldn't validate until I changed one of the headers. This info may already be on the RSSFit site, at brandycoke.com. Also, for more info on some of the things I messed around with, you can search this forum, as well as the forum at brandycoke.com.

I have it working well with mylinks, booklists, news, and newbbex. I'm probably going to install wfsection or something and get it working on that. The plugins for newbbex and booklists were pretty easily cloned from newbb and mylinks plugins.

Then I added the ability to get the categories from some of the plugins, all of them do now. For the forum you only need to change:
$ret[$i]['category'] = $row['forum_name'];

to
$ret[$i]['category'] = 'Forum :: '.$row['forum_name'];

for instance to get it to show the category as "Forum :: Sub-Forumname" So the viewer knows where the post is coming from.

so now after making some changes the rss news feed will show web links, and the others as being in the category of "Module Name :: Category".. which is pretty cool for a news feed on a large site. It helps distinguish the posts.

I did a rewrite rule in .htaccess to point http://desertmountains.com/rss.xml
to
http://desertmountains.com/modules/rss/rss.php
hopefully making it more accessible and easier to type for me..

I have my feed listed in my xoopsheadline module, if you would like to view it there. I don't have much of a forum going, but you should see the other entries for the various plugins.
DesertMountains.com Headlines

ps, if you view my site with Mozilla you can see how I am experimenting with "-moz-border-radius" in CSS to round corners off of elements.

good luck.


hmagoo

Just popping in
Posted on: 2004/8/28 11:10
hmagoo
hmagoo (Show more)
Just popping in
Posts: 15
Since: 2004/7/31
#3

Re: How to add categories in Headline Module (RSS feed reader)

Well, I began adding a lot of feeds into my Headlines section. So the list grew rather long. I made it an inline list instead in order to display it like a sentence.. but distinguishing from different categories is not included in the module and becomes pretty hard to implement. You do however have the "weight" setting for each feed. You can put them in whatever order you prefer, you will just not be able to have separators in between categories. Maybe there is a way to add a dummy feed to act as a category heading, I'm not really sure.

What I ended up doing eventually is to create a custom block on the right column with a list of all the feeds and the corresponding links. Then I edited the headline_index template and took out the Feed listing from the top of the module index. This custom block is static, and not really ideal, but it is serving its purpose at the moment.
example
On the same topic, I installed the RSSFit module and have a decent feed coming out from my site. It includes recent additions from News, Booklists, and Mylinks, (and would do downloads if I used them)... I have it working to show categories for all three, which comes out pretty nice on a good reader.

Oh, I should mention that the Headlines module has an apparent bug. It displays all GUIDs as permalinks even though there is a notation of whether or not permalink=true, and in many cases it is stated false. So what happens is that you will get a lot of feeds with invalid links at the bottom, and search engines hit it a lot I noticed as well. But more importantly it fails to distinguish between posts that have more content and ones that don't. So, I removed the link from the headline template.


hmagoo

Just popping in
Posted on: 2004/8/28 10:54
hmagoo
hmagoo (Show more)
Just popping in
Posts: 15
Since: 2004/7/31
#4

Re: Draven's close left/right panel

I've been looking into possibilities to get this working all day now. (hide/show columns).. I was able to look at the code that is in the mp00 theme and fit that feature into the theme that I am using, and it worked nice. But, the big obstacle for me is that it writes no cookies and only lasts until another link is clicked. It's also a bit messy in Firefox, but I would tolerate that if I could get cookies working with it.

So, I went looking around and found a nice script from scriptygoddess and spent some time trying to get it to work in XOOPS. I think though the structure of XOOPS and its templates is preventing me from getting it working. But, that really looks like a perfect script, because it refreshes when you hide/show preventing any cumulative browser blunders. And it already has the cookie functions as a primary feature.

If anyone else is interested in getting this to work feel free to share your knowledge. I think it would be a nice addition to most sites. I posted a detailed article about my recent efforts to get it working, at my blog Hugophonic.com. That concerns the mp00 script and adding cookie functionality, but honestly if anyone could get the scriptygoddess code to work in XOOPS that would be even better.

Thanks. Hugh


hmagoo

Just popping in
Posted on: 2004/8/28 1:41
hmagoo
hmagoo (Show more)
Just popping in
Posts: 15
Since: 2004/7/31
#5

Re: Latitude Mexico, review pls

Very nicely done site.

I don't know if you have looked into using zlib/mod_gzip to add compression for your php/html files, but that would save a lot of bandwidth and load times.

I believe XOOPS has a setting to enable this system wide, but it is not recommended for some reason. All I did was read this article Here and ended up only using the "Easy" method, and pasting one line into all the index.php files on my XOOPS site.


hmagoo

Just popping in
Posted on: 2004/8/27 20:50
hmagoo
hmagoo (Show more)
Just popping in
Posts: 15
Since: 2004/7/31
#6

Re: ShortURL and 2.0.7.1

I tried to get the shorturl hack to work with 2.0.7 with no luck for me. I settled for just the Page Title Hack which provides article title and/or category on the page titles for news, mylinks, booklists, (mydownloads if I used it) and xoopsheadline. That is a bit of an improvement as far as Search Engine Optimization, and more importantly the search results have some detail to them.

Short URLs would be nice though.


hmagoo

Just popping in
Posted on: 2004/8/19 17:29
hmagoo
hmagoo (Show more)
Just popping in
Posts: 15
Since: 2004/7/31
#7

Re: MS_Weather - Few questions

ok, for the blocks view, the strings seem to affect eachother. so, I had to compromise and set them both with the same settings. you can tweak the colors how you want, but they seem to bleed over between the block and the main module view. maybe this only happens when they are on the same page, and you could use different settings if you didn't have the block on the main module page, but with caching going crazy on my site I decided to just do it this way. after I change the settings for the block, I first need to delete the dat cache file for the city, in the cache directory and then go into XOOPS admin general settings -> preferences and hit go, to flush the cache and reflect the changes.
in class.msweather.php find this section:
/* function msw_settempcolors( )                      */

and comment the existing replace strings out with // and add all of these:
$rf str_replace"<font face=Arial size=3>Currently:""<br /><font face=Arial size=3 color="#000">Currently:", $rf );  
$rf str_replace"<font size="5"""<font size="5" color="#000"", $rf ); 
$rf preg_replace("/bgcolor=(?!#)/""bgcolor=#"$rf );
$rf str_replace"High:""</font><font face=Arial color="#000" size=3>High:", $rf ); 
$rf str_replace"Low:""</font><font face=Arial color="#000" size=3>Low:", $rf ); 
$rf str_replace"td align=left width="50%"><font face=Arial size=3><b>""td align=left width="50%"><font face=Arial size=3 color="#000"><b>", $rf );

edit: ok, I ended up tweaking the script endlessly to my liking.
snakes posted a fix for the color problem Here

I have a lot of things working better for me. Search by zip code, and then show the Yahoo location for that area, and I was able to add some sort of categorization to the drop-down list with some minimal ill effects. tweaked the formatting a little better as well.

check it out on my site if you like. I'm trying to fix the 100+ html errors that I introduced by all my tweaking. ;) and some yahoo errors.


hmagoo

Just popping in
Posted on: 2004/8/19 10:15
hmagoo
hmagoo (Show more)
Just popping in
Posts: 15
Since: 2004/7/31
#8

MS_Weather - Few questions

Hi,

This is a neat module, I'm really enjoying it! A few of things I need a little help with though.

1) Background color for the Current Conditions - Very dark and all one color.. this isn't the case in IE, but in Firefox it is dark grey. Maybe firefox needs '#' for bgcolors or something, I don't know. This is the same on qmel.com where I got the module.
edit:
edit: the problem is coming from the Doctype declared with XOOPS. Yahoo probably doesn't even decalre one. Firefox listens and won't post the colors if they don't have #'s, IE does though. so that is why the #'s don't matter on yahoos page but they do in xoops. solution: see end of post....

2) If I search for a US Postal Zip Code I get results with Fahrenheit, which is what is desired for me. If I search for city name I get Celsius. Any way to fix this behavior? edit: I just noticed that if you search for "us zip code" or "city, state, usa" it shows up in fahrenheit. if you search for "city, state" or "city" the result is in Celsius.

3) When you click on "Other Cities" in the block it defaults to Montpelier. Anyway to change that?
edit: found... changed a line with Montpelier in class.msweather.php to end like this:
&citycode=USNY0996&cityname=New York&unit=1">"._MSW_B_MORECITY."</a></center><br>";



I looked through some of the files for possibilities to change some of these things, but I didn't see anything pop up for me, I don't know PHP. The config file for the colors is very nice, I just wish there were a few more attributes in there.

you can see my setup Here
edit: enabled public viewing for the module. sorry.
Thanks!!

edit: found a way to fix the formatting on this module allowing colors in Mozilla and better font size and colors as well.

for the main ms_weathher index view. find this section in the class.msweather.php :
/* function get_msw_getmoduledata()

several lines down, before this line:
$MSWModule .= "<center>".$all]."</center><br><br>";

add this:
$all] = preg_replace("/bgcolor=(?!#)/""bgcolor=#"$all[1]);
$all] = str_replace"td width="25%"""td width="33%""$all]);
$all] = str_replace"<font face=Arial size=3>Currently:""<font color="#000" face=Arial size=3>Currently:", $all[ 1 ] ); 
$all] = str_replace"<font size="5"""<font size="5" color="#000"", $all[ 1 ] ); 
$all] = str_replace"High:""</font><font face=Arial color="#000" size=3>High:", $all[ 1 ] ); 
$all] = str_replace"Low:""</font><font face=Arial color="#000" size=3>Low:", $all[ 1 ] ); 
$all] = str_replace"td align=left width="50%"><font face=Arial size=3><b>""td align=left width="50%"><font face=Arial size=3 color="#000"><b>", $all[ 1 ] );

this will add the missing # to allow Mozilla browsers to use colors in the tables. Since XOOPS declares a higher XHTML or HTML 4.01 Doctype and Yahoo declares none, this is necessary to make the page look like it does on Yahoo. This will also do some better text formatting and colors as well. In retrospect you could just use a few replaces and add a class and use that in your CSS, but this is working. This also fixes one of the table widths to match the others, so it looks better.

for the blocks view, I am working on that, almost have it tweaked now. edit later.

maybe some of these problems are with international versions of Yahoo? I don't know, but it looks ok for me now.


hmagoo

Just popping in
Posted on: 2004/8/6 10:14
hmagoo
hmagoo (Show more)
Just popping in
Posts: 15
Since: 2004/7/31
#9

Re: Odd glitch

I originally had a problem getting the template for the new block to generate. I must not have done things in the proer order. So I uninstalled the module, deleted the directory, deleted templates_c, then uploaded again and installed, and generated and everything is working well. Thanks for the mod.



hmagoo

Just popping in
Posted on: 2004/8/4 1:05
hmagoo
hmagoo (Show more)
Just popping in
Posts: 15
Since: 2004/7/31
#10

Re: desertmountains.com - comments appreciated

thanks for the advice. I was able to get the logos sized down a lot more and I made some size changes on the default layout. Slowly learning....

thanks,

hugh



TopTop
(1) 2 »