Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 1 Minute ago.

Welcome, Guest
Please Login or Register.    Lost Password?

{module } code is being stripped from front end editing
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: {module } code is being stripped from front end editing
#6027
{module } code is being stripped from front end editing 2 Years, 1 Month ago  
When I edit an article in the front end, all of the {module } tags are being stripped or removed from the article upon opening an existing article.

For example, I add a module using the editor button and save the article. The article is saved correctly with the module reference in tact. If I edit the same article, the {module } code that I just added will be removed as the article is loaded in the front end editor. I do not have this issue in the back end.

What I've tried:
turned off all system plugins (excempt modules anyware) - no change in results
turned off modules anywhere - this kept the code from being stripped out
changed to default template (I am using RT Hyperion) - no change in results
switched between several editors - no change in results

Thanks for any advice here!!!
powderburned
Posts: 4
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6030
{module } code is being stripped from front end editing 2 Years, 1 Month ago  
What version of Modules Anywhere are you using?
What editor are you using?
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6031
{module } code is being stripped from front end editing 2 Years, 1 Month ago  
Sorry, leave it... I have already fixed the problem in my new version. But haven't come round to publishing it yet.
Will do that later this week... I hope.
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6047
{module } code is being stripped from front end editing 2 Years, 1 Month ago  
Excellent!

For the sake of curiosity, what caused it?
powderburned
Posts: 4
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6051
{module } code is being stripped from front end editing 2 Years, 1 Month ago  
Well, the module tag is just handled in the entire html output... so that includes the editor. So it had to have some extra code that makes in not do the replacements there.
Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6292
{module } code is being stripped from front end editing 2 Years, 1 Month ago  
Did you get a chance to upload the updated module?
powderburned
Posts: 4
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6297
{module } code is being stripped from front end editing 2 Years, 1 Month ago  
Sorry, not yet. Will be publishing a lot of new versions on my extensions in the coming weeks.

You could try and fix it yourself.
Try this in file /plugins/system/modulesanywhere.php (line 127-142):
Move line 127 to line 143. So from:
        $this->unprotect( $html );

        // only do the handling inside the body
        if ( !( strpos( $html, '<body' ) === false ) && !( strpos( $html, '</body>' ) === false ) ) {
            $html_split = explode( '<body', $html );
            $body_split = explode( '</body>', $html_split['1'] );

            // remove generated modules outside the body
            $this->removeGeneratedModules( $html_split['0'] );
            $this->removeGeneratedModules( $body_split['1'] );

            $html_split['1'] = implode( '</body>', $body_split );
            $html = implode( '<body', $html_split );
        }

        $this->cleanLeftoverJunk( $html );

To:
        $this->unprotect( $html );

        // only do the handling inside the body
        if ( !( strpos( $html, '<body' ) === false ) && !( strpos( $html, '</body>' ) === false ) ) {
            $html_split = explode( '<body', $html );
            $body_split = explode( '</body>', $html_split['1'] );

            // remove generated modules outside the body
            $this->removeGeneratedModules( $html_split['0'] );
            $this->removeGeneratedModules( $body_split['1'] );

            $html_split['1'] = implode( '</body>', $body_split );
            $html = implode( '<body', $html_split );
        }

        $this->cleanLeftoverJunk( $html );
        $this->unprotect( $html );

Peter van Westen
Admin
Posts: 9147
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6298
{module } code is being stripped from front end editing 2 Years, 1 Month ago  
That worked perfectly! Thank you very much for posting the fix!
powderburned
Posts: 4
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Peter van Westen
MaxCDN | Content Delivery Network | Accelerate your site to the max
hosting joomla
Open Source Training | Online Joomla! Training and Support