PhP noob - what did I do wrong here???

Discussion in 'PHP' started by Sneakyfeet, Oct 4, 2008.

  1. #1
    I am trying to use this script - it's free so this is not an aff link:
    http://www.arwscripts.com/gallery-script-lite.html

    I followed the instructions to the "T" but I must have screwed something up because when you go to the site, this is what you see:


    .$site_name.


    ; echo

    Choose an album to browse the images:


    ; $r = 1; echo

    ; foreach($album_listing AS $value) { if($r == 1) echo "; else echo " "; // get total photos echo "".$value."
    (".count_photos($value)." photos)"; echo " "; if(count_photos($value) > 0) { // get first image as thumbnail $photos = load_photos($value); $cover_photo = galleryImage($photos[0][path], 100); $picid = mysql_result($temp6, 0, id); echo "".$cover_photo.""; } else echo "No pics"; echo "
    "; if($r == 5) { echo "
    ; $r = 1; } else { echo ; $r++; } } echo


    ; include_once("footer.php"); ?>


    the url is www.streetbutts.com
    Please take a look and tell me what I screwed up.
    Thanks and +rep to all
     
    Sneakyfeet, Oct 4, 2008 IP
  2. iam.xavier

    iam.xavier Well-Known Member

    Messages:
    521
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Update the config.inc.php file with the details and the script will be running ;) ... Below details ;)


    Thanks
    -Xak
     
    iam.xavier, Oct 4, 2008 IP
  3. AnonymousUser

    AnonymousUser Peon

    Messages:
    593
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Man, You should practise indentation when writing, It makes it easier to read
     
    AnonymousUser, Oct 4, 2008 IP
    Sneakyfeet likes this.
  4. Sneakyfeet

    Sneakyfeet Well-Known Member

    Messages:
    683
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #4
    I thought I did that but I am going to double check right now-------------------------------------------------
    ----------
    ----------
    // site details
    $site_name = "Street Butts"; // site name/title
    $site_path = "http://www.streetbutts.com/"; // site url. Lowercase. Including the http://www. and the ending forward slash '/'. i.e. 'http://www.streetbutts.com/'.
    $storage_location = "pictures/";
    $cache_location = "cache/";


    Do I need to take out the "quotes" ??
     
    Sneakyfeet, Oct 4, 2008 IP
  5. Sneakyfeet

    Sneakyfeet Well-Known Member

    Messages:
    683
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #5
    I took out the quotes and made sure all of my paths were ok -
    still doesn't work - would some one just do it for me for say--- $5?
    I can give you an ftp username and pw?
    I'm also going to post in an another more appropriate thread for programming needs.
    Thanks
     
    Sneakyfeet, Oct 4, 2008 IP
  6. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #6
    I cant seems to browse the album..
    First of all, did u edit any files? If yeah, show us the file? It will be easier for us to help you then.
     
    ads2help, Oct 4, 2008 IP
    Sneakyfeet likes this.
  7. iam.xavier

    iam.xavier Well-Known Member

    Messages:
    521
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    125
    #7
    Alright send me the details... I will fix this for you....

    Thanks
    -Xak
     
    iam.xavier, Oct 4, 2008 IP
    Sneakyfeet likes this.