Jump to content


  • Posts

  • Joined

  • Last visited


Everything posted by Gast

  1. It is nice, but I dont think the buttons work. They are too large as mcspringer said and I dont think the font is very professional. I would perhaps make some nicer CSS style buttons rather than using image. The same goes for the font for the header, it doesnt really look all that professional.
  2. Hi there, it is a good idea, people will always like free image hosting sites, and yours is simple and quick, unlike Photobucket (in my opinion). The homepage looks good but the ads look kinda out of place, you need something to finish of the page underneath the black.
  3. In all honesty, the website had been edited by someone else that caused both those errors and the links at the bottom. I will be having words! Thanks though.
  4. I'm assuming that SB3.png is the light blue background column: <div style="background-image:url("SB3.png"); height:600px; height:100px; padding: 10px; text-align:center"> .: Main :. <!-- Your links go here --> </div> Also, your random background PHP script. Wouldnt it have been better to just name the background image files "SB1_1.png", "SB1_2.png", etc. Then simply have: background=SB1_<?php echo $rand; ?>.png
  5. Hey there, if you are familiar with Javascript (even if you are not, you will not find it that difficult as you know PHP), then you should pick up AJAX pretty well. Take a look at the link in my signature to get started with it. When you work it out, you should literally be able to build it as you would any other application, but instead of using page refreshes, use AJAX. Hope that helps.
  6. Hi there, this is one of my latest CSS sites that I created at work. Just wanted to know what people like about it and maybe any improvements. Its definately one of my favourites that I have made and the best of the few recent CSS-only sites that I have created. http://www.fernleigh.net Cheers Niall
  7. No offence but it looks like a FPJ (Front Page Job). If it wasn't, then you need to work on your design. The buttons like steelmanronald06 said are too far apart and these days there is no reason to have those horrible images as the buttons, you need to use CSS. The site is generally plain, with not much too it and also, the site cant be working too well because the only person to have bought any pixels is the website itself :S
  8. One piece of advice: don't use tables. Also it isnt a good idea having a background image and trying to line things up exactly, you would be better off having a <div> and styling the CSS so you get the blue column behind it.
  9. Can I ask why the footer is being positioned absolutely. And maybe a link to see more of the picture if possible?
  10. I dont know of any, but if you do manage to find out, let me know because I have up looking for this a while ago. It must be possible hence the screen captures on YouTube.
  11. [code]<?php $mysqldate = date("H:i:s", strtotime($row['your_mysql_date'])); $newdate = date("H:", strtotime($row['your_mysql_date'])) . (date("i:", strtotime($row['your_mysql_date'])) -30) . date("s", strtotime($row['your_mysql_date'])); echo $newdate; ?>[/code] Try that.
  12. I want to be able to destroy a session from another user, i.e. An administrator can log other users out. Is it possible to use the session ID to do this as i have this stored?
  13. [quote author=crashmaster link=topic=101603.msg402560#msg402560 date=1153750268] I want to sorry :) BUt Username and Password I've posted isnt correct.. I was looking to another database :D So If you want you can login there : admin | admin Sorry... :P [quote]Your naviagation is made of images, which isn't need instead you could produce the same result with CSS. [/quote] I am not sure that i understand this sentence... IF I can use CSSS insted of Images...Tell me how : ? To remove square from all images, but not from main [ [square]blacksun] ?? I will try :) But all FUN is that we will sell t-shirts... designs of T-shirts will create I and 2 my friends... And all friends are studying art school, deisgn, interier design..and nobody had never said: Remove thiis squares :D You dont like my self-done buttons ?? If text will not be bold...It will lose in background...and It doesnt like very well...after a few minutes you will fill pain in your eyes.. Why dont you like TimeNewRomans??? [/quote] It is nice, but like wildteen88 said, you should lose the Times New Roman font. Why? Because it is horrible. You should only really stick to Arial, Verdana, Tahoma or maybe Trebuchet MS. You should also make the left navigation nicer.
  14. [quote author=hitman6003 link=topic=100925.msg399003#msg399003 date=1153184292] You probably did not create a true excel file...probably a csv that excel opened and was able to manipulate.  I don't think it's possible to create a true MS word file without using COM.  You can write .txt and I think .rtf files in straight text which word will manipulate.  The rtf (rich text format, which is what wordpad produces) MS Word will work with, and you can apply formatting to the text...bold, italic, and such. [/quote] I might have to go with the RTF option as a customer wants basically to be able to get a script to generate letters that he can "mail merge" in Word. Also, about the Excel file, it wasn't a CSV file, it was an XLS file. Basically if you write to one using fwrite() etc, you can use the tab character "\t" to move to each cell. I will post the script when I find it in a minute out of interest.
  15. Does anyone know if it is possible? I understand you need the COM extension on a Microsoft Server, but is there a way to get it to work on a Linux system? Also, can't you just use fwrite()? I have made an Excel document using only PHP's functions so maybe it is possible with Word?
  16. I didnt think phpBB uses a Smarty like template system. You wont be able to do that in phpBB. How about adding another template "variable" such as {MY_NEW_PAGE} and then replace this with the connts of a page using file_get_contents() ?
  17. The original URL or the one re-written with mod_rewrite? Anyway, you can use $_SERVER['PHP_SELF'] to get the current page name. Then you can split it with explode() by the /'s.
  18. Like GingerRobot said above, if you ban an ISP you cna ban thousands of people who havent even been to your website. If they visit they could then have been banned and have not done anything.
  19. Not really. It is called a captcha and can be used as long as you have the GD library extension installed with PHP (most installations do by default). The code for this is below. In a file called "captcha.php" which you include where you want to display the actual image put this code: [code]<?php $IMGVER_TempString = ""; for($i=1; $i<=4; $i++) { $IMGVER_TempString .= GetRandomChar(); } $_SESSION["IMGVER_RndText"] = $IMGVER_TempString; function GetRandomChar() { mt_srand((double)microtime()*1000000); $IMGVER_RandVal = mt_rand(1,3); switch ($IMGVER_RandVal) { case 1: $IMGVER_RandVal = mt_rand(97, 122); break; case 2: $IMGVER_RandVal = mt_rand(48, 57); break; case 3: $IMGVER_RandVal = mt_rand(65, 90); break; } return chr($IMGVER_RandVal); } echo '<img src="img.php?'.SID.'" border="0" />'; ?>[/code] Then you will need another file called "img.php" which generates the random text on the image: [code]<?php $IMGVER_IMAGE = imagecreate(110,40); $IMGVER_COLOR_BLACK = imagecolorallocate($IMGVER_IMAGE, 0, 0, 0); $IMGVER_COLOR_WHITE = imagecolorallocate($IMGVER_IMAGE, 255, 255, 255); imagefill($IMGVER_IMAGE, 0, 0, $IMGVER_COLOR_BLACK); session_start(); $IMGVER_RandomText = $_SESSION["IMGVER_RndText"]; imagechar($IMGVER_IMAGE, 4, 20, 13, $IMGVER_RandomText[0] ,$IMGVER_COLOR_WHITE); imagechar($IMGVER_IMAGE, 5, 40, 13, $IMGVER_RandomText[1] ,$IMGVER_COLOR_WHITE); imagechar($IMGVER_IMAGE, 3, 60, 13, $IMGVER_RandomText[2] ,$IMGVER_COLOR_WHITE); imagechar($IMGVER_IMAGE, 4, 80, 13, $IMGVER_RandomText[3] ,$IMGVER_COLOR_WHITE); header("Content-type: image/jpeg"); imagejpeg($IMGVER_IMAGE); ?>[/code] Then on your form when you test if the form has been submitted also check the captcha matches a text field that you have placed next to it (in this case called "captchaTextField"): [code]<?php if(isset($_POST['submitButton'])) { if($_POST['captchaTextField'] == $_SESSION['IMGVER_RndText']) { // Handle your form here... } } ?>[/code]
  20. You can do if you want to, by putting this code at the top of the page: [code]<?php // Array of all IPs blocked, you can get this from a database if you wish $ips = array("", "123.45.678.90", ""); if(in_array($_SERVER['REMOTE_ADDR'], $ips)) { print("You have been banned from this website and are unable to view it."); exit(); } ?>[/code]
  21. OK. You basically have to get your data from the database and echo it in an HTML select menu. Like this: [code]<?php // connect to your database here $conn = mysql_connect("localhost", "dbuser", "dbpass"); mysql_select_db("dbname", $conn); // Make the query $sql = mysql_query("SELECT * FROM players"); // Start the html select menu $html = '"<select name="player_menu" id="player_menu">"; // Echo the results in a loop and add each option while($row = mysql_fetch_assoc($sql)) {     $html .= '<option value="'.$row['player_id'].'">'.$row['player_name'].'</option>\n'; } // End the html select menu $html .= '</select>'; // Echo the select menu echo $html; ?>[/code] You may need to change some table/field names but it should work. :) Hope that helps, Niall
  22. Yep, just make your query, in this case selecting all records from the database and "mysql_num_rows()" returns the number of results. Also, I would recommend taking a look at phpfreak's tutorial: http://www.phpfreaks.com/tutorials/73/0.php
  23. You have the "$row=mysql_fetch_array($result2);" part twice. This may be why. You only need it inside the while() loop.
  24. Gast


    Wow thanks Ken, I didnt know that.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.