Hot answers tagged

7

If you're comfortable with SQL, you can update the database to change the member_id on the comments to one that's not being deleted. So, you could create a 'past member' member, and then update the comments to use the member_id of the 'past member'. This will disconnect those comments from the members you want to delete. Other options: Save a backup of the ...


7

You could use one of the add-ons that connect member registration to channel entries and then use a relationship field to connect a member to other members. (alternatively, you could use a fieldtype a la select member) Several member add-ons that connect members to channel entries: Zoo Visitor http://ee-zoo.com/add-ons/visitor/ Safecracker registration ...


7

You will get that error if you have secure forms enabled, and you submit a form without including a valid XID in the post. More here: http://ellislab.com/blog/entry/putting-the-secure-in-secure-mode-forms Add this to your form: <input type="hidden" name="XID" value="{XID_HASH}"> You can disable secure forms in your config, although this is not ...


7

Based on @Max Lazar's comment I was looking over our "logout" code vs. the code given in EE's documentation and I noticed this difference, we use this code: Log Out, but the docs say to use {path='logout'}. Does it matter? I solved the mystery. The question I made above ^^^ was key and I probably should have just tried it from the get go. Turns out it ...


7

Yes, the cookies are still susceptible to being intercepted. The full set of cookies for matching domains is transmitted by the browser with each page request to that domain, even if the original cookies were set using HTTPS/SSL and the current page is HTTP. One way around this is by setting the "secure" flag on cookies you set. Any cookies set with the "...


5

Yup, just load the Member model: ee()->load->model('member_model'); ee()->member_model->delete_member($member_id, $heir_id); $member_id can be a single member, or an array of ids. $heir_id is the member_id that should take authorship of any existing entries belonging to the member being deleted.


5

I've also been struggling with this exact same situation for quite a while, it seems to be an EE bug. Here's what I did to resolve it. Your markup is fine, your member settings are also fine. The only member setting that is vital to this operation is the "Can edit entries authored by others" under "Channel Posting Privileges" in the Member Group settings. ...


4

The simplest solution is to use EE's built-in Member Groups, then use conditional checking in your templates: {if logged_in_group_id == "5"} // Place some group-specific code here {/if} {if logged_in_group_id == "8"} // Place some group-specific code here {/if}


4

As Alex mentions, when a user has "Can delete members" rights, he/she can delete any member. A different approach would be to, not allow to delete members, but to only allow users to be moved to a member group with no (login) rights at all. You can restrict to which group a member can be assigned by setting the group to "locked". If needed, the restricted ...


4

You might want to take a look at Postmaster (https://objectivehtml.com/postmaster/) for doing this. With Postmaster I believe you can create 'tasks' which can be executed by cron and it provides facilities to handle custom messaging etc. It's also possible to set up notifications with some templating logic and these can also be triggered via a cron. I'm ...


4

it is not possible to do this with standard EE function. So you need make a new add-on - module with action which you can run by cron. Every time when cron will be run, you can get unread PM for last 24 using next query: SELECT md.message_id as message_id, md.message_date as message_date, md.message_subject as subject, md.message_body as message, mc....


4

You can disable the access to the Control Panel to a Member Group if you want to: Members > members groups. The Banned Member Group, for example, can't access the Control Panel.


4

If you're looking for robust tracking of user actions in the Control Panel than what EE provides, there is Audit (and Audit Pro). Audit adds some additional user tracking beyond what EE does. Here is the list of what it tracks, from its page on Devot:ee Member Logins, including Control Panel & front-end Member Logouts, including Control Panel &...


3

Yes, you can use group_id (or preferably logged_in_group_id) on its own - no need to include logged_in as well in the conditional.


3

The shortcut tags provide a quick and easy way to add the field to the page but by default this will output as an input field. You do however have full control over the HTML elements and an output any form component you wish to use by simply ensuring the name attribute matches the name of the field. For example: <div class="control-group {if error:...


3

I had used Messaging addon much before and think it can work for you. Basically your main goal is "not to send PM email notification to member if logged in". Right? This addon is having a hook messaging_pm_sent by using which a small extension can be developed just return if member is logged in (no PM notification will be sent) or just a little hack can be ...


3

The best way I've found to eliminate bot attacks is with the Snaptcha add-on. It's very unobtrusive and supports just about every other third-party user and comment add-on, like Solspace User and Freemember. If you aren't using EE's Member Profile Templates, it's probably a good idea to hide them. You can't "delete" Member Profile Templates per say, but you ...


3

If you have any visible pattern for spam accounts, you can delete them just with query. My examples: #Delete all pending ExpressionEngine members mysql query DELETE FROM exp_member_data where member_id in (select member_id FROM exp_members where group_id = 4) LIMIT 1000000 DELETE FROM exp_message_folders where member_id in (select member_id FROM exp_members ...


3

Not exactly, but you could put your Channel Entries tag into an embedded template, and use a member group ID conditional to send it the parameters you want based on the visitors membership status. {if logged_in_group_id == 7} {embed="template_group/_template_name" categories="1|2|3|4"} {if:else} {embed="template_group/_template_name" categories="1"} ...


3

EE's built in Member Importer can be a bit fickle from time to time and the error reporting is.... well it is anything but useful. So I have a list of things that you can try Upload the file to the root of your server and try both ../member-import.xml or member-import.xml I have had various results depending on the server environment. EE requires username, ...


3

You can add parametr password_reset_template= {exp:user:forgot_password password_reset_template="user/reset_password/%id%" } <input type="text" name="email" id="email" placeholder="Email Address"/> <input type="submit" name="submit" value="Submit" /> {/exp:user:forgot_password} and then create template for reset password where you ...


3

You can import members via these instructions. As you will likely not import passwords you would need to set up a pw recovery template as well. This is simply a forgot password function


3

Please see this thread: Display members in group in template You will probably need to use an extension or plugin to do this easily. Something like solspace User or another plugin that will allow you to output your list directly. Another option is accessing the member data via query but you will need to do some work to the query to get it to show the ...


2

There's a very basic Control Panel log file here: http://ellislab.com/expressionengine/user-guide/cp/tools/logs/cp_log.html It tracks certain actions, though not exactly sure what they are. :) Does that help?


2

Preventing link sharing is dificult and indeed referrer is not 100% secure too. You could include some code in the url that is posted to these websites. On the landing page for that url, you could fetch the code from the segment and get the entry with that code and serve the content without checking for membership.


2

Eric Lamb's add-on, among it's many other rather cool features, Securit:ee includes an extension that does provide the amine the ability to auto-expire a member account within a given group after a set amount of time. Might be worth a look. I don't see mention of it changing the member from one group to another automatically though - just expiring the ...


2

I don't think there is currently an add-on that would allow "login as member" functionality from the front-end (e.g. any other place then the EE control panel) However you could write (or commission to let write) a small plugin, based on the login_as_member() and do_login_as_member() functions. As a starting point for development see this question about ...


2

There are several add-ons that would accomplish what you're looking to do. Nick already Mentioned Zoo Visitor. Here is a list of other add-ons that will also work well: Freemember Solspace User Profile:Edit Safecracker Registration Zoo Visitor, Profile:Edit, and Safecracker Registration have the added feature of storing members as Channel entries. So if ...


2

Check and update all your add-ons first. One of the difference between 2.5.2 & 2.7.3 is that now XID hash code is mandatory for all forms. Many add-ons don't used it before, as result - You are not authorized to perform this action after EE update. For member_logout function XID is also mandatory. $xid = ee()->input->get('XID') ? ee()->input-...


2

Zoo visitor and Profile:Edit are two third-party modules which allow you to store members in channel entries; relationships to other channel content then become as simple as a relationship field in the user channel. (this of course also means that you can leverage things like categories and status for members). IF you didn't want to go down the route of ...


Only top voted, non community-wiki answers of a minimum length are eligible