26

Re: Hardcover Extension / Tutorial: Nice form field hints

Hello all,

I know this thread has been closed for a while but wonder if it's still monitored as I have a question regarding dynamic content. The script is very helpful and I have successfully implemented it on ‘static’ options that show in the registration page under "Login Details", such as username, password and email. Those items are coded right into the template.

My question addresses dynamic fields. What I mean with 'dynamic' is that in the control panel you can choose which additional questions may appear in the registration page. For example under "General" header you have city, country, age etc. However, those items are retrieved based on whether they were set to appear via the control panel ("Load in registration = yes").

I want to add an informative text, stating that the exact date will not appear on the profile or be made public, that it’s just to calculate the age. This will ease some worries members may have.


Is there a way to add code (and if so are there any suggestions?) that says that if 'age' is displayed on that page, add the {hint:langarray="register",key="whatever_in_this_case_age"} ?

Hope this question makes some sense. Please don’t use the terms static and dynamic in traditional sense. I am just trying to express that some fields are hard coded into the template while others are shown based on permissions.

Thanks to all, particularly to radioact for sharing this very helpful extension.

Richard

Thanks to all vldPersonals forum users for the help, suggestions and solutions! You're awesome!
For more hints, tricks and solutions visit vldCrowd

27

Re: Hardcover Extension / Tutorial: Nice form field hints

Not sure if this answers your question, but take a look at:

http://www.vldcrowd.com/member/8/blog/view/95/

28

Re: Hardcover Extension / Tutorial: Nice form field hints

Hello db3204,

thank you for the link. It absolutely did answer the question. Thank you very much for taking the time to help me and others.

Best wishes,
Richard

Thanks to all vldPersonals forum users for the help, suggestions and solutions! You're awesome!
For more hints, tricks and solutions visit vldCrowd

29

Re: Hardcover Extension / Tutorial: Nice form field hints

I am struggling with this one. Except for one slight deviation, I have copied and pasted as per the instructions and still cannot get this to work; it causes my registration page to load without all the input fields.

The deviation:
instead of adding the code into the misc.js, I saved the code as a new file called it hints.js and then added the following into the header.tpl just below the call for the misc.js

<script type="text/javascript" src="{virtual_path}includes/js/hints.js"></script>

Does anyone have any clues as to what I might have done wrong?

Last edited by DesperateSailors (2011-06-20 17:47:11)

30

Re: Hardcover Extension / Tutorial: Nice form field hints

so this message would not pop up when user finish register and want to edit their profile again? only in the register page it would show up?