Jump to content

Gast

Members
  • Posts

    131
  • Joined

  • Last visited

    Never

Posts posted by Gast

  1. Hi Jeff,

    As usual your website designs are really nice. I like the navigation but I feel the logo (the jcombs.net) part should be a lot larger. I also dont really like the little blue flower bullet things next to "Welcome" and "Recent Work".

    It's nice, but it just feels a little plain.

    Cheers

    Niall
  2. Hmmmm... I dont think the two tall left and right hand columns work, why not make the top cell (the one with the logo in 760 pixels in length and have the one below it have all three in it, like this:

    +------------------+
    |                          |
    +---+---------+----+
    |    |            |    |
    |    |            |    |
    |    |            |    |
    |    |            |    |
    |    |            |    |
    |    |            |    |
    +---+---------+----+

    Also, why is the login form in Flash?
  3. A few things:

    [list]
    [*]Lose the bouncing marquee at the bottom of the page. It looks ugly.
    [*]Something could be made of the header, the logo is rather large. Perhaps combine it with the photos underneath to make it a bit more catching?
    [*]The main links along the top (Home, About Us, News, etc.) could be made a little nicer than just text, perhaps buttons or CSS tabs?
    [*]You need some padding on the Entry Forms part on the left.
    [*]On the left and the right columns, the black doesnt really work, it should be a little softer such as #CCCCCC or #EEEEEE and darker fonts.
    [*]You have used a few different fonts and font colours, try and limit to to around 3 (maybe the yellow and blue only).
    [/list]

    Hope that helps.

    Niall
  4. Well I don't mean to be mean, but it is horrible. Don't take that as an insult though, not everyone is gifted at design and it is sometimes hard to get right. From what I can see as a PHP programmer, your actual code is great, but most people who will play it dont give a damn what your code is like if the site looks horrible, which may be why people are coming in.

    Let me start giving you some ideas:

    [list]
    [*]Lose the background image. If you want to use a background image, make it a subtle fade from one colour to another, not a pattern like that. Why not try a fade from dark red to red?
    [*]The logo is good, but I dont really like the shape and it is using up a lot of unncessary space. Keep it as it is, but why not use a rounded-rectangle instead of the oval (and perhaps a little smaller), maybe 150 height?
    [*]You have a nice width made by the buttons at the top (Announcements, Rankings, etc.) so why not keep the rest of the site in line with that? Have two columns, with the content you already have (ie. the login form in the small left column and the main content on the right).
    [*]Don't use the standard HTML table "border" property. Use CSS instead ("<table style="border:1px solid #FFFFFF">")[/list]

    Maybe have a go at changing a few things and we can see if anything else can be done!

    Niall
  5. Maybe check file permissions for file uploads? (As in chmod to 777), I can't see why that would change. Other than that, if they have re-installed PHP then their php.ini file might have changed.

    There are many file-upload related settings, including the actual "file_upload" setting which may even be turned off!
  6. I have matched a string inside another using strpos(). I want to then get 15 or so characters from both the left and right of the string, so if I was matching the word "strpos" in this sentence it would produce the following:

    "... another using [b]strpos[/b](). I want to t..."

    If that makes sense. I have tried using substr but it didnt really work :)

    TIA

    Niall
  7. [!--quoteo(post=365400:date=Apr 16 2006, 10:10 PM:name=birdie)--][div class=\'quotetop\']QUOTE(birdie @ Apr 16 2006, 10:10 PM) [snapback]365400[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    hi, i have phpnuke and i have attempted to move all of the tables from 1 database to another. but 1 major problem has occured. timestamps are completely off the wall. for example; apparently my forum begun at the time of epoch.

    please, how can i fix this?
    [/quote]

    Check you have the date format right and make sure the forum start date actually has a value.
  8. I have a simple page system for a content management system where you can make a page with the parent id of 0 (ie. a top level page), and then make other pages underneath using the parent page's ID as that page's parent id (if that make sense). This is what I mean:

    Page 1 (parent id: 0, id: 1)
    [blockquote]Page 2 (parent id: 1, id: 2)[/blockquote]
    [blockquote]Page 3 (parent id: 1, id: 3)[/blockquote]
    [blockquote]Page 4 (parent id: 1, id: 4)[/blockquote]
    Page 5 (parent id: 0, id: 5)
    Page 6 (parent id: 0, id: 6)
    [blockquote]Page 7 (parent id: 6, id: 7)[/blockquote]
    [blockquote]Page 8 (parent id: 6, id: 8)[/blockquote]
    [blockquote][blockquote]Page 9 (parent id: 8, id: 9)[/blockquote][/blockquote]
    [blockquote]Page 10 (parent id: 6, id: 10)[/blockquote]
    Page 11 (parent id: 0, id: 11)

    Like that for example. Now each page is stored in the same table in the database. I can fetch all the results easily, by fetching all pages with the parent of 0 to display differently as they are top level pages, and then inside the while() loop used for that do another while() loop for each other page.

    However I don't want to do loads of loops inside each other as I dont want to limit the amount of levels a page can go down. Is there a way to just fetch all pages under the right parents in one go?

    TIA

    Niall
  9. [!--quoteo(post=364338:date=Apr 13 2006, 11:12 AM:name=wisewood)--][div class=\'quotetop\']QUOTE(wisewood @ Apr 13 2006, 11:12 AM) [snapback]364338[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    I created something the same just last week. This is pretty much what i did.

    My table has a field which is updated with 1 whenever a message is read... then in the inbox i have something like this;

    if($read<1) {$image="<img src=images/unread.jpg>"} else {$image="<img src=images/read.jpg>"}

    For mine, unread is an illuminated lighbulb, and read is not illuminiated. I didnt do anything with sessions
    [/quote]

    Cool, thanks. :)
  10. For a web project I am working on, I need to have a messaging system, pretty much like any PM system on a forum. I dont want a forum however...

    I can manage the sending and storing of messages in the database. How would I get te system to show new messages, such as in bold or highlighted, or with a small image when they havent read it? Would it be as simple as having a field in the database tat is set to 0 to start with (as in not read) and they view it, set it to 1 (as in read)? Would there need to be anything done with sessions?

    TIA

    Niall
  11. Of course:

    [code]#profileLoadingScreen {
        position: absolute;
        font-size: 10px;
        display: none;
        width: 250px;
        height: 125px;
        padding: 8px;
        z-index: 100;
        left: 287px;
        top: 1600px;
        border: 1px solid #999999;
        background-color: #EEEEEE;
        filter: progid:DXImageTransform.Microsoft.DropShadow(color="#CCCCCC", OffX=2, OffY=2)
    }[/code]

    At a later date (after pressing the submit button) the display style attribute is changed to block to make it visible. Over some form elements (higher up the page) it shows the correctly.
  12. I have a problem that needs fixing desperately:

    [img src=\"http://www.hostperfect.co.uk/zindex.jpg\" border=\"0\" alt=\"IPB Image\" /]

    I know it is something to do with the z-index and positioning and have tried a few hacks but to no avail. what is also strange is that on certain pages, it displays fine over the top of form elements, but not this one, as it has many form elements, around 15.

    Can anyone help?
  13. [!--quoteo(post=358884:date=Mar 27 2006, 02:56 PM:name=playaz)--][div class=\'quotetop\']QUOTE(playaz @ Mar 27 2006, 02:56 PM) [snapback]358884[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    Hi guys,

    I have created a simple form and jazzed up the appearance, it looks fine in IE but Firefox renders the <fieldset> tag differently and looks kinda ugly :(

    Can anyone suggest a way around this, I like how IE renders it and want a similar look.

    Thanks in advance
    [/quote]

    If you mean that the legend part is curved in IE but square in Firefox, then the only way to sort this out is to use images. Yeah, it might be the easiest way but if you really want it to be curved in all browsers, then screen shot the IE legend.
  14. [!--quoteo(post=358079:date=Mar 24 2006, 10:28 PM:name=ospring87)--][div class=\'quotetop\']QUOTE(ospring87 @ Mar 24 2006, 10:28 PM) [snapback]358079[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    Any comments on my site: [a href=\"http://anetworklive.com\" target=\"_blank\"]http://anetworklive.com[/a] would be appreciated. We are a site about the show Big Brother and are looking into interactive ways for fans of the show to get the full experience. Any ways we could become more interactive or enhance our RSS feeds would also be appreciated.
    [/quote]

    Do you want critique on the design?
  15. [!--quoteo(post=358318:date=Mar 25 2006, 06:28 PM:name=Orphy)--][div class=\'quotetop\']QUOTE(Orphy @ Mar 25 2006, 06:28 PM) [snapback]358318[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    Thank you swat, I will fix this and see what happens but before that I am getting error on "echo" line.

    Is that how it supposed to be given waht I want as mentioned above. I can follow logic but not syntax.
    [/quote]

    There are a couple of errors I can see:

    [code]<?php
    if ($choice == request) {
    // The above line may need to read
    // either "$request" or "'request'"

    echo "<img src= "http://ichart.finance.yahoo.com/z?s=""$search""&t=1y&q=c&l=on&z=m&a=v&p=s/>""
    // This line should be:
    // echo "<img src=\"http://ichart.finance.yahoo.com/z?s=".$search."&t=1y&q=c&l=on&z=m&a=v&p=s\" />";

    };
    ?>[/code]
  16. [!--quoteo(post=358238:date=Mar 25 2006, 04:03 PM:name=madame guillotine)--][div class=\'quotetop\']QUOTE(madame guillotine @ Mar 25 2006, 04:03 PM) [snapback]358238[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    On my sites, I get random errors. Okay, let me explain this a bit better. All along my many websites, randomly, scripts just spit out errors. I can refresh once sometimes and they go back to normal, or sometimes I can refresh 20 times and they still don't fox themselves. And it's never the same script, they just error randomly. If's always a guessing game to see which one, but it's always one. My company says it's something with my files. But, I'm not doing anything differently from others who have sites working fine. I just want to understand what the errors are related to so that I can see about fixing them (or moving hosting companies).

    These are some of the errors that crop up, just a sample of two of the scripts that mess up. The others are generally the same with a few differences.

    [code]Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 39

    Warning: main(http://www.morbid-romantic.net/calendar/calendar.php): failed to open stream: Permission denied in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 39

    Warning: main(): Failed opening 'http://www.morbid-romantic.net/calendar/calendar.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 39

    Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 40

    Warning: main(http://www.morbid-romantic.net/calendar/list.php): failed to open stream: Permission denied in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 40

    Warning: main(): Failed opening 'http://www.morbid-romantic.net/calendar/list.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/morbid/public_html/blog/wp-content/themes/default/footer.php on line 40[/code]

    [code]Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/morbid/public_html/blog/wp-content/themes/default/header.php on line 88

    Warning: file(http://www.baptism-of-blood.net/random.txt): failed to open stream: Permission denied in /home/morbid/public_html/blog/wp-content/themes/default/header.php on line 88[/code]
    [/quote]


    The file() error will probably be because the folder or file used has not got chmod settings of 777. You should also set error_reporting to 0 at the top of the page to stop these errors appearing when visitors are online.
  17. [!--quoteo(post=358304:date=Mar 25 2006, 06:10 PM:name=eXtaZa)--][div class=\'quotetop\']QUOTE(eXtaZa @ Mar 25 2006, 06:10 PM) [snapback]358304[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    Hello,
    I want to check if the user clicked the back button,
    I mean that I want to check if the user was back some way, and to show him message if he done it.
    How can I do that?

    thanks.
    [/quote]

    It isnt directly possible. Take a look here: [a href=\"http://www.faqts.com/knowledge_base/view.phtml/aid/5881/fid/145\" target=\"_blank\"]http://www.faqts.com/knowledge_base/view.p...id/5881/fid/145[/a]
  18. [!--quoteo(post=358109:date=Mar 25 2006, 12:50 AM:name=Loathorhealer)--][div class=\'quotetop\']QUOTE(Loathorhealer @ Mar 25 2006, 12:50 AM) [snapback]358109[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    [code] if ($logged_in == 1) {
        echo 'welcome back '.$_SESSION['username'].'';
    $query = sprintf("SELECT firstname, lastname FROM users WHERE ("$logged_in == 1")");
    $result = mysql_query($query);
    if (!$result) {
       $message  = 'Invalid query: ' . mysql_error() . "\n";
       $message .= 'Whole query: ' . $query;
       die($message);
    }

    while ($row = mysql_fetch_field($result)) {
       echo $row['firstname'];
       echo $row['lastname'];
    }
    mysql_free_result($result);[/code]
    okay. I get this error

    [code]Parse error: syntax error, unexpected T_VARIABLE in /home/.navy/loathor/squaresyndicate.com/welcome.php on line 13[/code]

    and I know its becuase of the $logged_in <-- deal. but I need it to display the firstname and the lastname of the person Just logged in. can you help?
    [/quote]

    What is actually stored in the variable $logged_in?
  19. [!--quoteo(post=358146:date=Mar 25 2006, 05:39 AM:name=brendanf)--][div class=\'quotetop\']QUOTE(brendanf @ Mar 25 2006, 05:39 AM) [snapback]358146[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    Hi, of course I am a newbie to PHP but I appreciate any help.

    I'm looking to extract information from a website that can be incorportated into my website. Basically, at [a href=\"http://inventory.overture.com/d/searchinventory/suggestion/\" target=\"_blank\"]http://inventory.overture.com/d/searchinventory/suggestion/[/a] it allows you to see how many times a keyword has been searched for. I would like to extract massive amounts of data from that site concerning a whole bunch of keywords. I'm thinking php would allow me to do this but if not, could you just redirect me? What would something like this be called? I'm not even sure how to research it because I don't know what I would search for. So if you could just guide me as to what I should look into for making a program/site that extracts info from other sites, thatd be GREAT!

    Thanks so much for your help!!
    [/quote]

    The website would more than likely record the searches in a database and you can't have direct access to another sites database from yours. If the website you are talking about has an RSS or XML feed then you can get this information on your site.

    Take a look at some scripts for RSS reading with PHP if that is the case.
×
×
  • 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.