View Full Version: I cant get some things to work

SoakerMedia Water Warfare > Internet Community > I cant get some things to work


Title: I cant get some things to work


Croc - April 5, 2006 01:18 AM (GMT)
I cant get any videos( i.e. the K- Mod video) to work. It says that it is forbidden or something.

Can someone please tell me what i can do to see these videos (I am using FireFox)?

DX - April 5, 2006 01:24 AM (GMT)
They are not actually online yet. A good 99% of the v2 site is not online yet, and chances are that I might have to recode everything. Notice how there's space to the left and top of the navigation bar and logo? I don't want that there, and nothing I change is making it go away. Copy-Paste retains the settings where that code was originally used, so I will have to retype every character of code from the index page, inc pages, and css page. Then redo all the other pages using the index as the template. Annoying yes, but I would rather do it now when there are less pages.

isoaker_com - April 5, 2006 01:35 AM (GMT)
QUOTE
Notice how there's space to the left and top of the navigation bar and logo?


Are you talking about the general black border running around the page, the slight double-line at the top of the navigation bar, or am I not seeing the space you're referring to?

I'd like to try to help if I can, but first I need to be sure I know what you're referring to.
:P

B)

Croc - April 5, 2006 01:40 AM (GMT)
OK, I sort of understand what you are saying. you mean that nobody, except for you, can watch the movies at this time. can you just put a post up or do something to notify people when the website with the videos is up?

DX - April 5, 2006 01:54 AM (GMT)
The modding movies don't exist yet. We did manage to film one a long time ago, and we lost it. When we make the videos, they will be up when the site is mostly finished. Right now I'm shooting for June as the release date for the v2 site, but there's SO MUCH that needs to be done.

@iSoaker: Yeah, it's the black border running around the whole page. I used vspace and hspace to create it back when Firefox cut off the sides of the page. But the dimensions of Firefox are now about 3 px more than they used to be, and I didn't notice the change. Same for IE6. Setting vspace and hspace to 0 doesn't change the border. Adding to those values does make it even bigger though, so it can be edited and the original space can't be gotten rid of it appears.

isoaker_com - April 5, 2006 12:13 PM (GMT)
Oh!

Ok, there's a simple solution to your border problem without needing to go into all the VSpace stuff.

Really simple CSS code will work.  There are two ways to do it and I'll list both here.

Either put this code into the <head> area of every page
CODE
<style type="text/css">
<!--
body {
margin: 0px;
padding: 0px;
}
-->
</style>


----------------- or ------------------

Create a file with a '.css' as an extension (i.e. layout.css)
Put
CODE
body {
margin: 0px;
padding: 0px;
}

In that file and save it.

Then in the page you want to remove the outside border, add into the <head> area
CODE
<link href="http://www.YOURSITE.com/layout.css" rel="stylesheet" type="text/css" media="screen">


You can save the new .css file into a sub-directory, but just be sure that you have your file pointing to the location properly. The nice thing about the 2nd way is that you only need to create the .css file once and just insert one line of code into pages you want to apply the style to. There is a LOT more you can do with CSS coding which makes it so very powerful (not to mention saving you from having to recode every page when you want to change a style around). Of course, it does take some pre-planning. Thanks to CSS coding, I got rid of the 'click for printable version' link and, instead, pages just reformat themselves using CSS if the user attempts to print them. Took me ~half a year of heavy re-coding to switch iSoaker.com to more CSS oriented code. However, it's been definitely worth the effort.

Hope that works for you!

B)

Hmm.. silly thing put in an extra 'code' box... cleared it now, I think.

DX - April 5, 2006 06:11 PM (GMT)
Hehe, you would be surprised how involved SM code is compared to most websites. Not only do I manage a CSS stylesheet, but I also use 3 PHP Includes to reproduce areas that are the same for every page. When I want to change something in the navbar, editing the first Include changes it for every page of SM! PHP cannot be seen outside of the original file, so when you view the source code for a given page, it is long. When I view the source at home, it is really short because those dozens of lines in Includes are coded as single lines referencing the files! Just like how you reference a CSS stylesheet, only dealing with whole pieces of page instead of just the styles. Saves even more time! :P

Thanks for the snippet of code, I'll put that in the stylesheet and see if it works. B)

isoaker_com - April 5, 2006 07:32 PM (GMT)
Good that you are making good use of CSS and server-side includes. Silly me.. missed it when I did a quick glance at the code (saw lots of table codes). :P I also got thrown off then you made the earlier statement of maybe having to 'recode everything'.

Otherwise, love the design. Just really want to see the site fully up and running!

B)

DX - April 5, 2006 09:45 PM (GMT)
Nice, it worked! Thanks, iSoaker! B)

isoaker_com - April 6, 2006 01:10 AM (GMT)
Glad it worked. It should, though, as it's the same code I use at iSoaker.com! :P

If I can help with coding issues, I will; so long as it helps V2 complete sooner!

B)




Hosted for free by InvisionFree