Remove copyright Sobi2 RC 2

by Marius Patrascu on 17/01/2010

in Scripturi si Design

Modul simplu : in Administrator / Components / ABOUT / ABOUT SOBI2/ Display “Powered by” Link  Yer or No, setati NO desigur.

Dar eu nu stiam asta (e o optiune introdusa in noua versiune), si am umblat in cod :)

Si m-am chinuit serios sa scot copyrightul ” powered by Sigsiu.NET” … desi componenta este GPL copyrightul este bine ascuns , si eliminarea randurilor de genul

$h [0] = ‘P’ . ‘o’ . ‘w’ . ‘e’ . ‘r’ . ‘e’ . ‘d’ . ‘ ‘ . ‘b’ . ‘y’ . ‘ ‘ . ‘<’ . ‘a ‘ . ‘title’ . ‘=”‘ . ‘S’ . ‘O’ . ‘B’ . ‘I’ . ‘2′ . ‘ – ‘ . ‘J’ . ‘o’ . ‘o’ . ‘m’ . ‘l’ . ‘a’ . ‘ ‘ . ‘D’ . ‘i’ . ‘r’ . ‘e’ . ‘c’ . ‘t’ . ‘o’ . ‘r’ . ‘y’ . ‘ ‘ . ‘C’ . ‘o’ . ‘m’ . ‘p’ . ‘o’ . ‘n’ . ‘e’ . ‘n’ . ‘t’ . ‘” h’ . ‘r’ . ‘e’ . ‘f=”h’ . ‘t’ . ‘t’ . ‘p’ . ‘:’ . ‘/’ . ‘/’ . ‘w’ . ‘w’ . ‘w’ . ‘.’ . ’s’ . ‘i’ . ‘g’ . ’s’ . ‘i’ . ‘u’ . ‘.n’ . ‘e’ . ‘t’ . ‘” ‘ . ‘t’ . ‘a’ . ‘rg’ . ‘et’ . ‘=”_’ . ‘b’ . ‘l’ . ‘a’ . ‘nk’ . ‘”>S’ . ‘i’ . ‘g’ . ’s’ . ‘i’ . ‘u.N’ . ‘E’ . ‘T</a>’;

$h [1] = ‘P’ . ‘o’ . ‘w’ . ‘e’ . ‘r’ . ‘e’ . ‘d’ . ‘ ‘ . ‘b’ . ‘y’ . ‘ ‘ . ‘<’ . ‘a ‘ . ‘title’ . ‘=”‘ . ‘S’ . ‘O’ . ‘B’ . ‘I’ . ‘2′ . ‘ – ‘ . ‘J’ . ‘o’ . ‘o’ . ‘m’ . ‘l’ . ‘a’ . ‘ ‘ . ‘D’ . ‘i’ . ‘r’ . ‘e’ . ‘c’ . ‘t’ . ‘o’ . ‘r’ . ‘y’ . ‘ ‘ . ‘C’ . ‘o’ . ‘m’ . ‘p’ . ‘o’ . ‘n’ . ‘e’ . ‘n’ . ‘t’ . ‘” h’ . ‘r’ . ‘e’ . ‘f=”h’ . ‘t’ . ‘t’ . ‘p’ . ‘:’ . ‘/’ . ‘/’ . ‘w’ . ‘w’ . ‘w’ . ‘.’ . ’s’ . ‘i’ . ‘g’ . ’s’ . ‘i’ . ‘u’ . ‘.n’ . ‘e’ . ‘t’ . ‘” ‘ . ‘t’ . ‘a’ . ‘rg’ . ‘et’ . ‘=”_’ . ‘b’ . ‘l’ . ‘a’ . ‘nk’ . ‘”>S’ . ‘i’ . ‘g’ . ’s’ . ‘i’ . ‘u.N’ . ‘E’ . ‘T</a>’;

nu este deloc o solutie, componenta ne mai functionand.

In realitate rezolvarea este simpla, noul sistem SOBI2 nu mai necesita mari modificari in aceea zona, iata si cum puteti elimina rapid copyrightul :

Linia 425 din /componente/com_sobi2/fronted.class.php arata asa

$this->sobi2Footer = ” . “\n <table class=\”sobi2Footer\”> \n” . “\t <tr><td id=\”sobi2Footer\”>$h</td>” . “\t <td id=\”sobi2rss\”>{$rss}</td></tr>” . “\t <tr><td colspan=\”2\”>{$b}</td></tr>” . “\n </table>\n” . “\n </div> \n” . “\n<!– end of Sigsiu Online Business Index 2 component Memory {$memUsage} / Time {$time} / Queries: {$q} –> \n”;

Inlocuirea $h cu un text static, rezolva toata problema :)

ex:

$this->sobi2Footer = ” . “\n <table class=\”sobi2Footer\”> \n” . “\t <tr><td id=\”sobi2Footer\”>Director articole</td>” . “\t <td id=\”sobi2rss\”>{$rss}</td></tr>” . “\t <tr><td colspan=\”2\”>{$b}</td></tr>” . “\n </table>\n” . “\n </div> \n” . “\n<!– end of Sigsiu Online Business Index 2 component Memory {$memUsage} / Time {$time} / Queries: {$q} –> \n”;

Totusi va sfatuiesc sa donati inainte sa eliminati copyrightul componentei SOBI2 , asa este frumos, pentru ca oamenii aceia au muncit pentru a o creea.

Comenteaza si nu-mi critica typo-urile,timpul alocat blogului este limitat.

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: