1. cellwise
  2. General
  3. Monday, September 15 2014, 04:36 AM
Hello,

I really need help from support. I'm dealing with a couple issues and I have posted a couple questions, but haven't received any answers. I will upgrade to Pro if that will provide me with more support. :)

- Tabs are not showing on Registration (shows vertical form) and Member Profile doesn't look correct either.

Yes, I have turned on bootstrap CSS setting in global config, as well as the tab setting.

- Need to POST a PHP variable as a default value in one of the text fields on Registration Form. Needs to save to User Profile/Database.

Any help is much appreciated.

Thank you!
Attachments (1)
Accepted Answer
admin Accepted Answer
Admin
Hi,
read docs at: https://www.easy-profile.com/docs/38-jsnuser-object.html

You can retrieve biz_code with this code
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=new JsnUser();
echo('<input type="text" value="'.$user->biz_org_code.'" />');
  1. more than a month ago
  2. General
  3. # Permalink
admin Accepted Answer
Admin
Hi,
sorry for late reply
Tabs are not showing on Registration (shows vertical form) and Member Profile doesn't look correct either.
If you have enabled "View the form in tabs" the problem may be a Javascript error on your site.To check this we need to see your site, but when I go on your link I get a blank page.:(

Need to POST a PHP variable as a default value in one of the text fields on Registration Form. Needs to save to User Profile/Database.
Sorry but this is not possible, this require "eval" PHP function, this function is not secure and blocked from many provider. This function is used to parsing php code from a string value. if you explain to me exactly what you want to do (even via PM), we can propose a change to our code to make it ;)
  1. more than a month ago
  2. General
  3. # 1
cellwise Accepted Answer
Thanks for getting back to me. Yes, sorry, I had some Geo IP blocking on the site. I removed some of the blocks so you should be able to view the site now. If not, where are you located?
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Hi,

Tabs problem
I see this:
- Maybe tabs are not enable on Easy Profile options, try to check on Components->Easy Profile->Options at "View the form in tabs" parameter
- You have some problem with javascript (see screenshot 1)
- You have many instances of Jquery Javascript library (see screenshot 2). From Joomla 3.0 jquery is a common built in library, many old components/modules/plugins that require jquery load it independently. This generate a conflict. So you in these component or plugin you must to disable jquery (many ol component allow this)
Attachments (2)
  1. more than a month ago
  2. General
  3. # 3
admin Accepted Answer
Admin
ok, I have made some other test.

Javascript errors
You have 4 multiple instance of jquery loaded by
- Joomla > this it's ok
- "Videobox" Plugin > I have disabled Jquery from Exntesions->Plugin Manager
- "System - Quicksand (TubeGallery)" Plugin > I have disabled Jquery from Exntesions->Plugin Manager
- "Unite Revolution Slider" > I have disabled Jquery from Exntesions->Module Manager

Username Problem
The username is removed from Ajax register component, I have disabled his plugin and now work, the plugin are:
- System - AJAX Register
- User - AJAX Register

Tabs Problem
Easy Profile extends Joomla user manager, to work tabs the page to register/edit profile must be the same of original Joomla. Your template override these, you can solve this by rename the folder /templates/your_template_folder/html/com_users to /templates/your_template_folder/html/com_users.old

Self-assigned default value
Try to read here, maybe you can do this without core hack https://www.easy-profile.com/docs/27-set-default-value-in-registration-from-url.html
example of url https://www.domain.com/member-profile?view=registration&;biz_org_code=YOURCODE
  1. more than a month ago
  2. General
  3. # 4
cellwise Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 5
admin Accepted Answer
Admin
Hi,
now tabs seem to work, and your site load 400Kb less of javascript code ;)

Self-assigned default value
I have created a screenshot to explain how to work ;)
Attachments (1)
  1. more than a month ago
  2. General
  3. # 6
cellwise Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 7
admin Accepted Answer
Admin
ok, you can do this:
edit file /administrator/component/com_jsn/helpers/fields/text.php

at line 47 add this code
if(isset($_POST['inp']) && $item->alias=='biz_org_code') $defaultvalue='default="'.$_POST['inp'].'"';


Comment lines 81 and 82
//if($field->params->get('text_readonly','')==1 && JFactory::getApplication()->isSite()) return;
//if($field->params->get('text_readonly','')==2 && JRequest::getVar('view')!='registration.register' && JRequest::getVar('view')!='register' && JFactory::getApplication()->isSite()) return;


the first mod add default value on field biz_org_code from $_POST['inp']
the second mod allow the system to store the value, because readonly is not stored
  1. more than a month ago
  2. General
  3. # 8
cellwise Accepted Answer
Brilliant! It worked! Thank you so much.

One thing that I noticed on the first registration tab is that when you click on the dropdown selection box, it puts all of the content in a vertical scroll container. Any idea how I could fix this? Add some delimiters to create more space?

Also, if I want to recall that User's biz_org code on another field, what would that code look like? For example, when a User is logged in and making a purchase, I would like to call that User's code (from db I'm assuming) to be auto populated during checkout. Sorry if I am not explaining this clearly. My PHP knowledge is limited.

Thank you again.
  1. more than a month ago
  2. General
  3. # 9
admin Accepted Answer
Admin
Hi,
try to add this line to your CSS, maybe at the end of /templates/masoko/styles/blue_custom/css/custom.css:
.tab-content{overflow:visible;}
  1. more than a month ago
  2. General
  3. # 10
cellwise Accepted Answer
Thank you. That worked.

Is there anything special I need to do for this:
If I want to call that User's biz_org code on another form (from db I assume), what would that code look like? For example, when a User is logged in and making a purchase, I would like to call that User's code (from db I'm assuming) to be auto populated in text field during checkout.


Much appreciated!
  1. more than a month ago
  2. General
  3. # 11
cellwise Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 12
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.