Gönderen Konu: Affiliates Mod  (Okunma sayısı 1344 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı Balaban

  • SGT-Admin
  • *
  • İleti: 3804
  • PR ( Rep ) : 117
  • Cinsiyet: Bay
    • Metal Vids
Affiliates Mod
« : SmfGrup Saati : 27 Ağustos Çrş 2008, 01:02 »
Description

Modification to add to your affiliates or friendly Webs...

Features
o Stable Version
o Support HTML Codes
o Support BBCODE
o Enable/Disable this mod in: Admin Panel --> Configuration --> Features and Options --> Affiliates
o You can enable/disable a marquee effect
o Support for SMF 2.0
o Added mouse stop effect to the marquee
o If the affiliates are empty they dont appear
o You can have your custom title for affiliates
o Redirect to the affiliates settings after the installation


Installation
Simply install the package to install this modification on the Default theme.

This mod will work for both SMF 1.1.x and 2.X versions.


Download Affiliates Mod

************************

Manual Edit

If your theme have a custom Boardindex.template.php you need to do this:

Find :

Kod: [Seç]
// Show the login bar. (it's only true if they are logged out anyway.
ADD BEFORE

Kod: [Seç]
//Affiliates by: www.mundo-se.com         if (!empty($modSettings['arrange_affiliates']) && (!empty($modSettings['affiliates']))) {    echo '<tr>'; if (!empty($modSettings['affiliates_title']))     echo '<td class="titlebg" colspan="2">', $modSettings['affiliates_title'], '</td>'; else   echo '<td class="titlebg" colspan="2">', $txt['affiliates_mod'], '</td>';   echo '</tr>   <tr>      <td class="windowbg">           <img src="', $settings['images_url'], '/icons/members.gif" border="0" width="20" alt="', $txt['affiliates_index'], '"/>      </td>      <td class="windowbg2" width="100%">';   if ($modSettings['affiliates_marquee'] == 0)    echo '<span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span>';   if ($modSettings['affiliates_marquee'] == 2)    echo '<marquee behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';    if ($modSettings['affiliates_marquee'] == 1)    echo '<marquee><span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';    echo '  </td>   </tr>';   } 



SMF 2.0:
If your theme have a custom Boardindex.template.php you need to do this:



Find :

Kod: [Seç]
// Show the login bar. (it's only true if they are logged out anyway.
Add before

Kod: [Seç]
//Affiliates by: www.mundo-se.com        if (!empty($modSettings['arrange_affiliates']) && (!empty($modSettings['affiliates']))) {    echo '<tr>'; if (!empty($modSettings['affiliates_title']))     echo '<td class="titlebg" colspan="2">', $modSettings['affiliates_title'], '</td>'; else   echo '<td class="titlebg" colspan="2">', $txt['affiliates_mod'], '</td>';   echo '</tr>   <tr>      <td class="windowbg">           <img src="', $settings['images_url'], '/icons/members.gif" border="0" width="20" alt="', $txt['affiliates_index'], '"/>      </td>      <td class="windowbg2" width="100%">';   if ($modSettings['affiliates_marquee'] == 0)    echo '<span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span>';   if ($modSettings['affiliates_marquee'] == 2)    echo '<marquee behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';    if ($modSettings['affiliates_marquee'] == 1)    echo '<marquee><span class="smalltext"> ' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';    echo '  </td>   </tr>';   }


Languages
o Supports Languages
- English/English-utf8
- English_British/English_British-utf8
- Spanish/Spanish-utf8

If your using a language different than the ones supported this mod (listed below), then you will need to add the following to the Modifications.{language}.php for each theme (The language folder can be found eg Themes/{themename}/languages/)
If you are using utf8, you will also need to add it to Modifications.{language}-utf8.php.

I welcome translations for any languages which SMF Supports.
Please translate the following and post it in the support topic for the mod. Thank You


Modifications.{language}.php


Kod: [Seç]
$txt['affiliates'] = 'Affiliates <br> <span class="smalltext">Is neccesary the use of html or bbcode.</span>';$txt['affiliates_mod'] = 'Affiliates';$txt['affiliates_title'] = 'Affiliates Title<br><span class="smalltext">You can have your custom title for affiliates.<br>You can leave this in blank.</span>';$txt['arrange_affiliates'] = 'Enable Affiliates Mod';$txt['affiliates_marquee'] = 'Marquee Effect <br><marquee><span class="smalltext">This is a text with marquee.</span></marquee>';$txt['affiliates_marquee_enable'] = 'Enable Marquee effect';$txt['affiliates_marquee_disabled'] = 'Disable Marquee effect';$txt['affiliates_marquee_mouseover'] = 'Stop marquee with mouse';
Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.1 - 17 August 2008
o Stable Version
o Support for SMF 2.0
o Added mouse stop effect to the marquee
o Added Spanish and Spanish-utf8/English-utf8 Support
o Moved all the languages to Modifications.english
o If the affiliates are empty they dont appear
o You can have your custom title for affiliates
o Redirect to the affiliates settings after the installation

1.0 BETA - 17 July 2008
o Initial Beta Release