Vivvo CMS Support Forum Home | Free Trial | Online Demo | Docs and Manuals | Order Now   

Go Back   Vivvo CMS Support Forums > Vivvo 4 > Troubleshooting

Troubleshooting Problems, need help? Have a tip or advice? Post it here.

Reply
 
Thread Tools Display Modes
Old 11-24-2011, 07:16 PM   #1
rokonkwo
Vivvo User
 
rokonkwo's Avatar
 
Join Date: Sep 2007
Location: USA
Posts: 36
Rep Power: 0
rokonkwo is on a distinguished road
Default TinyMCE not displayed for members.

Submit Story plugin does not enable TinyMCE for members. It only shows a plain text area for the member. Does anybody know how to fix this issue?

Thanks so much.
Randolph
rokonkwo is offline   Reply With Quote
Old 11-26-2011, 01:09 PM   #2
bobster65
Vivvo Veteran
 
Join Date: Aug 2008
Location: Big Sky Country
Posts: 579
Rep Power: 5
bobster65 is on a distinguished road
Default

Quote:
Originally Posted by rokonkwo View Post
Submit Story plugin does not enable TinyMCE for members. It only shows a plain text area for the member. Does anybody know how to fix this issue?

Thanks so much.
Randolph
Its because some of the crucial TinyMCE stuff is located in the /admin

/admin/admin_include.php (somewhere around line 95) checks to see if the logged in user can access the AdminCP, if not, it 404 errors out while trying to include some files located within the /admin folder.

The front end "submit_story_tinyMCE_config.php (line 18) requires the above file, so when its envoked by a user that does not have admin access, that include fails which makes the tinyMCE not work for that user.

You can clone the /admin/admin_include.php file and call the cloned file admin_include2.php .. then edit that file and comment out the following code..

PHP Code:
    // Check access
    /* if (!$sm->user->can('ACCESS_ADMIN')){
        go_404();
    } */ 
then in the submit_story_tinyMCE_config.php, change the require_once path to use admin_include2.php instead of admin_include.php

Then your tinyMCE will work on the frontend.
bobster65 is offline   Reply With Quote
Old 11-26-2011, 04:51 PM   #3
rokonkwo
Vivvo User
 
rokonkwo's Avatar
 
Join Date: Sep 2007
Location: USA
Posts: 36
Rep Power: 0
rokonkwo is on a distinguished road
Default

I have made the changes in admin_include2.php (copied admin_include.php). And changed the submit_story_tinyMCE_config.php located in /plugins/submit_story/js/ and it did not work.

However, the code seems to be different from the example you showed here. Below is the line I have in version 4.6:

// Check access
/*if (!$sm->user->can('ACCESS_ADMIN') || !in_allowed_ip_adresses($sm->user->ip)) {
// go_404();
}*/

bobster65:
you are right on the admin privilege statement because when I log in as admin, the TinyMCE showed up.

Therefore spoonlabs have to fix this because TinyMCE is enabled for a group of members in the admin panel but these members cannot see it.

I hope they fix this issue because I am seeing it as a deception or rather a bug which I am sure Spoonlabs knows about this years ago.

Thanks so much
Randolph
rokonkwo is offline   Reply With Quote
Old 11-26-2011, 08:35 PM   #4
bobster65
Vivvo Veteran
 
Join Date: Aug 2008
Location: Big Sky Country
Posts: 579
Rep Power: 5
bobster65 is on a distinguished road
Default

Quote:
Originally Posted by rokonkwo View Post
I have made the changes in admin_include2.php (copied admin_include.php). And changed the submit_story_tinyMCE_config.php located in /plugins/submit_story/js/ and it did not work.

However, the code seems to be different from the example you showed here. Below is the line I have in version 4.6:

// Check access
/*if (!$sm->user->can('ACCESS_ADMIN') || !in_allowed_ip_adresses($sm->user->ip)) {
// go_404();
}*/

bobster65:
you are right on the admin privilege statement because when I log in as admin, the TinyMCE showed up.

Therefore spoonlabs have to fix this because TinyMCE is enabled for a group of members in the admin panel but these members cannot see it.

I hope they fix this issue because I am seeing it as a deception or rather a bug which I am sure Spoonlabs knows about this years ago.

Thanks so much
Randolph
you might have to clear server cache to get it to work. I have this working on every customers site that uses the submit story plugin. Just did one of these the other day for someone that was having the same exact issue and theirs works just fine.

I do agree that it needs to be addressed tho. TinyMCE SHOULD be exposed to the frontend and not limited to the backend.
bobster65 is offline   Reply With Quote
Old 11-27-2011, 03:23 AM   #5
rokonkwo
Vivvo User
 
rokonkwo's Avatar
 
Join Date: Sep 2007
Location: USA
Posts: 36
Rep Power: 0
rokonkwo is on a distinguished road
Default

Hello:

I tried this again and below is what showed up in error log:

[26-Nov-2011 11:32:06] PHP Warning: require_once(/xxxxxx/xxxxxxxx/xxxxxxxxx/xxxxxx/plugins/submit_story/js/../../../admin/admin_include2.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /xxxxxx/xxxxxxxx/xxxxxxxxx/xxxxxxxxxx/plugins/submit_story/js/submit_story_tinyMCE_config.php on line 20

I think I have more problem than I thought.

Thanks so much for all your endeavors to help. I very highly appreciate it.

Randolph
rokonkwo is offline   Reply With Quote
Old 11-27-2011, 06:26 PM   #6
bobster65
Vivvo Veteran
 
Join Date: Aug 2008
Location: Big Sky Country
Posts: 579
Rep Power: 5
bobster65 is on a distinguished road
Default

Quote:
Originally Posted by rokonkwo View Post
Hello:

I tried this again and below is what showed up in error log:

[26-Nov-2011 11:32:06] PHP Warning: require_once(/xxxxxx/xxxxxxxx/xxxxxxxxx/xxxxxx/plugins/submit_story/js/../../../admin/admin_include2.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /xxxxxx/xxxxxxxx/xxxxxxxxx/xxxxxxxxxx/plugins/submit_story/js/submit_story_tinyMCE_config.php on line 20

I think I have more problem than I thought.

Thanks so much for all your endeavors to help. I very highly appreciate it.

Randolph
did you change your /admin folder to another name?
bobster65 is offline   Reply With Quote
Old 11-27-2011, 06:01 PM   #7
sip
Vivvo Veteran
 
Join Date: Sep 2010
Posts: 599
Rep Power: 3
sip is on a distinguished road
Default

Quote:
Originally Posted by rokonkwo View Post
Submit Story plugin does not enable TinyMCE for members. It only shows a plain text area for the member. Does anybody know how to fix this issue?

Thanks so much.
Randolph
Much after we noticed this we filed bug report here:
http://www.vivvo.net/forums/project.php?issueid=190

Problem in our case was hard-coded "admin" directory name which when we changed in the file as noted above it worked fine. Also applicable to trivia plugin.
sip is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Order now:

Order your copy of Vivvo now and get:
bullet Six months free upgrades
bullet Free support
bullet Full source code
bullet Immediate download
bullet Starting at only $295.00
Order now

Support HelpDesk:

You can submit a trouble ticket in the support area at any time, using your client area email and password.

Vivvo CMS Resource Center:

The Vivvo CMS Resource Center is your window to a variety of resources that showcase Vivvo's features and technologies. So whether you're brand new to Vivvo or a seasoned user, you can find the information you need right here!

Latest Additions:

Contact us:

Business hours
Mon-Fri 9:00AM - 6:00PM GMT+1
(Europe)
Telephone Sales
381 11 311-50-20
Email inquiries
sales@vivvo.net
(Sales inquiries)
support@vivvo.net
(Support inquiries)

All times are GMT +1. The time now is 08:43 PM.
Contact Us - Vivvo Home - Archive - Privacy Statement - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.