Jomsocial multi profile user approval notification - joomla

I am using jomsocial multi profile for user registration . Some profile needs administration approval to complete registration process .
But the problem is administrator is no getting any notification to approve new user registration .
How can I solve this problem?
I am using Joomla! 2.5.2 Stable and jomsocial 2.4.3

Log in to the backend of Joomla as administrator then click on the menu.
Go to Users > User Manager, then click on the admin user that you wish to receive the notifications for, and set the "Receive System emails" to Yes. Here is a picture to help you http://screencast.com/t/p1LgQFVt
IF this helped you, please consider supporting the proposal for a Joomla StackOverflow by clicking follow here >>> http://area51.stackexchange.com/proposals/34294/joomla-answers

changed line 911 of /components/com_community/controllers/register.php
from
if( $type == 'registration_complete' && (C_JOOMLA_15 || (!$requireApproval && !C_JOOMLA_15)))
to
if( $type == 'registration_complete' && (C_JOOMLA_15 || ($requireApproval && !C_JOOMLA_15)))
and it is working now

Related

How to hide Admin Menu (backend) in Joomla 3?

How to hide 'System > Control Panel', 'Components', 'Help' these 3 menu items in joomla3? Sorry not enough reputation to post image. =.= Certain user groups do not need to access/view these. I have hide the rest such as 'Users', 'Menus', 'Contents', 'Extensions' but can't hide these.
Removing help item could easily done from:
Extensions -> Module Manager -> Administrator -> Admin Menu -> Advanced -> Help Menu: Hide
For the rest of the menu items you have to make an override to the admin menu module.
You have to download:
/administrator/modules/mod_menu/tmpl/default_enabled.php
And copy to:
/administrator/templates/*your_admin_template/html/mod_menu/default_enabled.php
You have to check if active user is not to the level that you don't want to show the menu item (id: 18) in our example. So for control panel item you have to change:
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_CONTROL_PANEL'), 'index.php', 'class:cpanel'));
To:
if(!in_array(18, $user->groups)){
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_CONTROL_PANEL'), 'index.php', 'class:cpanel'));
}
And for components menu you have to find:
if ($components)
And change to:
if ($components && !in_array(18, $user->groups))
Good Luck!
Log into your back-end using a username that has Super Administrator privileges
Set to new user - Publisher group (or any other except Administrator/Supper Administrator )Edit access rights in System -> Global Configuration -> PermissionsSet:Site LoginAllowedAdmin LoginAllowedOffline AccessDeniedSuper UserDeniedAccess Administration InterfaceDenied...
help menu:Go to the Module ManagerChoose Administrator from the dropdown (Site/Administrator)Choose the module "Admin Menu" and EditIn Advanced menu choose "Help Menu" value -> Hide
You can use the built in override creation:
goto Template Manager
Click on Templates
Click on Template name. In my case "Isis"
Click on Create Overrides
Click on "mod_menu"
Now those files will be available via FTP here: public_html/administrator/templates/isis/html/mod_menu
Open the file administrator/modules/mod_menu/tmpl/default_enabled.php from whichever template you are using for administrative area (for instance, mine is IsIs).
Find the following block of code
/*
* Help Submenu
*/
if ($showhelp == 1)
{
And change the if condition ($showhelp == 1) to $showhelp == 0 and the help menu disappears.

Magento : How to hide the default Store View code from the url

The site has 2 languages: English and French, represented by 2 store views. French is the default one. For our SEO efforts we need to have the following urls:
French - http://www.domain.com/category/product
English - http://www.domain.com/en/category/product
System -> Configuration -> Web -> Add Store Codes to URL is the all or nothing setting. We just need to turn it off for the default store only.
I’ve done a lot of searching through the forums and wiki but there’s nothing on the subject.
Please any sugestions?
Finnaly i solved this magic probleme , i hope that's save others persone here is the details :
1- Download the zip existe in this page : https://github.com/Knectar/Magento-Store-Codes
2- unzip the file and put the folder called "Knectar" in {app/code/community/} and Knectar_Storecodes.xml file in {app/etc/modules}
3- In your backoffice go to "System > Tools > Compilation" and click the rebuild button
4- always in backoffice got to "System > Configuration > Web > URL options" and set the attribute "and default store view" to No and save the configuration
5- Clear your cach magento and enjoy your application :) .
I had the same problem and I have developed an extension for that.
It is available on GitHub: https://github.com/jreinke/magento-hide-default-store-code
I didn't find a quick solution to your problem, but I see that's possible through 2 steps :
1 / Using the advise commented by #user3154108 and trying this tip https://magento.stackexchange.com/questions/8126/store-code-in-url-for-every-store-view-except-for-default
2 / For SEO SITEMAP, it's possible to override the following file
app/code/core/Mage/Sitemap/Model/Sitemap.php
public function generateXml()
{
...
}
and replace the default store code by NULL.
For more details try to look at this post : http://alanstorm.com/generating_google_sitemaps_in_magento
I was having the same problem and I had already selected to not show store code in url in the config. I also didn't want to install an extension just to handle something this minor. Here's my EASY solution:
Copy app/code/core/Mage/Catalog/Block/Widget/Link.php to app/code/local/Mage/Catalog/Block/Widget/Link.php
Search for (line 91 in Magento 1.7.x / line 100 in Magento 1.9.x)
$this->_href = $this->_href . $symbol . "___store=" . $store->getCode();
And modify to
$this->_href = $this->_href;
Upload and save your changes and you'll now not have your widget (dynamically) inserted links getting appended with ?___store=default.
Credit: DesignHaven
Under System -> Configuration -> Web -> URL Options you
change "Add Store Code to Urls" to "NO" as on the attached screenshot

WAS 7.0 Create users and map role to users wtih wsadmin

I have a requirement to create userids and assign Admin role for some users and I am trying to do this through a Jython script as it will speed up the process and saves time.
So,I have created the below Jython script to achieve it.
Script
import sys
filename="C:\Users\harish\Desktop\scripts\input.txt"
fileread = open(filename, 'r')
filelines = fileread.readlines()
for row in filelines:
column=row.strip().split(';')
user_name=column[0]
print user_name
pass_word=column[1]
first=column[2]
last=column[3]
AdminTask.createUser(['-uid',user_name, '-password', pass_word, '-confirmPassword', pass_word, '- cn', first, '-sn', last ])
AdminTask.mapUsersToAdminRole(['-roleName','Administrator','-userids',user_name])
AdminConfig.save()
print 'Userid creation completed for', user_name
fileread.close()
The script runs fine and doesn't throw any errors.However, the users are not able to login to WAS Admin Console and they can only able to do it after I save the configuration by clicking "OK" at page "Users and Groups" -> "Administrative User Roles" ->
Can someone please let me know what am I missing here while working with wsadmin or is there anything else I need to do to accomplish the task ?
I am working on WAS 8.5.5.0 version.
Thanks for your help.
I think you need to add this code to the end of your script (not in the for-loop). This will refresh the security configuration.
agmBean = AdminControl.queryNames('type=AuthorizationGroupManager,process=dmgr,*')
AdminControl.invoke(agmBean, 'refreshAll')
This assumes you're using Network Deployment, process=dmgr. You may need to change the process.

Notify admin via email when order is placed in magento

Is there a way to Notify admin via email when order is placed in magento? I feel like this is a silly question but I'm placing test orders currently and I'm not getting any email notification.
Will the order also get an email notification by default or does the admin have to click the "invoice button" each time an order comes in?
In the magento backend goto
System > Configuration
Left Naviagation > Sales > Sales Emails this option will let you configure mail sending settings where you can ask magento to send you mail whenever an order is placed.
Alternatively, you can create a plugin with an observer which listens to the event of the order being placed and you can write your mail sending code in the observer.
Once configured...
Are you sure that email is being sent?
<?php
$to = "recipient#example.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("sent!");
} else {
echo("failed");
}
?>
also check your /var/log/maillog for messages.
Go to System -> Configuration -> Select Store email addresses and change the Sales representative's email address.
Then go to Left Naviagation > Sales > Sales Emails and ensure that it is set for Sales representative.
Also just check that you've done this on the main site.

Reset Password Link Joomla - While in "maintenance mode" / offline mode

How do users reset passwords while in "off-line" mode.
We are running the site as Intranet.
Joomla 2.5.4
Mhm.. this is quite long to do, but maybe you can work it out.
Grant your user level offline access (you can do that in Global configuration -> Permissions)
Create a menu entry that point to the user profile and set visible to your users
Set every menu/modules etc etc invisible to "normal" users (except the previous one)
I've never tried it before, but it should work.
I just wanted to share my solution for Joomla 3.9:
In the file "offline.php" of your template (or in /templates/system if the template has no offline.php) you can place this code before where the login form is displayed:
if( JRequest::getVar('option') == 'com_users') {
?><jdoc:include type="message"/><?php
$registrationController = new UsersController();
$registrationController->display();
} else {
// Login Form
}
so it displays the dialogs to reset the password if the page is loaded by using "index.php?option=com_users&task=request.reset" or similar, but shows the "offline" login form by default.

Resources