News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Multiple Forum Mod

Started by Avail, November 24, 2009, 09:59:59 AM

Previous topic - Next topic

FireDitto

#160
IT WORKS IT WORKS IT WORKS

*dances*

YAY!!!! :D




Quick question: Is there any way I can make it carry across the fact that I'm logged in, or do I have to log in to all the forums? -- changing the cookies to be the same across the entire spectrum sorted that out.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Hj Ahmad Rasyid Hj Ismail

Quote from: FireDitto on April 10, 2010, 09:22:19 PM
IT WORKS IT WORKS IT WORKS

*dances*

YAY!!!! :D




Quick question: Is there any way I can make it carry across the fact that I'm logged in, or do I have to log in to all the forums? -- changing the cookies to be the same across the entire spectrum sorted that out.

Aha, so that is why. It is normal that when you are not using full URL, things like that could happen. Nice to hear it all works out for you. Also, be careful when it comes to URL and PATH next time. Cheers...

Snogmarr

Now here is a weird one?

My forum is my site/forum
And the created forum is john
So I used the url  http://www.mysite/forum/john
I was getting http://www.mysite/forum/john/http://www.mysite/forum/john

And it was driving me nuts,,,,,,, I just could not get it to work

Until I used my forums true path...
/home/fancyach/public_html/forum/john
Works like a dream now!
Weird or what?

Jorgen All Tech

my code just gives me a blank page.

Hj Ahmad Rasyid Hj Ismail

Quote from: Jorgen All Tech on April 16, 2010, 11:07:02 AM
my code just gives me a blank page.
What code? Can't you be more specific please?

FireDitto

/website = website directory; the folder your URL points to.

/forumA = main forum folder WITHIN the /website directory
/fourmB = sub forum ""
/fourmC = sub forum ""
/llama = sub forum we're creating.

In the main forum, you need to have the complete SMF set up as downloaded from their download page.

In the subforums, you need to fill out the form the mod gives you; I do it thus:

New Forum ID: [number of choice, but not 0] ie. 9
New Forum URL (WITHOUT THE TRAILING '/' !): llama
New Forum Name: Llama

When it takes you to the new page, you will get a selection of code, and a piece of text in bold. The bold, is the name of the new folder [llama/index.php] llama being the folder name, and index.php being the file within it.

Then you have this:

<?php

$targpath 
'The Target Path To Lead To Main Forum';

require_once(
$targpath);

function 
setSubforumSettings() {
global $boardurl$cookiename$boarddir$forumid$mbname;
$boardurl 'llama'; <--- This will need to be corrected, and changed to the address of your forumIEwww.website.com/llama else it will NOT work.
$cookiename 'SmfCookie689'; <-- This should be changed to the cookies of your Main Forum for ease of logging in/outNothing else needs to be touched.
$boarddir dirname(__FILE__);
$forumid 9;
$mbname 'Llama';
}

function 
getTargetPath() {
global $targpath;
return $targpath;
}



?>





This may not be what you're after, but I figure it will help others, as it's what I was having the most difficulty with. =)
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Hj Ahmad Rasyid Hj Ismail

#166
Quote from: FireDitto on April 16, 2010, 07:59:16 PM
In the subforums, you need to fill out the form the mod gives you; I do it thus:

New Forum ID: [number of choice, but not 0] ie. 9
New Forum URL (WITHOUT THE TRAILING '/' !): llama <<<===<<< This is wrong!
New Forum Name: Llama
Notice: <<<===<<< This is wrong!
You should put URL and not just folder name. http://llama.yourdomain.tld or http://yourdomain.tld/llama. IMHO This is why you get error last time. I hope you are aware of this. This are links from mod page showing exactly what you should expect. I list them in order.
1. What to fill in the given form to Create New Subforum.
2. Code to create index.php for new subforum domain. (Remember you will need agreement.txt file.)
3. Setup for category in main forum domain i.e. the ID number will determine the forum.
4. Subforum Settings Page i.e. viewable in your subforum domain.

FireDitto

Yeah, and when I put the FULL LINK, it makes is so the folder it points to is THE FULL LINK, as seen in the image below.



Which is why I SPECIFICALLY only put the FOLDER name in that section of the mod. Putting in the FULL link is originally why I had so many issues.

Maybe I do it "wrong", but it WORKS if you continue to follow my instructions!
Doing it the "right" way, only ******s up my forum.

So frankly: whatever.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Hj Ahmad Rasyid Hj Ismail

IMHO you get it wrong at the first place and try to rectify it later. It an extra unnecessary job. You should try to get it right by following the instructions from the very beginning. What you show is the PATH i.e. $targh='/home/user/public_html/yourpathtomainforum';. The PATH is taken automatically from your smf settings. The only thing the mod requires is the URL of your targeted subdomain forum and not the PATH.

If you scroll down further, your will see what I had said to you earlier. The code conetent $boardurl = 'http://yourdomain.tld/subforum'; or $boardurl = 'http://subforum.yourdomain.tld'; is taken from your inserted URL. You must put http:// at the front and no trailing "/" at its end.

I really mean it when I say this:
Quote from: Abu Fahim Ismail on April 11, 2010, 06:05:01 AM
Aha, so that is why. It is normal that when you are not using full URL, things like that could happen. Nice to hear it all works out for you. Also, be careful when it comes to URL and PATH next time. Cheers...

Yes. You can do it either ways. IMHO make no mistake from the very beginning and you do less job in the future. Cheers.

FireDitto

Yeah, 'cause your way DOES NOT WORK for me.

Hence, I do it my way, and was offering up the information on HOW I do it my way, for others that have the same issue, 'cause if you LOOK at the last 8 pages, I'm not the only one with this issue, and it took a good 3 pages to FIGURE IT OUT. I'm trying to help save other people the stupid headaches I was subjected to, because the rest of you talk in circles and make NO SENSE.

It's like, "Oh, if we keep repeating the same BS over and over, something might happen!"

Yeah. A need for more medication to sooth pointless headaches.


I'm not saying my way is RIGHT, or the ONLY way, but I AM saying it WORKS when done as I said.

Full stop. The end.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Hj Ahmad Rasyid Hj Ismail

#170
 :) It is not my way. It is the mod owner's way. All the guide put down by me is from him at the mod page and this support thread.  ;)

I do enlighten you about it before. I also believe that I do rectify your problem by highlighting the fault. The error is caused by you not providing the right URL and the others are not able to help because you did not provide full details. All that we can do is guess. Luckily, I managed to guess your problem almost correctly and solved it indirectly (if not directly enough for you).

Quote from: Abu Fahim Ismail on April 10, 2010, 06:32:39 PMMy only guess is your problem is not caused by the mod itself but either duplicate of old version codes or the codes you created and pasted in your index.php for both your Test A & B forums. Manually access the index.php file you created and check this line. Yours could be:
   $boardurl = 'http://test.dreamscaperpgs.net/forumb/forumb';
instead of
   $boardurl = 'http://test.dreamscaperpgs.net/forumb';

I notice this as all the links your Test A & B forums is of the first line instead of the second. Note that you shouldn't put end trailing "/". Otherwise, clean the modified files or better, install again. Good Luck!

Am I not?  O:) No offence, but IMHO everybody should follow the steps given by the mod owner. He creates this mod and surely he knows better than any of us. Cheers!  :D

FireDitto

And I repeat:

Following THOSE instructions = NON WORKING MOD.

Which is completely pointless, and as I stated, I am not the only one that has had these same issues with the modification. Thus, I was sharing MY WAY on how I got it to work correctly, for any that wished to use it. Like I said: I'm not saying it's right, I'm not saying it's the way that it should be done. I'm saying that's how I got it to work, and if anyone's interested: There it is.


Mayhap someone should write better "official" instructions, then. If I were the only one who'd screwed it up and gotten lost, confused and done it "wrong" then it would be different. But I wasn't, and I'm not.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

