<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

	<channel>
		<title>Smashly Community Forums &#187; Tag: order - Recent Posts</title>
		<link>http://smashly.net/community/</link>
		<description>Smashly Community Forums &#187; Tag: order - Recent Posts</description>
		<language>en</language>
		<pubDate>Fri, 10 Sep 2010 20:22:39 +0000</pubDate>

					<item>
				<title>byron on "Basics - How do I custom sort my gallery image order?"</title>
				<link>http://smashly.net/community/topic/basics-how-do-i-custom-sort-my-gallery-image-order#post-675</link>
				<pubDate>Thu, 04 Feb 2010 04:45:38 +0000</pubDate>
				<dc:creator>byron</dc:creator>
				<guid isPermaLink="false">675@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Welcome...It's in there now.
&#60;/p&#62;</description>
			</item>
					<item>
				<title>goskeet on "Basics - How do I custom sort my gallery image order?"</title>
				<link>http://smashly.net/community/topic/basics-how-do-i-custom-sort-my-gallery-image-order#post-666</link>
				<pubDate>Wed, 03 Feb 2010 05:51:28 +0000</pubDate>
				<dc:creator>goskeet</dc:creator>
				<guid isPermaLink="false">666@http://smashly.net/community/</guid>
				<description>&#60;p&#62;awesome thanks!
&#60;/p&#62;</description>
			</item>
					<item>
				<title>byron on "Basics - How do I custom sort my gallery image order?"</title>
				<link>http://smashly.net/community/topic/basics-how-do-i-custom-sort-my-gallery-image-order#post-663</link>
				<pubDate>Wed, 03 Feb 2010 05:41:45 +0000</pubDate>
				<dc:creator>byron</dc:creator>
				<guid isPermaLink="false">663@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Sorry, there isn't a way to order the images in a specific order at this time.  I have added this to the next version of PhotoSmash...hopefully will be out tomorrow.  Check out the Changelog (see sticky post for link) for the feature in the upcoming version.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Byron
&#60;/p&#62;</description>
			</item>
					<item>
				<title>goskeet on "Basics - How do I custom sort my gallery image order?"</title>
				<link>http://smashly.net/community/topic/basics-how-do-i-custom-sort-my-gallery-image-order#post-662</link>
				<pubDate>Tue, 02 Feb 2010 20:47:56 +0000</pubDate>
				<dc:creator>goskeet</dc:creator>
				<guid isPermaLink="false">662@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Thanks Byron!&#60;/p&#62;
&#60;p&#62;I noticed these options.&#60;br /&#62;
Date/time is not as custom as I want.&#60;br /&#62;
Rating does not do it either in that it does not make it so I can say this one, then that one, then that one. etc.&#60;br /&#62;
This leaves user id.  I found image id #'s under custom fields under manage images.  &#60;/p&#62;
&#60;p&#62;Where is user id, and how do I use user id to sort gallery images in a specific order?  I am guessing maybe this option will not do it either, in which case - is there a way to accomplish my goal?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
			</item>
					<item>
				<title>byron on "Basics - How do I custom sort my gallery image order?"</title>
				<link>http://smashly.net/community/topic/basics-how-do-i-custom-sort-my-gallery-image-order#post-653</link>
				<pubDate>Tue, 02 Feb 2010 15:47:16 +0000</pubDate>
				<dc:creator>byron</dc:creator>
				<guid isPermaLink="false">653@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Hi goskeet,&#60;/p&#62;
&#60;p&#62;There are several sort options in Gallery Settings on the first tab.  Look for  &#34;Sort Images by:&#34;.&#60;/p&#62;
&#60;p&#62;There are only 3 options + ascending or descending for each:  Date/time, User ID, and Rating (if you've enabled ratings).&#60;/p&#62;
&#60;p&#62;Note that you can set all galleries to the same thing in the PhotoSmash Settings page, but you have to click the little disk icons beside both the Sort Images by: and the Ascending/descending selections.&#60;/p&#62;
&#60;p&#62;BB
&#60;/p&#62;</description>
			</item>
					<item>
				<title>goskeet on "Basics - How do I custom sort my gallery image order?"</title>
				<link>http://smashly.net/community/topic/basics-how-do-i-custom-sort-my-gallery-image-order#post-651</link>
				<pubDate>Mon, 01 Feb 2010 20:27:10 +0000</pubDate>
				<dc:creator>goskeet</dc:creator>
				<guid isPermaLink="false">651@http://smashly.net/community/</guid>
				<description>&#60;p&#62;I have been looking all over the forum and playing with settings and no success.&#60;/p&#62;
&#60;p&#62;Boy you will save me bug time with a reply.  Thanks, Skeet
&#60;/p&#62;</description>
			</item>
					<item>
				<title>deanhodges on "Additional Sort Order &#38; Limit Uploads Per User ID"</title>
				<link>http://smashly.net/community/topic/additional-sort-order-limit-uploads-per-user-id#post-643</link>
				<pubDate>Sun, 31 Jan 2010 17:05:56 +0000</pubDate>
				<dc:creator>deanhodges</dc:creator>
				<guid isPermaLink="false">643@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Hi Karl,&#60;/p&#62;
&#60;p&#62;Any update on the deletion of images or limiting the amount per user? Have you thought about the payment system of it. i.e if you pay $3 you can upload 6 images but pay $9 and its unlimited for example
&#60;/p&#62;</description>
			</item>
					<item>
				<title>byron on "Additional Sort Order &#38; Limit Uploads Per User ID"</title>
				<link>http://smashly.net/community/topic/additional-sort-order-limit-uploads-per-user-id#post-362</link>
				<pubDate>Tue, 15 Dec 2009 20:36:37 +0000</pubDate>
				<dc:creator>byron</dc:creator>
				<guid isPermaLink="false">362@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Thanks, Karl!
&#60;/p&#62;</description>
			</item>
					<item>
				<title>KarlEngstrom on "Additional Sort Order &#38; Limit Uploads Per User ID"</title>
				<link>http://smashly.net/community/topic/additional-sort-order-limit-uploads-per-user-id#post-360</link>
				<pubDate>Tue, 15 Dec 2009 19:22:07 +0000</pubDate>
				<dc:creator>KarlEngstrom</dc:creator>
				<guid isPermaLink="false">360@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Hi Byron, I've been caught up in another couple of projects, just touching base to let you know I'll be slicing off time to tweak on PS.&#60;/p&#62;
&#60;p&#62;Thanks for all your work!&#60;/p&#62;
&#60;p&#62;Karl
&#60;/p&#62;</description>
			</item>
					<item>
				<title>byron on "Additional Sort Order &#38; Limit Uploads Per User ID"</title>
				<link>http://smashly.net/community/topic/additional-sort-order-limit-uploads-per-user-id#post-261</link>
				<pubDate>Thu, 12 Nov 2009 15:52:01 +0000</pubDate>
				<dc:creator>byron</dc:creator>
				<guid isPermaLink="false">261@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Hi Karl,&#60;/p&#62;
&#60;p&#62;I really appreciate your work on this.  &#60;/p&#62;
&#60;p&#62;I'm not sure what your design for the 'delete/manage your own images' is, but here are a couple of thoughts:&#60;/p&#62;
&#60;p&#62;1) It would be good to have a gallery where the user could view their own images...maybe part of the contributor's gallery...and on that gallery the images could have an edit link.&#60;br /&#62;
2) Edit link would pop up a thickbox with a custom form with the fields that the admin wants the user to be able to edit.&#60;br /&#62;
3) Show the image and give jCrop and Rotate capabilities...would ultimately like to use the new WP 2.9 media editing features if that's even possible&#60;br /&#62;
4) Unlike the current Form set up, I'd really like to have it built dynamically through ajax/jQuery...there shouldn't be any need for using jquery.forms.js (which has some conflicts when other plugins are using it also) since there wouldn't be an actual upload of an image.  The trick is going to be telling the javascript which fields need to be added to the form since this would include custom fields that could be anything...uggg and I just thought about it...and these custom fields could be all sorts of different fields (checkboxes, dropdowns, etc).  Maybe there would be a way to build the fields on the server using the functions in bwbps-uploadform.php.  I'm going to add editing of custom fields to the Admin page soon, so I'll be diving into this from that angle...we'll want to make sure we can reuse the functions.&#60;/p&#62;
&#60;p&#62;As a side note, I eventually want to make the main upload forms build on demand by Ajax instead of building them on the server...there are some problems when there are multiple forms on the same page.&#60;/p&#62;
&#60;p&#62;On the question about user deletes,  check out ajax_useractions.php.  There are functions in there for the delete operation.  It has some added security to make sure users are only affecting their own images.&#60;/p&#62;
&#60;p&#62;I look forward to seeing what you come up with!&#60;br /&#62;
Byron
&#60;/p&#62;</description>
			</item>
					<item>
				<title>KarlEngstrom on "Additional Sort Order &#38; Limit Uploads Per User ID"</title>
				<link>http://smashly.net/community/topic/additional-sort-order-limit-uploads-per-user-id#post-260</link>
				<pubDate>Thu, 12 Nov 2009 14:54:43 +0000</pubDate>
				<dc:creator>KarlEngstrom</dc:creator>
				<guid isPermaLink="false">260@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Cool, thanks Byron!&#60;br /&#62;
Currently I'm working through image upload limitations and 'delete/manage your own images'. I've worked out the code for the limits per registered user but don't have it setup as a function as yet. I think I recall seeing some commented out code regarding 'self delete', did you have that going at one time? I'll keep you posted &#38;amp; hit you with any questions.&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
Karl
&#60;/p&#62;</description>
			</item>
					<item>
				<title>byron on "Additional Sort Order &#38; Limit Uploads Per User ID"</title>
				<link>http://smashly.net/community/topic/additional-sort-order-limit-uploads-per-user-id#post-246</link>
				<pubDate>Tue, 10 Nov 2009 05:34:39 +0000</pubDate>
				<dc:creator>byron</dc:creator>
				<guid isPermaLink="false">246@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Karl,&#60;br /&#62;
I have added your code to the next version...0.4.04.  It's not in the version I just released, but it'll be in the next one.&#60;/p&#62;
&#60;p&#62;Let me know if you add anything else that might be of general interest to others!&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Byron
&#60;/p&#62;</description>
			</item>
					<item>
				<title>KarlEngstrom on "Additional Sort Order &#38; Limit Uploads Per User ID"</title>
				<link>http://smashly.net/community/topic/additional-sort-order-limit-uploads-per-user-id#post-227</link>
				<pubDate>Thu, 29 Oct 2009 18:48:19 +0000</pubDate>
				<dc:creator>KarlEngstrom</dc:creator>
				<guid isPermaLink="false">227@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Good to hear from you Byron-&#60;br /&#62;
