Please login

Welcome, Guest. Please login or register.
Did you miss your activation email?
Username:
Password:
How long:

Author Topic: Code appears in a module  (Read 2302 times)

Ishtar

  • Newbie
  • *
  • Posts: 3
Code appears in a module
« on: April 16, 2010, 06:18:53 AM »
I like this plugin a lot!!!!!!
The only thing is that the applied code is shown in the AllNews module (before and after text,only the code,not the effect) when I apply the code in my editor...and I don't know how to fix that.Any help would be appreciated.

prana

  • Administrator
  • Hero Member
  • *****
  • Posts: 735
Re: Code appears in a module
« Reply #1 on: April 29, 2010, 12:16:18 AM »
This means the module is just echoing the output instead of processing it with the plugin. Similar to the old SOBI2... I'll post some details on how to make the module process the plugins as well.

I'll get back to you this Saturday/Sunday.

Ishtar

  • Newbie
  • *
  • Posts: 3
Re: Code appears in a module
« Reply #2 on: April 29, 2010, 02:44:10 AM »
This means the module is just echoing the output instead of processing it with the plugin. Similar to the old SOBI2... I'll post some details on how to make the module process the plugins as well.

I'll get back to you this Saturday/Sunday.

ok,thanks and I wait to know from the solution!

prana

  • Administrator
  • Hero Member
  • *****
  • Posts: 735
Re: Code appears in a module
« Reply #3 on: May 01, 2010, 01:45:44 PM »
OK go to /modules/mod_aidanews/tmpl/default.php

goto line 1194 and follow this instruction:
Code: [Select]
if ($top4) {
if ($divcheck == 0) {
$top4 = '<div> ' . $top4 . ' </div>';
}
echo preg_replace($patterns, $replace, $top4);
}
// #############################################
/// add the following code ...
$intro = preg_replace('/{niftybox\s*.*?}|{\/niftybox\s*.*?}/i', '', $intro );
$intro = preg_replace('/{niftycolumn\s*.*?}|{\/niftycolumn\s*.*?}/i', '', $intro );
// end add
// #############################################
if ($checkimage === false && $params->get('show_image') != 0) { echo $dimage; }
if ($params->get('show_intro') == '1'):?><div style="<?php echo $body_intro_css?>"><?php echo $intro; if ($params->get('readmore_introtext')) { echo $drm; }?></div><?php endif;

Ishtar

  • Newbie
  • *
  • Posts: 3
Re: Code appears in a module
« Reply #4 on: May 01, 2010, 03:05:36 PM »
Thank you very much prana;)
I will try this!!! :D