vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Post Counter & Direct Link (https://vborg.vbsupport.ru/showthread.php?t=22083)

bira 11-25-2001 10:38 AM

ok, how postbit is parsed has changed since 2.0.3 so here's what you need to do to install this:

Quote:

Originally posted by freddie
If you want a one file hack for this than do this:

find in showthread.php:

while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {

Put this before it:

$postcount = ($pagenumber - 1 ) * $perpage;

Find in showthread.php:

$postbits .= getpostbit($post);

Put this before it:

$post[postcount] = ++$postcount;

Then put $post[postcount] in your postbit template.

Admin 11-28-2001 04:35 PM

Installed here. :)

(as requested by FWC :D)

bira 11-28-2001 04:39 PM

yay!!! Thank you!

FWC 11-28-2001 07:08 PM

Quote:

Originally posted by FireFly
Installed here. :)

(as requested by FWC :D)

Thanks,. Firefly!! :D

Prezident 11-29-2001 12:06 AM

For those of us the REALLY SUCK with html, it was very hard to figure out how and where to get the link to show up where I wanted it, but I finally got it.

Forcing myself to learn something sure can be painful during the process.

Thanks for the hack. Very useful.

Meta 11-29-2001 08:36 AM

Easy installed ... thanks for the hack!

xug 12-02-2001 02:17 AM

What would be the code to place (post #1) in the right corner on the same line as the $post[icon] and $post[title], just like this forum ??

Thank you.

xug 12-02-2001 02:22 AM

Oops I found it ! :)

After the line :

<td bgcolor="$post[backcolor]" width="100%" valign="top">

I inserted this :

<table border="0" width="100%">
<tr>
<td width="79%">
<smallfont>$post[icon] <b>$post[title]
</td>
<td width="21%">
<smallfont>
<p align="right"><a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$countposts</a></td>
</tr>
</table>

Cool huh for a starter :)

Mohamed 12-02-2001 07:14 AM

nice hack and Easy installed :D


thanks

Crinos 12-02-2001 09:01 AM

A slightly different approach...

In postbit, After this:

Code:

<td bgcolor="$post[backcolor]" width="100%" valign="top">
replace this:

Code:

<smallfont>$post[icon] <b>$post[title]</b></smallfont>
With this:

Code:

<table border="0" width="100%">
<tr>
<td width="85%">
<smallfont>$post[icon] <b>$post[title] </b></smallfont>
</td>
<td width="15%" align="right">
<smallfont>
<a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$countposts</a></smallfont></td>
</tr>
</table>

Basically the same as Xug's but I used the cell alignment instead of a paragraph alignment :)


All times are GMT. The time now is 07:56 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01200 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete