Advertisement:

Remove "JoomlaHacks.Com" link from SMF Bridge 1.1.4.2

Aloittaja sghazagh, elokuu 28, 2006, 09:26:27 IP

« edellinen - seuraava »

sghazagh

I found a way to Change/Remove the Joomlahacks.Com link which they added at the end of SMF Bridge pages.
Their code is very useful but the link is not good because it has "Hacks" in the text and can be filtered by the most sites.
SMF Bridge 1.1.4.2 provided to link SMF 1.1.RC2 and Joomla 1.0.10.I also tested with SMF 1.1.RC3.It works fine.

I did it because they said if you like to remove the code contact us.
But they don't answer to any request and just one time they replied "Pay while we remove the code"
But they published the code in GPL.It means we can change or modify.
So I did it and I am publishing it for your use.  ;D

To change or remove follow the steps:

1) Use attached code (save as "Text-To-Hex.php") to generate HEX code of your own text.
   It can be HTML code with link,color,font,...
   Just edit the file and put your own text with sample one.

2) Copy the generated code to clipboard.
   
3) Find and edit file "../components/com_smf/smf.php"
   Look for:
        define ('_SMF_', pack('H*',"3c62722f3e3c6120687265663d22687474703a2f2f7777772e4a6f6f6d6c614861636b732e636f6d22207469746c653d224a6f6f6d6c614861636b732e636f6d22207461726765743d225f626c616e6b223e4a6f6f6d6c614861636b732e636f6d3c2f613e"));
   Change with
       define ('_SMF_', pack('H*',"--- GENERATED CODE SHOULD BE PASTE HERE ---"));
       
Thats all.
Check your SMF page in browser(Via Joomla).
Your text replaced with default one.


Thanks  ;)


<?php
/*********************************************/
/*        Written By: Saeed Ghazagh          */
/*        E-mail: [email protected]         */
/*********************************************/



$Text="Put your HTML code here";
echo 
"The HEX Code is ==> ".strhex($Text);




/******************* Function to change a Text to HEX ********************/
function strhex($string) {
   
$hex '';
   
$len strlen($string);
   for (
$i 0$i $len$i++) {      
       
$hex .= str_pad(dechex(ord($string[$i])), 20STR_PAD_LEFT);  
   }      
   return 
$hex;
}
/************************ End of function *********************************/

?>


Advertisement: