MyBB Community Forums

Full Version: Plugin showing on forum even after being disabled.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I searched through the forums but didn't see anything with my problem listed. This may be an easy fix for someone out there who is familiar with what I've outlined below but I've never seen this problem before and don't know quite how to go about fixing it.

* My problem is that I was adding a plugin to my website and after activating it wanted to make a few changes to it. I obtained the plugin "Random Quotes in Footer" from http://mybbaddons.com. I modified the plugin to first show at the top by replacing footer with header.

After it was there I began modifiying the jscript file to add my own quotes. Things were going fine until I added an extra line where there didn't need to be one and then the quotes stopped showing up. So I then re-added the old jscript overwriting what was on the server without deactivating the plugin first, then overwriting the file, then activating the plugin again. Even though I did that, it started reading the jscript file properly again.

I then wanted to change what was displayed in the title. Instead of having "Random Quotes" displayed I wanted it to say "Chiropractic Epigrams". So I changed that in the .php file and copied over the original file, again without deactivating the plugin first. I noticed that it didn't change what was displayed on the forum. I then deactivated the plugin, then reactivated. That is when the real problems began. I now had 2 headers, one that says, random quotes and another that says chiropractic epigrams. In my effort to fix the problem I made it worse and now have those 2 that even when the plugin is deactivated I still see both of those as a header on my forum and I am at a loss to get rid of them. I have even tried turning the board off and back on again. I haven't been working with MyBB for very long so I've never ran in to a problem like this before.

If I activate the plugin again it adds a 3rd header. All this is really frustrating. Can anyone please tell me how to fix this without having to re-install everything. It won't be a problem if I have to, just time consuming as I haven't done much but add plugins and work with the theme.

* http://thec1c2connection.com/forum
I'm using Joomla along with JFusion so registrations are turned off for the forum since they are done strictly through Joomla with it being the master in JFusion so if you want to sign up for an account (which shouldn't be necessary) it would need to be done at http://thec1c2connection.com. I haven't changed any of the content on the Joomla home page. Just set it up to work with jfusion and MyBB currently.

* New installation using MyBB 1.4.8


Thank you in advance to anyone who helps.
Try to completely reinstall the plugin
(2009-08-13, 03:31 PM)DalinS Wrote: [ -> ]Try to completely reinstall the plugin

Thank you for the suggestion:

There wasn't anything to install like some of those plugins that have the "install and activate" on the first run. All I had to do to insert this particular plugin on the forum was to copy the .php file to the plugins directory and add the jscript to the jscript folder then click activate from the admin cp.

With that in mind, I have deleted the .php and associated jscript files from the server. I then proceeded to turn the forum off and back on again (don't know if that matters or not). With all that done I then reloaded the webpage and it is still showing the 2 rogue headers and the one is still showing the quotes even though I have deleted the jscript file. It's as if it got loaded somewhere in a database or something.

Any other ideas?
The php file may have edited the templates.
You should take a look at your templates. It seems like it might have added the variable being used in the templates a second time.
Go into your ACP > Templates and Styles > Templates > [theme name] > Index Page Templates > index

See if there are any abnormal variables, as suggested by skywalker. This is how it should look like if it hasn't been touched.

<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
	lang.no_new_posts = "{$lang->no_new_posts}";
	lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$forums}
{$boardstats}

<dl class="forum_legend smalltext">
	<dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->no_new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
	<dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
</body>
</html>
First, with those ideas I tried changing themes but the quotes/epigram table still remained even though the whole style of the theme changed. I then went to Templates & Style in the Admin CP and clicked on Templates. Once there I sorted through some of the templates looking for header or quotes but dind't find anything that matched the rogue plugin. I'm wondering if that is where I would need to look since it shows up no matter which theme I'm using. Is there a database where certain information gets loaded in to once a plugin is activated? Maybe that needs to be purged somehow, if it exists?
(2009-08-13, 04:47 PM)mkoontz Wrote: [ -> ]First, with those ideas I tried changing themes but it didn't change anything. I then went to Templates & Style in the Admin CP and clicked on Templates. Once there I sorted through some of the templates looking for header or quotes but dind't find anything that matched the rogue plugin. I'm wondering if that is where I would need to look since it shows up no matter which theme I'm using. Is there a database where certain information gets loaded in to? Maybe that needs to be purged somehow, if it exists?

Have you tried clearing your cache?
On your templates that have been modified from the original whether by you or a plug in will show up in green (I think it is green or else it is a different color). On the right you have a box called options if you click that there is a link in that says diff report. If the template has been modified from its original form the link will show up and if you click the link it will show you the differences.
(2009-08-13, 04:47 PM)mkoontz Wrote: [ -> ]First, with those ideas I tried changing themes but the quotes/epigram table still remained even though the whole style of the theme changed. I then went to Templates & Style in the Admin CP and clicked on Templates. Once there I sorted through some of the templates looking for header or quotes but dind't find anything that matched the rogue plugin. I'm wondering if that is where I would need to look since it shows up no matter which theme I'm using. Is there a database where certain information gets loaded in to once a plugin is activated? Maybe that needs to be purged somehow, if it exists?

To be sure, revert the template back to it's original.
Pages: 1 2