Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

How to allow syndication of my directory if upgrading to links sql

Quote Reply
How to allow syndication of my directory if upgrading to links sql
I am currently using links2 but would like to upgrade to links sql in the near future.

I have one question before I upgrade;

How can I allow for an organisation to use my directory data for syndication?

They would like to use xml to extract certain data from my directory.

Is it very complicated to allow the organisation to extract data from my directory when using links sql?

Are there any scripts or instructions available so as to facilitate for the syndication?

Thanks in advance for any suggestions.

John
Quote Reply
Re: [john.b] How to allow syndication of my directory if upgrading to links sql In reply to
Hi. It depends on how you want to do it. You can use template sets through page.cgi?t=foo , where "foo" is the template set you want it to currently run.

You could also give the XML Search plugin a go, which will let you syndicate your results in XML form, ready for 3rd parties to use it for their own results.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] How to allow syndication of my directory if upgrading to links sql In reply to
Andy, do you sell that XML plugin ?
>> Nakul Goyal (SEO, Link Building Expert)
Web Site Promotion
Tips 'n' Tricks
SEO News


Quote Reply
Re: [nakulgoyal] How to allow syndication of my directory if upgrading to links sql In reply to
It is a free GT plug-in. Get iy the same way as you get any other plug-in, via the links plug-ins in the admin.
Quote Reply
Re: [Gypsypup] How to allow syndication of my directory if upgrading to links sql In reply to
I have installed the xml plugin.

How do I access it and do I have to modify the content of the xml template?

Thanks
Quote Reply
Re: [john.b] How to allow syndication of my directory if upgrading to links sql In reply to
The xml feed will need modifying so that your sites particular details are correct. The xml_search_results.xml template - which is located in your working template directory needs modifying.
I did - like you, have a problem trying to figure out how to call it. Eventually I figured it out but have forgotten and cannot remember. It is a bit cryptic.
Quote Reply
Re: [Gypsypup] How to allow syndication of my directory if upgrading to links sql In reply to
Is it possible for someone to give me some instructions or hints when it comes to the set-up of the xml?
Quote Reply
Re: [john.b] How to allow syndication of my directory if upgrading to links sql In reply to
Hi,

All you need to do is add xml_feed=1 to your search.cgi:

http://www.gossamer-threads.com/...cture&xml_feed=1

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] How to allow syndication of my directory if upgrading to links sql In reply to
Hi Alex,

Thank you for your reply.

I assume that you are talking about the template called xml_feed (i.e. official xml plugin)

Where exactly in the search.cgi file do I add the xml plugin template. Do you have a sample search.cgi file available with the xml_feed?

What I can understand - there are a lot of people that are not really sure how to work this one out.

I appreciate your assistance.

Regards,

John
Quote Reply
Re: [john.b] How to allow syndication of my directory if upgrading to links sql In reply to
Tried to use a search query with the following result???A string literal was expected, but no opening quote character was found. Error processing resource 'http://www.mysite.com/cgi-bin/directory/search.cgi?query=Business&xml_feed=1'. Line 1, Position 45 <p><font face='Tahoma,Arial,Helvetica' size=2>A fatal error has occured:</font></p><blockquote><pre>GT::Template::Parser (10978): Unable to locate template file 'xml_search_results.xml' in '/home/username/public_html/cgi-bin/directory/admin/templates/default' or any inheritance directories at GT::Template::_compile_template line 669.
--------------------------------------------^
Any ideas?? or suggestions..
Quote Reply
Re: [john.b] How to allow syndication of my directory if upgrading to links sql In reply to
Hi,

Hmm, that looks very odd. Can you send an email to support-lsql at gossamer-threads dot com with access info to your admin panel and we can take a look.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] How to allow syndication of my directory if upgrading to links sql In reply to
It is indeed odd.
What links version are you using? I have the last - not the current. Works for me.

http://www.chois-choice.com/...ing=0&xml_feed=1
Quote Reply
Re: [Gypsypup] How to allow syndication of my directory if upgrading to links sql In reply to
Hi,

I am getting there. The first error was generated because I changed templates after I installed the xml plugin and did not realise that the plugin will only generate an xml file for the templates that are used at the time of the xml installation. Consequently, the xml template was missing and generated the errors. The xml template has been installed.

New error:

Whitespace is not allowed at this location. Error processing resource 'http://www.mysite.com/cgi-bin/directory/search.cgi?query=city&xml_feed=1'. Line 37, Position 31

Do I have to change anything in the search.cgi file?

Alex - I appreciate your offer when it comes to having a look at my file but I will try to sort it out myself first by using the forum and this thread when it comes to sorting this out. That's how I learn best - but I will contact you if I get stucked.

Thanks again.
Quote Reply
Re: [john.b] How to allow syndication of my directory if upgrading to links sql In reply to
To answer the question..
NOTHING has to be changed really to make it work. Straight out of the box - as the man designed it should work. Search.cgi stays stock standard. If you get stuck I will send you a copy of my search.cgi - I know sometimes it helps just to be sure.
Quote Reply
Re: [john.b] How to allow syndication of my directory if upgrading to links sql In reply to
http://www.gossamer-threads.com/...i?post=221087#221087
Quote Reply
Re: [afinlr] How to allow syndication of my directory if upgrading to links sql In reply to
I managed to sort it out. The title and description section that was generated by the xml plugin was not the same as the one that Alex posted in one of the threads.

So what I did was to change it to the following (from Alex thread) and it works. All your replies and and comments and help was really appreciated. I am very glad that I changed from LINKS2 to LINKS SQL.

Links sql rocks ;--)

Many thanks once again for all the help.

<title><%GT::CGI::html_escape($Title)%></title>
<link><%URL%></link>
<description><%GT::CGI::html_escape($Description)%></description>
</item>
<%endloop%>
</channel>
</rss>