1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Want ideas for making a glitter graphics site

Discussion in 'HTML & Website Design' started by shawnecstacy, Dec 17, 2007.

  1. #1
    The site contents :
    :-lots of glitter graphics ( which i already bought)
    :-glitter text generator(have script ready)

    Graphics are by different section like hello , good morning , love.. etc ..
    i want to make groups for each folder like :-
    main folder : /images/
    inside images : /images/hello/ , /images/good morning/ , /images/love .. and so on ..

    first i thought of making static html pages .. but that will be a bulls work as it will take hell lot of pages to display those images.. i am wondering how sites like zwani[dot]com and other myspace comments sites manage and display their huge graphics..

    anyways now the options for me are by using simple PHP or using it with mysql... now from here my mind is not workin.. how to approach the job..

    can anyone help me .. i just want ideas how to approach forward 2 start this job.. like what should b the structure of database and how to use it in coding ..i will try 2 do d coding myself.
     
    shawnecstacy, Dec 17, 2007 IP
  2. DatR

    DatR Peon

    Messages:
    210
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you can just use php that reads in a directory of images, and based on the list of images it receives it splits it into number of pages and displays a certain # of images of your choice...

    most of the myspace scripts out there do this
     
    DatR, Dec 17, 2007 IP
  3. shawnecstacy

    shawnecstacy Peon

    Messages:
    456
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok i will try for this only without database..
    wat i thought is during uploading images i will just rename the images to their uploaded date+time .. so that i can display the images in the pages in their upload date/time sort order ...

    thanks..
     
    shawnecstacy, Dec 17, 2007 IP
  4. DatR

    DatR Peon

    Messages:
    210
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if your running php on your site you can try the filemtime function, which would sort the graphics by the last time they were modified

    http://www.php.net/manual/en/function.filemtime.php

    but if want a graphic modified on an older date first, then this wouldnt work

    here's some php code to get you started in looping through a directory to display images:

    
    $path = "/home/graphics/";
    $dir_h = @opendir($path)
    while ($file = readdir($dir_h)) {
       echo "<img src="$file" />
    }
    closedir($dir_h);
    
    Code (markup):
     
    DatR, Dec 17, 2007 IP
    shawnecstacy likes this.
  5. coolmaste

    coolmaste Peon

    Messages:
    120
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you want to make html or php based?
     
    coolmaste, Dec 18, 2007 IP
  6. shawnecstacy

    shawnecstacy Peon

    Messages:
    456
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    PHP based ..
    lookin forward to implement some ideas by DatR.

    i am thinking of making an index.php page in every graphics directoty which will show up contents of only that directory.. and then a navigation system to link up all those index pages in different directory ..

    till now thats only...i hv no hurry .. uff.. managing so much images is a damn hard task .. i dont know it is possible or not to manage these graphics (so far 3000 graphics) without an content management system ..and by using only simple scripting..
     
    shawnecstacy, Dec 18, 2007 IP