ToonMariner
Members-
Posts
3,342 -
Joined
-
Last visited
Everything posted by ToonMariner
-
its an apache setting - it looks for files in a certain order - normally index.html index.htm index.php but your server clearly has index.php You may be able to alter this in a .htaccess file (not sure what the flag u need is) other wise its asking your hosts to help out adn tell you haw to achive your goal. You could always remove your index.php file or rename it index2.php - if you have coded robustly this should be easy to achieve and updateable for the rest of the site.
-
I think it may help you if you simply had a separate dabase table of images each with their own id. When you grab teh cat-id of the file I assukme you are grabbing that from a database. If that is the case then on teh table that stores teh cat_id information add a field to store the id of teh image that should be used. then you coudl do this. [code] <?php $pic_id = ($file->file_picid); $qry = "SELECT * FROM `images` WHERE `img_id` = " . $pic_id .""; $qry = mysql_query($qry); $row = mysql_fetch_assoc($qry); echo "<img src=\"" . $row['img_path'] . "\" title=\"GEN\" />"; ?> [/code] It may involve one more query but very extenable. OR if you trust people to do the right thing same thing without the table for images. In the table that stores the cat_id again another field just to hold a number. save the different images as something like 'mods_1.jpg' then all you'd need is: [code] <?php $pic_id = ($file->file_picid); echo "<img src=\"../images_site/mods_" . $pic_id . ".jpg\" title=\"GEN\" />"; ?> [/code]
-
[url=http://uk.php.net/manual/en/function.mkdir.php]http://uk.php.net/manual/en/function.mkdir.php[/url] if you are having trouble make sure that open_basedir is not set in your php.ini file and maybe safe_mode too (can't remeber what that does but I do remember it can be significant). other wise post the errors from teh script.
-
normally browsers will ignore background images when printing. Although I notice you use a white image as a backgound - why? you have this image that is the size of the page - you don't need it - it doesn't make the div it is the backgorund maintain a size - backgounds just fill the space available if the image is bigger than teh div it just cuts off. img00003 and img00004 are the same - delete 00004 and just use 00003 twice. Printing from a browser is different for most pages. normally floated elements are ignored completely. Not sure about absolute positioning and what it deos with them. I personally would look into to creating a pdf on the - it looks liek you are producing a certificate - creating a pdf will ensure no matter what browser they use tehy will all get the same result. - and they can save the to their own pc if they like.
-
merebel - firstly you need to produce much better html than what that script does! go back and look at the source html of your page and then edit your php script to close the relvant tags (like td ) give the document a start and end html tag. try and make the html generated fairly easy to read. Once you have doen that I would be more than appy to look at your problme but you MUST get that html code sorted first - get that right you will probably fix your issues. Use teh w3c validation tool... [url=http://validator.w3.org/]http://validator.w3.org/[/url]
-
you can't use numbers for html vars
-
brim - this individual has lots of work to do before we can even begin to help them.
-
well if you can edit that script then you strip out the rubbish.
-
if you want the two side divs to be 100% high then you are out of luck. try google for faux columns. If its just the page you want to be !00% high the just have this in your style sheet. html { height: 100% } I often use 101% so that Firefox always has the scroll bar other wise you get that annoying litt;le shift left when a page is longer than the view pane.
-
well you can only remove that information if it is processed by a server side script like php or asp other wise what you get is what you get.
-
whoa there lesley. try as best you can to at least produce valid html. you don't have a starting html tag there sonny. many of your tags don't have closing tags etc etc. There is a lot of work for you there sonny have fun.
-
i'd use a 90% width (not tables for layout though) site and make you pics a maximum 600px wide. that should ensure you'll be ok with any monitor (I thin its ok to ignore the old 640 x 400 monitors these days.)
-
css - [url=http://iconico.com/CSSScrollbar/]http://iconico.com/CSSScrollbar/[/url]
-
or just $sql = "UPDATE `users` SET `points` = `points` + 20000"; mysql_query($sql); the above may fail as you may be restricted to teh number of queries you can run in one script - this query will do the lot all at once. To show them all you need [code] <?php require('../connect.php'); $sql = "SELECT * FROM `users`"; $res = mysql_query($sql); while ($row = mysql_fetch_assoc($res)) { echo $row[points] . "<br />"; } ?> [/code] That while statement is a prime candidate for putting all that info into a table - that way you can see the username etc. etc. (you will have to echo out each field in teh table - not just teh points).
-
[code]depends on how you process your form. if its just a case of you printing out each field in the form and its value then you could try: [code] $form_data = NULL: foreach($_POST as $key => $val); { if (!empty($val)) { $form_data .= $key . ": " . $val . "\r\n"; } } [/code] then just email yourslef the $form_data string. [/code]
-
yep - you need to the SMTP yalue in your php.ini file. This will just be the smtp server of your isp at home. so in your php.ini file find this line SMTP = localhost and change local host to what ever you need. mine is SMTP = smtp.blueyonder.co.uk
-
nope the width of the parent container for the form is not explicitly defined simply given an auto margin for the right (this has to be so that content beyond the height of the image will fill the space under it.) I know safari has issue with this but just wondered if anyone had managed to overcome them.
-
ok guys - I have never had to do this before - never needed to use large media and indeed thought bad of using it in a site but now I have to. Client has an mp4 (wants that so that people can put on ipod without any other conversion) I have encoded the original using videora but appreciate there will be other converters out there. Anyway. I am using strict xhtml so the embed tag is can't be used - ist the object. This is what I have now: [code] <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="240" codebase="http://www.apple.com/qtactivex/qtplugin.cab"> <param name="src" value="/userfiles/media/wn.mp4"> <param name="autoplay" value="false"> <param name="controller" value="true"> <param name="loop" value="false"> </object> [/code] copied form various places but the page simple shows a quick time icon with a big question mark - I have googled this and it seems most people get that when qt is trying to play flash files but not found much that helps. If anyone can point out some glaring error in the html that i need to change please tell me straight away. Any other comments on what needs to be done to get this to work would be a god send. Thanks in advance guys.. PS here is the page it its on. [url=http://waringnetts.contrastcompany.co.uk/showreel]http://waringnetts.contrastcompany.co.uk/showreel[/url]
-
IE 7 has better png support... could you post a screen shot fo the site and describe how it differs in print? i.e. if print is ignoring the transparnecy what color is it printing?
-
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO use css for this in your css put this html { width: 100%; } body { margin: 0px auto; } if you give your body a %width or a fixed width it will be centered in your page.
-
NOPE!!!! lol they are rendered by the browsers - you can use style teh button via setting class of teh input and doing yoru magic in teh css but the button stays where teh browsers wants to put it. (unless you are a js wiz - then you could hide the file input use js to show a button and a text box. the button opens up a file explorer and the text box takes teh path value. then set teh value of teh hidden file input to that)
-
AHHH sorry didn't pick this up before. I think it is IE that when you use the image input type it transfers teh co-ordinates you cliked on teh image rather than a true value. put your method back to post and then use print_r($_POST); to view all the info sent - if you submit the page in FF you should get a different set of values for the image buttons than IE. Can I suggest you go and use a standard submit button? style it perhaps but use a standard button - some browsers do funny things to image inputs (I believe safari just replaces them with a blank apple glass button).
-
help with displaying a $_session_register
ToonMariner replied to luvz2drv's topic in PHP Coding Help
echo "Wrong Username or Password <META HTTP-EQUIV=\"refresh\" content=\"2; URL=index.php\"> "; remember meta tags shoudl go in the head section of your site. as for register just use this if($count==1){ // Register $myusername, $mypassword and redirect to file "index.php" $_SESSION['myusername'] = $myusername; $_SESSION['mypassword'] = $mypassword; header("location:index.php"); -
the easiest method woul dbe to use a cookie that stores a delimited string of all the threads the users has visited. simply explode that string and use array_keys() like so: [code] $ids = explode('|',$_COOKIE['threads']); if (array_keys($ids, $viewing_thread_id)) { // seen it. } else { //mark New } [/code] this board probably uses something similar. If you choose not to have cookies then perhaps you could implement the same process in a database table.
-
i have found my problem, quick soloution needed
ToonMariner replied to simbawoomba's topic in PHP Coding Help
have you managed to confuse php with asp or js? templateList.value is a construct from more traditional oop languages.