News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

The Rules

Started by Deprecated, August 25, 2008, 05:42:14 PM

Previous topic - Next topic

Bancherd

Quote from: Bugpac ™ on September 13, 2008, 09:54:07 AM
I got the 1.04 i guess, and it wont uninstall. says i have a fatal error, Any help?

Fatal error: Cannot redeclare modifyrulessettings() (previously declared in /home/bugpac/public_html/index/Sources/ModSettings.php:344) in /home/bugpac/public_html/index/Sources/ModSettings.php on line 410

Looked like you have it installed twice, manual edit of the file.../Sources/ModSettings.php is probably your best option.

Deprecated

Quote from: Cal O'Shaw on September 13, 2008, 02:47:03 AM
HELP!

I upgraded to 1.06.  I now have THREE "Rules" buttons.  I also lost the ability to look at features and options!

HELP!

It will be necessary to remove the mod, then manually edit out any remaining code. If you can't do it yourself just attach the 4 files to a post and I'll have a look at it.

I'm sorry for the mistake in the installation files. I'm going to post versions of 1.04 and 1.05 that should be used to remove those respective versions rather than using the ones you installed with. I'll explain in my next post.

Bugpac ™

Sounds good, I tried editing code in the dilber theme and crashed it, so if you have something i can just put in the pakacges and hit the button, That will be perfect, if not wich files do you need, or how about a temporay screen name and password for ya... 8) I now am using 1.1.6 and core theme...I dont plan to change the theme as most mods work with it...

Deprecated

Here are the fixed versions of 1.04 and 1.05 (attached).

To use them, first delete the package from your Admin -> Main -> Packages -> Browse packages. Whatever you do, do NOT uninstall the mod first!!! It is the uninstallation bug that causes multiple lines to be added.

Next, download the appropriate version of the fixed 1.04 or 1.05 you need from this post. Rename it to not include the _fixed part of it, then FTP to your Packages directory and overwrite the .zip file there with the renamed downloaded file. That fixes the script before the damage can be caused.

Finally, run your uninstallation using the new fixed package. Then, delete the package because you shouldn't use it again. Download the latest version of the mod from the SMF mod site and install using that if you want to continue using the mod. The new version is good to go as far as I know.

Deprecated

#84
Quote from: Bugpac ™ on September 13, 2008, 12:21:28 PM
Sounds good, I tried editing code in the dilber theme and crashed it, so if you have something i can just put in the pakacges and hit the button, That will be perfect, if not wich files do you need, or how about a temporay screen name and password for ya... 8) I now am using 1.1.6 and core theme...I dont plan to change the theme as most mods work with it...

You should understand that at present I know nothing about themes so you're on your own with your theme.

If your code has manual edits in it then I can't help you with that either. I can't fix broken stuff that is unrelated to The Rules. All I can do is look in files and see if there is Rules stuff there. I only know Rules stuff and other stuff, and don't know what the other stuff is. I do know what Rules stuff is and I can spot that and take it out if necessary.

Also please note that you installed a mod that is not rated for your SMF version. I have not had sufficient time to test this mod with SMF 1.1.6 and anybody who installs it on 1.1.6 is charting new territory. I advise you to not attempt to install The Rules on 1.1.6 until it is officially certified to be compatible.

Anyway the files of interest are $themedir/index.template.php, $boarddir/index.php, $sourcedir/ModSettings.php and $languagedir/Modifications.english.php.


ETA: This is nothing I could do on your forum. It is a files only type of fix. There's noting I could do from your admin that you can't do yourself.

Bugpac ™

No problem, how do i post them files, and were do i get them from, my cpanel? do i just copy them in zip and save local, then post as an attachment?

Bugpac ™


Bugpac ™

I haven't edited anything manually, I tried that previous and crashed it, I reinstalled 1.1.6 so it should all be default, besides other mods i have installed via packages...

Deprecated

#88
Can you uninstall all your mods? The quickest way to fix this would be for you to just uninstall your mods and overwrite the files with unmodified ones from the 1.1.6 full installed package. Optionally you can dig into your mods and see if any of them change the same files (listed above) and uninstall only them. Mods that don't touch these files are not an issue. Remember to uninstall The Rules with the appropriate fixed file attached above. In most cases that will solve the problem right away.

Otherwise just overwrite the files on your hosting service with the ones from the full install distribution and you're good to go. Reinstall your other mods and you're back where you were before. Even better if you didn't have any other mods because nothing to lose. This mod modifies your index.template.php which may interfere with any changes put in that file by your themes, if any.

ETA:

I'm leaving the above in case anybody wants a good way to fix it themselves. I'm currently working on a high priority problem with my own forum and I won't have a lot of support time available for the next few days.

I've attached your 4 files which I have manually removed the mod.


Bugpac ™

I replaced all the files, and installed the 1.6 package, i can not see any effects on the admin control..

Bugpac ™

Now i cant remove the 1.06 package..

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Deprecated

You can't remove it or you can't install it? Your error says you can't install it. You say you can't remove it. Which is it? I'm getting confused.

Bugpac ™

Its wierd the error says install, but the button at the bottom says uninstall, Yes i can not uninstall it....I think its partially there as it made a spce in the menu bar but no name for rules...and nothing in the admin, you wanna see more files? Im getting pretty good at that part... ;D

Deprecated

Bugbac, attach your present files to your next reply. Same ones as above.

Bugpac ™

I think these are the right ones


gameoverbeyond

I'm using SMF 1.1.6, default theme, red and attempted to install mod ver 1.06. I got a test failed on install on the template.index file.
I manually added the code to this file. All setting show up in the Admin panel, however, the "Rules" link does not show up next to "help"
Any ideas?

gameoverbeyond

Got it to work. All I did was edit the index.template file and added a character return inbetween "// Show the [rules] button. global $user_info, $modSettings;"   and  "if"
like this:
// Show the [rules] button. global $user_info, $modSettings;
          if (!$user_info['is_guest'] || !empty($modSettings['rules_enable_guest_access'])) echo ($current_action == 'rules' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , ' <td valign="top" class="maintab_' , $current_action == 'rules' ? 'active_back' : 'back' , '"> <a href="', $scripturl, '?action=rules">' , $txt['rules'] , '</a> </td>' , $current_action == 'rules' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Not sure why that made it work...but it did. This may be a glitch with Notepad++ which is what I use for file edits.

Thanks for the awesome mod btw

Bugpac ™

It had error in this file when i uninstalled it....everything else passed, i went ahead and hit uninstall..

Deprecated

Quote from: Bugpac ™ on September 15, 2008, 10:30:07 PM
It had error in this file when i uninstalled it....everything else passed, i went ahead and hit uninstall..

I took 2 lines of "rules" modification out of your file, please find attached.

Deprecated

Quote from: gameoverbeyond on September 15, 2008, 12:48:46 PM
Got it to work. All I did was edit the index.template file and added a character return inbetween "// Show the [rules] button. global $user_info, $modSettings;"   and  "if"

Thanks for the awesome mod btw

You are welcome. That line "global $user_info, $modSettings;" must be on its own line, and must NOT be on the // comment line or the modification won't work properly.

Just a recommendation: It is not a good idea to install mod packages that are not validated for your forum software version. I have not had time to test any of my mod packages on 1.1.6 although many of them are validated on 1.1.5 and most of those have a good chance of being 1.1.6 compatible too. Until such time as I can test them myself and add notations that they are suitable for 1.1.6 I suggest that anybody who wants to try it is entering uncharted territory. However any reports that my mods do work on 1.1.6 will be useful information when my level of panic gets low enough that I can begin testing for 1.1.6 compatibility.

Advertisement: