Mod conflict


  -----  
Author Message

cane_cc72
Member

Sun Nov 12, 2006 12:34 am   Post subject: Mod conflict
Hey Thoul I'm installed the shop and effects addon mainly for the rank titles effects I'm currently using Adcanced Username color by aUsTiN and I noticed after installing the effects addons it takes away my username color effects in view topic so I have narrowed it down to the edits in viewtopic causing the conflict any help would be appreciated I think the below effects code is conflicting with the Advanced username color edit that follows it in the array(

Code:

/*------------------------------------------------------------------------------
// Effects Store for Shop 3 - Begin Code Alteration
//      Added:
   $shop_effects = $effects->post_check($postrow[$i]);
//      Added: array_merge(
//      Original phpBB Code:
   $template->assign_block_vars('postrow', array(
*/
   $shop_effects = $effects->post_check($postrow[$i]);
   $template->assign_block_vars('postrow', array_merge(array(
//
// Effects Store for Shop 3 - End Code Alteration
//------------------------------------------------------------------------------
      'ROW_COLOR' => '#' . $row_color,
      'ROW_CLASS' => $row_class,
        'POSTER_PET' => $poster_pet,
#======================================================================= |
#==== Start: == Advanced Username Color ================================ |
#==== v1.0.6 =========================================================== |
#====
      'POSTER_NAME' => CheckUsernameColor($postrow[$i]['user_color_gc'], $postrow[$i]['username']),
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-tweaks.com] = |
#==== End: ==== Advanced Username Color ================================ |
#======================================================================= |
 

Thoul
Administrator

Sun Nov 12, 2006 2:39 pm   Post subject: re: Mod conflict
Ok, try making this change in that area:

Code:

#
#-----[ FIND ]--------------------------------------
#

   $shop_effects = $effects->post_check($postrow[$i]);

#
#-----[ BEFORE, ADD ]--------------------------------------
#

   $poster = CheckUsernameColor($postrow[$i]['user_color_gc'], $postrow[$i]['username']);


That should allow the effects processing to work with the username after the Advanced Username colors are added.
 

Cama
Member

Sun Nov 04, 2007 4:44 pm   Post subject: Re: Mod conflict
One more conflict, I think with Advanced Quick Replay.
In a topic on a place colour Nickname here it

Quote:

Nik, ')">Nik

Javascript prevents to work normally.
There are ideas?
 

Thoul
Administrator

Thu Nov 08, 2007 12:19 am   Post subject: Re: Mod conflict
Check the Tutorials section at phpBBHacks.com. I wrote a Hack Conflicts tutorial there that covers that problem.
 

Cama
Member

Sun Nov 11, 2007 1:32 am   Post subject:

Quote:

You need to remove the JavaScript around the POSTER_NAME template variable in viewtopic_body.tpl.

Yes, but it not the decision. It AQR mod loses the important function.
 

Page 1 of 1
Display posts from previous: