WESECE Forum
August 01, 2010, 02:43:02 AM *
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 2953 times)
0 Members and 1 Guest are viewing this topic.
wesece
Board Administrator
Administrator
Hero Member
*****

Karma: 14
Offline Offline

Gender: Male
Posts: 559


459048412 sidneyrill@insightbb.com
WWW
« 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: May 26, 2009, 03:51:36 PM by shadav » Logged

R.I.P. Wesece

DO NOT CONTACT THIS ID! ANY AND ALL CONTACTS WILL NOT BE SEEN!

CONTACT SHADAV OR POST IN THE FORUMS

This Id has been left in tact out of respect for wesece.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Directory Toolbar



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

Partners




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