FireDitto

Are you all daft? My way WORKS FOR ME and I was offering it to others if they want to use it.

Gtf off your high horses and cope.

Jesus Christ.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

RandomNick

Hey there!

I'm having problems getting this mod to run correctly... Here my configs for the subboard:

Quote$targpath = '/directory/to/main/boards/index.php';

require_once($targpath);

function setSubforumSettings()
{
        global $boardurl, $cookiename, $boarddir, $forumid, $mbname;

        $boardurl = 'h..p://url/subboard';
        $cookiename = 'SmfCookie123';
        $boarddir = "/directory/to/maiin/boards";
        $forumid = 1;
        $mbname = 'Some Name';
}
As you see, I had to change the "$boarddir = dirname(__file__); into the path to my mainboards, without the trailing /, in order to make it work. Everything else left the site completely blank.

Although this seems to work mostly (getting some subboards with correct Subboardname and so on on the /subboard/index.php), the Subboards themself remain missing (Template, Menu, etc.. works. Just the area where the Categories are shown are empty)

Somebody here with an idea what's wrong?

Thx in advance.

Hj Ahmad Rasyid Hj Ismail

Nobody is saying you cannot go for another options. Well, it is your own choice. May be next time, your can figure it out yourself.

Another thing, I don't use the official mod as it is only up to RC2. I am using the one that is attached here. May be there is a difference? I dont know. But I use this, follow the exact instructions and it just works. Go to this post link (at page 7) if you want to download it:

Quote from: Kasp on March 14, 2010, 05:48:26 AM
I did a few mods to the addon to allow for installing onto RC3.

This worked for me so please give it a try.

I am sorry if I had offended any of you but surely, IMHO it is not a big deal at all. Cheers!

Snogmarr

Quote from: RandomNick on April 19, 2010, 11:37:31 AM
Hey there!

I'm having problems getting this mod to run correctly... Here my configs for the subboard:

Quote$targpath = '/directory/to/main/boards/index.php';

require_once($targpath);

function setSubforumSettings()
{
        global $boardurl, $cookiename, $boarddir, $forumid, $mbname;

        $boardurl = 'h..p://url/subboard';
        $cookiename = 'SmfCookie123';
        $boarddir = "/directory/to/maiin/boards";
        $forumid = 1;
        $mbname = 'Some Name';
}
As you see, I had to change the "$boarddir = dirname(__file__); into the path to my mainboards, without the trailing /, in order to make it work. Everything else left the site completely blank.

Although this seems to work mostly (getting some subboards with correct Subboardname and so on on the /subboard/index.php), the Subboards themself remain missing (Template, Menu, etc.. works. Just the area where the Categories are shown are empty)

Somebody here with an idea what's wrong?

Thx in advance.

maybe because categories remain invisible till you add a board or maybe in admin boards modify you have not put the forum number in and it is still at zero,,,,,,,,,,,?????????????



RandomNick

#176
Quote from: xnathansxdadx on April 19, 2010, 07:03:48 PM
maybe because categories remain invisible till you add a board or maybe in admin boards modify you have not put the forum number in and it is still at zero,,,,,,,,,,,?????????????
Nope for both: I added a couple of categories to the subboard that hold boards. Also all my categories have a subboard-id set in Admin->Boards.
*Sigh* Don't know what to do else. I'll check the version posted by Abu Fahim Ismail.

Thank you two anyway

EDIT: That Version doesn't work either. Same Problem :S

Hj Ahmad Rasyid Hj Ismail

I am not sure whether I have edited the mod file to make it work. But maybe I did. Here is the mod file that I am using. Use with care i.e. always made a back up before you try any mod.

santanu

can we have this feature for smf 1.1.11

FireDitto

Quote from: santanu on April 26, 2010, 10:29:25 PM
can we have this feature for smf 1.1.11

This is the 1.1.x equivalent, but I do not know how up to date it is, because I haven't been keeping an eye on it since upgrading to the 2 line.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Advertisement: