Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

remove </code> in some pages [how to]

Asked Modified Viewed 1,810 times
L
lelebart
L
I don't know! I don't know why I did it, I don't know why I enjoyed it, and I don't know why I'll do it again! Bart Simpson
  • Member, joined since
  • Contributed 133 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
asked
Member

hi to all.
i don't know why, but sometimes, on some pages appears a very strange "</code>" after the "<a id='content' name='content'></a>". (PF 7.00.05)
i modified the file [root]/themes/templates/panels.php and all the themes i'm using in order to remove that. this "hack" seems to work:

1] open [root]/themes/templates/panels.php, find (lines 129-131):

}
define("U_CENTER", ob_get_contents());
replace with:

}
echo "<code>REMOVE_ME</code>";
define("U_CENTER", ob_get_contents());


2] then, find where U_CENTER.CONTENT.L_CENTER is on ALL of your themes, so modify the theme(s) in order to obtain something like;

   $u_center = str_replace("</code></code>", "</code>", U_CENTER.CONTENT.L_CENTER);
   $u_center = str_replace("<code>REMOVE_ME</code>", "", $u_center);
   echo $u_center;


it should work! happy PHPFusioning to all!

maybe there's a better solution i didn't found.
Edited by lelebart on 04-05-2009 16:51,
0 replies
There are no post found.

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

L
L
I don't know! I don't know why I did it, I don't know why I enjoyed it, and I don't know why I'll do it again! Bart Simpson
  • Member, joined since
  • Contributed 133 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet