heavensounds
Feb 13 2007, 09:40 PM
| | Hi guys & girls,
i have a big problem, because I am making a site for this congress and here is what is happening to my site using CSS. When I check it on my wamp local server, everything looks great, but when I put it on the internet here on trap, things just don't work anymore...
Please click to visit my problematic site
How can I make this "WELCOME... " div in the middle and the sidebar with news to the right..
Pleeeeease help soon..
Thanks in advance |
Reply
truefusion
Feb 13 2007, 09:54 PM
Move this: HTML <div id="content"> <h2>Welcome to prime congress 2007! </h2> <p> </p> </div> outside all DIV tags, to the bottom...
Reply
heavensounds
Feb 13 2007, 10:07 PM
Thank you for that, but there is still a problem. The right "sidebar div" is now a bit too low and the bottom "footer div" is not cleared even though I did clear: both on the footer div in the css... Pleeeease help..
Reply
heavensounds
Feb 13 2007, 10:36 PM
Thank you for everything TRUEFUSION, after an hour and with your help I DID NOT managed to fix it... NEW PROBLEM is in the post below.. thx for helping out..
Reply
jlhaslip
Feb 13 2007, 10:39 PM
What Browser are you using? I am looking at it in IE6 and Fx2 and both look the same. Can you be more descriptive of the problem? and did you know about the php errors on the news sidebar?
Reply
heavensounds
Feb 13 2007, 10:55 PM
Thanks for being here... Yes, now my problem is the <? include("news.txt") ?> which ruins the whole thing as I've found out! The thing is that when the document is parsed, it is all ok untill it reaches the <?include> section. Anyone maybe know what is wrong and how can i fix this? I am lookin' in OPERA 9 and in IE 6, using macromedia dreamweaver... I am using this simple PHP news script which works with only a simple news.txt file....is there any way to make it work like it is now??? Anyone maybe know of some other scripts for news like this one that can be css-manipulated and built in this site.. THANKS for everything guys and PLEASE HELP.. Mark
Reply
jlhaslip
Feb 13 2007, 10:58 PM
Move the sidebar div above the footer div, and it'll be good. And the news script looks like it'll work just fine, once the output is raised. (see above)
Reply
heavensounds
Feb 13 2007, 11:02 PM
I did that as you can see HERE but the "footer div" is not below where it should be. If I remove the <? inlcude...> code it is down below where it should be...the footer should ba 100% at the bottom.. WHY? thanks for cooperating.. EDIT: Please REFRESH if everything is the same..
Reply
jlhaslip
Feb 13 2007, 11:09 PM
CODE <div id="sidebar">
<table class='sn'> <tbody> <tr><td class='sn-title'> Site is up & running </td></tr> <tr><td class='sn-date'> Posted on: 13/02/2007 </td></tr> <tr><td class='sn-post'> Here it is - the official site of the Spring Congress 2007. Please get into the net! </td></tr> </tbody></table><div><br /> <p align="center"><a href="admini/post.php" target="_blank">Admin Area</a></p></div> That is the code as per a view source. Add an ending div tag to see what happens. I think you have missed one there at the end.
Reply
heavensounds
Feb 13 2007, 11:13 PM
Here is the code that is used...I think the problem is that parsing stops at <? include...>, because of some sort of incompatibility or what?. Is that possible? CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Prime Congress 2007</title> <link href="css/style.css" rel="stylesheet" type="text/css" /> <link href="css/news_style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="container"> <img id="prime"src="images/prime.gif" /> <img id="ptic" src="images/ptic.gif" /><div id="header"></div><div id="navigation"> <ul id="navlist"> <li><a href="index.php">Home</a></li> <li><a href="programe.php">Programe</a></li> <li><a href="lectures.php">Lectures & Lecturers </a></li> <li><a href="challenges.php">Challenges</a></li> <li><a href="organization.php">Organizing Team </a></li> <li><a href="participants.php">Participants</a></li> <li><a href="transportation.php">Transportation Info </a></li> <li><a href="slovenia.php">About Slovenia</a></li> <li><a href="application.php">Application</a></li> <li><a href="partners.php">Partners & Sponsors</a></li> <li><a href="press.php">Press Releases</a> <p align="left"><strong>Please sign the application and be a part of PRIME 2007!</strong><br /> <a href="application.php">Click here to SIGN IN! </a></p></li> </ul> </div> <div id="content"> <h2>Welcome to prime congress 2007! </h2> </div> <div id="sidebar"> <? include("news.txt"); ?><p align="center"><a href="admini/post.php" target="_blank">Admin Area</a></p></div> <div id="footer"> <p align="center"><a href="http://validator.w3.org/check?uri=referer" target="_blank">Valid XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank">Valid CSS</a> | Copyright © Mark Debeljak</p> </div> </div> </body> </html> Everything looks allright escept the <?include> i guess??? Any other suggestions? Thanks
Reply
jlhaslip
Feb 13 2007, 11:59 PM
Boy, some people are easy to please... You are very welcome.
Reply
heavensounds
Feb 13 2007, 11:41 PM
Oh I can't believe my eyes...IT WOOOORKS:))))) Thanks maaan, you ARE THE BEST!! Saved my life and sleep tonight...hehe I'll add those alt's yeah, so I'll be totally legit  Thanks again for helping me out and Good night! Best whishes
Reply
jlhaslip
Feb 13 2007, 11:33 PM
CODE </table><div><br /> remove the opening div tag from inside the included file. I thought you had missed an end tag, but perhaps you hav an extra start tag. the div tags seem to match in the html, so I suspected something in the include. Hope it works. Also, add some alt='s to your images and you should be valid. *edit* Alternately, add a div tag to the front and a slash on the existing one...
Reply
heavensounds
Feb 13 2007, 11:28 PM
OK, this is the post.php - script which allows you to add news in a news.txt file: CODE <? //File to keep news in. If you are using the secure setup described in the //readme with post.php in an .htaccessed admin dir you must update the location //of news.txt file in the next variable. $newsfile = "news.txt"; //Open news.txt in read mode. $file = fopen($newsfile, "r"); //Table Vars The below variables are inserted verbatim into the news.txt file. //This gives you a lot of control over how the news will look. The //disadvantage is that if you ever decide you don't like how these look you //can't change one thing like with CSS to adapt it to your liking. You will //have to do a mass "find and replace" on the news.txt file. In other words: //these are essentially the HTML tags that will go around your entries. //b=begin e=end $btable = "<table class='sn'> <tbody>"; $btitle = "<tr><td class='sn-title'>"; $etitle = "</td></tr>"; $bdate = "<tr><td class='sn-date'> Posted on:"; $edate = "</td></tr>"; $bpost = "<tr><td class='sn-post'>"; $epost = "</td></tr>"; $etable = "</tbody></table><div><br /></div>"; //Define PHP Date format. Used for the default date form value. $defdate=date("d/m/Y"); //Other notes //The date is automatically set to todays date by using PHP to echo the //variable of defdate. The form action uses this file itself to process the //data. // The If/Else statements decide what is displayed based on whether a HTTP GET // or POST was issued by the browser. GET: If the submit button has not been // pushed -- display form. PUT: Submit button has been pushed -- write data to // text file and display confirmation message. //IF browser does not send a POST request (ie: if submit has not been pressed) //then display the form.... if ($_SERVER['REQUEST_METHOD'] != 'POST'){ //If able to open file do... if ($file) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <style type="text/css"> h2 {text-align: center} </style> <title>Simple News: Post</title> </head> <body> <h2>Simple News: Post An Entry</h2> <form action="<? echo $_SERVER['../admin/PHP_SELF']; ?>" method="post"> <div style="text-align: center"> Title: <input type="text" name="title" /> <br /> Date: <input type="text" name="date" value="<? echo $defdate; ?>" /> <br /> Entry:<br /> <textarea rows="30" cols="80" style="border: 1px solid #666666;" name="post"></textarea> <br /> <input type="submit" value="Add News" /> </div> </form> </body> </html> <? } else //If can not open file complain... echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><html><head><title>Simple News: Error </title></head><body><p>Could not open file. <br /> Permissions??</p></body></html>"; } //ELSE IF browser sends a POST request. Make sure that data was actually //entered into the form and then write that data to the file.... elseif ((isset($_REQUEST["title"])) && (isset($_REQUEST["date"])) && (isset($_REQUEST["post"])) && ($_REQUEST["title"]!="") && ($_REQUEST["date"]!="") && ($_REQUEST["post"]!="")) { //The next few lines are a hacked up way to "add" text to the top of a file. //// The file is already opened in read mode. Read in all the current data //from news.txt. Save this as variable current_data. $current_data = @fread($file, filesize($newsfile)); //Now that we have saved the old data to a variable lets close the file. fclose($file); //Now we reopen the file in write mode. This FIRST blanks the file. Then will //will write the new data followed by the old data to the file. $file = fopen($newsfile, "w"); //Write all of the table variables and the text entered into the form, plus the //text that was already in news.txt to news.txt. The \n is a new line and it //simply make news.txt more beautiful. If it works display success message, if //not display failure message.
//// Fix quotes (') in entries and change any weird //characters (&,<,>,etc) to their html equivalents. Do the same for title and //date. Even though it should not be needed for date. $_REQUEST["post"] = stripslashes(($_REQUEST["post"])); $_REQUEST["date"] = stripslashes(($_REQUEST["date"])); $_REQUEST["title"] = stripslashes(($_REQUEST["title"])); if(fwrite($file,$btable . " " . $btitle . " " . $_REQUEST["title"] . " " . $etitle . " " . $bdate . " " . $_REQUEST["date"] . " " . $edate . " " . $bpost . " " . $_REQUEST["post"] . " " . $epost . " " . $etable . "\n " . $current_data)) echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><html><head><title>Simple News: Entry Added</title></head><body><p>Entry added successfully.<br /> <a href=\"\">Add</a> another.</p></body></html>"; else echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><html><head><title>Simple News: Entry NOT Added!</title></head><body><p>Could not add entry.<br /> Permissions??</p></body></html>"; //Close the file. fclose($file); } //If the browser sent a POST request but the user failed to put data in the //form...spit out this error. else echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><html><head><title>Simple News: Entry NOT Added!</title></head><body><p>Could not add entry. <br /> All the fields in the form are *required*. <br /> Please go back and try again.</p></body></html>"; ?> Then here is this news.txt that is then included: CODE <table class='sn'> <tbody> <tr><td class='sn-title'> Site is up & running </td></tr> <tr><td class='sn-date'> Posted on: 13/02/2007 </td></tr> <tr><td class='sn-post'> Here it is - the official site of the Spring Congress 2007. Please get into the net! </td></tr> </tbody></table><div><br /> And that is practicly the whole script... All you have to do is <? include("news.txt"); ?> somewhere in your page where you want it and it should work....but not here  Does it have to do with css parsing and php include messing it all up???? Thanks man for evrthng..
Reply
Similar Topics
Keywords : layout, assistence, content, area, middle
- A Small Social Networking Site....
as a part of college project (9)
Donate Domains To Bloggers.
My Site (0) I'm planning on starting a site soon that will allow visitors to donate money, which will be
used to purchase domains for bloggers. Bloggers who have a decent existing blog with moderate
traffic can apply for free domains. This is to promote good blogging, expose great bloggers/writers
to a greater audience and is intended for those who are not able to afford a domain. What do you
think? Is this a good idea? Would you apply for a domain? Would you donate for this cause?....
Great Weather Site
Cool weather Site (7) I found this weather site a few days ago and wow. Has some very clear chase cams.
Serverstudios.com ....
Need A Name For A Hosting Site
(5) Ok so i'm thinking about setting up a paid and free hosting site with computing host resaller
plan. but i'm having no luck coming up with a name for the site, evey thing i have tryed it
taken arleady. so i was wonder if i could get some help with picking a name? so dose any body have
any ideas? I dont wont it to be one of those super long domain names. Thanks....
The Reason Why .info Domains Aren't Liked- *scam Site*
http://www.msnliststatus.com/ is a scam! People get sent to it via (2) Hello all! IMPORTANT! If someone on ur MSN logs in, posts:
http://www.yildiztasi.info/list /wink.gif" style="vertical-align:middle" emoid=";)" border="0"
alt="wink.gif" /> Then logs out, be wary. The domain "http://www.yildiztasi.info/list" is a
redirect to http://www.msnliststatus.com/ which is a major scam site, it asks you to login, so you
can see who has blocked you. DO NOT ENTER IN YOUR MSN INFO. If you do, they will be able to
login to your account and take it over! So tell everyone you know NOT to click it and NOT to
enter in your in....
Ideas For An Intranet Site
(1) My university is a complete residential university and is totally LAN connected through out the
campus and the hostels. Already many Intranet sites for services like forums, social networking,
radio service, attendance, downloads, suggestions and mail are in place. I would like to develop a
site on my own. I already got the permission from the authorities and I am promised that if my site
is good then they will host it in their server as an intranet site. But the problem is, I cannot
think of a service for my site. If any one could suggest some services, it would be of....
Which Site Name Do You Prefer?
Sheepeasy or Ramboot (6) I'd just like to know which name you think is better. My site is involved in humorous reviews of
comics, PC Games, general writing. Make sure you vote before reading the rest, as I want this to be
an unbiased opinion. BACKGROUND ----------------- SHEEPEASY - This name originates from way back
when I was 10 and started my first Freewebs site. I made it so me and my friends could post flash
animations without having to undergo bad reviews and scrutiny from other sites such as Newgrounds. I
tried to make this site big; but I was locked into place by loyalty to my frie....
I Finally Got My Site Done!
Yay!!! (15) So after two all nighters I have finally got my website done. I am dead tired.... and I imagine some
of my pages are poorly written for that very reason, but at least I'm finally done!!
For those of you that want to see the finished product: http://2kart.trap17.com I would also
appreciate it if you joined my forum as well, no members yet........ thanks... I would just like
to say: Trap17, I could never have made this with out you... because I'm cheap and I
wouldn't buy paid hosting!....
How To Prevent My Site From Being Hacked?
(5) I have a website on Joomla platform and I am new to programming world..I want to know cautionary
steps that I should take before releasing my site .....
Proxy Website
which is the best proxy site you have ever seen ?? (2) People in all areas are in need of proxy site . this is because let it be in a school or in a
college the network administrator blocks all the entartainment sites and all the social networking
sites like orkut etc. even more youtube is too blocked in many cases. But the superior solution for
these problem is to use a proxy website. The same case lies even among the working people .In work
place too many such websites are blocked so they are pissed off during their free times . To help
this Community You are requested to suggest as many Good and Fast Proxy Websites here....
Highest Paying Site
(0) What kind of website would have the highest pay off in advertising? I currently have a gaming site
and the Pay Per Click (PPC) rates are not too high at all. Becasue of this I was thinking abourt
opening another site, something with higher Pay Per Click ammounts.....
Forum Content
best way to handle Quality Control in forums (0) Another user recently posted an idea based on users submitting quality articles to an engine that
populates additional pages to a website thus having the user community contribute to the ever
expanding site (set up like an online directory or WIKI etc.). Sure it's been done but it's
still a good thing when you have an idea that might gain momentum because of it's design in the
first place. Kind of like trap17 asking users to post in exchange for something they value. This is
a good arrangement because there is a level of respect among users and the quality is....
Mp3-player
How to put it on my site? (1) Hello, I make some music and would like to share it with friends so we can make really weard music
together /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> I tried
myspace, but the songs are to big, and you can only put three at a time. Can anyone tell me how to
put a musicplayer on my site? I have an emac osX, I'm using NVU to make up my site and I'm
very very fresh about everything concerning creating websites. Help me and my friends who are very
far away to make crazy music please!....
Toufee.com - Create Free Flash Movies Online
very good site (3) Toufee.com allows you to create free Adobe Flash movies online. There are no ads on your movies
and you can use a wide variety of features to enhance your presentations like text effects and
speech-engines that read your text aloud. In fact, I still to get what the catch is. Here's
what you can do free: http://www.toufee.com/demo/create-flash.html And here is a test signature
I created using the service: http://tinyurl.com/ysosxj/flash.swf It must have taken me all of
ten to twenty minutes to create that once I knew what I wanted to do and how to do it. Th....
Download Songs From Mykazaagold.com
legal song downloading site (4) Hi guys, how is it going, just stopping by to tell you guys if you want to download the latest songs
in hip hop, R&B, jazz, Rap, Country, trance, techno, alternative and rock music, please go to
http://www.mykazaagold.com and signup today. I signed up yesterday and never stop downloading my
favorite songs and burning them on my CD and transferring to my Portable media player....
Credits For Good Site Design
I will give anywhere from 20-30 credits for a good design (7) I'm in college right now and i don't have way to much time. The free time i have i spend on
trap, play my drums, make movies for my other site, and hang out with friends. Although i love HTML,
CSS, PHP and all that coding i just don't have enough time to build, design, and test a website.
This is where someone here on trap comes in. I will give someone, depending on how they meet my
requirements and such hosting credits. If you meet them ALL i will give you 40 credits. That's
over a months worth. You can also put a logo/banner on the bottom of the page w....
My Site-i Think Its Finished
any tips? (5) ok guys, i think its working now. please visit and write your opinion... http://www.allsounds.us.to
p.s. lessons arent uploaded yet....
I Need Some Advice For My Site.
(8) Ok, Since a new year is coming around, i would like to give my site a bit more spunk to it, meaning
give more things for people to do, for people to look at, for things that people can interact with
the site. I dont mean like a games section, i mean like things that i should add to the site. I
allready plan on adding a Website Review Service, an awards ceremony for websites (where people vote
on which site they like the best) , i plan on bringing in a new MySpace thing for the site, to
attract Harry Potter fans from myspace. The myspace script i have, i might just take....
Web Site Designing I Dont Know Any
help (2) ever since i started building web site i have never imagen myself creating templetes i dont know
that some template images are being hold and protected by the owners who run the site then i
continue to depend on a ready free tamplete insead to creat mine bue iam now happier because i will
soon start creating my own soon see some designs i did for my "GEORGEN' and other things i will
used in the creation so that my site will be good in terms of any thing so the reason i join thise
forum is to get started when the time comes....
Who Has Joomla-smf Site?
help with bridge (3) who has joomla nd smf forum connected with bridge?....
Opaque, Biskie's Site Keeps Getting Hacked!
And I know exactly who did it. (9) It's never anything I can't repair with a simple rebuild of my homepage, but it's
annoying. First, it was a guy named Cecen and I PMed you about him. Now, it's
http://www.spyhackerz.com/ - they're apparently having hacking tournaments? For the rest of you
guys, is there anything I can personally do to stop these attacks from happening? It's annoying
to know that while I'm away, people are utilizing free reign over my site for FUN. I put work
into this; it isn't fair that they should try to destroy that. These guys are apparently Turkish
....
How To Host A Site On My Computer?
I am just wondering... (6) I am wondering, how can I host a site at my place... For example, I have a fix IP adress and what
next? - How to install PHP on it - How to install mySQL bases - Is buying a domain only way to get
one...? Please..... help if you can... At laboratory in my faculty, we have a high speed internet,
and I would like to try to host a site about laboratory, ... To have a forum, and a chat........
Microsoft France Site Defaced,
Microsoft.com Next? A Major embarassment for Microsoft (20) Microsoft France site Defaced, Defacers say Microsoft.com Site is next site to be
defaced/cracked! Can you beleave the arrogancy of this crackers, to say that the next site they
are going to crack/deface is the www.microsoft.com site, this is really a major embaressement for
microsoft, especially when microsoft is at war with google. Just imagine, if the microsoft site can
be hacked, which is supose not to happen, never, the same trust for their programs will be at stake,
at least for many millions of people that are paying atention to technology and security as on....
Youtube.com
The best site for clips. (20) I think youtube.com is a really good site. It has everything from anime,comedy,scary, and more. I
have a account on the site. And you can also upload your own movies or clips to the site. So it is
like everyone has a part in the site. Makes me feel good. /biggrin.gif"
style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> So if you have the time go
to www.youtube.com Tell me what you think /tongue.gif" style="vertical-align:middle" emoid=":P"
border="0" alt="tongue.gif" />....
10 Reasons Why People Don't Visit Your Web Site
(26) QUOTE 1. You don't offer free original content. It's important to give your visitors
information they can't find any- where else. If you're the only source for a certain type of
information, people will flock to your web site. 2. You don't offer free software. Most people
like to find good deals on software for their computers. If the software is free, that is even
better. 3. You don't offer a free contest or sweepstakes. It's a fact, people like to win
things. If you can fulfill that need, people will stop by to visit. 4. You don....
I Hate Site Builders.
Mainly things like piczo and freewebs. (43) Loads of people i know, who have very little HTML knowledge, use Piczo . And now, anyone with one
of these sites, think they have the best websites ever! All it usually is pictures and text
randomly thrown on a page, with very-hard-to-navigate links. Freewebs is basically the same. I'm
not sure about my space, I think it uses HTML, but I hate myspace websites. Anyways, back on the
point, does anyone else know people who use piczo and think they are the best website builders in
the world? I tried to teach one how to HTML, got stuck on tags /dry.gif" style="ve....
Increasing Traffic To My Site
any suggestions how (11) Hi there, First of all this topic is maybe in wrong section but i didnt know where to start it. I
am building now my own website but i hear that lot of people have problems to send people to theit
website. Does anyone have some suggestions for me to get more traffic to my website? Thanks Topic
title and description are VERY important. Make your topic title as though it summarizes the total of
your post or key focus of your post with much detailed as possible. ....
Downloading Content Using Rapidshare!
illegal or not? (11) Hi. I recently visited a friend of mine, who's older brother downloads pornographic movies on
his computer. He told me he visits sites that use rapidshare, and he downloads his movies that way.
I think it may be illegal since that website has links to download lots of movies, but I'm not
sure. It just seems that it may be illegal, because when was the last time you could download so
many full movies for free? I'm sorry if I did something against these forum rules, but my
brother-in-law said i could use this site to seek help. I really care for my friend a lot....
How Do You Start Making Your Site?
(20) can anyone tell me how to start making your site like were do i go to see howmany days i have and
what im suppose to do to start makin it basicly....if u kno plz reply /blink.gif' border='0'
style='vertical-align:middle' alt='blink.gif' /> Moving from General Talk to Website
Discussion > General . Please search the forum before making a new topic. This could be viewed as
unwilling to do the work but expecting a quick, easy answer. ....
Best Rpg Maker Site Ever
(1) hey yall if you all into rm2k/3/xp what is your favorite site ever mine well is mine because im very
good at the program and I make tons and tons of tutorials for the systems but ruby coding is da
hardest waits of my time. So whats your favourite!....
Looking for layout, assistence, content, area, middle
|
|
Searching Video's for layout, assistence, content, area, middle
|
advertisement
|
|