I need help with some php code in feedcreator.php

Discussion in 'PHP' started by draxima, Jul 15, 2009.

  1. #1
    Hello

    Feedcreator.php plays a role when a blog feed is created. In my case it outputs the blog - main url in a wrong way.

    It's not the "items" url I want to change

    The first function is:

    function createFeed() {

    A little longer down on the page

    There's this code that I believe handles my problem:

    $feed.= " <link>".$this->link."</link>\n";

    The problem for me is also that this particular code is on 3 different places

    This code also exists in relation with:

    $feed.= $this->_createStylesheetReferences();

    Anyway is there some way to edit:

    $feed.= " <link>".$this->link."</link>\n";

    To give a static adress in the feed ?

    I know this might be complicated and maybe i dont show the right stuff, but help if you can.
     
    draxima, Jul 15, 2009 IP
  2. credobyte

    credobyte Peon

    Messages:
    38
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Not sure if I understand what you need, however, static ( text ) link would be without <link> tags ( if $this->link contains only URL ).
     
    credobyte, Jul 15, 2009 IP
  3. goscript

    goscript Prominent Member

    Messages:
    2,753
    Likes Received:
    306
    Best Answers:
    0
    Trophy Points:
    315
    #3
    $feed.= $this->link."\n";
    PHP:
    if I got your point correctly :confused:
     
    goscript, Jul 15, 2009 IP
  4. draxima

    draxima Active Member

    Messages:
    484
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Ok let me rephrase - there isnt any actual link that following code outputs:

    $feed.= " <link>".$this->link."</link>\n";

    It just displays an adress and as the code looks now it shows the root of the domain when it actually should show a subpage adress.

    The feedcreator script is supposed to create a blog feed with an adress in the first <link>.
     
    draxima, Jul 15, 2009 IP
  5. ira123

    ira123 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    give me the project , the all stuf, i will have a look at
     
    ira123, Jul 15, 2009 IP
  6. arunn

    arunn Active Member

    Messages:
    347
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #6
    must be a simple thing... you should give wat the link output is.. and wat output you want so that i can understand it. the php you posted means not much useful since the pointer can be anything which we dont know here.
     
    arunn, Jul 15, 2009 IP