The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Hi all,
This is a brand new addition to my own BB, so I don't even know how my own users will react to it, let alone how you guys would Hack Description:
Demo: You are welcome to visit my Bulletin Board, at http://www.atlasf1.com , to see what the additions look like. To test it in full (ie, the option of old posts being shrunk by default), you will have to register and modify your options after you have received your password. Cheers, Bira Show Your Support
|
Comments |
#32
|
||||
|
||||
[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 !! |
#33
|
|||
|
|||
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: Invalid SQL: INSERT INTO user (userid,username,password,email,styleid,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) VALUES (NULL,'Spankmaster C','9b1dd17445f20c234b44bccb0c611848','someemail@somedomain.com','1','','0','http://','','','','','1','0','0','Junior Member','1008002875','1','-1','1008002875','1008002875','3','+1','1','1','0','15','0000--','-1','2','213.84.221.150','1','0','1','0','0') mysql error: Column count doesn't match value count at row 1 mysql error number: 1136 Date: Monday 10th of December 2001 05:47:55 PM Script: http://games.xs4all.nl/forums/forums/register.php Referer: http://games.xs4all.nl/forums/register.php Regards, Ronald |
#34
|
||||
|
||||
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. |
#35
|
||||
|
||||
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 |
#36
|
|||
|
|||
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 |
#37
|
||||
|
||||
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 |
#38
|
||||
|
||||
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 |
#39
|
||||
|
||||
baratator,
Try adding, in admin/functions.php, the highlighted bit below: Code:
// Contract Old Posts in Thread (v1.0)
global $display, [high]$post[countpost],[/high] $HTTP_USER_AGENT;
if ($post[dateline]>$bbuserinfo[lastvisit] and $post[countpost]=="0") {
|
#40
|
||||
|
||||
[QUOTE]Originally posted by bira
baratator, Try adding, in admin/functions.php, the highlighted bit below: Code:
// Contract Old Posts in Thread (v1.0)
global $display, [high]$post[countpost],[/high] $HTTP_USER_AGENT;
if ($post[dateline]>$bbuserinfo[lastvisit] and $post[countpost]=="0") {
|
#41
|
||||
|
||||
same problem, same error message
juste on coma |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|