MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
A2Hosting
Moderators: Moderators
Forum RSS feedReply
MyLinks RSS?
AuthorText
Syncro
Junior Member

Posts: 90
Contributes: 92

Gender: _MALE_
Online: No

Languages: Syncro
Date: 26/07/2010 22:48
MyLinks RSS?
#post24181
Site url: http://www.tuning-links.com
MemHT version: 4.0.1
Hosting OS: Linux

Is it possible to do a RSS for MyLinks page?
Delete Edit Quote
 
Syncro
Junior Member

Posts: 90
Contributes: 92

Gender: _MALE_
Online: No

Languages: Syncro
Date: 04/08/2010 21:30
Re: MyLinks RSS?
#post24198
Smile Please!
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 05/08/2010 15:29
Re: MyLinks RSS?
#post24200
I replied but then deleted the post accidentally Smile

Give me 5 min.
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 05/08/2010 15:40
Re: MyLinks RSS?
#post24201
rss.php

After the row 288 (break;) add:

code
case "mylinks":
                                        $query = "SELECT id,name,url,description FROM memht_mylinks WHERE flag=1 ORDER BY id DESC LIMIT $items";
                                        $result = $dblink->get_list($query);
                                        foreach ($result as $row) {
                                                $id = intval($row['id']);
                                                $name = outCode($row['name']);
                                                $description = outCode($row['description']);
                                                $url = outCode($row['url']);
                                               
                                                echo "<item>\n";
                                                        echo "<title><![CDATA[$name]]></title>\n";
                                                        echo "<link><![CDATA[$url]]></link>\n";
                                                        echo "<guid isPermaLink="true"><![CDATA[$url]]></guid>\n";
                                                        echo "<description><![CDATA[$description]]></description>\n";
                                                        echo "<pubDate><![CDATA[".date('r')."]]></pubDate>\n";
                                                echo "</item>\n";
                                        }

                                break;


The rss is callable using rss-mylinks.xml
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
Syncro
Junior Member

Posts: 90
Contributes: 92

Gender: _MALE_
Online: No

Languages: Syncro
Date: 05/08/2010 18:10
Re: MyLinks RSS?
#post24202
Smile
There is something wrong with the code.
rss-mylinks.xml is not working....and the others rss stopped working with this code.
I'm doing everything as you say (except that it is at row 284, but I take the file right from the MemHT installation .rar file.
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 05/08/2010 19:41
Re: MyLinks RSS?
#post24203
Try with my rss.php (working)
Attachment: rss_y5fx3.php
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
Syncro
Junior Member

Posts: 90
Contributes: 92

Gender: _MALE_
Online: No

Languages: Syncro
Date: 05/08/2010 20:14
Re: MyLinks RSS?
#post24204
You rock!!!
Thank you very much!
Delete Edit Quote
 
Syncro
Junior Member

Posts: 90
Contributes: 92

Gender: _MALE_
Online: No

Languages: Syncro
Date: 05/08/2010 21:30
Re: MyLinks RSS?
#post24205
Unfortunately it is SEO useless because it point to the link url.
I tried to make the link to point to the category at least but no luck. All I manage to do is to make all links to point to /mylinks.html
Is it possible to make links to point to the category if not to the page they are?

Delete Edit Quote
 
Reply
Tags Cloud
Twitter updates...
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.233

Username
Password
MemHT Wiki
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo