We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    It was not coded that way but you may be able to. Try print_r(); the SMF array and see what values you can find.
      • 8471
      • 333 Posts
      Quote from: garryn at May 16, 2006, 06:46 PM

      Fixing SMF

      1. In your SMF install, edit lines 1782 to 1787 of Sources/load.php to be:

      // Attempt to change a few PHP settings.
       if (session_id() == '') {
      	@ini_set('session.use_cookies', true);
      	@ini_set('session.use_only_cookies', false);
      	@ini_set('url_rewriter.tags', '');
      	@ini_set('session.use_trans_sid', false);
      	@ini_set('arg_separator.output', '&');
      }

      This is for SMF 1.1 RC2, how can I fix SMF 1.1.2 ?
        Sorry for my bad English grin
        • 18397
        • 3,250 Posts
        It should be the same except the line numbers will be different. Just search for those lines and you’ll find them.
          • 8471
          • 333 Posts
          I have found the code but it is a little bit different:

          // Attempt to change a few PHP settings.
          @ini_set(’session.use_cookies’, true);
          @ini_set(’session.use_only_cookies’, false);
          @ini_set(’url_rewriter.tags’, ’’);
          @ini_set(’session.use_trans_sid’, false);
          @ini_set(’arg_separator.output’, ’&’);

          if (!empty($modSettings[’globalCookies’]))
            Sorry for my bad English grin
            • 18397
            • 3,250 Posts
            Ok, use this:


            if (session_id() == ’’) {
            @ini_set(’session.use_cookies’, true);
            @ini_set(’session.use_only_cookies’, false);
            @ini_set(’url_rewriter.tags’, ’’);
            @ini_set(’session.use_trans_sid’, false);
            @ini_set(’arg_separator.output’, ’&’);
            }
              • 8471
              • 333 Posts
              thanks wink
              It was the same code... I’m so stupid grin
                Sorry for my bad English grin
                • 6187
                • 85 Posts
                Quote from: Mark at Apr 05, 2007, 07:27 AM

                Ok, use this:


                if (session_id() == ’’) {
                @ini_set(’session.use_cookies’, true);
                @ini_set(’session.use_only_cookies’, false);
                @ini_set(’url_rewriter.tags’, ’’);
                @ini_set(’session.use_trans_sid’, false);
                @ini_set(’arg_separator.output’, ’&’);
                }

                This is not working at MODx 096 and SMF 114 (SMF 113 too)
                  [table][tr][td][img]http://e2g.info/images/e2gbanner.gif[/img][/td][td]Home Site
                  Forum Russian[/td][td]|
                  |
                  |[/td][td]Мои любимые сайты:
                  Домашний спирт завод своими руками![/td][/tr][/table]
                  • 28203
                  • 26 Posts
                  Quote from: garryn at May 16, 2006, 06:46 PM

                  ...

                  Setting up the template

                  1. Create a TV (name of your choice) and assign it to the template that will form the blog/repository pages.
                  2. Use the snippet call in the TV to add the commenting to the pages.

                  3. To display the forum user name instead of the logged-in user (which in most cases will be ‘anonymous’), look for the [+user+] in the default output for the snippet and change to [+forumuser+].
                  4. The path back to the forum login is also hardcoded, so if you have the forum install in a sub-directory or under a different folder name then this will need editing in the snippet code as well.

                  Hope that helps,

                  Garry


                  Excuse me sir, I’m kind of new to MODx, I did all according to your guide, but I don’t really understand how TV wokrs.

                  Can someone please give little more details on how to set up the Template Variable when creating?

                  Thanks
                    • 28203
                    • 26 Posts
                    No one??

                    Why does nobody talk in this forum??

                    Can someone at least tell me if his really works with the newest versions of modx and smf??


                    I’ve been trying out for 5 days and couldn’t get this to work.

                    The comment box shows up, I’ve added the comments counter too, but If i try to write a comment nothing happnes, it just says 0 comments and nothing changes.

                    What could I be doing wrong?

                    Please anyone??
                      • 7231
                      • 4,205 Posts
                      I have never used this snippet but I will try to point out potential problems:

                      1) did you add the TV tag to your template? If you create a TV named "smf_commnets" you need to add a corresponding [*smf_commnets*]. You need to add this either directly in the template or you can simply place it in the content field.

                      2) did you remove the extra <?php ?> tags when copying the snippet code?

                      3) did you check the paths in #4:
                      4. The path back to the forum login is also hardcoded, so if you have the forum install in a sub-directory or under a different folder name then this will need editing in the snippet code as well.

                        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                        Something is happening here, but you don&#39;t know what it is.
                        Do you, Mr. Jones? - [bob dylan]