Logged Out
Create an Account
Login:
Password:

Forgot your password?
Advanced Layout files not working

Advanced Layout files not working
[Back to Index]
Thread Tags
Primary: [Support]
Secondary: None

We are trying to make an advanced layout, for our website, however the logo link keeps breaking.

To see how it is broken, you can generate a layout file from the options, then reupload without editing and the logo breaks.

I think this is related to resetting and changing the domain name of the website when I swapped guilds.

blacktemple.dkpsystem.com

Thanks in advance
Quote by Fireweaver
We are trying to make an advanced layout, for our website, however the logo link keeps breaking.

To see how it is broken, you can generate a layout file from the options, then reupload without editing and the logo breaks.

I think this is related to resetting and changing the domain name of the website when I swapped guilds.

blacktemple.dkpsystem.com

Thanks in advance


Can you attach a copy of your layout.html file here?


--
Six Demon BagRefresh This Item
Jack Burton: Hey, what more can a guy ask for?
Egg Shen: Oh, a six-demon bag!
Jack Burton: Terrific, a six-demon bag. Sensational. What's in it, Egg?
Egg Shen: Wind, fire, all that kind of thing!
Quote by Saudorun
Quote by Fireweaver
We are trying to make an advanced layout, for our website, however the logo link keeps breaking.

To see how it is broken, you can generate a layout file from the options, then reupload without editing and the logo breaks.

I think this is related to resetting and changing the domain name of the website when I swapped guilds.

blacktemple.dkpsystem.com

Thanks in advance


Can you attach a copy of your layout.html file here?


Here
This line needs to be replaced with:
<a href="http://blacktemple.dkpsystem.com"><img border=0 src="settings/blacktemple/logo" alt="Blacktemple knights"></a>

<a href="http://blacktemple.dkpsystem.com"><img border=0 src="http://dkpfiles.com/blacktemple/files/logo" alt="Blacktemple knights"></a>

Also your logo doesn't point to a file with an extension. And you will want to make sure you upload it to your site with the Administrative File Uploader.


--
Six Demon BagRefresh This Item
Jack Burton: Hey, what more can a guy ask for?
Egg Shen: Oh, a six-demon bag!
Jack Burton: Terrific, a six-demon bag. Sensational. What's in it, Egg?
Egg Shen: Wind, fire, all that kind of thing!
Quote by Saudorun
This line needs to be replaced with:
<a href="http://blacktemple.dkpsystem.com"><img border=0 src="settings/blacktemple/logo" alt="Blacktemple knights"></a>

<a href="http://blacktemple.dkpsystem.com"><img border=0 src="http://dkpfiles.com/blacktemple/files/logo" alt="Blacktemple knights"></a>

Also your logo doesn't point to a file with an extension. And you will want to make sure you upload it to your site with the Administrative File Uploader.


That was the first thing I tried but that does not work either as it refuses to look in that directory
I don't know what format your logo is in so lets just say its a jpg.

rename the file to blacktemple.jpg (if its not a jpg just retain whatever file extenion it is.

Goto Admin > Administrative File Upload
Upload blacktemple.jpg

Then if you look at the administrative file upload page you should see a file blacktemple.jpg with a path of dkpfiles.com/blacktemple/files/blacktemple.jpg

If you use that path in your html image tag it should work.

I could be wrong but I know that setting/sitename/logo was the old default before the dkpfiles server was implemented. I also believe that this isn't he correct path to just link the file from. In order to be completely certain your referring to the correct file is why I suggested to manually upload it to that path also.

Hence you would have a logo line in your file that looked like <a href="http://blacktemple.dkpsystem.com"><img border=0 src="http://dkpfiles.com/blacktemple/files/blacktemple.jpg" alt="Blacktemple knights"></a>


--
Six Demon BagRefresh This Item
Jack Burton: Hey, what more can a guy ask for?
Egg Shen: Oh, a six-demon bag!
Jack Burton: Terrific, a six-demon bag. Sensational. What's in it, Egg?
Egg Shen: Wind, fire, all that kind of thing!
Quote by Saudorun
I don't know what format your logo is in so lets just say its a jpg.

rename the file to blacktemple.jpg (if its not a jpg just retain whatever file extenion it is.

Goto Admin > Administrative File Upload
Upload blacktemple.jpg

Then if you look at the administrative file upload page you should see a file blacktemple.jpg with a path of dkpfiles.com/blacktemple/files/blacktemple.jpg

If you use that path in your html image tag it should work.

I could be wrong but I know that setting/sitename/logo was the old default before the dkpfiles server was implemented. I also believe that this isn't he correct path to just link the file from. In order to be completely certain your referring to the correct file is why I suggested to manually upload it to that path also.

Hence you would have a logo line in your file that looked like <a href="http://blacktemple.dkpsystem.com"><img border=0 src="http://dkpfiles.com/blacktemple/files/blacktemple.jpg" alt="Blacktemple knights"></a>


I also tried that, I reapplied it so you can see what it generates. Thanks for the ideas though
Well Saudorun was trying to explain how to solve the problem but you didn't understand file extentions are needed (further addressed below).

But, anyway I was just tinkering around to try and find your file and found it. You have to put the file extention on any image you wish to call (ie .png) Here is what the code is to get it to work.


<img border="0" src="http://dkpfiles.com/blacktemple/files/logo.png">


Side note: I would lean away from using a .png there is inconsistent support for them across different browsers.

Now for my rant against Microsoft.
I suspect that this problem is a direct result of idiot proofing windows. By default windows does not show file extentions on file names and people don't know what a file extension even is. If you want to call a file in a web site for dynamic includes, images, script pages, or styles sheets you have to have the file extention on the file.

.php .htm .css .js .gif .jpg .png .html .asp .cgi
Quote by Kriknosnah
Well Saudorun was trying to explain how to solve the problem but you didn't understand file extentions are needed (further addressed below).

But, anyway I was just tinkering around to try and find your file and found it. You have to put the file extention on any image you wish to call (ie .png) Here is what the code is to get it to work.


<img border="0" src="http://dkpfiles.com/blacktemple/files/logo.png">


Side note: I would lean away from using a .png there is inconsistent support for them across different browsers.

Now for my rant against Microsoft.
I suspect that this problem is a direct result of idiot proofing windows. By default windows does not show file extentions on file names and people don't know what a file extension even is. If you want to call a file in a web site for dynamic includes, images, script pages, or styles sheets you have to have the file extention on the file.

.php .htm .css .js .gif .jpg .png .html .asp .cgi


Again thank you for the research.

I do understand these concepts, I applied the code you supplied this time and applied it to my site and this still does not work. I have also attached the layout file as proof that I have placed that text in. You will notice that the website does not display the picture.

I still believe this error is due to the recent resetting and changing the domain of the site and that maybe Chops will need to look at it.

I am trying everything suggested, so please continue to make suggestions, my thought processes for this so far has been along the same line.

Thanks in advance

**edit** Just to further clarify the first post and the file supplied from the first post...

This file was generated by using the default layout as supplied when not using advanced layouts and exporting the file, by default the file extension is not there, even uploading the default layout back into a working website without edits and switching to advanced layout instead of the default breaks the logo image.

This is why I believe that the problem is deeper than just the code in the layout file
If you click the file you attached it does work but when I go to your site it doesn't.

So I checked your code.

The <img> link on your site is

<img border="0" scr="http://dkpfiles.com/blacktemple/logo.png">

The <img> link in the file above is

<img border="0" scr="http://dkpfiles.com/blacktemple/files/logo.png">


Sorry, about the rant just had a few people hit me with that problem this week as it was the obvious first error I saw.
Quote by Kriknosnah
If you click the file you attached it does work but when I go to your site it doesn't.

So I checked your code.

The <img> link on your site is

<img border="0" scr="http://dkpfiles.com/blacktemple/logo.png">

The <img> link in the file above is

<img border="0" scr="http://dkpfiles.com/blacktemple/files/logo.png">


Sorry, about the rant just had a few people hit me with that problem this week at it was the obvious first error I saw.


You hit the nail on the head with your last example, the file is not stored at

<img border="0" scr="http://dkpfiles.com/blacktemple/logo.png">

but is stored

<img border="0" scr="http://dkpfiles.com/blacktemple/files/logo.png">

and no matter how I word the link it will not go to the second option, on top of that I do not have access to upload to the first example to put the file where it wants to look naturally.

Just for paranoia's sake I changed the code again to fit the other link, as attached and as you can see, no luck
Just though I should add a couple thing, to make sure basics weren't being overlooked.

1. I assume you are uploading the layout.htm in the "Advance Layouts Options" page and not uploading it in the "Administrative File Uploader" page.

2. And then you are using the [Test It] option to see if it works.
Quote by Kriknosnah
Just though I should add a couple thing, to make sure basics weren't being overlooked.

1. I assume you are uploading the layout.htm in the "Advance Layouts Options" page and not uploading it in the "Administrative File Uploader" page.

2. And then you are using the [Test It] option to see if it works.


No 1. I am definitley doing.

No 2. I skip to just click go live as I can always go back to the default be reverting to original.

This is a headache because I have lots more advanced stuff to eventually put in but if I cant even manage the basics...
Well I guess chops will have to take a look at it as that are all of my best guesses.

Quote by Fireweaver

This is a headache because I have lots more advanced stuff to eventually put in but if I cant even manage the basics...


You think you have headachs check out my more recent posts (in the Advanced Layout forums). I am basically having to grabing the code with javascript and based on serveral factors changing and/or moving things to make my layout look the way I want it to. I have added alot of dynamic dispaly abilities which were not easy.

I am sure whatever you want your site to look like is possible and I am sure at least Chops, and Saudorun, and maybe even myself, can help you get it there.
Quote by Kriknosnah
Well I guess chops will have to take a look at it as that are all of my best guesses.

Quote by Fireweaver

This is a headache because I have lots more advanced stuff to eventually put in but if I cant even manage the basics...


You think you have headachs check out my more recent posts (in the Advanced Layout forums). I am basically having to grabing the code with javascript and based on serveral factors changing and/or moving things to make my layout look the way I want it to. I have added alot of dynamic dispaly abilities which were not easy.

I am sure whatever you want your site to look like is possible and I am sure at least Chops, and Saudorun, and maybe even myself, can help you get it there.


Thanks for the help though, I will go to bed now and wait for chops to see

Thanks for the support I am hoping that if I can get past this hurdle it will be plain sailing from here. Here's to hoping
I got it working and all I did was change the address from

"http://dkpfiles.com/blacktemple/logo.png"

to

"http://dkpfiles.com/blacktemple/files/logo.png"

and it worked just fine.

Admittedly, when clicking "Go Live" it took about a minute for the files to be deployed to live, but it worked. Clicking "Test" always worked appropriately.


--
It's all in the reflexes.
Quote by Chops
I got it working and all I did was change the address from

"http://dkpfiles.com/blacktemple/logo.png"

to

"http://dkpfiles.com/blacktemple/files/logo.png"

and it worked just fine.

Admittedly, when clicking "Go Live" it took about a minute for the files to be deployed to live, but it worked. Clicking "Test" always worked appropriately.


Thats really odd as one of the files I attached earlier has that in place and it was not working. Never mind at least it is good now, thanks
Hmm,

Chops, this is just a suggestion, based on the above problem, and as there has been questions and problem that are similar to this in the forums before.

I am almost certain when we upload the layout and menupage files you are storing them in a database. And I know for certian that with PHP you could easily find all files (image, css, javascript) that are being used in those pages and just replace the file name with the correct location and file name which would over come most of these headachs. I know you already have the code in place to the add things into the middle of the layout page so I suspect it would almost be no effort on your part to make this change.

I think this would make your life easier and would help those that are less familiar with web design get their custom layouts to work.


[Back to Index]