Image Preview script please any1 ?

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

5 replies · 683 views · started 16 years ago · 1 min read

3 participants
Leon-ToxicWap Newbie · 8 posts #1

Hi , im new to coding talk , and i just need help with finding a image preview script , eg that allows visits to preview images on my website if any 1 can help me please do let me know , thank you in advance ...

Leon-ToxicWap Newbie · 8 posts #4

for my mobile website , ToxicWap.com ... or if any1 can get me a script like spicyfm.com , im willing to pay

sklbd Junior · 47 posts #6

a simple wapbaddy script with photo thumbnail enjoy.........................

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

<? header("Content-type: text/vnd.wap.wml"); echo "<?xml version=\"1.0\"?>";

echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""." \"http://www.wapforum.org/DTD/wml_1.1.xml\">";

include("sklsittings.php");

if (!isset($page)) {$page = 0;} $total = 0;

if(!($dp = opendir("./"))) die ("Cannot open ./"); $file_array = array(); while ($file = readdir ($dp)) { if(substr($file,0,1) != '.' and $file != "index.php" and $file != "search.php") { $file_array[] = $file; } } $file_count = count ($file_array); sort ($file_array); ?> <wml> <card id="card1" title="Your Site Name [Sklifbd.CoM]">

<? echo " "; echo "**Enjoy Those Item** "; if ($file_count > 0) { $first_record = $page * $conf["items_per_page"]; $last_record = $first_record + $conf["items_per_page"]; while (list($fileIndexValue, $file_name) = each ($file_array)) { if (($fileIndexValue >= $first_record) AND ($fileIndexValue < $last_record)) { echo "<img src=\"skl-$file_name.gif\" alt=\"thumb\"/><a href=\"$file_name\">$file_name</a> (". round(filesize($file_name)/1024,1) . "kb) ------ "; $total = $total + filesize($file_name); } } if (($file_count > 0) AND ($page != 0)) { // previous button $prev_page = $page -1; echo " <a href=\"".$_SERVER["PHP_SELF"]."?page=$prev_page\">Prev Page</a> "; } if (($file_count > 0) AND ($last_record < $file_count)) { // next button $next_page = $page + 1; echo " <a href=\"".$_SERVER["PHP_SELF"]."?page=$next_page\">Next Page</a> "; } echo " Total Files: $file_count "; if ($file_count == 1) {echo "file";} else {echo "files";} echo " (" . round($total/1024,1) . "kb)"; } closedir($dp); echo ""; ?>

Search This Category:

<input title="Search:" emptyok="true" name="q"/>

search

page: $page Jump To Page

<!--w--><input type="text" name="page" title="1-34 pages only" maxlength="20" size="03" value=""/>

<anchor><go href="index.php" method="post"><postfield name="page" value="$(page)"/></go>[GO]</anchor>

MenU

</card> </wml> /////////////////////////////// put this coding on your image folder on index.php/////////////////////////////////////////////////////////////// <? // SETTTINGS $conf["site_name"] = "Sklifbd.CoM;"; // the name of your site $conf["welcome_message"] = "Powered by: ShaK!L"; // default greeting

$conf["items_per_page"] = 10; /// item on page

$conf["dirs"] = array ( // folders which store downloads "Wallpaper" ,"Animation" ,"Ringtones" ,"Games" ,"Application" ,"Themes" ,"Antivirus" ,"Funny" ,"Songs" //,your new folder (don't forget the comma) );

?> ////////////////////////////////////put this coding on sklsittings.php ////////////////////

then creat small image to thumb by name skl-yourfilename.gif and main image to download by name yourfilename.jpg/others like .... if ur image name love.jpg so ur thumb file will be skl-love.gif ok

ShaK!L AhammeD

Sklifbd.CoM +88-01730039272

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close