phpBBHacks.com - Improvising During Hack Installations
Discuss internet community strategy at CommunityAdmins.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
Add Us:     MySpace     Facebook     StumbleUpon
Username:    Password:
Remember Me?    
Improvising During Hack Installations
BlinkList
del.icio.us
Furl
linkaGoGo
reddit
Simpy
Mister Wong
Yahoo! My Web

Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2: Customizing Your phpBB
 See a User Guidelines violation? Please contact us.
Author Message

Fibz
New User

Joined: 23 Jun 2004
Posts: 1

PostPosted: August 22nd 2004, 3:28 pm    Post subject: Improvising During Hack Installations Reply with quote

We've all been there right? Installing a hack but running into a snag because you don't use subSilver or because you have installed another hack. You go to find something and it isn't there - a lot of you would give up because your new to phpBB and all you know how to do is follow the instructions the hack author gives you. Well there are ways to get round this... And i'll show you my stratergy for doing this!

It came to me that this tutorial was neccesary when I was going through the Add Field To Profile hack (which is more of a tutorial). My forum uses the FI subGrey Template and I had the Birthday Hack installed. Both of those factors caused a problem for me when trying to follow the instructions.

Code:
#
#-----[ FIND ]---------------------------------------------------
#
         $sql = "UPDATE " . USERS_TABLE . "
            SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "


That may look bunched up to you - I'm sorry about that. Anyway, I couldn't find that because I had the Birthday Hack installed and somewhere in my .tpl files would be a a spot where the Birthday Hack had required a change to be made. So I looked below that instruction and say find this:

Code:
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests) . "'


Now I had an idea of what i was looking for! But still there was more than one instance of $interests) . "' in the .tpl. However, I didn't give up.

I looked back up at the original FIND (not IN-LINE FIND) and said to myself "what is the key thing about that code sniplet?" and i noticed at the very beggining "$sql = "UPDATE " . USERS_TABLE . " " If I'm going to update the user table in that piece of code then i wont be updating it again in that .tpl because that would be a waste. So then I knew what made the lines different from all of the others which contained the IN-LINE instance that I was looking for. So I used my eyes instead of CTRL+F and found where that instance was and low and behold I was able to finish off the hack.

I hope that this tutorial has been some help!
_________________
http://www.aquaflash.co.uk/forums
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2: Customizing Your phpBB 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.it - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil

Network: iFroggy Network Blog - iFroggy Hosting - SportsForums.net - KarateForums.com - YanksBlog.com - PhotoshopForums.com - DeveloperCube - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - DrGregHouse.com - Bad Boy Blog - BadBoyForums.com - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Staff - User Guidelines >

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