upgrade when you've got many mods installed

Started by Harro, June 09, 2005, 07:27:57 PM

Previous topic - Next topic

rbrown3rd

I am working offline with a copy of the files from my working forum.  When I look for the string to be replaced that begins with:
Quote'~\[/quote\](?:<br />)?~i' => isset($disabled['quote']) ? '</div>' : '</div>',

I find no such entry.  My forum is running ok but now I am really worried about it. 

Harro

Which file is it?
If you can't find the exact same thing, thin you'll have to look for something similar.
It can all depend of the template eg you are using, or other mods you've installed.
Try to look for  isset($disabled['quote'])   for example, and see if you can find that.

rbrown3rd

Ok, I do have four instances of that sub string in the subs.php file.  Now to find which one is the correct one.  If only I knew what I was doing here.  LOL.  ;D

I am running SMF embedded in a MKPortal and the only mods were to make it run inside the MKPortal.  I checked and those mods did not involve removing anything with any strings like that. 

Thanks for your patience with me on this.  I just am not a programmer.

Bob

rbrown3rd

Ok, I think I have located it as:

Quote~\[/quote\](?:<br />)?~i' => isset($disabled['quote']) ? '</div>' : '</div>',
         // An image.  Width and height can be are optional.
         '~\[img(\s+width=([\d]+))?(\s+height=([\d]+))?\s*\](?:<br />)*(.+?)(?:<br />)*\[/img\]~ei' => isset($disabled['img']) ? '\'$5\'' : '\'<img src="$5" alt=""\' . (\'$2\' != \'\' ? \' width="$2"\' : \'\') . (\'$4\' != \'\' ? \' height="$4"\' : \'\') . \' border="0" />\'',

rbrown3rd

After learning that there might be slight variations on the strings to be replaced or located for adding before or after in the mod file I think I have all of the edits done.   I guess I have to place the forum in maitenance mode to FTP the edited files up?  Maybe I will wait until a slack time like the early morning hours to try them out. 

Harro

You don't have to put it in maintance, but you can do it.
If you got any erros, just post them here :)

rbrown3rd

Thank you very much for your support Harro.  I will post here if I have any problems and probably will if it goes well too.  I am sure it will be the latter.

rbrown3rd

FTP'ed my modded files this morning.  Ran the site and qot:

Quote
Parse error: parse error, unexpected '~', expecting ')' in /home3/sub007/sc11567-AWTY/www/freeflow/forum2/Sources/Subs.php on line 914
Panicked.
Reloaded old files.
Site seems to be back to normal. 

Advice?

Advertisement: