CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • how do i store information on my own profile?
Pages: 1 [2]

Author Topic: how do i store information on my own profile?  (Read 4685 times)

jahnabi

  • Guest
Re: how do i store information on my own profile?
May 20, 2008, 09:16:34 pm
It works good when i use the following url:
    http://localhost/drupal-5.5/index.php?q=civicrm/profile/create&gid=2&reset=1

However, using this url I have found it difficult to change the layout and the tables. But if pasting in a page doesnot work then please help me to customise the form using the above url.   
I have gone through the civicrm documentation and have followed this url:
   http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens

Accordingly i saved my custom template copy to:
  /usr/local/apache2/htdocs/drupal-5.5/civicrm_custom/CRM/Profile/Form/2/Edit.tpl

I have also saved the Dynamic.tpl file to the above path as it seems to contain the tables. But to work on this file require lots of coding.

So if i paste it in the codes in a page then to customise the layout and the tables become very easy.

So to conclude, should we say that using a page we cannot store more than one contacts by logging in as admin?
Moreover if it is so then please guide me to customise the form i.e. in :
    http://localhost/drupal-5.5/index.php?q=civicrm/profile/create&gid=2&reset=1   
 
....or if anybody knows any other easy way to get rid of this situation then please give your suggestions.




« Last Edit: May 20, 2008, 09:23:27 pm by jahnabi »

jahnabi

  • Guest
Re: how do i store information on my own profile?
May 22, 2008, 03:11:55 am
I have followed the first method and accordingly have installed smarty to customise the page as needed. I have gone through most of the issues on forums and have checked :   http://www.smarty.net
   
When i add &smartyDebug=1 to the url of my page a window pop ups as:

included templates & config files (load time in seconds):
no templates included
assigned template variables:
{$SCRIPT_NAME}   /drupal-5.5/index.php
{$action}   1
{$activeComponent}   CiviCRM
{$config}   CRM_Core_Config Object (83)
dsn => mysql://root:@localhost/drupal5?new_l...
userFramework => Drupal
userFrameworkURLVar => q
userFrameworkDSN => mysql://root:@localhost/drupal5?new_l...
templateCompileDir => /usr/local/apache2/htdocs/drupal-5.5/...
initialized => 1
componentRegistry => CRM_Core_Component Object (0)
inCiviCRM =>
daoDebug => 0
debug => 1
backtrace => 1
smartyDir => /usr/local/apache2/htdocs/drupal-5.5/...
pluginsDir => /usr/local/apache2/htdocs/drupal-5.5/...
templateDir => /usr/local/apache2/htdocs/drupal-5.5/...
resourceBase => http://localhost/drupal-5.5/sites/all...
uploadDir => /usr/local/apache2/htdocs/drupal-5.5/...
imageUploadDir => /usr/local/apache2/htdocs/drupal-5.5/...
customFileUploadDir => /usr/local/apache2/htdocs/drupal-5.5/...
imageUploadURL => http://localhost/drupal-5.5/files/civ...
cleanURL => 0
countryLimit => Array (1)
  0 => 1228
provinceLimit => Array (1)
  0 => 1228
defaultContactCountry => 1228
defaultCurrency => USD
lcMessages => en_US
dateformatDatetime => %B %E%f, %Y %l:%M %P
dateformatFull => %B %E%f, %Y
dateformatPartial => %B %Y
dateformatYear => %Y
dateformatTime => %l:%M %P
dateformatQfDate => %b %d %Y
dateformatQfDatetime => %b %d %Y, %I : %M %P
dateformatMonthVar => M
datetimeformatMonthVar => M
datetimeformatHourVar => h
fiscalYearStart => Array (2)
  M => 1
  d => 1
moneyformat => %c %a
lcMonetary => en_US
currencySymbols => empty
defaultCurrencySymbol => empty
gettextCodeset => utf-8
gettextDomain => civicrm
gettextResourceDir => /usr/local/apache2/htdocs/drupal-5.5/...
smtpServer => localhost
smtpPort => 25
smtpAuth =>
smtpUsername => empty
smtpPassword => empty
userFrameworkVersion => 5.7
userFrameworkUsersTableName => users
userFrameworkClass => CRM_Utils_System_Drupal
userHookClass => CRM_Utils_Hook_Drupal
userPermissionClass => CRM_Core_Permission_Drupal
userFrameworkBaseURL => http://localhost/drupal-5.5/
userFrameworkResourceURL => http://localhost/drupal-5.5/sites/all...
userFrameworkFrontend =>
mysqlPath => /usr/bin/
maxImportFileSize => 2097152
mapProvider => empty
mapAPIKey => empty
geocodeMethod => empty
mapGeoCoding => 1
versionCheck => 1
enableComponents => Array (5)
  0 => CiviContribute
  1 => CiviMember
  2 => CiviEvent
  3 => CiviMail
  4 => CiviGrant
enableSSL =>

   etc.


documents seem to be thin in this case.I have not found any step by step instuctions anywhere.
so what exactly would i do to customise the layout of my page.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: how do i store information on my own profile?
May 22, 2008, 06:50:05 am
Further down in the Smarty Debug output, you will see an array called "form" which contains all the variables which render the field label and html (input elements) for your profile. If you want to explicitly lay out all the fields, then replace all of Dynamic.tpl starting w/ this line (around line 20)

    {foreach from=$fields item=field key=name}

and ending in (near the bottom of the file)

    {/foreach}

... with HTML that includes the each field's .label and .html variable where you want them.. for example:

{$form.first_name.label} : {$form.first_name.html}

If this is not making sense to you, and you can't get help from a technical resource - then you may have to live with the out-of-the-box layout for now.
Protect your investment in CiviCRM by  becoming a Member!

jahnabi

  • Guest
Re: how do i store information on my own profile?
May 26, 2008, 12:43:49 am

Thanks a lot. it has been very helpful.
I could now customise the layout and the custom fields as i need.
however, it does'nt work for the primary fields.

On my form i have email id as the primary field. on smarty it displays as:

email-Primary => Array (9)
  name => email-Primary
  value => empty
  type => text
  frozen =>
  required =>
  error => empty
  id => email-Primary
  label => <label for="email-Primary">Email (Pri...
  html => <input maxlength="64" size="30" name=..


On my template file when i type
                 {$form.email-Primary.label}
                {$form.email-Primary.html}

nothing but a "00" is displayed in the form.
what do i do to customise this field? please give guidance.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: how do i store information on my own profile?
May 27, 2008, 07:45:11 pm
No idea why this might be happening :-(
Protect your investment in CiviCRM by  becoming a Member!

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • how do i store information on my own profile?

This forum was archived on 2017-11-26.