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)

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


All times are GMT. The time now is 11:05 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.02227 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)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