Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by bira bira is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-08-2001 Last Update: Never Installs: 141
 
No support by the author.

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:
  • Posts you have already read in a thread, will show up with their header only (a row that includes the username, post subject and date only). New posts only will appear in full.
  • This is user selectable via the 'Edit Options' page: each user can decide if he wants this option on or not. (By default all existing and new users will have this turned Off).
  • A link at the top of the thread offers to "expand all" posts or "contact all" posts.
  • by clicking on the + sign on a shruk post, it will expand without the page reloading. By clicking on the - sign on an expanded post, it will shrink without the page reloading.
  • [high]this option is available for your IE users only! Netscape users will see no difference and will not be affected anyway at all by the change[/high]
How to install:
  • Please download the attached zipfile.
  • Upload plus.gif and minus.gif to your images directory
  • Upload install_contractposts.php to your admin directory and run that script.
Note: there are quite a few changes to make (primarily additions, not replacements) to the vb scripts and templates. The process should take you several minutes, so I recommend you close your Bulletin Board while installing the hack.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 12-10-2001, 01:53 AM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Bira,

Yes I sent it. I also went ahead and just sent it again. Darn email. I've always wondered where half the email goes when not received. Does it like just set out in cyberspace between deminsions..Lol.
Reply With Quote
  #23  
Old 12-10-2001, 01:57 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it. Will look into it now right away
Reply With Quote
  #24  
Old 12-10-2001, 02:07 AM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by bira
I got it. Will look into it now right away
Reply With Quote
  #25  
Old 12-10-2001, 02:26 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hooper - sent you the stuff edited back
Reply With Quote
  #26  
Old 12-10-2001, 03:19 AM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Hooper goes and crawls under rock after the talented Bira shows Hooper that he left code out of the templates thus creating buggies. *

I really should sleep more. Everything seems to be super duper.

Thanks Bira,
Much Appreciated.
Rick
Reply With Quote
  #27  
Old 12-10-2001, 03:27 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My pleasure. Glad it works
Reply With Quote
  #28  
Old 12-10-2001, 03:28 AM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And that it does.

Thanks again for sharing your work.

Rick
Reply With Quote
  #29  
Old 12-10-2001, 11:09 AM
Baratator's Avatar
Baratator Baratator is offline
 
Join Date: Nov 2001
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 !!
Reply With Quote
  #30  
Old 12-10-2001, 11:30 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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");
Change to (addition marked in high):

Code:
$pagenav = getpagenav($totalposts,"showposts.php?s=$session[sessionhash]&threadid=$threadid&postuserid=$postuserid&perpage=$perpage[high]&display=$display[/high]");
b) Find

Code:
getforumrules($forum,$getperms);
ABOVE that ADD:

PHP Code:
// Contract Old Posts in Thread (v1.0)
if (strstr($HTTP_USER_AGENT,"MSIE")) { 
  eval(
"\$hideposts = "".gettemplate("showthread_hideposts")."";");
 } else { 
    
$hideposts "";
 }
// Contract Old Posts in Thread (v1.0) 
That's it. Save and upload file.

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 -->

<table cellpadding="{ tableouterborderwidth }" cellspacing="0" border="0" bgcolor="{ tablebordercolor }" { tableouterextra } width="{ contenttablewidth }" align="center"><tr><td>

<DIV id="p$post[postid]h" style="display:$ph">
<table cellpadding="4" cellspacing="{ tableinnerborderwidth }" border="0" { tableinnerextra } width="100%">
<tr>
	<td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>$plusimg	<normalfont><b>$post[username]</b></normalfont></td>
	<td bgcolor="$post[backcolor]" width="100%" valign="top">
		<table width="100% cellspacing="0" cellpadding="0" border="0">
		<tr>
		<td><smallfont>$post[icon] <b>$post[title]</b></smallfont></td>
		<td align="right" nowrap><smallfont>$onlinestatus $post[foldericon] $post[postdate] <font color="{ timecolor }">$post[posttime]</font></smallfont></td>
		</tr>
		</table>
	</td>
</tr>
</table>
</DIV>

<DIV id="p$post[postid]e" style="display:$pe">
<table cellpadding="4" cellspacing="{ tableinnerborderwidth }" border="0" { tableinnerextra } width="100%">
<tr>
	<td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>
	<a name="post$post[postid]"></a>
	$post[firstnewinsert] $minusimg
	<normalfont><b>$post[username]</b></normalfont><br>
	<smallfont>$post[usertitle]</smallfont><br>
	$post[avatar]<p>
	<smallfont>Registered: $post[joindate]<br>
	Location: $post[field2]<br>
	Posts: $post[postcount]/$post[posts]</smallfont></td>
	
	<td bgcolor="$post[backcolor]" width="100%" valign="top">
	<smallfont>$post[icon] <b>$post[title]</b></smallfont>
	<p><normalfont>$post[message]</normalfont></p>
	$post[attachment]
	<p>$post[signature]</p>
	<p>$post[editedby]</p>
	<p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged]</smallfont></p>
	</td>
</tr>
<tr>
	<td bgcolor="$post[backcolor]" width="175" height="16" nowrap><smallfont>$post[postcount] $onlinestatus $post[foldericon]
	$post[postdate] <font color="{ timecolor }">$post[posttime]</font></smallfont></td>
	
	<td bgcolor="$post[backcolor]" width="100%" valign="middle" height="16">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr valign="bottom">
			<td><smallfont>
			$post[profile] $post[pmlink] $post[useremail] $post[homepage] $post[search] $post[buddy]
			<!-- $ post[icqicon] --> <!-- $ post[aimicon] --> <!-- $ post[yahooicon] --> 
			</smallfont></td>
			<td align="right" nowrap><smallfont>
			<a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="{ imagesfolder }/edit.gif" border="0" alt="Edit/Delete Message"></a>
			<a href="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]"><img src="{ imagesfolder }/quote.gif" border="0" alt="Reply w/Quote"></a>
			</smallfont></td>
		</tr>
		</table>
	</td>
</tr>
</table>
</DIV>

</td></tr></table>

<!-- spacer --></td><td width="10"><img width="10" height="1" src="{ imagesfolder }/space.gif" alt=""></td></tr></table>
The BLUE part is the old, traditional postbit --
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.
Reply With Quote
  #31  
Old 12-10-2001, 12:09 PM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Someone must be trying to do what I am. Thanks for posting this information. Glad they asked for it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:19 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06576 seconds
  • Memory Usage 2,330KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete