2011-09-03, 00:12:21
n00dles101 Wrote:Wow, Really impressed.
I was working on something similar but will give up now cannot compete with this.. 8)
Have a small addition you might be interested in for the customfields for an image selector, which allows you to select an image that has already been uploaded to the site.
Add the following to line 62 of edit-2.php
Code:case "imagebox";
echo "<td>";
echo "<b>".$label.":</b><br />";
echo "<input onClick='window.open(\"../admin/filebrowser.php?CKEditorFuncNum=1&returnid=post-".strtolower($key)."&type=images\",\"mywindow\",\"width=600,height=500\")' class='text short' type='text' id='post-".strtolower($key)."' name='post-".strtolower($key)."' value='".$value."' /></td><td></td>";
break;
Insert the follwoing around line 167 in configure-2.php
Code:<option value="imagebox" <?php echo @$def['type']=='imagebox' ? 'selected="selected"' : ''; ?> >Image Selector</option>
Thats it. When you click on an imagebox customfield you will be presented with the normal filemanager and just select the image you want and it will be inserted into the field.
Also a couple of small bugs.
o - menu item shows up as "index manager" until you go to settings and save.
o - getting "Notice: Undefined index: post-content in xxx\item_manager.php on line 300"
Otherwise another great addition to GS
Mike.
The cannot seem to get the coding you supplied for the image selecter to work properly.. Everything works great until you try to click on an image in the file browser. I cannot seem to select any images.