53 of 53
53
File
Posted: 02 March 2010 11:10 AM   [ Ignore ]   [ # 937 ]  
Lab Assistant
RankRank
Total Posts:  130
Joined  03-13-2009

nGen requires FF Matrix, which requires php5. I have php 4.x on my host
that’s the reason that I’m trying with this file field

Profile
 
 
Posted: 09 March 2010 08:31 AM   [ Ignore ]   [ # 938 ]  
Lab Assistant
RankRank
Total Posts:  130
Joined  03-13-2009

I’m really sorry but I have to go back a couple of pages and again try returning the total results of uploaded images JUST ONCE:

{exp:weblog:entries weblog="{wb}" disable="pagination|trackbacks|member_data" show_expired="yes"}

<p>Total Images{event_pictures}{total_results}{/event_pictures}
This is my Image URL
{event_pictures}{file_url}{/event_pictures}</p>

{/exp:weblog:entries} 

this way and all ways on page 49 and 50 always returning me a loop through all the uploaded files -
9 9 9 9 9 9 9 9 9
for nine files
Can anyone did this counting with PHP and how?

Profile
 
 
Posted: 09 March 2010 11:21 AM   [ Ignore ]   [ # 939 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  575
Joined  03-18-2007

Have you tried using {if count = total_results}{total_results}{/if} to just output it on the last page? Or to use PHP do something like:

<?php $count 0?>
{event_pictures}
"Output the pictures however"
<?php $count++; ?>
{
/event_pictures}
<?php 
echo $count?> 
 Signature 

Follow me on Twitter: twitter.com/mrw

Note: I used to be slapshotw on this forum.

Profile
 
 
Posted: 09 March 2010 11:26 AM   [ Ignore ]   [ # 940 ]  
Lab Assistant
RankRank
Total Posts:  130
Joined  03-13-2009

hmm - this sounds interesting - No I haven;t tried with if count…
I will !
Otherwise I think the php will do the job, just wanted to avoid it.
many thanks

Profile
 
 
Posted: 15 March 2010 07:09 AM   [ Ignore ]   [ # 941 ]  
Lab Assistant
RankRank
Total Posts:  130
Joined  03-13-2009
slapshotw - 09 March 2010 04:21 PM

Have you tried using {if count = total_results}{total_results}{/if} to just output it on the last page? Or to use PHP do something like:

<?php $count 0?>
{event_pictures}
"Output the pictures however"
<?php $count++; ?>
{
/event_pictures}
<?php 
echo $count?> 

This works in both ways - many many thanks!

Profile
 
 
Posted: 29 March 2010 02:47 AM   [ Ignore ]   [ # 942 ]  
Summer Student
Total Posts:  10
Joined  06-02-2008

Hello!

I have not run as downloading a few pictures. Item “Allow Multiple” is turned on and allows you to add multiple files. But after saving the recording I get only the first image in the quantities that I downloaded and the same number of thumbnails.

If you upload one picture at a time - everything works fine. What I can not work properly?

Profile
 
 
Posted: 29 March 2010 07:34 PM   [ Ignore ]   [ # 943 ]  
Summer Student
Total Posts:  17
Joined  08-17-2006

Hi. When I installed this extension and enabled extensions on my EE Core installation, I get a nasty error that will not let me access my CP any more. I followed your instructions explicitly for installing then enabling extensions. Your extension is the only one I have on this site.

The errors I get are:

Warning: Missing argument 1 for edit_upload_prefs() in /nfs/c02/h07/mnt/18903/domains/click-boom.com/html/click/boom/extensions/ext.mh_file_ext.php on line 326

Warning: Missing argument 1 for edit_field_groups() in /nfs/c02/h07/mnt/18903/domains/click-boom.com/html/click/boom/extensions/ext.mh_file_ext.php on line 183

I also get the following errors when I load the site itself:

Warning: Missing argument 1 for modify_template() in /nfs/c02/h07/mnt/18903/domains/click-boom.com/html/click/boom/extensions/ext.mh_file_ext.php on line 1109

Warning: Missing argument 2 for modify_template() in /nfs/c02/h07/mnt/18903/domains/click-boom.com/html/click/boom/extensions/ext.mh_file_ext.php on line 1109

Warning: Missing argument 1 for modify_template() in /nfs/c02/h07/mnt/18903/domains/click-boom.com/html/click/boom/extensions/ext.mh_file_ext.php on line 1109

Warning: Missing argument 2 for modify_template() in /nfs/c02/h07/mnt/18903/domains/click-boom.com/html/click/boom/extensions/ext.mh_file_ext.php on line 1109

Warning: Missing argument 1 for modify_template() in /nfs/c02/h07/mnt/18903/domains/click-boom.com/html/click/boom/extensions/ext.mh_file_ext.php on line 1109

Warning: Missing argument 2 for modify_template() in /nfs/c02/h07/mnt/18903/domains/click-boom.com/html/click/boom/extensions/ext.mh_file_ext.php on line 1109

Any ideas here?

Profile
 
 
Posted: 29 March 2010 07:59 PM   [ Ignore ]   [ # 944 ]  
Summer Student
Total Posts:  17
Joined  08-17-2006
jdgraffam - 29 March 2010 11:34 PM

Hi. When I installed this extension and enabled extensions on my EE Core installation

I upgraded to full EE 1.6.7 and still get the same errors. So it isn’t related to it being Core version I don’t think.

Profile
 
 
Posted: 11 April 2010 04:12 PM   [ Ignore ]   [ # 945 ]  
Grad Student
Rank
Total Posts:  62
Joined  03-21-2008

I’m having the same kind of control-panel blocking error:

Warning: Missing argument 1 for edit_upload_prefs() in /home/generalb/public_html/system/extensions/ext.mh_file_ext.php on line 326
Warning: Missing argument 1 for edit_field_groups() in /home/generalb/public_html/system/extensions/ext.mh_file_ext.php on line 183

Anyone solve this?

UPDATE:
Both this extension, and Mark’s checkbox extension return the same kind of errors to me using EE 1.6.8. I had to manually disable extensions in the config.php file, then clear out the exp_extensions table in the database before I could remove the extensions.

Profile
 
 
Posted: 02 July 2010 09:08 AM   [ Ignore ]   [ # 946 ]  
Lab Assistant
RankRank
Total Posts:  244
Joined  11-02-2006

Hi Mark,

Great extension this. Can’t believe I’ve only just discovered it.

Is there a way to output {file_name} within a weblog:entries tag. I’ve tried just calling {file_name} as a standard variable but that doesn’t work.

And I’ve also tried this…

{exp:weblog:entries weblog="assets" dynamic="off" category="4" orderby="title" sort="asc"}
{if count
==1}<ul>{/if}
<li><a href="{asset_internal}" title="{images}{file_name}{/images} is {asset_size}">{title}</a></li>
{if count==total_results}</ul>{/if}
{
/exp:weblog:entries} 

...and that doesn’t work either (NB: {asset_internal} is my custom File field).

Any help much appreciated.

Profile
 
 
Posted: 08 July 2010 05:56 PM   [ Ignore ]   [ # 947 ]  
Lab Assistant
RankRank
Total Posts:  118
Joined  05-03-2007

What versions of ExpressionEngine will version 3.1.1 of this extension work with?  Specifically I’m wondering if it will work with EE 1.5.2.  Do I need to do anything special to upgrade from File v2.1.0?

Also, FYI, the comment at the top of the ext.mh_file_ext.php file in the ext.file_311.zip archive misidentifies the file name / add-on name as Multi Relationship.

EDIT: Nevermind I guess…I didn’t realize how old v.3.1.1 of this extension is, and that there are apparently a lot of bugs?  Apparently I tried 3.1.1 over a year ago and found that it did not have the advertised ability to set thumbnail dimensions for each file upload destination.  That’s why I was looking to upgrade it now.

Profile
 
 
   
53 of 53
53