I want to integrate the spell check to advanced quick reply!
1.) Advanced quick reply ->
http://mods.mybb.com/view/advanced-quick-reply-form
2.) Spell check plugin ->
http://mods.mybb.com/view/spell-check
What I did was: I just opened the theme template : showthread templates
Then I had showthread_quickreply -> Created by plugin may be
So i just inserted the following lines there:
<input class="button" type="button" value="Check Spelling" onClick="openSpellChecker();"/>
I was successful in showing the Check spelling button in quick reply but it did nothing!
Perhaps I need to connect it someway!
Maybe change the onClick thing
99% of the plugins don't modify core files automatically that I know of.
Is there a particular reason why you want to know this?
As Aries-Belgium stated, most plugins don't modify core files. But they do edit templates.
In order to view which files have been modified (in comparison to the original MyBB package), go to Admin CP > Tools & Maintenance > File Verification.
Yeah the reason is that I have 2 plugins installed:
1.) Advanced quick reply ->
http://mods.mybb.com/view/advanced-quick-reply-form
2.) Spell check plugin ->
http://mods.mybb.com/view/spell-check
I want to integrate the spell check to advanced quick reply
What I did was: I just opened the theme template : showthread templates
Then I had showthread_quickreply -> Created by plugin may be
So i just inserted the following lines there:
<input class="button" type="button" value="Check Spelling" onClick="openSpellChecker();"/>
I was successful in showing the Check spelling button in quick reply but it did nothing!
Perhaps I need to connect it someway
(2011-06-15, 11:14 AM)faviouz Wrote: [ -> ]In order to view which files have been modified (in comparison to the original MyBB package), go to Admin CP > Tools & Maintenance > File Verification.
Although, file verification doesn't work for 1.6.3 because the MD5 hashes are incorrect for all files.
If you want to check which plugin updates which template, upload a file called 'tplcheck.php' or something in your MyBB root and paste in this code:
<?php
$plugins = glob("./inc/plugins/*.php");
foreach($plugins as $plugin)
{
$name = basename($plugin, '.php');
$content = file_get_contents($plugin);
$templates = array();
if(preg_match_all("/find_replace_templatesets\((.*?)\,/si", $content, $matches))
{
foreach($matches[1] as $template)
{
$template = str_replace(array("\"","'"), "", $template);
$template = trim($template);
if(!in_array($template, $templates))
{
$templates[] = $template;
}
}
}
print "<strong>{$name}:</strong> ".implode(", ", $templates)."<br/>";
}
Now navigate to your forum url and add 'tplcheck.php' or whatever you called it. It should display all your plugins and the templates they update.
Thanx bro
But it doesn't show anything about spell check!
Can you give a solution to my last post?
Do I need to put something else in place of onclick?
Bump...changed the topic
Can anyone tell me how to merge them?