Page Index Toggle Pages: 1 [2] 3 
Topic Tools
Very Hot Topic (More than 25 Replies) Need to edit a file (Read 6,707 times)
Miss Emily
Junior Member
**
Offline



Posts: 93
Re: Need to edit a file
Reply #23 - Jun 20th, 2011 at 8:03pm
Post Tools
Okay thanks Derek, I'll try it. Does the landing page of the forum have to be called "YaBB.cgi", or is it possible to rename it to something else?
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Need to edit a file
Reply #22 - Jun 20th, 2011 at 7:50pm
Post Tools
Miss Emily wrote on Jun 20th, 2011 at 7:32pm:
So you're saying I don't create a "yabb2" directory, but only "yabbfiles" directory?

Yep. All of the files in the 'yabb2' folder go directly to your root directory.

Miss Emily wrote on Jun 20th, 2011 at 7:32pm:
www.whatever.com/YaBB.cgi is not really the root domain, but it's shorter.

The 'index.html' will redirect it though, so you won't need to include YaBB.cgi in the URL. Or if you can run .htaccess on your server then you could use that instead - which would work more smoothly. Take a read through this for a few examples of redirecting with .htaccess:

http://www.yabbforum.com/codex/YaBB.pl?num=1208533906

Also note, that the 'index.html' files in the package include the 'YaBB.pl' extension:

Code (HTML)
Select All
<html>
    <head>
        <meta http-equiv="refresh" content="0; url=YaBB.pl" />
    </head>
    <body>
        <a href="YaBB.pl">Go to the site forum.</a>
    </body>
</html>  


So if you run it as CGI, then you will have to open these in a text editor and change them.
« Last Edit: Jun 20th, 2011 at 7:51pm by Derek Barnstorm »  
Back to top
 
IP Logged
 
Miss Emily
Junior Member
**
Offline



Posts: 93
Re: Need to edit a file
Reply #21 - Jun 20th, 2011 at 7:32pm
Post Tools
So you're saying I don't create a "yabb2" directory, but only "yabbfiles" directory?

.pl files doesn't work on my server, I've tried it with other perl programs.

www.whatever.com/YaBB.cgi is not really the root domain, but it's shorter.
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Need to edit a file
Reply #20 - Jun 20th, 2011 at 7:22pm
Post Tools
Miss Emily wrote on Jun 20th, 2011 at 5:04am:
I would like to run YaBB from my root domain (www.whatever.com)

Oh, sorry. If you wanted to do this, so that ultimately the address would be:

www.whatever.com/YaBB.pl

Then you would need to upload all of the files in the 'yabb2' folder directly to the 'public_html' directory. Then you would be directed to the forum right from the domain name...
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Need to edit a file
Reply #19 - Jun 20th, 2011 at 7:11pm
Post Tools
Miss Emily wrote on Jun 20th, 2011 at 6:54pm:
So you mean I need to create a "yabb2" and "yabbfiles" directory first?

You do it exactly the same as you would do as if it was in the cgi-bin, but you place the 'yabb2' folder in the 'public_html' directory instead. So both 'yabb2' and 'yabbfiles' are in the same place. Don't forget that if you already have a 'yabbfiles' folder there though, you still need to rename it.

Miss Emily wrote on Jun 20th, 2011 at 6:54pm:
Also, usually the landing page of the forum is YaBB.cgi.

I'd suggest to try running it as .pl first - it will save making quite a few edits if you can.

Miss Emily wrote on Jun 20th, 2011 at 6:54pm:
How do you make index.html as the landing page/main page of the forum?

You can't really. There are ways to do it with .htaccess, but totally hiding YaBB.pl is now unfortunately against the YaBB license (for the record, this is something that I disagree with). However, there is already an 'index.html' in the 'yabb2' folder, so it is already built in to redirect you when you don't include YaBB.pl in the URL - as you can see here for example:

http://ibrainstorm.net/modemos/forum/


« Last Edit: Jun 20th, 2011 at 7:12pm by Derek Barnstorm »  
Back to top
 
IP Logged
 
Miss Emily
Junior Member
**
Offline



Posts: 93
Re: Need to edit a file
Reply #18 - Jun 20th, 2011 at 6:54pm
Post Tools
Thanks for the information Derek. So you mean I need to create a "yabb2" and "yabbfiles" directory first?

Also, usually the landing page of the forum is YaBB.cgi. How do you make index.html as the landing page/main page of the forum?
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Need to edit a file
Reply #17 - Jun 20th, 2011 at 2:15pm
Post Tools
Just upload the 'yabb2' folder to your 'public_html' directory - the same place as 'yabbfiles'...
  
Back to top
 
IP Logged
 
Miss Emily
Junior Member
**
Offline



Posts: 93
Re: Need to edit a file
Reply #16 - Jun 20th, 2011 at 5:04am
Post Tools
Scripts can be run outside my cgi-bin folder. I would like to run YaBB from my root domain (www.whatever.com). Do I still need to upload files into the cgi-bin and yabbfiles directories for example.

How do I go about setting this up, do I follow the same procedures in the Quick Guide?

Any help would be really appreciated, thank you.
  
Back to top
 
IP Logged
 
Miss Emily
Junior Member
**
Offline



Posts: 93
Re: Need to edit a file
Reply #15 - Jun 19th, 2011 at 10:15pm
Post Tools
Derek Barnstorm wrote on Jun 19th, 2011 at 8:42pm:
Well, you obviously can't have two 'yabbfiles' directories, so you will need to change it.


This information should have been provided on the page for those who wish to upgrade. You have to assume that people don't know these things. So renaming the "yabbfiles" directory to anything for version 2.5 won't cause any errors I understand.


Derek Barnstorm wrote on Jun 19th, 2011 at 8:42pm:
You'll need to stick it into maintenance mode before you copy your files across, otherwise someone might post or make some other change when you are copying them.


True, but this can be done later. The important thing is to get the new forum to function properly and perform tests. Once I'm satisfied then I can put the old forum into maintenance mode when I'm ready to copy files across.
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Need to edit a file
Reply #14 - Jun 19th, 2011 at 8:42pm
Post Tools
Miss Emily wrote on Jun 19th, 2011 at 8:32pm:
That's one directory, but it doesn't mention that the "yabbfiles" directory can be named to anything?

Well, you obviously can't have two 'yabbfiles' directories, so you will need to change it.

Miss Emily wrote on Jun 19th, 2011 at 8:32pm:
Another question is if version 2.5 is setup elsewhere and seperate, it doesn't the affect the running of the old forum, so why does it need to be put into maintenance mode?

You'll need to stick it into maintenance mode before you copy your files across, otherwise someone might post or make some other change when you are copying them.

« Last Edit: Jun 19th, 2011 at 8:43pm by Derek Barnstorm »  
Back to top
 
IP Logged
 
Miss Emily
Junior Member
**
Offline



Posts: 93
Re: Need to edit a file
Reply #13 - Jun 19th, 2011 at 8:32pm
Post Tools
Okay thank you for the information. That's one directory, but it doesn't mention that the "yabbfiles" directory can be named to anything?

Another question is if version 2.5 is setup elsewhere and seperate, it doesn't the affect the running of the old forum, so why does it need to be put into maintenance mode?
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Need to edit a file
Reply #12 - Jun 19th, 2011 at 6:01pm
Post Tools
Miss Emily wrote on Jun 19th, 2011 at 5:49pm:
The Quick Guide warns us the following:
"Do not rename any of these folders for now, or the automatic path detection will not work when you run the setup script."

That's talking about the folders within the 'yabb2' folder. It says just before that you can name the 'yabb2' folder whatever you like:

Quote:
In your 'cgi-bin', create a directory called "yabb2" (or whatever name you wish to use in your forum's URL).
  
Back to top
 
IP Logged
 
Miss Emily
Junior Member
**
Offline



Posts: 93
Re: Need to edit a file
Reply #11 - Jun 19th, 2011 at 5:49pm
Post Tools
Well, the Quick Guide never explain that, which is the reason why I had 2.5 files mixed with my old files.

The Quick Guide warns us the following:
"Do not rename any of these folders for now, or the automatic path detection will not work when you run the setup script."

Which is opposite to what you just told me, so I'm in confusion.
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Need to edit a file
Reply #10 - Jun 19th, 2011 at 12:01pm
Post Tools
Just rename the 'yabb2' and 'yabbfiles' folders to something different before you upload and install. Once everything is working you can then either rename the same folders to your old forum and change the paths (or remove the old forum) and then rename the folders and change the paths to your new forum to match that of your old one.
  
Back to top
 
IP Logged
 
Miss Emily
Junior Member
**
Offline



Posts: 93
Re: Need to edit a file
Reply #9 - Jun 19th, 2011 at 7:37am
Post Tools
How can I create two separate forums, when most of the directories and files are the same as the old forum.

For instance, the yabbfiles and yabb2 directories are currently being used by my old forum. I need to upload files into these directories for version 2.5 according to the Quick Guide?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Topic Tools
 
  « Board Index ‹ Board  ^Top