• 0
  • 0 RepliesReplies
  • 2260 ReadTimes Read
  • 2 PointsPoints

Topic: problema Thank-O-Matic RC5 - 2.0

no avatar
Usuario: aelmiger
Rango: Nuevo Usuario
Mensajes: 26
Points: 5
Perfil: View Profile
problema Thank-O-Matic RC5 - 2.0
July 27, 2011 - 06:42 18:42
Hola amigo, quisiera que me ayuden con el problema que tengo es que eh tratado de instalar este MOD, pero como mucho comentarios lo han dicho eh instalado mucho mod antes y por eso mi Display Template esta algo sucio por decirlo así y me da error al instalarlo.


Eh modificado varias veces el archivo que hay que agregar pero me da error en la plantilla, estoy desperado y necesito su ayuda amigo T.T


Aqui le dejo lo que hay que modificar amigo, saludos y espeor de su ayuda-.


./Sources/Load.php


Encontrar
Quote
         mem.birthdate, mem.member_ip, mem.member_ip2, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login,
         mem.karma_good, mem.id_post_group, mem.karma_bad, mem.lngfile, mem.id_group, mem.time_offset, mem.show_online,

Agregar Despues
Quote
         mem.birthdate, mem.member_ip, mem.member_ip2, mem.icq, mem.aim, mem.yim, mem.msn, mem.posts, mem.last_login,
         mem.karma_good, mem.id_post_group, mem.karma_bad, mem.lngfile, mem.id_group, mem.time_offset, mem.show_online,
         mem.thank_you_post_made, mem.thank_you_post_became, last_thank_you_time,



./Themes/Sunshine2/Display.template.php


Encontrar
Quote
      'print' => array('text' => 'print', 'image' => 'print.gif', 'lang' => true, 'custom' => 'rel="new_win nofollow"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),
   );

Agregar Despues
Quote
      'print' => array('text' => 'print', 'image' => 'print.gif', 'lang' => true, 'custom' => 'rel="new_win nofollow"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),
   );
   // Special Lock for the Thank You :)
   if ($context['thank_you_lock_allowed'])
      if (empty($context['is_thank_you_post_locked']))
         $normal_buttons['thankyoupostlock'] = array('text' => 'thank_you_post_lock_all_b', 'image' => 'thank_you_lock1.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyoupostcloseall;topic='  . $context['current_topic']);
      else
         $normal_buttons['thankyoupostlock'] = array('text' => 'thank_you_post_open_all_b', 'image' => 'thank_you_lock2.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyoupostcloseall;topic='  . $context['current_topic']);
   // A Fix for later, if some Translations are not Updated
   if (empty($txt['thank_you_link_aftercounters']))
      $txt['thank_you_link_aftercounters'] = $txt['thank_you_link_aftercounter'];


Encontrar
Quote
      // What about splitting it off the rest of the topic?
      if ($context['can_split'] && !empty($context['real_num_replies']))
         echo '
                           <li class="split_button"><a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $txt['split'], '</a></li>';

Agregar Despues
Quote
      // What about splitting it off the rest of the topic?
      if ($context['can_split'] && !empty($context['real_num_replies']))
         echo '
                           <li class="split_button"><a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $txt['split'], '</a></li>';

      // Can do some Thank You Post things :)
      if ($message['thank_you_post']['post'] && !$message['thank_you_post']['locked'])
      {
         echo '
               <li class="thank_you_button"><span id="buttonThxID' . $message['id'] . '" style="display: inline;"><a id="buttonThxHrefID' . $message['id'] . '" href="', $scripturl, '?action=thankyou;topic=', $context['current_topic'], '.0;msg=', $message['id'], '"'.(!empty($modSettings['thankYouPostAJAX']) ? ' onclick="return thankyou(' . $message['id'] . ');"' : '').'>', $txt['thank_you_post_post_b'], '</a></span></li>';

         if(!empty($modSettings['thankYouPostAJAX']) && $context['browser']['is_ie']) {
         // I HATE INTERNET EXPLORER!!!!!!!!!!!!!!!!!!!!!!!
         echo '
            <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
               // Rewrite the url :x so that internet explorer can not follow it
               document.getElementById("buttonThxHrefID' . $message['id'] . '").href = "#msg=' . $message['id'] . '";
            // ]]></script>';
         }
      }
      
      // This is the Thank-O-Matic Lock Button with Ajax special Addon :D
      if ($message['thank_you_post']['lock'] && $message['thank_you_post']['isThankYouPost'])
         echo '
               <li class="', $message['thank_you_post']['locked'] ? 'thank_you_open_button' : 'thank_you_lock_button', '"><a href="', $scripturl, '?action=thankyoupostlock;topic=', $context['current_topic'], '.0;msg=', $message['id'], '">', $message['thank_you_post']['locked'] ? $txt['thank_you_post_open_b'] : $txt['thank_you_post_lock_b'], '</a></li>';
      elseif ($message['thank_you_post']['lock'] && !$message['thank_you_post']['isThankYouPost'] && !empty($modSettings['thankYouPostAJAX']) && empty($modSettings['thankYouPostAJAXModButtonsDisable']))
         echo '
               <li class="', $message['thank_you_post']['locked'] ? 'thank_you_open_button' : 'thank_you_lock_button', '" id="thank_lock_button_' . $message['id'] . '" style="display: none;"><a href="', $scripturl, '?action=thankyoupostlock;topic=', $context['current_topic'], '.0;msg=', $message['id'], '">', $message['thank_you_post']['locked'] ? $txt['thank_you_post_open_b'] : $txt['thank_you_post_lock_b'], '</a></li>';
      // This will prevent Java Script errors on most browser...
      elseif (!empty($modSettings['thankYouPostAJAX']) || !empty($modSettings['thankYouPostAJAXModButtonsDisable']))
         echo '
               <span id="thank_lock_button_' . $message['id'] . '" style="display: none;"></span>';
      
      // This is the Thank-O-Matic Delete Button with Ajax special Addon ;P
      if ($message['thank_you_post']['delete'] && $message['thank_you_post']['isThankYouPost'])
         echo '
               <li class="thank_you_delete_button"><a href="', $scripturl, '?action=thankyoupostdelete;topic=', $context['current_topic'], '.0;msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_thank_you_post'], '?\');">', $txt['thank_you_post_delete_b'], '</a></li>';
      elseif ($message['thank_you_post']['delete'] && !$message['thank_you_post']['isThankYouPost'] && !empty($modSettings['thankYouPostAJAX']) && empty($modSettings['thankYouPostAJAXModButtonsDisable']))
         echo '
               <li class="thank_you_delete_button" id="thank_delete_button_' . $message['id'] . '" style="display: none;"><a href="', $scripturl, '?action=thankyoupostdelete;topic=', $context['current_topic'], '.0;msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_thank_you_post'], '?\');">', $txt['thank_you_post_delete_b'], '</a></li>';
      // This will prevent Java Script errors on most browser...
      elseif (!empty($modSettings['thankYouPostAJAX']) || !empty($modSettings['thankYouPostAJAXModButtonsDisable']))
         echo '
               <span id="thank_delete_button_' . $message['id'] . '" style="display: none;"></span>';


Encontrar
Quote
      // Can the user modify the contents of this post?  Show the modify inline image.
      if ($message['can_modify'])
         echo '
                     <img src="', $settings['images_url'], '/icons/modify_inline.gif" alt="', $txt['modify_msg'], '" title="', $txt['modify_msg'], '" class="modifybutton" id="modify_button_', $message['id'], '" style="cursor: ', ($context['browser']['is_ie5'] || $context['browser']['is_ie5.5'] ? 'hand' : 'pointer'), '; display: none;" onclick="oQuickModify.modifyMsg(\'', $message['id'], '\')" />';

Remplazar
Quote
      // Show the Thank You list or the link or.... nothing? XD
      echo '
                     <div class="ThankOMatic information" style="margin-left:0;display: '.($message['thank_you_post']['isThankYouPost'] ? 'block' : 'none').';" id="ThankOMaticID' . $message['id'] . '">
                           <span class="error" id="ErrorThankOMaticID' . $message['id'] . '"></span>';
      // Output the Template for Thank-O-Matic (Normal found in the index.template.php)
      // It will fall back into a standard function, if this template_thank_you_post doesn't exists!
      if ($message['thank_you_post']['isThankYouPost'])
      {
         // Mistake? Function not loaded oO.
         if (empty($context['call_thank_you_post_func']))
            loadThankYouTemplateFunctions();

         // Call the correct function =D
         $context['call_thank_you_post_func']($message['thank_you_post'], $message['id']);
      }
      echo '
                     </div>';

      // Can the user modify the contents of this post?  Show the modify inline image.
      if ($message['can_modify'])
         echo '
                     <img src="', $settings['images_url'], '/icons/modify_inline.gif" alt="" title="', $txt['modify_msg'], '" class="modifybutton" id="modify_button_', $message['id'], '" style="cursor: ', ($context['browser']['is_ie5'] || $context['browser']['is_ie5.5'] ? 'hand' : 'pointer'), '; display: none;" onclick="oQuickModify.modifyMsg(\'', $message['id'], '\')" />';

 

TAGS



top

Smfsimple.com es un sitio destinado a brindar un servicio de soporte y herramientas para foros realizados con el sistema de foros gratuito simplemachines.org. Contamos con un selecto equipo de desarrolladores y conocedores del sistema, sus foros estaran en buenas manos.
This site is not affiliated with or endorsed by Simple Machines