I looked on my PHP info page. I do not see “DOCUMENT_ROOT” anywhere. Is this possible? I am using: ExpressionEngine v 1.6.7 PHP Version 5.2.10.
Can you tell me what section of the PHP info page I would find it in? There is a ton of stuff on this page. But I am sure there is nothing called “DOCUMENT_ROOT” here.
Here are some random things from the PHP info page that have paths in them:
_SERVER["PATH_TRANSLATED"] D:\Inetpub\seidenschein_com\admin\index.php
_SERVER["SCRIPT_NAME"] /admin/index.php
_SERVER["ORIG_PATH_INFO"] /admin/index.php
_SERVER["SCRIPT_FILENAME"] D:\Inetpub\seidenschein_com\admin\index.php
_SERVER["PHP_SELF"] /admin/index.php
SystemRoot C:\WINDOWS
Wait! Is this it? doc_root no value no value
This seems bad… Help? (This is in the PHP core section of the page.)
Thanks again, Rory
Quick note here: I just released an extension that adds dynamic audio previews to MP3s uploaded via nGen File Field:
Is it possible to access the filename for use in my templates? I’d like to use it as the text for my download links.
I am trying to avoid having to have an extra column in File FIeld just for a Title/Name when I can just pull the actual filename.
I saw in one of the updates that a new parameter was added, “New param: show=”filename” will output only the file name without path, which sounds like what I need, but I can’t figure out how to use it.
I am using using File Field in a Field Frame Matrix. 3 File Field columns: “file” for the actual file, “file-name” for a title/name and “file-description” for a longer description of the file. Here is my template code:
{files}
<tr>
<td>{file-description}</td>
<td><a href="http://{file}">{file-name}</a></td>
</tr>
{/files}
Any help would be appreciated. Thanks.
“Anyone interested in the feature to hide the “Choose existing file” menu, please PM me your e-mail address.”
any progress on this feature? would be appriciated :D
I’m using the ngen file field for lists of downloadable PDF’s. These lists can be upto 150 files long and the “DirectoryIterator” bit made it unworkable in the cp (even with only the thumb-creating line 738-740 commented out). So i commented it out completely, but it would be great to have an elegant way to blank out the “Choose existing file” button too.
any1?
Got a reply from nGen:
We’re working on that feature for the next release, and also improving performance of the file list in the CP. The best advice I can give right now is to create more upload locations to break up your single location. Our approach is to make upload locations very specific to the page/section it’ll be used on. Thanks for using nGen File!
They are working on it
Just ran into this error:
MySQL ERROR:
Error Number: 1146
Description: Table 'web29184l_ee.exp__upload_prefs' doesn't exist
Query: SELECT id, name FROM exp__upload_prefs WHERE site_id = 1 ORDER BY name ASC
The table prefix on my server is “exp_” and not the default suggestion “exp”, I believe this might be causing this, but I haven’t found any reference to this in the extension.
I’ve been successfully using nGen File Field to populate a Slide Show Pro gallery. But now there’s about 8 or more separate galleries (each containing several photos) I’m getting the following error from the Control Panel when I try to add or edit a gallery.
Fatal error: Out of memory (allocated 66322432) (tried to allocate 17024 bytes) in /home/shakethe/public_html/admin/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 842
I can up my memory limit above 64MB with my current hosts without paying big bucks for a dedicated server!
In this thread here: http://ellislab.com/forums/viewthread/133631/ Max points out it’s probably to do with thumbnail creation.
Can someone please help me figure out a way to keep this working under the 64MB limit please?
Thanks!
Does anyone know how to use the show=”filename” parameter with File Field? I’m completely stumped. Thanks!Seconded.
It’s very simple if you’re using it with FF Matrix you just use it within the quotes of your ngen FF field and not the quotes of the FF Matrix fields pairs.
{application_images}
{image show="filename"}
{/application_images}
In the above code the matrix field is application_images and the ngen FF field is image.
I hope this helped you
nGen File Field is causing a problem when it renames duplicate file names. It works fine appending a number to the filename until the 10th time… then it starts overwriting the _10 file.
OscillatorGIF.gif OscillatorGIF_1.gif OscillatorGIF_2.gif OscillatorGIF_3.gif OscillatorGIF_4.gif OscillatorGIF_5.gif OscillatorGIF_6.gif OscillatorGIF_7.gif OscillatorGIF_8.gif OscillatorGIF_9.gif OscillatorGIF_10.gif OscillatorGIF_10.gif (OVERWRITES PRIOR ) OscillatorGIF_10.gif (OVERWRITES PRIOR ) OscillatorGIF_10.gif (OVERWRITES PRIOR )
The client’s workflow makes renaming the chart filename a real pain.
Any thoughts?
Thanks!
One question about this. If I set up a photo gallery using this extension is there some way to pull only one photo (random) rather than display all. Basically I want to have one random photo display from the photo gallery weblog with a link to that entry/gallery where the rest of the pics will be on display.
Back in May when I asked this question it wasn’t possible to do what I wanted. Well today I looked again as I need to be able to do this for a client site and it looks like there have been some changes to FF Matrix which allows this to happen.
I wrote it up on my blog - FF Matrix: Thinking Out Loud
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.