Minor updates - pseudocode for createThumbs() added near top

This commit is contained in:
alopexc0de 2013-02-18 22:54:28 -05:00
parent eb52aaf7d4
commit 70a408c79e

View File

@ -11,12 +11,13 @@
* TODO: * TODO:
* *
* JavaScript fo show bigger image if clicked * JavaScript fo show bigger image if clicked
* Recently Uploaded Pictures on sidebar - OUTPUT DONE - FIX INPUT (upload) * Recently Uploaded Pictures on sidebar - Frontend DONE - Backend Needed (upload)
* Automatic thumbnail generation - genthumb() (100px x 100px) * DONE - Automatic thumbnail generation - genthumb() (100px x 100px)
* Force Spaces in tags * Force Spaces in tags
* Fix headstuff() and title() * Fix headstuff() and title()
* Multiple tags without search? * Multiple tags without search?
* Classes? * Classes? - Might just go as far as to seperate the functions
* Temporarly dropped support for bitmap files until I learn how to generate those
* *
* ----------------------------------------------------------- * -----------------------------------------------------------
*/ */
@ -27,6 +28,11 @@
require('img.extra.php'); // Img.Extra.php - Extra main functions require('img.extra.php'); // Img.Extra.php - Extra main functions
require('img.main.php'); // Img.Main.php - Main program require('img.main.php'); // Img.Main.php - Main program
// If thumbnails don't preexist{
// createThumbs(); // Found inside helper.genthumb.php
// die("<script>alert('New thumbnails generated. Reload the page.');</script>");
// }
// Declare variables so it doesn't complain to me later x.x // Declare variables so it doesn't complain to me later x.x
$thelist = ''; $thelist = '';
$img = ''; $img = '';
@ -54,12 +60,13 @@
* TODO: * TODO:
* *
* JavaScript fo show bigger image if clicked * JavaScript fo show bigger image if clicked
* Recently Uploaded Pictures on sidebar - OUTPUT DONE - FIX INPUT (upload) * Recently Uploaded Pictures on sidebar - Frontend DONE - Backend Needed (upload)
* Automatic thumbnail generation - genthumb() (100px x 100px) * DONE - Automatic thumbnail generation - genthumb() (100px x 100px)
* Force spaces on tags * Force spaces on tags
* Fix headstuff() and title() * Fix headstuff() and title()
* Multiple tags without search? * Multiple tags without search?
* Classes? * Classes? - Might just go as far as to seperate the functions
* Temporarly dropped support for bitmap files until I learn how to generate those
* *
* ----------------------------------------------------------- * -----------------------------------------------------------
* *
@ -96,7 +103,7 @@
<div id="page_wrap"> <div id="page_wrap">
<div id="header"> <div id="header">
<img src="header.png" alt="Header image"/> <img src="header.png" alt="Header image"/>
</div> </div> <!-- End Header -->
<div id="main_navi"> <div id="main_navi">
<ul class="left"> <ul class="left">
@ -112,26 +119,26 @@
<ul class="right"> <ul class="right">
<li class="twitter"><a href="http://twitter.com/upstandards" title="Follow UnPS on twitter">TWITTER</a></li> <li class="twitter"><a href="http://twitter.com/upstandards" title="Follow UnPS on twitter">TWITTER</a></li>
</ul> </ul>
</div> </div> <!-- End Navbar -->
<div class="clear"></div> <div class="clear"></div>
<div id="container"> <div id="container">
<div id="main"> <div id="main">
<div class="sticky"> <div class="sticky">
Thumbnails need work Recent Pictures needs a backend - Frontend complete
</div> </div> <!-- End Sticky -->
<div class="post"> <div class="post">
<div class="entry"><!-- Begin image stuff php --> <div class="entry"><!-- Begin image stuff php -->
<?php <?php
imgstuff(); imgstuff();
?> ?>
</div> </div> <!-- End Entry -->
</div> </div> <!-- End Post -->
</div> </div> <!-- End Main -->
<div id="sidebar"> <div id="sidebar">
<ul> <ul> <!-- Searchbar -->
<li class="widget widget_search"> <li class="widget widget_search">
<div id="search"> <div id="search">
<form action="" method="get" name="search" id="search"> <form action="" method="get" name="search" id="search">
@ -141,7 +148,7 @@
</div> </div>
</li> </li>
</ul> </ul>
<!--<br /> Might not keep this <!--<br /> Might not keep this - Ads
<ul> <ul>
<li class="widget widget_text"> <li class="widget widget_text">
<div class="textwidget"> <div class="textwidget">
@ -161,7 +168,7 @@
</div> </div>
</li> </li>
</ul>--> </ul>-->
<!--<br /> Might not keep this <!--<br /> Might not keep this - Social Media Buttons
<ul> <ul>
<li class="widget widget_text"> <li class="widget widget_text">
<div class="textwidget"> <div class="textwidget">
@ -171,20 +178,8 @@
</div> </div>
</li> </li>
</ul>--> </ul>-->
<!-- This is what I want the end result of the recently uploaded pictures to look like- ->
<br /> <br />
<ul> <ul> <!-- Recent Pictures -->
<li class="widget widget_text">
<div class="textwidget">
<h3>Recently Uploaded Pictures</h3><br />
<a href="?img=1607vhu.png"><img src="thumbs/1607vhu.png" alt="1607vhu.png" title="1607vhu.png"/></a>
<a href="?img=icbqp9.jpg"><img src="thumbs/icbqp9.jpg" alt="icbqp9.jpg" title="icbqp9.jpg"/></a>
</div>
</li>
</ul>
<!-------- Make what's commented below resemble (in output) what happens above-->
<br />
<ul>
<li class="widget widget_text"> <li class="widget widget_text">
<div class="textwidget"> <div class="textwidget">
<h3>Recently Uploaded Pictures</h3><br /> <h3>Recently Uploaded Pictures</h3><br />
@ -210,7 +205,7 @@
</li> </li>
</ul> </ul>
<!-- textstuff is right under here (not shown unless picture is viewed though) --> <!-- textstuff is right under here (not shown unless picture is viewed though) -->
<?php <?php // Image info
if($_SESSION['noimg'] == false){ if($_SESSION['noimg'] == false){
echo " echo "
<br /> <br />
@ -227,7 +222,7 @@
} }
?> ?>
<br /> <br />
<ul> <ul> <!-- Upload -->
<li class="widget widget_text"> <li class="widget widget_text">
<div class="textwidget"> <div class="textwidget">
<h4>Want to upload pictures?</h4> <h4>Want to upload pictures?</h4>
@ -235,18 +230,18 @@
</div> </div>
</li> </li>
</ul> </ul>
</div> </div> <!-- End Sidebar -->
</div> </div> <!-- End Container -->
</div> </div> <!-- End Page_Wrap -->
<div id="footer"> <div id="footer">
<div class="footer_wrapper"> <div class="footer_wrapper">
<div class="footer_left"> <div class="footer_left">
<p> <p>
<a href="http://www.unps-gama.info/privacy.html">Privacy Policy</a> - <a href="http://www.unps-gama.info/ToS.html">Terms of Service</a> - Modified <a href="http://imotta.cn/wordpress/pyrmont-theme-v2-for-wordpress.html">Pyrmont V2</a> - <strong>Copyright &copy; 2012-2013 UnPS-GAMA</strong> <a href="http://www.unps-gama.info/privacy.html">Privacy Policy</a> - <a href="http://www.unps-gama.info/ToS.html">Terms of Service</a> - Modified <a href="http://imotta.cn/wordpress/pyrmont-theme-v2-for-wordpress.html">Pyrmont V2</a> - <strong>Copyright &copy; 2012-2013 UnPS-GAMA</strong>
</p> </p>
</div> </div> <!-- End Footer_Left -->
</div> </div> <!-- End Footer_Wrapper -->
</div> </div> <!-- End Footer -->
</body> </body>
</html> </html>
<?php session_unset(); session_destroy(); ?> <?php session_unset(); session_destroy(); // To stop carrying over of unneeded info ?>