Home arrow Forum Latest posts of: WhiteGhost
  Welcome, Guest. Please login or register.
Did you miss your activation email?
August 30, 2008, 08:54:46 AM
Home New Posts Search Calendar


Login with username, password and session length
  Show Posts
Pages: [1] 2
1  Joomla Hacks / Joomla-SMF 2.0.x / Re: SMF Mods and Joomla bridge? on: July 07, 2007, 09:55:54 PM
You can install mods, but before you do you need to unpatch the SMF files from JSMF install section first. Then after the mods are installed repatch.
2  Joomla Hacks / Joomla-SMF 2.0.x / Re: Novice: Please Help. Template Problem on: July 06, 2007, 08:08:37 PM
That just means you don't have caching enabled in Joomla. That is ok. I just wanted to ensure that if you did then you could be getting a cached version of the JSMF configuration. I don't know what to tell you except to see if this works with the default Joomla template. If it does then something is wrong with your template. If not I am at a loss to help you.
3  Joomla Hacks / Joomla-SMF 2.0.x / Re: Novice: Please Help. Template Problem on: July 06, 2007, 07:43:35 PM
Your site is still not including the SMF CSS in the <head> of your html. Double check the setting in the Joomla Administrator under the Joomla->Components->Joomla-SMF Formum-Configuration page for "Include CSS from SMF Theme" this must be enabled. Afterword select in the Joomla Administrator under System->Clean all Caches.

The reload the page. After that I couldn't tell you why it is not being included properly. Does this work correctly with the default Joomla template? If so then it would be something in your template. If not then I would be at a loss.
4  Joomla Hacks / Joomla-SMF 2.0.x / Re: image directory incorrect? on: July 06, 2007, 06:54:27 PM
Did you run the patches after the install and do you have the "Include CSS from SMF Theme:" enabled in the JSMF configuration? If you didn't it will not include the SMF stylesheets in the <head> of the site.
 
5  Joomla Hacks / Joomla-SMF 2.0.x / Re: Novice: Please Help. Template Problem on: July 06, 2007, 06:44:19 PM
Sean...The reason I asked is the SMF stylesheets are not being inserted into your pages <head> section. Are you sure you did all of the patches after the install.
6  Joomla Hacks / Joomla-SMF 2.0.x / Re: default/assigned template question on: July 06, 2007, 05:41:42 PM
I can't quite picture what you are asking. Do you have some links for your site so that I can see what you are trying to describe?
7  Joomla Hacks / Joomla-SMF 2.0.x / Re: Novice: Please Help. Template Problem on: July 06, 2007, 03:56:13 PM
Do you have the following option enabled in the JSMF Component.

Include CSS from SMF Theme

If not then the CSS stylesheets will not be included in the HTML head.

8  Joomla Hacks / Joomla-SMF 2.0.x / Re: JSMF Registration Key and Copyright Notice on: July 06, 2007, 08:22:45 AM
I will not share the script. The information I have given you above is all the information that you need to make the same script. Take the time to understand the logic that is in the bridge. I have done the hard part for you and given you the non-obscured code and even told you which function was doing the checking. All you need to do is read the f***ing function. Take some pride in yourself. If you can't read php I gave you some links to where to learn everything that is going on in the function. If you don't want to educate yourself that is ok too. I gave you a place to get the registration code for free on my site. You don't have to do anything to get access to it and it costs you nothing to use.

If everyone noticed my first post to these forums it was the announcement of the code generator on my site. I did not sit here and ask around to find out if anyone can bypass this. I read the code and figured out what it was doing. The beauty of the GPL software is access to the source code and the right to modify and redistribute the code. I personally on my site have removed all of the code in the bridge that checks for the code. I felt it was an unnecessary overhead in the script. If I wanted I could redistribute the code with my changes, but their is no requirement to do so. I don't feel that forking a project over something this trivial is worth it. Hence the access to the generator, the airing of the functions to everyone else. This is my effort to get the maintainers of this software to remove this from the code. Otherwise every time they send out  a new version I will have to redo all of the hard work to remove it again.

I am not trying to sound like an a**, just trying to wake people up to the need to read what they are using. What would have happened had this been a backdoor hack allowing the maintainers of this code into your site. You would not have known, since you didn't read the code they where distributing. I personally don't use code on my site that I don't know what the heck is going on in it. If you care about your site you would not either. Being diligent in understanding the technologies that you are using is a requirement if you want to run a site that isn't going to be hacked to pieces. Not that my site hasn't had problems in the past. I had someone's poor coding cause a problem in my site which allowed others to deface my site. Now I read the code I use. Hence when I was reading this code and realized what that they where obscuring code, I made it public.

Well enough of my rant. I hope people now realize I am not going to give out the source to my script.

BTW...exrace you where not the only person to ask for the script, just the proverbial straw the broke the camel's back. This is nothing personal about you.
9  Joomla Hacks / Joomla-SMF 2.0.x / Re: Index page of Joomla coming up blank after patch on: July 03, 2007, 02:08:56 PM
What is your server specifications?
10  Joomla Hacks / Joomla-SMF 2.0.x / Re: Group Synchronization on: July 03, 2007, 02:03:32 PM
The way the bridge syncs groups is if there is a group in Joomla that does not exist in SMF then it creates it. You can go into the SMF admin and create permissions for that group, but there is no linking of disparate groups between the 2 appps.
11  Joomla Hacks / Joomla-SMF 2.0.x / Re: JSMF Registration Key and Copyright Notice on: July 03, 2007, 03:54:21 AM
Since I have had a few people ask "where is it in the code" already.

