Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Items Manager - ver: 1.4
polyfragmented Wrote:Is anybody else experiencing the mentioned behaviour with 1.1?

Yes, I posted the first one right before you did, and its defiantly a major bug.


I can also reproduce changing the name of a custom field, but I am not sure if that is a bug, the name is really an ID. Changing it would require changing it in all item records to match. You can change the name back and it still works. I am not sure if i would want the program to loop all item datafile to change a field name.
Changing labels has no negative effect.

EDIT:
I needed this working, so I hacked fixes into IMclass.php
Use at your own risk, this was for my personal use.
Fixes the category overwriting results page
and some other various minor errors
Just a code excerpt, not a full diff

http://pastebin.com/qnuhEFcd
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
Hi
can somebody tell me why when i click on the read more item nothing is displayed i mean it goes to new url but only title shows up. I set up custom fields but it also doesnt work, what should i changed to set it up correct ?
Reply
Wezel,

have you inserted your custom field calls into the template for item details? Maybe a typo crept in?

Code:
<?php getTheField('your-custom-field-name'); ?>

If in doubt, feel free to paste the respective template and a screenshot of your custom fields' admin page so we can have a better look at the situation.
Reply
Version 1.2 Uploaded To Extend:
  • Fixed issue where creating/deleting a category reset results page coding.
Reply
Mikeh,

I figured out how to change the uploader buttons in case your interested.
you can just pass your own template into uploader with template: option

