Discussion on CodeIgniter Membership - Social Login, Adminpanel and Roles/Permission System

rakinjakk

rakinjakk supports this item

Supported

236 comments found.

Did you update the system today?

I was able to install without many problems. Only the mkdir error.

When you complete the update let me know.

Ok thanks for your feedback! If you install it again please first download the package again it should fix the installer issues. Version 3.2.2 is coming with more improvements.

Spazmic

Spazmic Purchased

Okay 3 comments. 1- Does the license give us the right to remove your footer copyright? 2- The installer is fucked up, it doesn’t talk about the password requirements for the admins. 3- A chat on the right pane would be great.

you can remove the copyright definitely. Yeah sorry the installer had it’s issues, I hope to fix them all in next version. Chat is on the todo list but I need to get email templates, language in DB etc out first.

It will keep improving though and thanks for the valuable feedback with which I can improve faster.

Spazmic

Spazmic Purchased

What would be the easiest way to integrate the membership system on another template, by example one that I bought on wrapbootstrap? Thanks

It depends a bit on how you want to proceed but generally I start by creating a theme folder and file application/views/themes. From here we add the partial code manually (for example <?php print $template‘partials’; ?>).

To actually port the design over it could take some time, depends on how complex it all is. If you have a new sidemenu for example then there’s basically a rewrite going on. Get the less files from the theme, add the css from my design that will be kept. This can get tedious, it’s the nature of the language.

Hi, could you integrate your script in bonfire replacing the bonfire user management? if yes could you send me an offer?

I feel that this is going to be an endless job as Bonfire keeps evolving. Unfortunately, no this is not possible.

hello i have a question. how easy would it be to hook this in on another codeignitor script.

That really depends, if that other script also has a login system it could be a pain. Some CI scripts are easy to port however.

There is an error in Activate_account_model.php

I have added u.user_id in select //line 20

and $this->db->where(‘user_id’, $row->user_id);

$data = array(‘active’ => true); $this->db->where(‘user_id’, $row->user_id); $this->db->update(DB_PREFIX .’user’, $data);

sorry for late reply,
was there an error in specific or something else that broke that caused you to add this code? It’s not entirely clear tbh.

nvm I get it, thanks

Hello,

Thank you for your great script ! I have installed your script on my server, but when I’m trying to login as an administrator, login fails.

if I try to send activation mail, I get the folowing message.”Account is not active. Please activate your account first.”

My question : How do I activate the admin account ?

Best regards,

Marc

I have finally found in mysql the smtp host. I have changed to the correct value, However, how can I re-send activation email, it does’nt work from “Resend activation link” dialog ? I enter the admin email but I can get “Please verify the following: E-mail address not found.”

Best regards

I have finally managed to get it work ! I have started the install process from scratch.

ok great job, sorry for all the trouble I’m not sure what caused this.

How can we hide the sidebar options for member roles who do not have permission to view what is inside. I find it better to hide it rather than showing that you do not have access to view a page.

Hello and thanks for your purchase,

You can use the example in application/views/themes/adminpanel/partials/aside-inner.php where I use if (Site_Controller::check_roles(array(1,2,3))) {



So to check roles or you use the id of the role in the database

hi, having an issue with installing the latest update. Install seems to go fine but once redirected to loginpage it gives a ci error: An Error Was Encountered

The action you have requested is not allowed.

.....ive looked in the files and theres no controller files or anything installed in the database. I had no errors on install

i now have db installed but still getting the ci errror on login attempt and cant find any controller files

I get this message when I messed up cookie settings: please empty $config[‘cookie_domain’] in application/config/config.php (line 383). If this doesn’t work let me know and i’ll connect directly to check.

I guy, i have problem in my code? Function do_upload not run… And dont send file to folder “upload”...

public function do_upload(){
$this->load->library('form_validation');
      $this->load->model('adminpanel/banner_model');
$this->form_validation->set_rules('banner_name','Nome do banner','required');
    $this->form_validation->set_rules('banner_title','Titulo do Banner','required');
    $this->form_validation->set_rules('banner_obs','Descrição do banner','required');
    $this->form_validation->set_rules('banner_active','Destaque','required|integer');
    $this->form_validation->set_rules('banner_url','URL do banner','required');
    $this->form_validation->set_rules('foto','image error','required');
if ($this->form_validation->run() == TRUE)
{
    redirect('adminpanel/banners');
}else{
$config['upload_path']   = 'uploads';
$config['allowed_types'] = 'gif|jpg|png|jpeg|jpe';
//$config['max_size']     = '10000';
//$config['max_width']  = '2000';
//$config['max_height']  = '2000';
$config['encrypt_name'] = TRUE;
$config['file_name']      = '_';
$this->load->library('upload', $config);
if($this->upload->do_upload('foto')){
    $uploadedDetails    = $this->upload->display_errors();
    $foto = NULL;
                redirect('adminpanel/banners');
}else{
    $uploadedDetails    = $this->upload->data();
    $foto = $uploadedDetails["file_name"];
$data_banners = array(
    'banner_name'            => set_value('banner_name'),
    'banner_title'            => set_value('banner_title'),
    'banner_obs'    => set_value('banner_obs'),
    'banner_url'            => set_value('banner_url'),
    'banner_active'            => set_value('banner_active'),
    'banner_image'            => $foto);
$this->banner_model->create($data_banners);
redirect('adminpanel/banners');
}
}
}

I loved one could take a look at my code, where can I send my teamview id?

Thanks for replying with agility, I solved my problem using an alternative function of the codeigniter itself ”$ this-> upload-> initialize ($ config);” =)

nice, good luck

Hi! I want to contribute with system changes. How do I submit the changes I’m proposing? Can we talk by email, skype or another?

could you email me via my profile here on CC with a bit more of what it is you are thinking of? One way to go is to make extra modules (since we use HMVC) and sell them separately but I’m definitely interested to hear.

I try to install the framework to LAMP server. After copy the file to htdoc directory. I open the install page and encounter following message under Step 2:

It seems chmod did not work, please make sure PHP has the ability to perform this action on your server. http://php.net/manual/en/function.chmod.php

You can also make application/config/database.php writable by hand and put it back to 0644 after installing.

Please advise since i am new to LAMP. Many thanks!

Yes, I still need your help but my google cloud server encounter issue and cannot be connected. Will let you know once the problem resolved.

Hi Rakinjakk, after reinstall, everything work fine now. Thanks for your help. BTW, if i try to add more field for user registration, is that mean i cannot use the installer provided?

Ah excellent. Well, I always make a copy of the original module and work from there. For modules/auth routes.php might need editing but it is worth having a separate copy. When the update comes you can just update the original file, check differences and port in the parts that you want to use.

I am getting database error on my localhost. Im on a mac using mamp

A Database Error Occurred

Error Number: 1146

Table ‘rentadmindb.ci_sessions’ doesn’t exist

SELECT `data` FROM `ci_sessions` WHERE `id` = ‘6cb4b448760b79b4952eeafbf0a360ffec83446b’

Filename: libraries/Session/drivers/Session_database_driver.php

Line Number: 169

did the database generate the other tables? It probably didn’t get generated, I had this issue before on some occasions it’s just weird. I can check if you want.

Hello, still having this problem on bluehost. Can you send me the minimum db structure so I install it ?

Sure, I can also have a look now if you want. If you want me to send a clean DB install file just send me a message (click on my name) which I can reply to. I have it ready here.

may i know your strucutre file module HMVC?

Everything is using HMVC at the moment: modules = adminpanel, auth, membershipand utils.

Creacher

Creacher Purchased

There was an sql error when i activate a account:

Error Number: 1054

Unknown column ‘CI_u.user_id’ in ‘where clause’ UPDATE `CI_user` SET `active` = 1 WHERE `CI_u`.`user_id` = ‘2’

Filename: modules/auth/models/Activate_account_model.php

hello,can I connect via teamviewer or something I need to print the query to see what exactly is going on.

Creacher

Creacher Purchased

Yes i send a mail with teamviewer id

nickis

nickis Purchased

I have huge problems, accessing the modules through command line for cron jobs. How does it work to be able to run controllers from the modules (or the main controller directory) trough commandline (CLI) ? Thank you!

It needs the directory path e.g. /home/username/public_html/ and after this the path you desire. What have you tried and which errors did you get? I can check tomorrow, feel free to email your tests to me via my profile here.

by
by
by
by
by
by