![]() |
[QUOTE]Originally posted by Baratator
greaaaaaaaaaaaaaaaaaaaaaat hack !!!! jsut one thing... can you make it not srhink the fist post ? I mean generally there is one post and a lot of replys and when you wiew it all the read replys are skunk but the riginal post too... the first one if you see what i mean... thx this is a really useful hack !! |
Erm...
After installing this hack noone is able to register anymore. According to the vBulletin Database error email sent to me, the problem exists in register.php. The email sez: Code:
Database error in vBulletin 2.2.1: Regards, Ronald |
hi Yomama,
Please don't post entire scripts. I will post the correction for you, but I must know - what vBulletin version are you using? Thanks. |
OK, open your register.php and go to line 444
Replace it with: Code:
$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invisible,usertitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,usergroupid,timezoneoffset,emailnotification,receivepm,emailonpm,options,birthday,maxposts,startofweek,ipaddress,pmpopup,referrerid,nosessionhash,avatarid,[high]hideposts[/high]) VALUES (NULL,'".addslashes(htmlspecialchars($username))."','".addslashes(md5($password))."','".addslashes(htmlspecialchars($email))."',".$newstyleval."'".addslashes(htmlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($homepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialchars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signature)."','$adminemail','$showemail','$invisible','".addslashes($usertitle)."','".time()."','$cookieuser','".addslashes($prunedays)."','".time()."','".time()."','$newusergroupid','".addslashes($timezoneoffset)."','$emailnotification','$receivepm','$emailonpm','$options','".addslashes($birthday)."','".addslashes($umaxposts)."','".addslashes($startofweek)."','".addslashes($ipaddress)."','$pmpopup','".addslashes($testreferrerid['userid'])."','$nosessionhash','$avatarid','$hideposts')"); Cheers, Bira |
Bira,
Sorry for posting the entire script. I'm kind of a PHP newbie, and was unaware of forum rules. Thanks a million for solving my problem... and thanks for the brilliant hack! Regards, Ronald |
YoMama, the problem was mine, not yours - it was a mistake in my installer :)
Anyways, glad it works for you and that you like it :) |
I've got te same problem with the new registrations...
and i added what you told me to add but it always contract the fisrt post :( |
baratator,
Try adding, in admin/functions.php, the highlighted bit below: Code:
// Contract Old Posts in Thread (v1.0) |
[QUOTE]Originally posted by bira
baratator, Try adding, in admin/functions.php, the highlighted bit below: Code:
// Contract Old Posts in Thread (v1.0) |
same problem, same error message
juste on coma :p |
All times are GMT. The time now is 08:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|