Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: mizz77 on July 09, 2007, 01:56:54 AM

Title: MODS not working
Post by: mizz77 on July 09, 2007, 01:56:54 AM
I used latest post http://custom.simplemachines.org/mods/index.php?mod=575

for 1.1.3 and the flash email notification,... I addedteh zip files from teh admin area, and then installed them... it said it was a succesful install... but neither packadges work

can anyone tell em what the problem is?
ty
Title: Re: MODS not working
Post by: shadow82x on July 09, 2007, 02:34:51 AM
What theme are you using?
Title: Re: MODS not working
Post by: mizz77 on July 09, 2007, 02:43:23 AM
Babylon Theme, and it did say it was succesful....so Im nto sure what els to do

also just to add... where it lists all packadges used... I had 2 installed with the theme, and those have the delete option, the 2 I installed are listed but dont give the delete option... if that helps any.

thnx
Title: Re: MODS not working
Post by: gmt2001 on July 09, 2007, 03:07:57 AM
Most mods ONLY install for the defeault SMF theme. You have to edit the installer on your own to use any other theme, including the older themes that come with your SMF installation
Title: Re: MODS not working
Post by: shadow82x on July 09, 2007, 03:09:25 AM
With that theme you have to custom install most mods. Read the online manual on how to do that. They probaly installed on the SMF core.
Title: Re: MODS not working
Post by: gmt2001 on July 09, 2007, 03:14:28 AM
The install files can be manually edited but takes some work. Pretty much gotta do alot of replacements. Hopefully SMF 2.0 package installer will be able to better-handle the $themedir and $languagedir commands in the install files to apply to all themes at the same time
Title: Re: MODS not working
Post by: mizz77 on July 09, 2007, 03:18:36 AM
Can either of you tell me where to see the info on custom installs... or how to do the replacements?

I can do with out the email mod... but the last post showing up on the bottom of the thread is silly... so if there snot an option to make the last post show up at the top of each thread... can someone point the way for me to do this?

thnx
Title: Re: MODS not working
Post by: gmt2001 on July 09, 2007, 03:25:28 AM
replace $themedir with '$boarddir/Themes/Babylon'
replace $languagedir with '$boarddir/Themes/Babylon/language'

in the package-info.xml file and all other .xml or .mod files

You actaully want to copy lines with those and then change the copied lines  because soem files in some themes actually arent there becasue they use the Default themes files. Once this is done it msot likely will have some 'file not found' or other errors on the install page but you can ignore it
Title: Re: MODS not working
Post by: mizz77 on July 09, 2007, 03:26:57 AM
okay im going to try... ty!
dont go away :-D
Title: Re: MODS not working
Post by: mizz77 on July 09, 2007, 03:47:49 AM
what exactly do I change? not havign any luck... ty
<edit file>
$themedir/BoardIndex.template.php
</edit file>

<search for>
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b>  ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];
</search for>

<replace>
if (!empty($board['last_post']['id']))
echo ' ', $board['last_post']['link'], '<br />
    ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $board['last_post']['time'];
</replace>


<search for>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
</search for>

<replace>
<td colspan="4" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
</replace>

<edit file>
$sourcedir/BoardIndex.php
</edit file>

<search for>
$row_board['short_subject'] = shorten_subject($row_board['subject'], 24);
</search for>

<replace>
$row_board['short_subject'] = str_replace('Re: ', ' ', shorten_subject($row_board['subject'], 24));
</replace>
Title: Re: MODS not working
Post by: mizz77 on July 09, 2007, 10:59:01 AM
anyone?
Title: Re: MODS not working
Post by: gmt2001 on July 09, 2007, 04:44:05 PM
Copy and paste from <edit file>
$themedir/BoardIndex.template.php
</edit file>
until the line jsut before the next edit file line and paste it to the bottom of the file. Then replace $themedir in the newly pasted copy. Do this for anything that has $themedir or $languagedir in it. You should also check the package-info.xml file. for the package-info file you would want to paste right below the copyed line
Title: Re: MODS not working
Post by: mizz77 on July 09, 2007, 05:12:17 PM
its uneditable, and theres no uninstaller... so any more suggestions?
thnx
Title: Re: MODS not working
Post by: gmt2001 on July 09, 2007, 05:15:27 PM
you have to extract it on your own computer to do this
Title: Re: MODS not working
Post by: mizz77 on July 09, 2007, 05:21:01 PM
I did that, but then when I tried to reupload it through the forum, it gave me errors... however in the other thread someone just showed me how to set those options in my admin panel... much easier than this crzay thing

could you tell me how to remove/uninstall this package now? it has no uninstaller

thnx
Title: Re: MODS not working
Post by: gmt2001 on July 09, 2007, 05:23:58 PM
you should be able to through the package manager. It will just reverse all of its actions. but you will have to manually remove any custom files or images that it installed
Title: Re: MODS not working
Post by: mizz77 on July 09, 2007, 05:39:02 PM
it has no uninstaller in the package... it wont uninstall... this is what it said when I tried... any suggestions? ty
Title: Re: MODS not working
Post by: babjusi on July 09, 2007, 05:54:44 PM
Quote from: mizz77 on July 09, 2007, 03:18:36 AM
Can either of you tell me where to see the info on custom installs... or how to do the replacements?

I can do with out the email mod... but the last post showing up on the bottom of the thread is silly... so if there snot an option to make the last post show up at the top of each thread... can someone point the way for me to do this?

thnx

Try this modparser. It will tell you exactly what changes need to be done

http://modparser.dev.dansoftaustralia.net/index.php