I wanted to figure out how to access the error object within the HTML_QuickForm framework to identify the elements that have undergone a failure under the added rules after the form is transferred back from the server after submission, Either from the DRUPAL-PHP or the SMARTY-JAVASCRIPT framework.
Also as to where in DRUPAL ( drupal file / method ) could I get the correct access to this element in order to process it to identify the failed elements. I have tried using this in the buildquickform method invoked under the schema of any 'form'.php file under the control flow of the form->validate condition which triggers when the form is submitted and flow goes to the server. It doesnot seem to return the elements that have failed
My search has lead me to these findings ::
We have an element/group called 'errors' which is implictly added to the final HTML by QuickForm .
It is of the type HTML_QuickForm_Error and extends the PEAR_Error defined under the PEAR.php file.
I can predict that this element is of the type array just as the buttons group added under the drupal framework and has indexes to several error messages provided by HTML_quickform.
Any associated template structure includes a code which checks the count of the number of indexes in the 'errors' element before displaying the errors .
These errors are displayed independently of the associated element by including the type element
Hi,
I am supposed to develop a voice chat as a part of my final year project.
I should develop this application using VB 6.0, initially for 2 PC LANed.
i have no idea.....
Please give me the steps to do this.....
please make it fast
Thanks,
Aravind
i'm currently editing the profile.module of 4.5.2, so that it allows creating profile fields to belong to specific user roles, so that in affect the users have different profiles.
i've already done most things, but i've a problem with the hook_user. i need the $user object in profile_categories, but unfortunately it seems that $user isn't set for the hook with type categories. (in detail i need $user->roles, i also tried to access $user->uid, but no success..)
I am a relativly new user of Drupal, and to begin with i really enjoyed its simplistic yet oh-so-powerful architecture, and i would extremly like to use it for sometime to come. However, theres one SERIOUS flaw/bug: THERE IS NO CACHE CONTROL that can prevent browsers / proxy servers from caching content. I have ALLREADY rendered 2 of my domains unusable (for sometime to come, anyway) due to the proxy server (which my ISP forces me though for all internatuion traffic) caching the pages... including when i logged in as ADMIN.
So now anyone who is on the same ISP (300K users) and desides to view my site can do ANYTHING (well or allmost anything) with it - providing thereś a cached copy of that pages on the proxy. Initially i was not aware of the flaw since i did most of the development on my home dev machine, and had no proxy servers in the equation, then i blindly transferred the resultant DB and files onto my webhostś server and did some fine tuning (that involved me looking though most of the admin pages while being logged in as admin). Days later i have opened my site from my friends computer who was still connected by the same ISP and despite the fact that he has never logged onto my site as admin (nor did he even ever opened it) i WAS ABLE TO DO SOME OF THE ADMIN stuff without having to log in.
Please help, this issue needs to be addressed immediatly as it is evident that there is a huge security risk involved.
There seems to be little need for core drupal maintainers to put the .module files into their own directories. I find this ver inconsistant and cluttered. So I move the files on my local copy into their own directories after download/CVSimport.
The following PHP script can be used as shell script to do the magic for you, if you have PHP-cli installed. (command-line PHP):