vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Thread topic hack (https://vborg.vbsupport.ru/showthread.php?t=16771)

AustinChief 05-14-2001 06:51 AM

I need help hacking showthread.php so that the first post in a thread is tacked to the top of EVERY page in the thread.

I can use the postbit template for now and later add a new template to distinguish the message as the "starter" for the thread.

Thanks,
Kyle

AustinChief 05-14-2001 07:09 PM

Any ideas on where to start with this?

I think I know where to insert the code... I just don't know how much coding is required... a push in the right direction would be appreciated.

--Kyle

AustinChief 05-14-2001 11:18 PM

Okay,

I have what I think is the correct code in the correct place... but I can't get it to populate with the FIRST post only the last post...

any idea how I can pull the FIRST post in a thread...

I tried

$post[postid]=$totalposts;

(I have the thread in reverse order)

... but it doesn't have any effect.

Any ideas?

--Kyle

AustinChief 05-15-2001 12:05 AM

OK... I realize that I suck at this.

Anybody know how to pull the first(chronologically) post out of the array $posts???

I think that is all I need now...

--Kyle

AustinChief 05-15-2001 04:11 AM

OK... nevermind.... I think I got it... it is ugly (very ugly) but it works... unfortunately I needed to added two completely new queries to showthread.php :(

Owell,

Kyle

Sloat 08-23-2001 01:02 PM

I would be interested in the hack.

I, too, would like to be able to "tack" the original topic post at the top of each page of the forums message display. I would also like the original topic post to stay at the top regardless of the message order (oldest->newest of vice-versa.)

Thanks.


All times are GMT. The time now is 04:24 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.02053 seconds
  • Memory Usage 1,717KB
  • 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)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