Advertisement:

Author Topic: Need help to install Mod  (Read 18000 times)

Offline shami777

  • Newbie
  • *
  • Posts: 7
Need help to install Mod
« on: September 18, 2010, 09:15:36 PM »
Dar Friends,
I am new to SMF and dont know much about SMF.
I need your help to install this Mod.
http://custom.simplemachines.org/mods/index.php?mod=1624

Please help and guide me. I am afraid that may I destry my forum by any mistake.

Offline Hassan_the best

  • Full Member
  • ***
  • Posts: 592
  • Gender: Male
  • Lost in life
Re: Need help to install Mod
« Reply #1 on: September 18, 2010, 11:56:30 PM »
Hey first of all keep backup for your forum
then install this mod
ur using smf 1.1.11 then i think u have to manually install it too meaning u have to edit
/Themes/default/Post.template.php
if ur using a custom theme meaning other theme which has post.template.php file then do the below procedure otherwise if ur using default core then dont

Find:
Code: [Select]
        // Print a drop down list for all the colors we allow!
        if (!isset($context['disabled_tags']['color']))
            echo ' <select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
                            <option value="" selected="selected">', $txt['change_color'], '</option>
                            <option value="Black">', $txt[262], '</option>
                            <option value="Red">', $txt[263], '</option>
                            <option value="Yellow">', $txt[264], '</option>
                            <option value="Pink">', $txt[265], '</option>
                            <option value="Green">', $txt[266], '</option>
                            <option value="Orange">', $txt[267], '</option>
                            <option value="Purple">', $txt[268], '</option>
                            <option value="Blue">', $txt[269], '</option>
                            <option value="Beige">', $txt[270], '</option>
                            <option value="Brown">', $txt[271], '</option>
                            <option value="Teal">', $txt[272], '</option>
                            <option value="Navy">', $txt[273], '</option>
                            <option value="Maroon">', $txt[274], '</option>
                            <option value="LimeGreen">', $txt[275], '</option>
                        </select>';

Replace with:
Code: [Select]
        // Print a drop down list for all the colors we allow!
        if (!isset($context['disabled_tags']['color']))
            echo ' <select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
                            <option value="" selected="selected">', $txt['change_color'], '</option>
                            <option value="Black">', $txt[262], '</option>
                            <option value="Red" style="color: #ff0000;">', $txt[263], '</option>
                            <option value="Yellow" style="color: #ffff00;">', $txt[264], '</option>
                            <option value="Pink" style="color: #ffc0cb;">', $txt[265], '</option>
                            <option value="Green" style="color: #008000;">', $txt[266], '</option>
                            <option value="Orange" style="color: #ffa500;">', $txt[267], '</option>
                            <option value="Purple" style="color: #800080;">', $txt[268], '</option>
                            <option value="Blue" style="color: #0000ff;">', $txt[269], '</option>
                            <option value="Beige" style="color: #f5f5dc;">', $txt[270], '</option>
                            <option value="Brown" style="color: #a52a2a;">', $txt[271], '</option>
                            <option value="Teal" style="color: #008080;">', $txt[272], '</option>
                            <option value="Navy" style="color: #000080;">', $txt[273], '</option>
                            <option value="Maroon" style="color: #800000;">', $txt[274], '</option>
                            <option value="LimeGreen" style="color: #32cd32;">', $txt[275], '</option>
                        </select>';

then find:
Code: [Select]
// Print a drop down list for all the fonts are aviable!
    if (!isset($context['disabled_tags']['font']))
echo ' <select onchange="surroundText(\'[font=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/font]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
    <option value="" selected="selected">', $txt['font_face'], '</option>
    <option value="Arial">', $txt['font_arial'], '</option>
    <option value="Times New Roman">', $txt['font_times'], '</option>
    <option value="Comic Sans MS">', $txt['font_comic'], '</option>
    <option value="Verdana">', $txt['font_verd'], '</option>
    <option value="Haettenschweiler">', $txt['font_heatt'], '</option>
    <option value="Tahoma">', $txt['font_taho'], '</option>
    </select>';
// Print a drop down list for all the fonts sizes are aviable!
    if (!isset($context['disabled_tags']['size']))
echo ' <select onchange="surroundText(\'[size=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/size]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
    <option value="" selected="selected">', $txt['font_size'], '</option>
    <option value="9pt">', $txt['size_9'], '</option>
    <option value="10pt">', $txt['size_10'], '</option>
    <option value="11pt">', $txt['size_11'], '</option>
    <option value="12pt">', $txt['size_12'], '</option>
    <option value="13pt">', $txt['size_13'], '</option>
    <option value="14pt">', $txt['size_14'], '</option>
    </select>';

replace with:
Code: [Select]
        // Print a drop down list for all the fonts are aviable!
    if (!isset($context['disabled_tags']['font']))
echo ' <select onchange="surroundText(\'[font=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/font]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
    <option value="" selected="selected">', $txt['font_size'], '</option>
    <option value="Arial" style="font-family: Arial;">', $txt['font_arial'], '</option>
    <option value="Times New Roman" style="font-family: Times New Roman;">', $txt['font_times'], '</option>
    <option value="Comic Sans MS" style=font-family: Comic Sans MS";>', $txt['font_comic'], '</option>
    <option value="Verdana" style="font-family: Verdana;">', $txt['font_verd'], '</option>
    <option value="Haettenschweiler" style="font-family: Haettenschweiler;">', $txt['font_heatt'], '</option>
    <option value="Tahoma" style="font-family: Tahoma;">', $txt['font_taho'], '</option>
    </select>';
// Print a drop down list for all the fonts sizes are aviable!
    if (!isset($context['disabled_tags']['size']))
echo ' <select onchange="surroundText(\'[size=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/size]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;height: 20px;">
    <option value="" selected="selected">', $txt['font_face'], '</option>
    <option value="9pt" style="font-size: 9pt;">', $txt['size_9'], '</option>
    <option value="10pt" style="font-size: 10pt;">', $txt['size_10'], '</option>
    <option value="11pt" style="font-size: 11pt;">', $txt['size_11'], '</option>
    <option value="12pt" style="font-size: 12pt;">', $txt['size_12'], '</option>
    <option value="13pt" style="font-size: 13pt;">', $txt['size_13'], '</option>
    <option value="14pt" style="font-size: 14pt;">', $txt['size_14'], '</option>
    </select>';

Offline bennyaka

  • Jr. Member
  • **
  • Posts: 161
Re: Need help to install Mod
« Reply #2 on: September 19, 2010, 12:54:15 AM »
Sure!

Offline shami777

  • Newbie
  • *
  • Posts: 7
Re: Need help to install Mod
« Reply #3 on: September 19, 2010, 05:00:59 PM »
Dear Hassan, thank you for favor me.
As I said firtstly I am not much familier with SMF or other forum.
Please guide me to save backup.
I think there is a folder and files to dowmnload via ftp. such as ....
1:attacment & Avitars
2:file "Sttings"
3: file " Backup"

If I am wrong please correct me.

I ill be very very thanks full to you. I am a Pakistani and I think you too (By name)
so please learn me and visit my site also.

hxxp:www.shamionline.com [nonactive]
Regards

Offline Hassan_the best

  • Full Member
  • ***
  • Posts: 592
  • Gender: Male
  • Lost in life
Re: Need help to install Mod
« Reply #4 on: September 20, 2010, 05:13:42 AM »
Backup keliye aap bus apne core theme and the multicolor theme ki post.template.php file pc mai save kerdey ok mod install kerney se pehley...after installation of the mod agar koi problem hoti hai tou mod uninstall karey and wohi post.template.php file jo aap ne save ki thi pc mai wohi replace kardey wapas.
And yes I am a Pakistani too

Offline shami777

  • Newbie
  • *
  • Posts: 7
Re: Need help to install Mod
« Reply #5 on: September 20, 2010, 07:43:10 PM »
Bohat Shukria hassan bhai.
I trty to install mod. Agar koi mushkil hooie to aap ko dobara zahmat doonga.

Offline Tien

  • Semi-Newbie
  • *
  • Posts: 23
Re: Need help to install Mod
« Reply #6 on: August 14, 2012, 12:38:50 PM »
I am using SMF 2.0.2. I have searched for the following parameter in the post.template.php under the default but I just can't find it.
I need some advice.

// Print a drop down list for all the colors we allow!