Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Advertise on this site

Joomlapolis Forums  


Extra field (phone no.) for public user
Date: 2008/07/16 15:18 By: mrocks Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 6
graphgraph
How to add extra field (say phone number) for public user while sending PMS to registered user.

I think this will be important hack for sending PMS from unregistered user to registered user....

Slabby...any thoughts?
Click here to see the profile of this user The administrator has disabled public write access.

Re:Extra field (phone no.) for public user
Date: 2008/07/16 16:14 By: slabbi Status: CB Doc subscriber  
Karma: 56  
Moderator

Posts: 969
graphgraph
Search for "public*" fields and add your own code whenever these fields are processed. You will find these fields in quite all files.

But I do not recommend to hack the code since you cannot update to newer versions without patching the code again.
CB Language Workgroup
uddeIM Development
CB 3rd Party Developer
Click here to see the profile of this user The administrator has disabled public write access.

Re:Extra field (phone no.) for public user
Date: 2008/07/16 17:08 By: mrocks Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 6
graphgraph
waoh....that really is not a easy hack....public is almost everywhere

May be, I can use the subject field and rename the title to phone no. and pass this value in the message body....

can u put some light on it...how do I achieve that?
Click here to see the profile of this user The administrator has disabled public write access.

Re:Extra field (phone no.) for public user
Date: 2008/07/16 19:32 By: slabbi Status: CB Doc subscriber  
Karma: 56  
Moderator

Posts: 969
graphgraph
You could add a field to the form and add the content of the REQUEST variable after submitting to the message text.

That requires one additional field in the form, a getParam line at the beginning of public.php and one line in the save message function.

Sorry, since this is a very special hack I cannot provide further support for that since I have no spare time for individual changes.
CB Language Workgroup
uddeIM Development
CB 3rd Party Developer
Click here to see the profile of this user The administrator has disabled public write access.

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC2, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login