I know I'm stupid. But.....

B

blind_soldier

Guest
On the "Hosting page" BW have been kind enough to supply some lines of code that, in theory, will put BW tables onto your web pages.

It appears that all you need to do is replace a small portion of the code with ID numbers of your Clan or Player.

When I put this into my page all that appears is the line of code.

Why? Am I missing something?

Hope someone can help cause it's driving me crazy.
 
J

Jonty

Guest
The most likely cause of the problem is that the file your putting the code into is not a PHP file (i.e. it does not end in .php, but, perhaps, .html etc). Thus, check the file does end with the .php extention (if not you can simply change it, your HTML code shouldn't be adversely affected).

If your file was already in PHP, then please post a little more info, such as the URL of the file in question, and perhaps the source code around the area you are trying to insert the table.

Kind Regards

Jonty

P.S. No questions here are stupid :)
 
B

blind_soldier

Guest
Thanks for that :)

So lets see if I understand you.

If the file is called "Members.html" I change the name to "Members.php", and this will make the BW links work?

Simon
 
J

Jonty

Guest
Hi Simon

That's exactly right. By changing the file extention it lets the BarrysWorld servers know that you want to use PHP code. When you try to access the page with the new file extention, it will be handled differently than when you try to access it with the normal, .html, extention. So just try changing it and be sure to let us all know how you get on.

Kind Regards
 
B

blind_soldier

Guest
Hi,

I tried it :)

I added the link and changed "ID" to the Team number.

Called the file members.php and switched on SmaftFTP.

It then stuck .htm on the end of the file :( so the file became Members.php.htm and when I opened it I got error 404 :(

Should I force the rename on the server itself?

Simon
 
J

Jonty

Guest
Hi

Yes, you have to ensure that the file ends with '.php'. Either do this by selecting the file in either Windows Explorer or SmartFTP and clicking 'Rename'. Then remove the '.htm' suffix leaving you with 'members.php' (not that file names are care sensitive, so it's perhaps best to put it all in lowercase).

If you have any more problems, just shout.

Kind Regard
 
B

blind_soldier

Guest
Hi,

Did everything we discussed, trouble is......

BW seem to have replaced my index page with their own

All the pages come up as Error 404

the addy is: www.thepeacekeepers.barrysworld.net

Please help b4 someone in the clan lynches me

Simon
 
B

blind_soldier

Guest
Hi again :)

Panic over - managed to find someone with an old copy of the site so we have stuck that in temporarily :)

It seems that when I downloaded the site "Frontpage" broke all the links so the whole format of the site fell apart :(

No idea where the BW front page came from tho :s

Thanks for your help
 
J

Jonty

Guest
Glad everything is okay. And one last thing, Frontpage should be used with extreme caution :D
 
T

TheJkWhoSaysNi

Guest
yes, fontpage is not worth it, The time you think you save creating the pages is then wasted cleaning up the code.
 

Users who are viewing this thread

Top Bottom