![]() |
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 |
here's a screen capture of what it would look like if a user selected to contract old posts:
http://www.atlasf1.com/personal/bira...tractposts.gif (This is on a clean, default vBulletin style/design. My BB has a slightly different style, which is why I am also including this image above) |
Wow Bira. Your going to town on these hacks lately. :D
Going to install tonight! |
All I can say is that it works and looks wonderful on your site.
Thank You. :D |
that's cool, thanks :)
|
Bira, I registered on your site to see how it worked. Very cool!! :D
|
ok, if you installed this hack on 2.2.1 there's a small change.
If you haven't installed this hack, or installed it on 2.0.3, ignore this post. In root/register.php find this: Code:
// Contract Old Posts in Thread (v1.0) Sorry about this - I initially tested this on 2.0.3, and having tested it now on 2.2.1 as well - I noticed the ',avatarid' md5()and ".'$avatarid'" are missing from this query :) |
Hmmm, I'm getting this error when I try to run install_contractposts.php:
Parse error: parse error in /home/username/public_html/forums/admin/install_contractposts.php on line 278 |
Sorry about that Crinos. Please download the zip file again - I corrected that mistake (forgot to espace the ' in that line :/)
|
Thanks bira ...
I just finished installing it on my test board, but now I get this error when I try to click a thread from forumdisplay.php: Code:
Parse error: parse error in /home/username/public_html/forums/showthread.php on line 401 PHP Code:
|
Crinos,
This has nothing to do with my hack, which changes nothing in these lines. However, looking at the code you posted, it looks like like 401 in your showthread.php has gone completely awry. The correct (original) line should be: PHP Code:
|
duh! I didn't know what the hell happened to that code right there, but it was pretty whacked out ... thanks for the fix ...
The hack works great! Excellent work ... my users are gonna like this, hehe ... I'll install it on my main board tomorrow night ... you're right, this hack takes some time to install. Great work, as usual :) |
Thanks :)
|
My installation didn't work. I think I'm going to have to go back through this whole thing.
It doesn't expand and contract and the images are not showing up at all. :( I have such a hacked up site it's hard to find the code to edit. |
Hooper,
1) Make sure you follow the instructions in the installer to a T 2) Remember that this will only work on IE. If you are viewing your forums with Netscape or any other browser than IE, you won't see any difference at all. Cheers, Bira |
Hooper,
E-mail me at goren@atlasf1.com the following files, and I'll make sure the hack is installed correctly and return them to you. 1) member.php 2) register.php 3) showthread.php 4) admin/functions.php 5) txt file of your postbit template 6) txt file of your showthread template Cheers, Bira |
Installed and working fine on my forumz :) thanks Bira.
Justa thought but this would be realy kewl if the threads autocollapsed if the thread was older than maybe 30 days or so. Anyhow just a note to say ta HM |
Hi Bira,
You offer is very kind and I decided to take you up on it. The files are sent. I went over the hack installation briefly yesturday evening and found that within the showthread.php there is a bit of your hack code that is installed right below a portion of a news type hack I have installed. This may be posing a problem but I'm not sure. At this point I have a minimum of 10-12 hacks installed and a couple of the files such as functions and showthread are getting interesting when trying to install another hack. Heh, you almost have to be a hack writer yourself when you get to this point. Regardless, I appreciate you taking a look to see if it is something on the simple end or if I have a clash in code between hacks or between the several javascript apps I have installed. Most likely I just missed something somewhere. Thank You, Rick |
[QUOTE]Originally posted by Modshack
Installed and working fine on my forumz :) thanks Bira. Justa thought but this would be realy kewl if the threads autocollapsed if the thread was older than maybe 30 days or so. Anyhow just a note to say ta HM |
Hi Rick,
Did you send it? I didn't receive it (I just woke up, heh). goren@atlasf1.com - just to be sure. Cheers, Bira |
Hi Bira,
Yes I sent it. I also went ahead and just sent it again. Darn email. :D I've always wondered where half the email goes when not received. Does it like just set out in cyberspace between deminsions..Lol. |
I got it. Will look into it now right away :)
|
[QUOTE]Originally posted by bira
I got it. Will look into it now right away :) |
Hooper - sent you the stuff edited back :)
|
*Hooper goes and crawls under rock after the talented Bira shows Hooper that he left code out of the templates thus creating buggies. :o *
I really should sleep more. Everything seems to be super duper. Thanks Bira, Much Appreciated. Rick |
My pleasure. Glad it works :)
|
And that it does. :)
Thanks again for sharing your work. Rick |
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 !! |
ok, I was asked about two other hacks I wrote, and how to integrate
them with this hack, so here goes: 1) The " Who Posted" enhancement hack ('showposts'). If you installed my hack variation - of using a separate, showposts.php file (rather than hacking showthread.php) - you will need to do two small changes to showposts.php: a) Find Code:
$pagenav = getpagenav($totalposts,"showposts.php?s=$session[sessionhash]&threadid=$threadid&postuserid=$postuserid&perpage=$perpage"); Code:
$pagenav = getpagenav($totalposts,"showposts.php?s=$session[sessionhash]&threadid=$threadid&postuserid=$postuserid&perpage=$perpage[high]&display=$display[/high]"); Code:
getforumrules($forum,$getperms); PHP Code:
2) The P ost Count & Direct Link hack ("post #xxx"); This is more a design explanation than an actual hack integration. I will explain to you what changed in the postbit template. That will assist you in integrating any post you want, not just the count post hack. The "Contract Old Posts" hack changes bpostbit only in that it adds a division (<div></div>) and defines the traditional postbit as a division. So the new postbit looks like: Code:
<table bgcolor="{ pagebgcolor }" width="{ tablewidth }" cellpadding="0" cellspacing="0" border="0"><tr><td width="10"><img width="10" height="1" src="{ imagesfolder }/space.gif" alt=""></td><td width="100%"><!-- spacer --> this is what the post looks like when it's expanded. The RED part is the newly added division -- this is what the post looks like when it's contracted (shrunk). Therefore, if you want an element to show in both situations - when the post is expanded or contracted - that element must be placed in BOTH divisions (the red and the blue). For example, you can notice that in both the RED and the BLUE divisions, I have placed $onlinestatus, $post[foldericon], $post[postdate] and [b]$post[posttime] -- these elements will show whether a post is extracted or contracted. Therefore, likewise, if you have $post[postcount] in the BLUE divisions (expanded post) and you also want it to appear in the contracted post, then you need to place $post[postcount] in the RED division -- wherever suits your design. Hope this explanation helps. Cheers, Bira p.s. some people may have $countpost instead of $post[postcount], depending on how you installed this hack. They are, however, the same. |
Someone must be trying to do what I am. Thanks for posting this information. Glad they asked for it. ;)
|
[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 05:16 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:
|