![]() |
Thank you very much.
I learned something new. Whenever something is said to be put in fornt, I have been butting it directly in front. OOPS. Once again thanks. You contribute very much to vBulletin. |
Excellent hack Bira! And a huge thanks for the help!
|
Glad you got it sorted, SirSteve :)
|
I installed this on my test board tonight. I got the postbit how I wanted it and moved it to the real board. It's fabulous. Another great one, Bira!! :)
|
Thank you :)
|
This is too funny. I'm getting two reactions from the community:
"Dude, you're a genius, you rock. This is incredible." "Hey, why didn't you have this turned on the whole time?" I have explained that I am not the one that rocks and that the hack is new. :) |
I'm now using the little + and - in a different way as well.
This <DIV> thing is new to me .... I have hundreds of categories.. Sooooo I put the script in the Header and made some more changes... see here What I've done is allow for the contraction of subforums as well. Thx BIRA.... great hack ( I just need to exclude the Netscrape stuff :( ) five start hack this one ............ |
How to make, that for extended and new users this option it was ON by default?
|
[QUOTE]Originally posted by inetd
How to make, that for extended and new users this option it was ON by default? |
[QUOTE]Originally posted by Nam
Change the value in registeradult template to yes. |
[QUOTE]Originally posted by inetd
extended and new users |
yes, existing
|
inetd,
you'll have to run an query: UPDATE user SET hideposts='1'. That will switch it to 'yes' for all existing users. Frank, I don't know how FireFly did it, he may have an easier way than me. I used my Post Counter hack for it. If you installed it (it's a VERY easy hack to install), you can do the following to make sure the 1st post is always expanded: In showthread.php, find this code: Code:
$post[postcount] = ++$postcount; Code:
$post[postcount] = ++$postcount; Code:
global $display, $HTTP_USER_AGENT; Code:
// Contract Old Posts in Thread (v1.0) Again, like I said, maybe there's a way of doing it that I'm ignoring and FireFly can help, but I just used my count posts hack for it and it works. *shrug* |
[QUOTE]Originally posted by bira
Open admin/functions.php, find: Code:
global $display, $HTTP_USER_AGENT; Code:
// Contract Old Posts in Thread (v1.0) Again, like I said, maybe there's a way of doing it that I'm ignoring and FireFly can help, but I just used my count posts hack for it and it works. *shrug* |
hrmmm... I think I tried it and it didn't work for me, because $post[countpost] was not global
|
Ah excellent that works now, cheers Bira :D
|
by the way,
I have a very important warning for those of you who want to turn it on for all existing users: DON'T DO THAT! If you switch it on for ALL users, people logging on your Bulletin Board with Netscape WILL NOT BE ABLE TO EXPAND THE POSTS. They will be stuck with entire threads contracted, and with absolutely no way to expand any post at all. So don't turn it ON by default for all users. Let them make the choice. |
[QUOTE]Originally posted by bira
hrmmm... I think I tried it and it didn't work for me, because $post[countpost] was not global |
hrmmm... maybe I was drunk the night I tried it :D
I'll try again now :) |
yup, you're right FWC. Thanks :)
|
[QUOTE]Originally posted by bira
If you switch it on for ALL users, people logging on your Bulletin Board with Netscape WILL NOT BE ABLE TO EXPAND THE POSTS. They will be stuck with entire threads contracted, and with absolutely no way to expand any post at all. |
[QUOTE]Originally posted by bira
yup, you're right FWC. Thanks :) |
When the message is minimized, number of the message and the first line from the message is not shown. What to do make?
|
FWC the expand all/contract all will work, because it reloads the page and changes the display setting to show/none. What WON'T work is the javascript function to change between show/none without loading the page.
Theoretically, I could write a more complex hack so that non-IE users could also use the +/-, whereby the page reloads on every click and changes the display setting for that specific post. But it will be a much bigger hack, and I don't think it's very convenient - having to reload the page every time you want to expand or contract a post. I would also add that there is a way in javascript to write an expand/contract function for Netscape as well, using layers. It will, however, add a lot more code to the page (and therefore more bandwidth) and since the behaviour of layers is very different to dhtml, it will also mean heavily editing the templates, if not creating two template sets. Since I abhore Netscape with all my heart, I decided quite consciously not to put that effort. 90% of my users are IE users. All I can do for the remaining 10% is make sure they don't get hurt or disabled. That's all |
[QUOTE]Originally posted by inetd
When the message is minimized, number of the message and the first line from the message is not shown. What to do make? |
[QUOTE]Originally posted by inetd
When the message is minimized, number of the message and the first line from the message is not shown. What to do make? |
[QUOTE]Originally posted by bira
Since I abhore Netscape with all my heart, I decided quite consciously not to put that effort. 90% of my users are IE users. All I can do for the remaining 10% is make sure they don't get hurt or disabled. That's all |
[QUOTE]Originally posted by FireFly
After you do this, place $post[shortmsg] in the posbit template. :) |
inetd, place it in the first <div></div> -- exact place is wherever you want it to be
|
[QUOTE]Originally posted by inetd
Where exactly it is necessary to insert $post [shortmsg]? |
Great Hack, but I have a Bug. The Images Plusimg and minimg don't see
http://members.tripod.de/OGieBears/Bild3.gif ciao |
awesome hack Bira!!! ... haven't installed it yet since i'm still on a modified 2.2.0 version files for now..
|
OGieBear - you'll need to open those images in an image editor, like PSP or Photoshop, and invert them or change the colours to something light.
eva2000 - thanks :D |
*autsch*
thx... the hack is Kewl .... great works.. |
I'm using vb2.03 and I noticed in your install instruction in the register.php files a small difference and i think thats because it's more compatibale with 2.2.1
and this is the code Code:
// Contract Old Posts in Thread (v1.0) Code:
and thank you for this lovely hack :) |
that looks correct to me, dxb :)
|
I love the way you can contract a post that has code in it and shrink the rest of the page down to size once you've read that message. :)
|
something was annoying me about this hack, and I finally figured out what it is :D
If you don't put <a name="post$post[postid]"></a> in the first <div></div>, then you can't jumpt to a post directly if that post is contracted. I now added it to my first <div></div> (it's already placed in the second one) and order is restored. The funny thing is, I love Parker Clark's preview thread hack. And today I realized that with the preview hack and the contracted posts - I am finally able to go through all new threads/posts in my bb without losing my senses :D |
Bira the best!
|
[QUOTE]Originally posted by bira
something was annoying me about this hack, and I finally figured out what it is :D If you don't put <a name="post$post[postid]"></a> in the first <div></div>, then you can't jumpt to a post directly if that post is contracted. I now added it to my first <div></div> (it's already placed in the second one) and order is restored. |
All times are GMT. The time now is 08:13 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:
|