Code:
var uploader = new qq.FileUploader({
        // pass the dom node (ex. $(selector)[0] for jQuery users)
        element: document.getElementById(\'file-uploader-'.$key.'\'),
        template: \'<div class="qq-uploader">\' +
                \'<div class="qq-upload-drop-area"><span>Drop files here to upload</span></div>\' +
                \'<div class="qq-upload-button edit-nav"><small>Upload</small><br>'.$label.'</div>\' +
                \'<ul class="qq-upload-list"><li>'.$value.'</li></ul>\' +
             \'</div>\',
        // path to server-side upload script
        action: \'../plugins/items/uploader/server/php.php\',
        onSubmit: function(id, fileName){
        $(\'#post-'.$key.'\').attr(\'value\', fileName);
        }
    });

[Image: edititemuploaders.gif]
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
shawn_a Wrote:Mikeh,

I figured out how to change the uploader buttons in case your interested.
you can just pass your own template into uploader with template: option

Code:
var uploader = new qq.FileUploader({
        // pass the dom node (ex. $(selector)[0] for jQuery users)
        element: document.getElementById(\'file-uploader-'.$key.'\'),
        template: \'<div class="qq-uploader">\' +
                \'<div class="qq-upload-drop-area"><span>Drop files here to upload</span></div>\' +
                \'<div class="qq-upload-button edit-nav"><small>Upload</small><br>'.$label.'</div>\' +
                \'<ul class="qq-upload-list"><li>'.$value.'</li></ul>\' +
             \'</div>\',
        // path to server-side upload script
        action: \'../plugins/items/uploader/server/php.php\',
        onSubmit: function(id, fileName){
        $(\'#post-'.$key.'\').attr(\'value\', fileName);
        }
    });

[Image: edititemuploaders.gif]

Awesome, thank you. I will add it into the next version
Reply
A few notes and questions when you have a moment.

Dropdown component
Does the dropdown (select) component support labels and values?
For example value,label so the value can be ugly but the user sees the pretty labels in the select options?
I haven't looked into it yet but it would be helpful.


GetField($tag) uploader
In the GetField function, when the tag is an uploader and has no value it still returns the path, so if you are using getthefield or returnthefield in your template you get that back and also you cannot check to see if the result is empty in your template or whatever, for example if(!isempty) then show image etc. I had to change

Code:
return !empty($this->tags[$tag]['value']) ? $SITEURL.'data/uploads/items/'.$this->tags[$tag]['value'] : null;
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
BUG REPORT

Issue:
Newly created items have no promoted value.
In the items "view all" page they show as promoted.
HOWEVER Clicking [P] promotes it instead of unpromotes it.
Therefore, Null promote, shows as promoted in view all.
But not in the toggle logic.

Is promoted null true or false ?

Expected:
When i click [P] and its black, it should toggle to gray and say unpromoted.
Instead it says promoted on newly added records.


Reproduce:
  • Add new record save
  • Goto view all, click promote
  • Observe that it doesnt toggle off, and instead promotes.

Possible Cause:
Code:
imclass.php
conflict with switchitems() and showitemsadmin() logic
if (!isset($data->promo) || $data->promo == false)
if (!isset($data->promo) || $data->promo == true)


oh and could you possibly replace the
echo '<font color="#333333">P</font>';
with a span class so we can style those ?
font tags are deprecated.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
Hi guys,

Great work on the Plugin, it's been incredibly easy to build custom sections for clients.
However I have one small problem, and as a front-end designer/developer my php is limited.

On a current project when I add new items to the page they are ordered alphabetically, is it possible to have them order by date added, with the most recent items appearing at the top of the page. I searched through the forums but no luck.

Thanks in advance.
Reply
rmccawl Wrote:Hi guys,

Great work on the Plugin, it's been incredibly easy to build custom sections for clients.
However I have one small problem, and as a front-end designer/developer my php is limited.

On a current project when I add new items to the page they are ordered alphabetically, is it possible to have them order by date added, with the most recent items appearing at the top of the page. I searched through the forums but no luck.

Thanks in advance.

I will work on this for you and include sorting in the next version.
Reply
mikeh Wrote:I will work on this for you and include sorting in the next version.

That's fantastic man, thanks for the quick reply. I look forward to future releases.
Anything I can do to help let me know.

Thanks again.
Reply
Missing feature
Mikeh,
There doesn't seem to be a way to grab an items category for the item record from imdisplay class GetField()

I had to hack it in ( same way you did the title )

Code:
IMclassDisplay()
getField()
+++             elseif($tag == "category")
+++              {    $post_item = $_GET['item'];
+++                  $category_data = getXML(ITEMDATA.$post_item.'.xml');
+++                   return $category_data->category;
+++             }

It would be nice to get the title and category with $tags when the class is contructed, so these extraneous xml calls aren't needed.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
shawn_a Wrote:Missing feature
Mikeh,
There doesn't seem to be a way to grab an items category for the item record from imdisplay class GetField()

I had to hack it in ( same way you did the title )

Code:
IMclassDisplay()
getField()
+++             elseif($tag == "category")
+++              {    $post_item = $_GET['item'];
+++                  $category_data = getXML(ITEMDATA.$post_item.'.xml');
+++                   return $category_data->category;
+++             }

It would be nice to get the title and category with $tags when the class is contructed, so these extraneous xml calls aren't needed.

Thanks, I will bundle this into the next version as well.. I am still contemplating how to best implement custom field categories, which is delaying the next version from being released. I want to make it as least complicated as possible.
Reply
mikeh Wrote:I am still contemplating how to best implement custom field categories, which is delaying the next version from being released. I want to make it as least complicated as possible.

I have been thinking about this because I need it, i am hacking in a way to simply hide fields depending on the category you select for now.

So I was thinking..

You could either have a full separate config for each category, with a results set code, custom fields etc.

Or perhaps have just shared custom fields.
Each field would be assignable to a category/categories with some sort of check boxes or a multi select box.
Fields can be assigned ( or included in) single or multiple categories, similar to a permissions system.
But this has many drawbacks. It could become cumbersome for many different categories that do not reuse fields at all, the labels might need tweaking per category, and its not ideal for all users.

For item manager,
When creating an item, you select a category for an item, the interface can change the custom fields visible for that category. Changing categories for an existing item might be an issue, but should work same way it does now when you add or remove custom fields, but it might leave artifacts around in files.

So maybe you have make it so you create a new item in the category as opposed to the assign a category to an item way things are now. So instead of add items, you go into a category and add an item inside that category.

I am doing the separate templates per category now in a way by having separate templates for each category using conditionals in my results set and item record logic. Only downfall is the admin side, I just have all the fields available and visible for all categories, and ignore the ones I am not using in some of them.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
mikeh Wrote:Version 1.2 Uploaded To Extend:
  • Fixed issue where creating/deleting a category reset results page coding.
Thanks for fixing it!
Reply
Got a problem with showing text from item on results page.

The following code is my current results page setup:

Code:
<div class="im_item">
<h2 style=""><?php echo $data->title; ?> - <?php echo $data->category; ?> - <a href="<?php echo $url; ?>" View Details</a></h2>
<p><?php getTheField('im_description'); ?>.. <a href="<?php echo $url; ?>">Read more</a></p>

</div>

Before, I had <?php echo $content; ?> where I now try to get my custom field which didn't work. I successfully created the custom field 'im description' which is a WYSIWYG editor field, put it into the results page textfield, but nothing of the description shows up. I double-checked the field name, it's correct.

Screenshot attached to this post. Any hint appreciated.
Reply
polyfragmented Wrote:<?php getTheField('im_description'); ?>

Have you tried
Code:
echo $data->im_description

getTheField() is used for record templates not results templates.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
shawn_a Wrote:Have you tried
Code:
echo $data->im_description

getTheField() is used for record templates not results templates.

Not until you mentioned it. Thanks, it works.
Reply
Hi Mike,

I experimenting with your plugin as I am thinking about using it for a property management company's website. Now I face two problems on the preview image. The basic result is, the image is not shown on the item overview page.

I am using
Code:
<base href="<?php get_site_url(); ?>">
in my header, what delivers
Code:
<base href="http://www.myDomain.de/">
.

Checking this image tag with firebug shows:
Code:
<img class="m_pic" src="http://www.myDomain.de//data/uploads/items/">
where I get double backslashes after the domain and the image file is completely missing.

Checking the server, shows that folder "items" exists withing the parent folders "data/uploads" as well as the uploaded image.

Any idea what could be the problem?

Many thanks,
Carsten
Reply
Still no solution for the double backslash??
Reply
Can you post what your code is to generate this. No one can help you with just the outcome information.
And give more information, are you using fancyurls ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
Hi guys, love the plugin -- I'm just wondering how you specify what custom fields appear on the Results page before the '..Read more' link? I have all my custom fields successfully populating my Individual Items page, but only the title and picture are showing up in the results. Ideally I'd like to choose a couple of my fields.

Thanks a lot.

*EDIT* - I found it :-) Under the Settings tab.

I have another question -- I'm allowing up to 5 image uploads per item, but some may only have a single image, or two. My template with then generate broken image links for the "missing" images it expects to be there, if there are less than 5. Is there a dynamic solution to this problem, where the page will ignore 'empty' fields or something?

Thanks.
Reply
I may just be a little slow...Smile Is the Custom Field information supposed to be saving to the XMLs that are created for each item? I created a couple of custom fields for my items and then added a couple of test items. I fill out the info for the custom fields and then save the items. It adds the new item, then i click on it but it doesn't appear to be saving the custom field info i just typed in... Am i missing something or is it saving that info somewhere else?
Reply
Quote:I may just be a little slow...Smile Is the Custom Field information supposed to be saving to the XMLs that are created for each item? I created a couple of custom fields for my items and then added a couple of test items. I fill out the info for the custom fields and then save the items. It adds the new item, then i click on it but it doesn't appear to be saving the custom field info i just typed in... Am i missing something or is it saving that info somewhere else?

I'm having this same problem. When I try to save in the custom fields, and then go back to that product, the custom fields do not save (nor show up on the web site). For example if you look at the screen capture the "Price" and "Description" does not save. Screen Capture: http://www.nickscipione.com/images/screen-capture.png
Reply
Hi,

I want to create a link directory website where the users can add theirs links in the appropriate category.
Is there a way to do that ?

thanks for your reply !

Did
Reply




Users browsing this thread: 1 Guest(s)