[eluser]Jan_1[/eluser]
Every hint would be a help! Thank you!!!
Using tinymce as WYSIWYG-Editor with 'phpimage' as upload-plugin.
The url for image-folder is created in
Quote:/public/frontend/js/tiny_mce/plugins/phpimage/config.php
Code:
$url_image_directory = '/public/frontend/uploads/images/'.$folder;
I put a $folder in the url-string to use different folders for every user. That simply works if I write "
$folder = "folder_X";", for example.
Now I want to use different foldernames from db (userprofil).
Tried with CI active record and usual 'mysql_select'. - Both don't work and I don't know why.
Why does'nt work this in '/public/frontend/js/tiny_mce/plugins/phpimage/config.php':
Code:
$this->db->select('foldername');
$this->db->where('id', $this->db_session->userdata('id'));
$sql = $this->db->get('user_profil');
if ($sql->num_rows() > 0)
{$row = $sql->row();
$folder = $row->foldername;
}
is it because it's outside application? What do I have to do?