Those of you who know how to read php well, below is the non-obscured functions and sections of code that rewrite the copyright and check for the existence and verification of the registration code. The code you receive and enter is stored in the jsmf_config database schema under the "code" option. After you save the entry in the install screen it adds it to the data base entry which is defaulted to "code=". Feel free to find these on your own in their obscured form, I will give you a hint: convert hex data into ascii strings. For those who don't know how to read php take this an exercise on boning up on php. A hint for you the php online manual at www.php.net.

These examples remove all of the obscuring and I do not include the code used to make the code non-obscured to the program, but it is trivial and easy to find if you can find these lines anyway.

Code in 3 different places of smf.php is as follows:
1.
Code:
if (!defined('_SMF_')) {
    /**#@+
     * Constants
     */
    /**
     * _SMF_
     */
    define ('_SMF_', "<br/>Joomla Bridge by <a href="http://www.JoomlaHacks.com" title="JoomlaHacks.com" target="_blank">JoomlaHacks.com</a>");
    /**#@-*/
}

2.
Code:
$last = $jsmfConfig->code;

3.
Code:
if (defined(_SMF1_) || run($last)) {
    if ($jsmfConfig->pathway) {
        $jsmf->setPathway();
    }
    if ($jsmfConfig->pagetitles && $mosConfig_pagetitles) {
        $jsmf->setTitle();
    }
    if ($jsmfConfig->css) {
        $jsmf->setCSS();
    }
    if ($jsmfConfig->description) {
    $jsmf->setDescription();
    }
    if ($jsmfConfig->def_keywords) {
    $jsmf->setDefaultKeywords();
    }
    if ($jsmfConfig->keywords) {
        $jsmf->setKeywords();
    echo $buffer;
    unset($buffer);

}

In the smf.class.php file there is this 1 section of code in the fixbuffer function and one additional function:
1.
Code:
$code = $jsmfConfig->code;

global $forum_copyright;
if(!(run($code)))
    $buffer = str_replace($forum_copyright, _SMF1_($forum_copyright, _SMF_), $buffer);
    str_replace($forum_copyright, _SMF1_($forum_copyright), $buffer);
Code:

2.

function _SMF1_($a, $b)
{
    /**#@+
     * Constants
     */
    /**
     * _SMF1_
     */
    defined( '_SMF1_' ) or define('_SMF1_', 1);
    /**#@-*/
    return $a.$b;
}

And in the admin.smf.class.php there is this function:
Code:
function run($debug) {
    $debug=substr($debug,1);
    if(substr($debug,0,1))
        $debug=strrev($debug);
    $debug = substr($debug,0,1) . pack('H*', $debug);
    global $mosConfig_live_site;
    return strpos($debug,$mosConfig_live_site . md5(_JSMF_)) ? 1 : 0;
}

This above function in the admin.smf.class.php file is what does the code verification. I leave it up to you to decipher the trivial method used to encode the keys they send out. When you have you can create a php script that does the same thing that mine on my site does. NO I will not give out the source to my script but the information I have given above should be enough spoon feeding to get you to be able to make one yourself if you wish. A hint on this is don't forget the leading extra bit.


[EDIT1: Added missing line from smf.class.php]
[EDIT2: Oops forgot one function out of the smf.class.php]
[EDIT3: Fix type-o in run function]
12  Joomla Hacks / Joomla-SMF 2.0.x / Re: Joomla 1.0.12, JSMF 2.0.2, CB, and SMF 1.1.3 on: July 02, 2007, 11:32:08 AM
First you need to go to the JSMF Bridge install in the Joomla Administration and unpatch SMF. Then you open SMF directly and sign in. Go to the Packages in the administration section and download the 1.1.3 update and then apply it. Then repatch the SMF files from the JSMF Bridge install in the Joomla Administration.
13  Joomla Hacks / Joomla-SMF 2.0.x / Re: Several Joomla/SMF Problems / Fresh Install on: July 02, 2007, 11:24:41 AM
I can give you an answer for #3. The answer is fresh from the User Guide FAQ.
Code:
My session keeps logging out in SMF, why?
There are a number of reasons for this. If you login via cb login or Joomla! login and don't select remember me the session lifetime is 15 minutes. This is the Joomla! default session lifetime length that is set in global configuration as 900 seconds. Since Joomla! and SMF handle sessions very differently the bridge will exit both sessions if either one had exceeded the lifetime and logged you out.
The main difference is in Joomla! if you are actively browsing the site the session will last 15 minutes from your last activity. As long as you are browsing the site you won't be logged out. SMF does not handle sessions in that manner. So when we synchronize the session lifetime, SMF gets a session of 15 minutes and then logs you out. One option is to increase the session lifetime in Joomla! or suggest clicking remember me to your users.
14  Joomla Hacks / Joomla-SMF 2.0.x / Re: Parse error: syntax error, unexpected $end in ..... on: July 02, 2007, 11:11:21 AM
Since you are having problems with direct access to SMF I would try asking SMF what they say about this error.
15  Joomla Hacks / Joomla-SMF 2.0.x / Re: Joomla-SMF first try - pleaseeee help on: July 02, 2007, 11:09:34 AM
Since this is a new install I would try installing the latest Joomla, which 1.0.12 from here http://joomlacode.org/gf/project/joomla/frs/ then see if you continue to have issues.
Pages: [1] 2


Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal.
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use