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)

CeleronXL 07-21-2002 04:13 PM

Cool, and it's the same code that was posted in the first post?

The Ghost 07-21-2002 04:21 PM

Quote:

Originally posted by CeleronXL
Cool, and it's the same code that was posted in the first post?
hi,

I uses only the Code from this Thread.

I don't have made changes because I'm not a coder.......

CeleronXL 07-22-2002 09:47 PM

Cool, just installed. I changed the replacement though.

Boofo 07-22-2002 10:02 PM

How did you change that and what did you change it to?

Quote:

Originally posted by CeleronXL
Cool, just installed. I changed the replacement though.

Raptor 07-31-2002 01:42 PM

this worked for me on vb 2.2.6

Open showthread.php

Find

$postdone = array();

and ABOVE it put:

// Hack post count and link

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

// Hack post count and link end

Find

$postbits .= getpostbit($post);

and ABOVE it put:

// Hack post count and link

$post[postcount] = ++$postcount;

// Hack post count and link end

Save and upload.

Edit template postbit and place the following text where you want the post # to show.

(<a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$post[postcount]</a>)

its probably been posted before but it may help someone

Boofo 07-31-2002 01:45 PM

What does this do? :)

Quote:

Originally posted by Raptor
this worked for me on vb 2.2.6

Open showthread.php

Find

$postdone = array();

and ABOVE it put:

// Hack post count and link

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

// Hack post count and link end


Find

$postbits .= getpostbit($post);

and ABOVE it put:

// Hack post count and link

$post[postcount] = ++$postcount;

// Hack post count and link end

Save and upload.

Edit template postbit and place the following text where you want the post # to show.

(<a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$post[postcount]</a>)

its probably been posted before but it may help someone


Reflex 07-31-2002 02:07 PM

Cool little hack - thanks a lot :)

2 X Viverridae 08-14-2002 01:27 PM

Great hack, thanks!

Ryangel 08-26-2002 09:05 AM

How do i reverse the count? :)
Like from Max_num_on_thread to 1 .

FleaBag 09-03-2002 02:27 PM

I can't for the life of me get this working with 2.2.7. Can anyone please help?

FleaBag 09-04-2002 11:06 AM

*Bump*

Gohan 09-11-2002 12:06 AM

Quote:

Originally posted by GamerForums
I can't for the life of me get this working with 2.2.7. Can anyone please help?
Does working on 2.2.7

Just fellow below code:

Quote:

Originally posted by Raptor
this worked for me on vb 2.2.6

Open showthread.php

Find

$postdone = array();

and ABOVE it put:

// Hack post count and link

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

// Hack post count and link end


Find

$postbits .= getpostbit($post);

and ABOVE it put:

// Hack post count and link

$post[postcount] = ++$postcount;

// Hack post count and link end

Save and upload.

Edit template postbit and place the following text where you want the post # to show.

(<a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$post[postcount]</a>)

its probably been posted before but it may help someone


FleaBag 09-11-2002 09:51 AM

The hyperlinks work, but it doesn't show the post number.

Gohan 09-11-2002 10:04 AM

weird.. i have no problem of post number

FleaBag 09-11-2002 10:41 AM

Woohoo got it working... Used X-Fan's instructions and Knux's little pointer on already hacked showthread files. Working on 2.2.7. :)

Gohan 09-11-2002 10:55 AM

Congrats :)

Learner29 09-12-2002 05:43 AM

THIS IS ONE OF THE VERY VERY BEST HACKS EVER !!!!!

I give 5/5 to this hack.... it is amasing !!!!!

it is a solution to so many problems we had before....

I really thank you thank you thank you

PHiXTiT 09-12-2002 05:41 PM

I have installed this hack on a 2.2.7 board.

It all works as stated!

5 Stars :)

poolking 09-13-2002 02:40 PM

So how do I get the post count in the top right hand corner? Like in this thread.

I manage to get it next to the title but thats it.

ZiRu$ 09-13-2002 08:09 PM

I'm using 2.2.6 and i cant get this hack to work perfectly...it counts and displays the posts but the link dosent work right...it always goes to the TOP of the page

NTLDR 09-13-2002 08:34 PM

Posibly a template issue. If you hav ethe #postXX (where XX is the id) in the URL then the hack is working fine, you would have removed code in the default templates this points to.

Gohan 09-13-2002 11:03 PM

Quote:

Originally posted by ZiRu$
I'm using 2.2.6 and i cant get this hack to work perfectly...it counts and displays the posts but the link dosent work right...it always goes to the TOP of the page
my forum is 2.2.7 and fine working.
tell what about your problem.. maybe i can helped.

ZiRu$ 09-13-2002 11:21 PM

Quote:

Originally posted by Gohan


my forum is 2.2.7 and fine working.
tell what about your problem.. maybe i can helped.

well when i press copy link location i get

http://www.xx.com/showthread.php?postid=98027#post98027

and in my template postbit my coding is:

PHP Code:

[<a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$countposts</a>] 

when someone goes to the link it goes to the TOP of the page and not the targeted post

Gohan 09-13-2002 11:36 PM

Did you follow code?

https://vborg.vbsupport.ru/showthrea...721#post297721

ZiRu$ 09-13-2002 11:58 PM

yah i did and it STILL DONT WORK....in fact using those instructions TAKES away the #

Gohan 09-14-2002 12:24 AM

Quote:

Originally posted by ZiRu$
yah i did and it STILL DONT WORK....in fact using those instructions TAKES away the #
Hmm.. send your showthread.php to me via PM (if possible) than i'll try fixed it for you, ok? (i could test on my test server)

NTLDR 09-14-2002 05:33 PM

I'm pretty sure this is a template problem and nothing to do with this hack, you should allways go to the correct post using the URL you posted even if you haven't installed this hack.

Do you get returned to the correct post after you reply to a thread?

ZiRu$ 09-14-2002 05:40 PM

yes i do

Buddha 09-19-2002 02:01 PM

worked like a charm on this end.
good work.

Reverend 09-20-2002 06:58 PM

Quote:

Originally posted by Raptor
Open showthread.php
Find
$postdone = array();

and ABOVE it put:

// Hack post count and link

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

// Hack post count and link end

Find

$postbits .= getpostbit($post);

and ABOVE it put:

// Hack post count and link

$post[postcount] = ++$postcount;

// Hack post count and link end

Save and upload.

Edit template postbit and place the following text where you want the post # to show.
(<a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$post[postcount]</a>)

Works for me on 2.2.7 .Thanks :)

cessna140 09-30-2002 10:24 PM

How can I get it to do this?

Post# xx of xxx

Thanks!

PHiXTiT 10-01-2002 05:27 AM

Quote:

Originally posted by cessna140
How can I get it to do this?

Post# xx of xxx

Thanks!

Good idea!

Bison 10-05-2002 05:34 AM

Everything works fine (The link) , but the post number doesn't show up!
:(

GoTTi 10-09-2002 09:34 PM

when i installed this thing, i got Post # and thats it, no number after it.

Link works for it, but no number is showing.

BTW i am using vB226

Bison 10-09-2002 10:33 PM

If you installed the stars hack, don't look for this:

$postbits .= getpostbit($post);

Find the other one inside the stars hack code and place the code over that one instead. The numbers will show up this time!

bejita 10-10-2002 07:50 AM

work well on 2.2.8

GoTTi 10-11-2002 04:42 AM

Rolodex what do u mean? Sorry I am tired and I am not registering what u r saying i guess.

Littlebit 10-27-2002 05:52 PM

I just installed this, thanks bira and everyone else who added the helpful changes throughout this thread! :glasses:
I'm also interested in having these things mentioned:[list=1][*]posts #s accurate with Order of posts within a thread set to newest first as well [*]show post #xx of xxx posts[/list=1]
Are they in the works?

Da_Gotti,
Did you double check your link? mine shows fine in 2.2.8 using this for the link:
Quote:

<a href="showthread.php?postid=$post[postid]#post$post[postid]">Post #$post[postcount]</a>

FleaBag 10-28-2002 10:40 PM

Working great with vBulletin 2.2.8. :)

Littlebit 10-30-2002 05:59 PM

Is it an impossible thing to make it so if you have your forums threads post order set to 'newest first' in your adminCP, the post count for the newest post will be post# 99 (for example) or whatever it is instead of 1? post# 1 still being the original first post...
What would be the best way to go about trying this?


All times are GMT. The time now is 04:42 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
  • Page Generation 0.01474 seconds
  • Memory Usage 1,818KB
  • 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
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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