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)
-   -   Thread Introductions (https://vborg.vbsupport.ru/showthread.php?t=38297)

N!ck 05-05-2002 10:00 PM

Thread Introductions
 
About
This little hack will allow you to have introductions at the top of your threads that only admins can edit. Screenshots follow in the next posts.

I was inspired by my ignorance, really. I was over at http://www.bikeforums.net/ to gawk at his contest thing at the top of each thread, and I didn't realize it was on EVERY thread - I thought he had created some kind of hack! scsa20 pointed out that it was merely a template edit.

I had already fallen in love with this idea, though. So here it is.

Notes:
1. If you install this, please click the "install" button or post the URL of a thread with an introduction in your forums in this thread so I can see this in action. :) I'd consider it a personal favor.
2. I was unable to get one screenshot working, but I can just tell you that the thread introduction editing page looks like the post editing page. If someone could post this screenshot, I'd appreciate it.

Latest Version: 1.1.5
The latest version integrates the "Thread Introduction" link INTO the admin options menu, adds an option to show the thread title when no intro is present, and allows you to update the introductions of ALL threads in EVERY forum at once (Thanks Boofo for the idea). If you are upgrading, read through install.txt, but the only necessary things to do are to change the "threadintro" template and to overwrite the old threadintro.php file with the new one!
Download: here

Old Versions / Change Log
v1.1.0 - added formatting & introduction box
v1.0.0 - first release

N!ck 05-06-2002 02:46 AM

Screenshot #1 - thread introduction

AnkisethGallant 05-06-2002 02:47 AM

I'm just getting black pictures.

N!ck 05-06-2002 02:53 AM

fixed - at least one :)

AnkisethGallant 05-06-2002 03:57 AM

It works now. The only thing is, what's the main point of this? If you have a message, it goes on the thread. If a moderator has an annoucnment, it has it's own thread.

N!ck 05-06-2002 04:02 AM

*shrug* I don't know. If you can't think of a use, don't install it. It's a lot of fun though. :D

for starters, i used it once to tell people not to SPAM for the sake of post counts on a thread where people were guessing who would get the most posts

in general, it would be good to, as the name implies, introduce the thread or to make a clarification, etc.

Velocd 05-06-2002 04:29 AM

*shrugs*

Tungsten 05-06-2002 11:34 AM

Quote:

Originally posted by nicksaunders
*shrug* I don't know. If you can't think of a use, don't install it. It's a lot of fun though. :D
Don't sweat it. There's countless hacks here that I haven't installed because I personally don't see a use for them but each adds overall value to VBulletin and the VBulletin community. I'd hate to think what it would be like if the various hackers here were deterred from writing or releasing their addons because they thought no one else would benefit.

The more the merrier! ;)

John 05-06-2002 01:36 PM

I get two instances of
PHP Code:

if (!$thread['visible']) {
  
$idname="thread";
  eval(
"standarderror(\"".gettemplate("error_invalidid")."\");");
  exit;



John 05-06-2002 01:50 PM

A few things - I found that the first bit of code (as mentioned above) has to be put under the second instance.

Secondly, I think you should point out that the "Thread Intro" thing is a link, literally underneath the admin menu - I thought by "under the menu" you meant it was an option in the menu.

Thirdly, does this require that the user does his/her own formatting? This is what I get (see attachment):


All times are GMT. The time now is 05:53 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.01982 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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