[TYPO3-english] sr_feuser_register: Uploading images into distinct fields

Bernard Munslow bernard.munslow at iws.es
Tue Nov 4 13:29:48 CET 2008


Dear Bernard,

If you have successfully created the new marker for the additional field 
by modifying view/class.tx_srfeuserregister_display.php 
<http://segre.com/typo3/mod/tools/em/index.php?CMD%5BshowExt%5D=sr_feuser_register&CMD%5BdownloadFile%5D=C%3A%2FTYPO3_4.2.0%2Fhtdocs%2Ftypo3test%2Ftypo3conf%2Fext%2Fsr_feuser_register%2Fview%2Fclass.tx_srfeuserregister_display.php>(which 
you probably have, since you get the uploader built), but you can't see 
the preview, this probably means that you have failed to add the new 
field into the list of fields assigned to the object/property 
'evalValues' belonging to modes 'Create' and 'Edit'.  

You can add the new field by accessing the Typoscript Object Browser of 
your main Template (or the template you apply to the page where the 
register plugin is found) and browse through the tx_srfeuserregister_pi1 
<http://segre.com/typo3/sysext/tstemplate/ts/index.php?id=95&sObj=plugin.tx_srfeuserregister_pi1> 
plugin.

In addition, you might also need to review the definition of your new 
image-field. Have a look at the $TCA (tables.php) and see how the 
original field 'image' is set up.  If this definition does not match 
your field (it's a tinytext if I'm not wrong), you should update your 
/ext_tables.php/ file (the one that belongs to the extension you used to 
insert new fields into /fe_users /table).


All the best,


.- Bernard



> Message: 3
> Date: Mon, 03 Nov 2008 10:01:56 +0100
> From: Bernard Munslow <bernard.munslow at iws.es>
> Subject: [TYPO3-english] sr_feuser_register: Uploading images into
> 	distinct	fields
> To: typo3-english at lists.netfielders.de
> Message-ID:
> 	<mailman.52322.1225702918.4573.typo3-english at lists.netfielders.de>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Dear list,
>
> I'm facing a problem with the Frontend User Registration extension that 
> is driving me crazy. If someone could give me a helping hand I'd 
> appreciate it tremendously.
>
> The facts are quite simple:  I need two different fields within the 
> Registration form in order to allow the user to upload 2 different 
> images.  So far so good, since /sr_feuser_register/ allows you to select 
> the number of files you want to upload. 
>
> The drawback is that I need to save the second image in a different 
> field, whereas the extension uploads all images in the the standard 
> '/image/' field available in /fe_users.
>
> /What I've done is create another marker for the field: 
> ###UPLOAD_tx_extension_field2### and modify the file 
> class.tx_srfeuserregister_marker.php in order for it to recognize the 
> marker.  This successfully builds an uploader in the registration form, 
> but it fails to show the preview of it and, of course, does not upload 
> the actual image.
>
> Any ideas?
>
> Thank you guys for your help!
>
>
>
> .- Bernard
> /
>
> /
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 03 Nov 2008 10:17:19 +0100
> From: Walrick Bosch <lists at globalhealingcircle.net>
> Subject: Re: [TYPO3-english] Return to 'previous page'
> To: typo3-english at lists.netfielders.de
> Message-ID:
> 	<mailman.1.1225703839.11211.typo3-english at lists.netfielders.de>
> Content-Type: text/plain; charset=ISO-8859-1
>
> What about simply using:
>
> <a href="javascript: history.go(-1)">Return to previous page</a>
>
> In your template? Won't give you the name of the page of course.
>
> Regards,
>
> Walrick
>
> piet roorda wrote:
>   
>> sorry kept you waiting
>> http://support.typo3.org/documentation/tsref/cobjects/HMENU/
>>
>> in the TSref are hints like these.
>> Try google, but then again I think you tried that already.
>>
>> if this answer isn't working, mai again and I'll help you out.... tomorrow
>> cheers,
>> piet
>>
>> On Mon, Nov 3, 2008 at 12:06 AM, Antonio Willybiro
>> <keiser_soze at hotmail.com> wrote:
>>     
>>> Hi,
>>>
>>> i was asking if there is an extension or what the typoscript would be
>>> actually?
>>> so any hint about the TS code to use would be welcomed.
>>>
>>> Thanks
>>> A
>>>
>>> "piet roorda" <pietroorda at gmail.com> wrote in message
>>> news:mailman.52263.1225664911.4573.typo3-english at lists.netfielders.de...
>>>       
>>>> will a extension make you happier?
>>>> why not put a small typoscript part link it to your template and off you
>>>> go
>>>> cheers,
>>>> piet
>>>>
>>>> On Sun, Nov 2, 2008 at 11:10 PM, Antonio Willybiro
>>>> <keiser_soze at hotmail.com> wrote:
>>>>         
>>>>> Hi there,
>>>>>
>>>>> is there an extension or maybe just a TS that can be added on any page
>>>>> and
>>>>> would point to the previous page the visitor visted.
>>>>>
>>>>> Something sthat would look like:   "Return to: [previous page title]"
>>>>>
>>>>> Thanks
>>>>> Antonio
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> TYPO3-english mailing list
>>>>> TYPO3-english at lists.netfielders.de
>>>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>>>>
>>>>>           
>>> _______________________________________________
>>> TYPO3-english mailing list
>>> TYPO3-english at lists.netfielders.de
>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>>
>>>       
>
>
>   


More information about the TYPO3-english mailing list