2009-12-31, 11:02 PM
Hello...
I was hoping someone could help me with a plugin I'm working on. Basically the only part that I'm having problems with now is where I want to do a str_replace on some code in the the newreply template so that I can add code to the template without doing any template edits.
Now the problem is, I'm not sure how I should do this one... Because the newreply_start hook has no parameter that I can use. Heck I dont even know if I'm looking at this from the right angle....
Anyway, I did a search and I couldn't really find anything that was helpful so i decided to make a post.
I was hoping someone could help me with a plugin I'm working on. Basically the only part that I'm having problems with now is where I want to do a str_replace on some code in the the newreply template so that I can add code to the template without doing any template edits.
Now the problem is, I'm not sure how I should do this one... Because the newreply_start hook has no parameter that I can use. Heck I dont even know if I'm looking at this from the right angle....
<?php
/* ... */
$plugins->add_hook("newreply_start", "spellCheck");
/* ... */
function spellCheck($page)
{
$page = str_replace('<div style="text-align:center">', '<div style="text-align:center">I want to put some code here...', $page);
return $page;
}
/* ... */
?>
Anyway, I did a search and I couldn't really find anything that was helpful so i decided to make a post.