WESECE Forum
October 15, 2008, 11:04:47 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Calendar Links Login Register  
phpld Mods index LifeTime membership LifeTime members Sites Create a Thumb! SEO Desktop
New from Iwebtools! Adsflip...A Must have advertising Tool!!
Pages: [1]   Go Down
  Print  
Author Topic: Add RSS feed Link  (Read 2567 times)
0 Members and 1 Guest are viewing this topic.
wesece
Board Administrator
Administrator
Hero Member
*****

Karma: 14
Offline Offline

Gender: Male
Posts: 560


459048412 sidneyrill@insightbb.com
WWW Email
« on: May 02, 2007, 05:10:07 PM »

Here is how you can add a field in the submit page for your customers to be able to submit a RSS Feed.

See example here;
site that uses rss feed

Submit page

here we go...

First add a field to your directory database in the link table.
I added an attachment for you to download containing the sql querry.
(if you don't see the attachment, login to the forum)


edit Detail.php


Find:

Code:
         $data['URL']          = $rdata['URL'];

after add:

Code:
         $data['RSS']          = $rdata['RSS'];

edit detail.tpl

Find:

Code:
        <tr>
          <td valign="top" class="label">{l}URL{/l}:</td>
          <td align="left" valign="top" class="smallDesc"><span class="url">{$URL|escape|trim}</span>&nbsp;&nbsp;&nbsp;<a href="http://whois.domaintools.com/{$URL|escape|trim}" target="_blank">Whois?</a></td>
        </tr>

After add:

Code:
        <tr>
          <td valign="top" class="label">{l}RSS{/l}:</td>
          <td align="left" valign="top" class="smallDesc"><a href="{$RSS|escape|trim}" target="_blank">{$RSS|escape|trim}</a></td>
        </tr>


edit include/tables.php


Find:

Code:
      'URL'                => 'C(255) NOTNULL'      ,

After add:

Code:
      'RSS'                => 'C(255) NULL'         ,


Edit submit.tpl

wherever you want the RSS field to show

Code:
                <tr>
                  <td valign="top" class="label">{l}RSS Feed{/l}:</td>
                  <td class="field"><input type="text" name="RSS" value="{$RSS|escape|trim}" size="40" class="text"/>  
                </tr>



« Last Edit: December 18, 2007, 07:37:54 PM by wesece » Logged

Don't PM me for support!
Use our support forums!
Pages: [1]   Go Up
  Print  
 
Jump to:  

Directory Toolbar



Directory Tools
Latest Featured Links
wesece.com Toolbar
Free Text Message

Partners


Alexa Bar for Firefox


Powered by MySQL Powered by PHP Powered by SMF 1.1.1 | SMF © 2006, Simple Machines LLC Valid XHTML 1.0! Valid CSS!