how to remove opendd from my elgg installation

how do i go about removing open dd from my elgg v1.2 website...

how to ensure it is not visible at all...with out affecting the rest of the website ofcourse

 

thanks ion advance for ur help/.//

  • goto

    • \views\default\page_elements\header.php

    remove this line of code

    •     <link rel="alternate" type="application/odd+xml" title="OpenDD" href="{$url2}" />

    sounds simple 'nuff ?

  • thanks a lot dhrup... jus one little doubt...

     

    just above that line, there are a few more lines...which i gues could be related to opendd...im not exactly sure.. im a newbee...would really appreciate if u could help me with this

     

    global $autofeed;
            if (isset($autofeed) && $autofeed == true) {
                $url = $url2 = full_url();
                if (substr_count($url,'?')) {
                    $url .= "&view=rss";
                } else {
                    $url .= "?view=rss";
                }
                if (substr_count($url2,'?')) {
                    $url2 .= "&view=odd";
                } else {
                    $url2 .= "?view=opendd";
                }
                $feedref = <<<END
               
        <link rel="alternate" type="application/rss+xml" title="RSS" href="{$url}" />
        <link rel="alternate" type="application/odd+xml" title="OpenDD" href="{$url2}" />

     

    Also in the file named owner_block in the same page elements folder, there are a few lines which i guess could be related

     

        // Are there feeds to display?

            global $autofeed;

           

            if (isset($autofeed) && $autofeed == true) {

                $url = $url2 = full_url();

                if (substr_count($url,'?')) {

                    $url .= "&view=rss";

                } else {

                    $url .= "?view=rss";

                }

                if (substr_count($url2,'?')) {

                    $url2 .= "&view=odd";

                } else {

                    $url2 .= "?view=opendd";

                }

                $label = elgg_echo('feed:rss');

                $label2 = elgg_echo('feed:odd');

                $contents .= <<<END



        <div id="owner_block_rss_feed"><a href="{$url}">{$label}</a></div>

        <div id="owner_block_odd_feed"><a href="{$url2}">{$label2}</a></div>

     

     

    Do i need to remove any of these lines also... if yes.. would really appreciate if u could highlight ehich ones do i need to remove...

     

    one last thing.. if u have some time can u plz tell me would removing opendd have any problems for my website.. as in low listing on google search or anything of that sort...

     

    cause in the google search if my link has a ?view=opendd in it then the page is shown in xml format ..which is not useful for my visitors... infact is creating negative image about my website...

     

    thanks in advance...im sorry if the doubt are too low levell..im jus a newbee...i hope u understand..

  • did you try the one line code removal to see what happens ?

  • it din help dude...

    ok here goes wht i did...

    attempt 1

    removed <link rel="alternate" type="application/odd+xml" title="OpenDD" href="{$url2}" /> from header

    no good...

    attempt 2

    removed <link rel="alternate" type="application/odd+xml" title="OpenDD" href="{$url2}" /> and

                if (substr_count($url2,'?')) {
                    $url2 .= "&view=odd";
                } else {
                    $url2 .= "?view=opendd";
                }

    from HEADER

    no good...

    attempt 3

    removed

    both from attempt 2 of from the header and removed all the bold stuff below from owners block in page elements

    if (substr_count($url2,'?')) {

                    $url2 .= "&view=odd";

                } else {

                    $url2 .= "?view=opendd";

                }

                $label = elgg_echo('feed:rss');

                $label2 = elgg_echo('feed:odd');

                $contents .= <<<END

        <div id="owner_block_rss_feed"><a href="{$url}">{$label}</a></div>

     

    Yet Not Good...

    wht should i do now.. is there anyway i can remove open dd... plz help me