[WTB] PHP Programming help, get payed to help...

Discussion in 'PHP' started by Neo_The_One, Nov 8, 2007.

  1. #1
    Hi, Guys! ;)

    I need some help... :)

    - We have a running site and witch we need to do some recoding to get what we want?

    Here you have the orginal links of how the page is now, and i will describe what we need below.
    - We have i file the "index.php" file that show 10 on each page.
    - What we want to is only show a image + text on index.php and a link to index2.php
    - On index2.php we want to only show 1 image with the "textarea" below so users can copy the code from below.

    - We have done that part, it is all controllend with a "config" file we have made a new config file and just reentered the amount of images to show and we put in 1. Witch was the easy part.

    Now we need to link index.php to index2.php for each image.

    Here is the code from how we list the images in bouth index files:

    
    // Draw pagination
    	if ($numberOfPages > 1){
    		// echo 'showing ' . ($imageListStart + 1) . ' through ' . $imageListStop . ' of ' . $imageCount;
    		echo "\n\n" . '<div class="pageLinks">';
    		if($page != 1){
    			echo ' <a class="previous" href="' . $url2folder . '?page=' . ($page - 1) . '">&lt;</a>';
    		} else {
    			echo '<a class="previous"\>&lt;</a>';
    		}
    		for ($i = 1; $i <= $numberOfPages; $i++) {
    			echo ' <a href="' . $url2folder . '?page=' . $i;
    			if ($i == $page){ echo '" style="border-color:#' . $randomColors[$random10[0]] . ';color:#' . $randomColors[$random10[0]];}
    			echo  '">' . $i . '</a>' . "\n";
    		}
    		if($page != $numberOfPages){
    			echo ' <a class="next" href="' . $url2folder . '?page=' . ($page + 1) . '">&gt;</a>';
    		} else {
    			echo '<a class="next">&gt;</a>';
    		}
    		echo '</div><br /><br /><br>' . "\n\n";
    	}
    
    
    // Display image list
    $arr = array();
    
    if ($handle2 = opendir($root2folder . 'images/')) {
    	$cnt = 0;
    	while (false !== ($file = readdir($handle2))) {
    		if ($file != "." && $file != ".." && $file !="Thumbs.db") {
    			if(($cnt>=$imageListStart)&&($cnt<$imageListStop)){
    			array_push($arr, $file);
    			}
    			$cnt++;
    		}
    	}
    	closedir($handle2);
    }
    
    sort($arr, SORT_STRING);
    
    $i = 1;
    foreach($arr as $val) {
    	echo '<div class="codeForm">' . "\n" .
    	'<img src="' . $pb2folder . 'images/' . $val .'" alt="' . $val . '" /><div class="textarea">' . "\n" .
    	'<form action=""><input type="text" name="showImage' . $i . '" class="showImageTextBox" onfocus="this.form.showImage' . $i . '.select()" onclick="this.form.showImage' . $i . '.select()" value="&lt;a href=&quot;' . $urlBase . '&quot;&gt;&lt;img src=&quot;' . $pb2folder . 'images/' . $val . '&quot;  alt=&quot;' . $imgAlt . '&quot;&gt;&lt;/a&gt;' . $linkBack . '" onmouseover="this.style.borderColor=\'#' . $randomColors[$random10[0]] . '\'" onmouseout="this.style.borderColor=\'#555555\'"  /></form>' . "\n" .
    	'</div></div>' . "\n\n";
    	$i++;
    }
    
    PHP:
    We would like ot use htaccess aswell to now show like /index2.php?page=3
    but maybe

    /subdirectory/myspace-image-3

    THIS WILL BE A REWARDING JOB! WE HAVE THE FOUNDS, WE NEED A CODER! :)

    - Please help us out.. And state your price?


    Thank You!
     
    Neo_The_One, Nov 8, 2007 IP