phpBBHacks.com - Hack Conflicts
Talk martial arts at KarateForums.com
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Username:    Password:
Remember Me?    
   I Lost My Password!
Bookmark and Share
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2: Troubleshooting
 See a User Guidelines violation? Please contact us.
Author Message

Thoul
VIP

Joined: 30 Jul 2002
Posts: 18040
Location: USA

PostPosted: November 27th 2004, 6:57 pm    Post subject: Hack Conflicts Reply with quote

A countless number of hacks have been created for phpBB, so it is to be expected that some of them might want to modify the same code. When you install more than one hack that wants to change a certain line of code, you can encounter what is known as a "Hack Conflict." Hack Conflicts usually result in unexpected effects or error messages. This tutorial is a guide to some known conflicts and methods of fixing them.

If you know of another conflict that you believe should be added to this list, send me (or another Support Team member) a private message and it will be considered for addition.
Back to top
View user's profile Send private message Visit poster's website

Thoul
VIP

Joined: 30 Jul 2002
Posts: 18040
Location: USA

PostPosted: November 27th 2004, 7:04 pm    Post subject: View Topic Username Conflicts Reply with quote

View Topic Username Conflicts

Known Symptoms:
A user's username, such as MyUsername, is displayed in one of these appearances:
Quote:
MyUsername');">MyUsername

Quote:
MyUsername[/b], ')">MyUsername


Causes:
Lots of hacks add colors or other effects to poster usernames inside topics. Some other hacks use the displayed username in JavaScript and the coloration of the username damages the JavaScript code.

Known Conflicting Hacks:


Possible Fix #1:
The first fix is to remove some Advanced Quick Reply code from viewtopic_body.tpl. This may disable certain features of Advanced Quick Reply.
Code:
##
##----------[ OPEN ]-------------------------------------
##

templates/subSilver/viewtopic_body.tpl

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

<a href="javascript:emoticon('[b]{postrow.POSTER_NAME}[/b], ')">{postrow.POSTER_NAME}</a>

##
##----------[ REPLACE WITH ]-----------------------------
##

{postrow.POSTER_NAME}


Possible Fix #2:
If the Advanced Quick Reply fix is not a solution, this alteration will remove username colors provided by Color Groups.
Code:
##
##----------[ OPEN ]-------------------------------------
##

viewtopic.php

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

'POSTER_NAME' => ($poster_name = color_group_colorize_name($poster_id, true)) ? $poster_name : $poster,

##
##----------[ REPLACE WITH ]-----------------------------
##

'POSTER_NAME' => $poster,



Possible Fix #3:
When using Super Quick Reply with the Shop hack installed, these changes should fix the error.
Code:
##
##----------[ OPEN ]-------------------------------------
##

viewtopic.php

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

//
// Quick Reply
//
if ( $show_qr_form )
{
     $poster = '<a href="javascript:pn(\''.$poster.'\');">'.$poster.'</a>';
}

##
##----------[ REPLACE WITH ]-----------------------------
##

//
// Quick Reply
//
if ( $show_qr_form )
{
     $poster = '<a href="javascript:pn(\''.$postrow[$i]['username'].'\');">'.$poster.'</a>';
}


Last edited by Thoul on November 28th 2004, 4:14 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website

Thoul
VIP

Joined: 30 Jul 2002
Posts: 18040
Location: USA

PostPosted: November 27th 2004, 7:06 pm    Post subject: Junior Admin and Various Hacks Reply with quote

Junior Admin and Various Hacks

Known Symptoms:
An error message similar to the following appears when a Junior Admin attempts to use the Cash hack's administration features:
Quote:
General Error
Error retrieving cash data

DEBUG MODE

SQL Error : 1146 Table 'xxxxxx.cash' doesn't exist

SELECT * FROM cash ORDER BY cash_order ASC

Line : 999
File : includes/functions_cash.php


Causes:
The Junior Admin hack accesses certain files inside a function, meaning all required variables must exist within the local scope of the function. The Cash hack expects the $table_prefix variable to be in the current (in this case, local) scope. This variable only exists in the global scope, however.

Known Conflicting Hacks:
  • Junior Admin + Cash [See Thread]
  • Junior Admin + Any other hack using $table_prefix


Possible Fix #1:
Add $table_prefix into the local scope of the Junior Admin function by using the following change.
Code:
##
##----------[ OPEN ]-------------------------------------
##
includes/functions_jr_admin.php


##
##----------[ FIND ]-------------------------------------
##
   global $db, $phpbb_root_path, $lang, $phpEx, $board_config, $userdata;


##
##----------[ AFTER, ADD ]-------------------------------
##
   global $table_prefix;
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2: Troubleshooting All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil - phpBB Portugal - phpBBpersian.com

Network: iFroggy Hosting - PhotoshopForums.com - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - KarateForums.com - Bad Boy Blog - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Disclosure Policy - Staff - User Guidelines >

Copyright © 2001-2012. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.