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)
-   -   Link to individual posts (https://vborg.vbsupport.ru/showthread.php?t=31758)

DarkReaper 10-29-2001 10:00 PM

Well, with the newly discovered "view single post" feature I found today, I made some alterations to a hack that was released a while ago, not sure what happened to it.

This allows you to have the postnumber/replynumber of a post in a specific thread shown, and linked to. You can place this wherever you want, I stuck it next to the "IP: Logged" bit.

Open showthread.php. Find this:
Code:

while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {
And before it, add this:
Code:

$countposts = ($pagenumber-1)*$perpage;
Now a few lines down, find this:
Code:

  $postbits .= getpostbit($post);
And before it, add this:
Code:

$countposts = $countposts+1;
I chose to add this to postbit, I can't really think of any other place for it ;). You can stick it anywhere in postbit that you want, I threw it next to the "IP: Logged" text.

Open your postbit template, find this:
Code:

<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>
And replace it with this:
Code:

<p align="right"><smallfont><a href="report.php?s=$session[sessionhash]&postid=$post[postid]">Report this post to a moderator</a> | $post[iplogged] | <a href="showthread.php?s=$session[sessionhash]&action=showpost&postid=$post[postid]">Post $countposts</a></smallfont></p>
That's it!

Justice 10-30-2001 01:25 AM

good idea for a hack

i got this error though:

Fatal error: Cannot redeclare stripslashesarray() in ./global.php on line 10

DarkReaper 10-30-2001 01:50 AM

Er....no clue as to why its giving you that. What's line 10? I don't have stripslashesarray() or anything relating to it used anywhere...:confused:

Justice 10-30-2001 04:47 AM

Quote:

// get rid of slashes in get / post / cookie data
function stripslashesarray (&$arr) {
those are lines 9 and 10

coincidentally (although maybe not), I never could get the "View Ignored Post" feature to work either. I've seen other people with similar problems. This was before I had even started hacking my vB

DarkReaper 10-30-2001 10:55 AM

I've got no clue...anyone else have any idea?

eva2000 10-30-2001 10:57 AM

handy.. i think tubedogg has such a similar thing on his forums for idleworld :)


All times are GMT. The time now is 09:04 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.01119 seconds
  • Memory Usage 1,724KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete