News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Can't link inside my own site

Started by Evelyna, September 16, 2013, 02:09:45 AM

Previous topic - Next topic

Evelyna

Hi guys:

I am about to explode ...  I've been at this all night.

I installed a simplemachines forum in a domain name under my hosting account at Godaddy.  It has been working great.  I love the boards.  One of the people asked me if we could have little page explaining the board, and maybe some links to other sites.

Great thought I, I've let my html and css skills get rusty for a while so I coded a little home page with a link to the site.  I put all the files associated with the forum inside a folder called forum.  Then I put the index.html and css file inside the original folder.  So now inside the folder people used to come to instead of going right away to the forum, they go to the new little web page.  It works.  The link to the forum folder however won't work (period)  I have gotten warnings and fatal errors.  I even took all the smf files out of the folder and put them back.  Now when someone points their browser at the site, they get the forum right away again.

I talked to two people at Godaddy and they are convinces it is my code.  I checked and double checked my code.  I compared it to a friends link to their smf forum on their own site and it says the same thing.

Do you guys have any suggestions ... I am about to say okay, I can't have a page, smf needs a dedicated domain name to work.  I feel somehow though, other people link to forum sites, why can't I?

Thanks guys.

NanoSector

Posting your code here might help. Maybe also a link to your home page.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Evelyna

Okay.


I put the smf in a folder called forum.  Both the index.html and the folder forum were in the same place.  I therefore didn't have to tell it to go anywhere but to stay in the same folder as the index.html.  So my code was <a href="forum/" target="_blank">The Forum</a>.

The name of the domain is godsloveandgraceforum.org.  I have put everything back though so the sm forum will come up if you go there.

Do you think the software has to be installed into a folder before it will work from that folder?

I tried one little fix, but it only half worked.  I renamed the index.php.  I called it forum.php and then placed my index.html into the same folder.  When I clicked on the link it worked, but it would only display the front page of the forum.  When I tried to login I was given a 404.  I suspect that the login procedure needs to look for the file index.php, which I renamed so it couldn't find it.  Oh well, what you won't try at one in the morning.

Thanks guys.



Evelyna

Oh, there is one more thing.

If you go to godsloveandgraceforum.org/web you can see the webpage I was trying to put up as the first page you would visit.  When I hover over the Forum button, and see the little box in the bottom left hand corner of the screen there is always more to the link.  It never really shows what I put in the link on the index.html page.

Chalky

The link code appears to be just fine.  When you moved all the forum files into a folder, did you use repair_settings.php?  What is repair_settings.php?

kat

Oddness. When I click on the "Forum" button/link, I get this:

QuoteNot Found

The requested URL /GODSLOVEANDGRACEFORUM/web/forum.css/ was not found on this server.

forum.css?!?!?

Uppercase?!?!?

No ".org"?!?!?



But, you'll be pleased to know that http://godsloveandgraceforum.org is working just hoopily. Apart from the top banner running off the right, there. So, it looks like the forum's not in a "Forum" directory, at all. You might want to upgrade to v2.0.5, sometime soon, too. ;)

So, you just have the code for the link wrong, somewhere.

Kindred

If you moved the forum after it had alreayd been installed, then you need to change a whole bunch of settings for directory and url...    that's what repair_settings.php does...   if you did not run repair_settings or manually change your directory and url settings, then that would explain all the errors.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Evelyna

I didn't use the repair settings file.  Thanks for the link.  I was reading the instructions and I think that at least alludes to the problem.  I was thinking last night that I could install a new copy in the forum folder, but I fear I may loose all the posts that the folks have put on it so far.  That would be a shame.

Just to confirm what I plan on doing.  I will move all the files in the new 'forum' directory, then download and put the file repair_settings.php into the directory and run it.  Then I will delete that file and the links will there-after be to the new directory.

Did I get this right.

Sorry to be so slow guys, it's just I don't want these people to be put out by my loosing their posts.

I think what I'll do is copy and paste the files, thereby at least keeping a copy in the original folder.  I'll rename index.php for now and put the new idex.html in it with the link.  If I mismanage it, this way at least I still have a copy?  Or will the repair-settings.php file forever change the settings?

I guess I could run it on the original folder files if it doesn't work.

Thanks guys.

mashby

What might be of use to you if you want a "home" page that isn't your index of boards, you could consider adding one of the portals. It will take on the look/feel of your forum site rather easily. And will allow you to keep SMF/home page happy. Just depends on whether you have other needs for the domain. If you're only wanting to run SMF on it...go with one of the portals. I've been happy with SimplePortal.
Always be a little kinder than necessary.
- James M. Barrie

Evelyna

I'm afraid I don't know.  I only wanted to have a little forum ensconced in it's own little directory so people could have a place to discuss things.  The notion of a website was suggested later.

Do you have any information on how to use a portal?

Evelyna

Oh, by the way guys.  What ever happens ... whether this works or not, I would like you all to know how much I appreciate you taking the time to help.  You've all been very generous with your knowledge.

Thank you

Chalky

Installing a portal means you don't have to move the forum at all, you can leave it in the root.  If you're new to Portals I would suggest Simple Portal for its ease of use.  You could try some of the others too as it's all subject to personal preference.  The portal installs through Package Manager like any other mod.  You can see an example of Simple Portal as a front page on my Aspie Bubble site (link in sig).  I've kept mine very simple and unimaginative, but if you know some html you could make it as elaborate as you wish  :)

This may be redundant since you've already been saving copies of your forum and moving it around, but please make sure you have a backup before you install any mods  ;)

kat

Quote from: Evelyna on September 16, 2013, 10:52:39 AMI fear I may loose all the posts that the folks have put on it so far.  That would be a shame.

Worry not. If you wanted to, you could destroy your forum, totally. If you then, reinstalled everything from scratch, your posts, members, &c. will be OK, coz they're in the database and you're not touching that. :)

Evelyna

Thanks!!

and thanks for that comforting new K@.

I've gone through the motions and got to the repair.settings.php page.  I have a question.  It recommends I change the value of server to local host.  Would that be a good idea.

Thanks for the advise on the portals guys.  I'm tempted.  My worry is that maybe in the future someone will want to add something to this again.

kat

localhost's quite normal.

That just means "The machine that this stuff's installed on".

Evelyna

Quote from: K@ on September 16, 2013, 11:41:14 AM
localhost's quite normal.

That just means "The machine that this stuff's installed on".

thank you for saying it in a way I can get it.  LOL.   :)

I still think I will do a little reading about the portal thingie later though.

Well, I'm off to try telling the server where the new forum it; If I break the internet sorry guys.

Chalky

Though localhost might well be wrong.  If it's wrong though it will complain and then you can put back what was there before  ;)

The other funky thing about portals is that they let you add extra pages very easily, which could be useful for implementing your members' future suggestions  ;)

Evelyna

That might be a way to go.

Well, I did it, but when I clicked on the link form the new front page it says (in the new window) "Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later. "

Could that just be because it is moving things, or is the link wrong?

Maybe portals is the way to go.  Maybe I could put the upgraded version in the new folder.  K@ said I should probably upgrade soon.  I've kept all the files in the original folder in the domain folder.  I just renamed index.php and put in index. html to bring up the new front page ... is that a problem?

Evelyna

Hey Guys:

I reset the name of the host to the original numbers and now it works.  It seems to work fine except the avatars people had in place are gone.  Except for the administrator's.  I am fine with asking people to reload their avatars:  that doesn't seem like it would be too much to ask.

It works, but thanks for the advise on portals. 

Thanks again guys.

Kindred

you need to check the directory and url of the avatars (and the attachments) in the settings.

those things should be listed lower down on the repair_settings screen...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: