Welcome Guest, Not a member yet? Register   Sign In
why does'nt this work in tinymce/phpimage/config.php?
#1

[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?
#2

[eluser]LifeSteala[/eluser]
Did you manage to find a solution? Looking for something similar..
#3

[eluser]Unknown[/eluser]
Passing, the question I am not familiar, but I like Firefox.
<a href=" http://www.buyalz.net ">Cabal Alz</a>




Theme © iAndrew 2016 - Forum software by © MyBB