My testbed is at &#60;a href=&#34;http://www.ampsite.com/wp2/&#34; rel=&#34;nofollow&#34;&#62;http://www.ampsite.com/wp2/&#60;/a&#62;, PhotoSmash. I've been tweaking a bunch of other stuff there too, created a custom member list/profile page working around cimy extra. cimy is disabled currently though.&#60;br /&#62;
Anyhow, here's the mods I have so far&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;bwbps-layout.php - Line 1770 Sort Order switch. Change this block:
 				switch ( (int)$g[&#38;#39;sort_field&#38;#39;] ){

					case 0 :	// When Uploaded
						$sortby = PSIMAGESTABLE.&#38;#39;.created_date &#38;#39; . $sorder . &#38;#39;, &#38;#39;.PSIMAGESTABLE.&#38;#39;.seq&#38;#39;;
						break;
					case 1 :	// Custom Sort
						$sortby = PSIMAGESTABLE.&#38;#39;.seq, &#38;#39;.PSIMAGESTABLE.&#38;#39;.created_date &#38;#39;. $sorder;
						break;
					case 2 :	// Custom Fields
						$sortby = PSIMAGESTABLE.&#38;#39;.created_date &#38;#39; . $sorder . &#38;#39;, &#38;#39;.PSIMAGESTABLE.&#38;#39;.seq&#38;#39;;
						break;
					default :	// When Uploaded
						$sortby = PSIMAGESTABLE.&#38;#39;.created_date &#38;#39;
							. $sorder . &#38;#39;, &#38;#39;.PSIMAGESTABLE.&#38;#39;.seq&#38;#39;;
						break;

to this block
 				switch ( (int)$g[&#38;#39;sort_field&#38;#39;] ){

					case 0 :	// When Uploaded
						$sortby = PSIMAGESTABLE.&#38;#39;.created_date &#38;#39; . $sorder . &#38;#39;, &#38;#39;.PSIMAGESTABLE.&#38;#39;.seq&#38;#39;;
						break;
					case 1 :	// Custom Sort
						$sortby = PSIMAGESTABLE.&#38;#39;.seq, &#38;#39;.PSIMAGESTABLE.&#38;#39;.created_date &#38;#39;. $sorder;
						break;
					case 2 :	// Custom Fields
						$sortby = PSIMAGESTABLE.&#38;#39;.created_date &#38;#39; . $sorder . &#38;#39;, &#38;#39;.PSIMAGESTABLE.&#38;#39;.seq&#38;#39;;
						break;
					case 3 :	// User IDs
						$sortby = PSIMAGESTABLE.&#38;#39;.user_id &#38;#39; . $sorder . &#38;#39;, &#38;#39;.PSIMAGESTABLE.&#38;#39;.seq&#38;#39;;
						break;
					default :	// When Uploaded
						$sortby = PSIMAGESTABLE.&#38;#39;.created_date &#38;#39;
							. $sorder . &#38;#39;, &#38;#39;.PSIMAGESTABLE.&#38;#39;.seq&#38;#39;;
						break;
********************************************************************************************************************************************

bwbps-admin.php - Line 657 Form options. Change this block
					&#38;lt;select name=&#38;quot;gal_sort_field&#38;quot;&#38;gt;
						&#38;lt;option value=&#38;quot;0&#38;quot; &#38;lt;?php if(!$galOptions[&#38;#39;sort_field&#38;#39;]) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;When uploaded&#38;lt;/option&#38;gt;
						&#38;lt;?php /*
						&#38;lt;option value=&#38;quot;1&#38;quot; &#38;lt;?php if($galOptions[&#38;#39;sort_field&#38;#39;] == 1) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;Manual sort&#38;lt;/option&#38;gt;
						&#38;lt;option value=&#38;quot;2&#38;quot; &#38;lt;?php if($galOptions[&#38;#39;sort_field&#38;#39;] == 2) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;Custom field&#38;lt;/option&#38;gt;
						*/
						?&#38;gt;
					&#38;lt;/select&#38;gt;
 to this
 					&#38;lt;select name=&#38;quot;gal_sort_field&#38;quot;&#38;gt;
						&#38;lt;option value=&#38;quot;0&#38;quot; &#38;lt;?php if(!$galOptions[&#38;#39;sort_field&#38;#39;]) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;When uploaded&#38;lt;/option&#38;gt;
						&#38;lt;option value=&#38;quot;1&#38;quot; &#38;lt;?php if($galOptions[&#38;#39;sort_field&#38;#39;] == 1) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;Manual sort&#38;lt;/option&#38;gt;
						&#38;lt;option value=&#38;quot;2&#38;quot; &#38;lt;?php if($galOptions[&#38;#39;sort_field&#38;#39;] == 2) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;Custom field&#38;lt;/option&#38;gt;
                        &#38;lt;option value=&#38;quot;3&#38;quot; &#38;lt;?php if($psOptions[&#38;#39;sort_field&#38;#39;] == 3) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;User ID&#38;lt;/option&#38;gt;
					&#38;lt;/select&#38;gt;

Line 1305 - Change this block
					&#38;lt;select name=&#38;quot;ps_sort_field&#38;quot;&#38;gt;
						&#38;lt;option value=&#38;quot;0&#38;quot; &#38;lt;?php if(!$psOptions[&#38;#39;sort_field&#38;#39;]) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;When uploaded&#38;lt;/option&#38;gt;
						&#38;lt;?php /*
						&#38;lt;option value=&#38;quot;1&#38;quot; &#38;lt;?php if($psOptions[&#38;#39;sort_field&#38;#39;] == 1) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;Manual sort&#38;lt;/option&#38;gt;
						&#38;lt;option value=&#38;quot;2&#38;quot; &#38;lt;?php if($psOptions[&#38;#39;sort_field&#38;#39;] == 2) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;Custom field&#38;lt;/option&#38;gt;
						*/
						?&#38;gt;
					&#38;lt;/select&#38;gt;

to this
					&#38;lt;select name=&#38;quot;ps_sort_field&#38;quot;&#38;gt;
						&#38;lt;option value=&#38;quot;0&#38;quot; &#38;lt;?php if(!$psOptions[&#38;#39;sort_field&#38;#39;]) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;When uploaded&#38;lt;/option&#38;gt;
						&#38;lt;option value=&#38;quot;1&#38;quot; &#38;lt;?php if($psOptions[&#38;#39;sort_field&#38;#39;] == 1) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;Manual sort&#38;lt;/option&#38;gt;
						&#38;lt;option value=&#38;quot;2&#38;quot; &#38;lt;?php if($psOptions[&#38;#39;sort_field&#38;#39;] == 2) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;Custom field&#38;lt;/option&#38;gt;
                        &#38;lt;option value=&#38;quot;3&#38;quot; &#38;lt;?php if($psOptions[&#38;#39;sort_field&#38;#39;] == 3) echo &#38;#39;selected=selected&#38;#39;; ?&#38;gt;&#38;gt;User ID&#38;lt;/option&#38;gt;
					&#38;lt;/select&#38;gt;
***********************************************************************************************************************************************&#60;/code&#62;&#60;/pre&#62;</description>
			</item>
					<item>
				<title>byron on "Additional Sort Order &#38; Limit Uploads Per User ID"</title>
				<link>http://smashly.net/community/topic/additional-sort-order-limit-uploads-per-user-id#post-225</link>
				<pubDate>Thu, 29 Oct 2009 17:27:19 +0000</pubDate>
				<dc:creator>byron</dc:creator>
				<guid isPermaLink="false">225@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Hi Karl,&#60;/p&#62;
&#60;p&#62;Glad you're able to use PS for the project!  Please send me your modifications and if I can, I'll put them in the code.&#60;/p&#62;
&#60;p&#62;As for the limiting the # of image uploads by user, that should probably be done at the gallery level.  If you'll write the code and document it for me, I'll add to the plugin as well.&#60;/p&#62;
&#60;p&#62;To accomplish this, you'd need to extend the galleries table to include a setting for max_images_byuser.  0 would = unlimited and be the default.  Database extensions are done in admin/bwbps-init.php&#60;/p&#62;
&#60;p&#62;Then, probably in the bwbps-uploadform.php file somewhere, you'd need to check if gallery['max_images_byuser'] &#38;gt; 0 then how many images does the user have uploaded for tht gallery? If &#38;gt;= gallery['max_images_byuser'] then put a message in the form &#34;You have already uploaded your alloted limit of images to this gallery.&#34;  Else, get the normal form.&#60;/p&#62;
&#60;p&#62;Then in ajax_upload.php, you should do the check again and bomb out if they've hit the limit.&#60;/p&#62;
&#60;p&#62;I'll be happy to incorporate your code if I can.&#60;/p&#62;
&#60;p&#62;Hope that helps,&#60;br /&#62;
Byron
&#60;/p&#62;</description>
			</item>
					<item>
				<title>KarlEngstrom on "Additional Sort Order &#38; Limit Uploads Per User ID"</title>
				<link>http://smashly.net/community/topic/additional-sort-order-limit-uploads-per-user-id#post-224</link>
				<pubDate>Thu, 29 Oct 2009 02:39:26 +0000</pubDate>
				<dc:creator>KarlEngstrom</dc:creator>
				<guid isPermaLink="false">224@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Hi Byron, great plugin, thanks much for your work!&#60;/p&#62;
&#60;p&#62;I'm planning on using PS in a niche site for kind of a 'traders corner' or 'market place'. The owner of the site want a place each registered user can upload up to 5 photos of items for trade or sale.&#60;/p&#62;
&#60;p&#62;So far I've modded bwbps-layout.php starting line 1770 for the switch and bwbps-admin.php line 657 &#38;amp; 1305 code blocks to add order by user_id. I also enabled manual &#38;amp; custom ordering to find out what I can do with those. I pretty sure using a custom output I can separate the users with a little heading...&#60;/p&#62;
&#60;p&#62;I'm working on the upload limit now but I'm sure that will be more entailed.&#60;/p&#62;
&#60;p&#62;I'll share what I've got if you want but I didn't want to clutter things up here.&#60;/p&#62;
&#60;p&#62;Down side is when I update PS versions I'm sure I'll lose the tweaks.&#60;/p&#62;
&#60;p&#62;Is there another way to do what I'm after or do you think future versions may have some options like this?&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
Karl
&#60;/p&#62;</description>
			</item>
		
	</channel>

</rss>