Joomla - clone user on register - database

I'm looking for a way to add Joomla user to custom table (PrestaShop - same database) - duplicate user on registration.
So user will be able to login to Joomla and second script (PrestaShop) using same login information.
Any ideas where I should start looking in Joomla files?
I know, that custom user plugin will be a better way to achive user duplication, but now I'm looking for temporary hard-coded fix until I'll be able to write a plugin.
(Joomla 1.6)

The other solutions won't let you save the passwords. If you are looking for saving the password as well then you will need to look into
components\com_user\controller.php
function register_save() {}
Note: I have given with reference to joomla 1.5. It might slightly vary if you are using joomla 1.6

Related

What is the best way to integrate a small angular.js application into Wordpress?

I am working on adding a small one-page AngularJS application to my friend's Wordpress site. The application will take some user input and generate on-screen output using that input. It will also log the user input for analysis purposes.
I will need to be able to host the files for that page on my friend's site as well as create a back-end script that can capture the user input and store it to a MySQL database.
I have worked with WordPress sites before but have never customized them or written a plugin. How would you go about making this happen?
I will select the answer that leads me down the most efficient / effective path. Thanks!
After poking around for a while, I ran across the Advanced Custom Fields plugin. Using this helped me add custom JavaScript to the specific page that needed Angular support.
Here is information on how to use ACF to add JavaScript support:
https://www.godaddy.com/garage/3-ways-to-insert-javascript-into-wordpress-pages-or-posts/
Here is the plugin itself:
https://wordpress.org/plugins/advanced-custom-fields/

How to create separate admin panel for customer in joomla 3?

I am working on a project where my client has no idea about joomla admin panel.
So I have decided to provide a separate admin pannel which my client can access and manage few things.
I am also having multiple pages and sub-pages in this admin panel.
Lets say I want to give multiple manage links.
manage item
sub-menu
manage item 2
I am little confuse how do I do it, once I thought about component and moduel but I don't know how to add menu links in components for front end.
I am using joomla 3.0.
Many thanks in advance.
If your intention is creating a backend alternative to joomla to control joomla's frontend, this is a hard thing to do if you are just a e-commerce website developer.
But if you need a different account other than your administrator account, you can add one account and edit it's privileges.
A second admin panel for easier use? sorry that sounds not good. Just do it like serhat above said. make a new account for joomla admin-panel. cut of the privileges so the user see only the things he has access to! its better then coding a fully new admin panel. there is already a fully configurable panel so why do another one?
Give the users just what they have to see and hide the rest (via admin-privileges)

How to create new Custom Login Popup in Dotnetnuke 7?

Hi,
My Questions are :
I just want to create Login Popup in DNN 7 according to my requirements and CSS.
Please suggest way for it .
also Which is better way ...to Customize existing Login & Forgot Password Pages or to Create New Pages for these.
Is there any Free utility or service to make DNN development Easy
(Searched for Nucleus but could not find helpful info)
Please Suggest and provide useful Links also ..Thanks !
So Stackoverflow is great for 1 question at a time, I will start with #1 and ask you to break it up into other questions for the rest.
Does it need to be a popup? If not, try just creating a custom Login page and put the Account Login module on that, then Skin it as you wish.
If it needs to be a custom popup, you can look at the popupskin.ascx file in your SKIN, you can customize the way the popups look by changing your Popup Skin. My free DNN skin has an example of that file https://multifunction.codeplex.com/SourceControl/latest#popupskin.ascx

plugins for cakephp view

I am very new to cakephp and I see a folder plugin in my application
when I go to the site I see the address as
mysite.com/user/mergerdata
mergerdata is a plugin
When I click on add I see this
mysite.com/account/mergerdata/add
so when I go to app/plugins/mergerdata/controllers/merger_controller
I dont see an add action, But I do see the user_add action there
Am I looking at the wrong place. Where is User comning from. Where is Add coming from ???
"user" is a prefix, similar to an admin prefix. You can read more about it on http://book.cakephp.org/view/950/Prefix-Routing
Basically, this feature allows you to have different methods for different levels of users, and the prefix ("user") is added to the front of the method name ("add").

How to auto generate a webpage after user submits form

I am looking for some initial direction on this one because I cannot seem to find my way with it. Let me explain...
I am developing a website wherein a logged in site member (Joomla 1.6) can fill out a simple form and attach a pdf to be uploaded upon submission. The user then clicks the submit button and the page will refresh to a new and unique web page.
User Submits data on http://www.examplesite.com and then after submission a new web page is generated that is called http://www.examplesite.com/userSubmittedValue
This newly generated web page would come from a template that is specified by the administrator and, most important, it will display all of the information that the user submitted. Also, there would be a link to download the pdf they uploaded. The user could then view a list of all the pages they have created in this manner via their profile.
I have seen this all over, but I am at a loss for how to generate this. Any help is much appreciated.
This is not something you will be able to easily do or get a detailed answer for here. If you just wanted to do the submission form with a thank you page that shows the data submitted you could use any number of form wizard type extensions - http://extensions.joomla.org/extensions/contacts-and-feedback/forms
If you just needed a way for users to upload PDfs and have access to them you could use one of the file management extensions that offer front end upload features - http://extensions.joomla.org/extensions/directory-a-documentation/downloads
If the additional data that is being submitted is simply data related to the file - title, description, etc then one of the file download components should work fine for you. The choices are limited in 1.6 at this time though so you might have to go with 1.5 to get the extension that works best for your needs.
So this probably isn't the best way to do it if your using Joomla but it just might help.
I would use PHP and inside of you're directory have a file like "template.html". Then I would create some php to handle the task of....
Opening "template.html"
Finding and replacing the values that the user passed you
Save the "template.html" under a new name (userSubmittedValue.html)
Again, I never really use Joomla. If you were to try this I'd suggest checking out php's file system functions (http://us2.php.net/manual/en/ref.filesystem.php).
Hope this helps a bit.

Resources