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)
-   -   ALT Description on ForumDisplay Threads (https://vborg.vbsupport.ru/showthread.php?t=39831)

traekwon 06-13-2002 10:00 PM

ALT Description on ForumDisplay Threads
 
ALT Description on Forum Display Threads!
An editing of PPN's 'Description of Thread' hack...
https://vborg.vbsupport.ru/showthrea...threadid=38916

*NOTE* If you have PPN's version of his hack already installed, upgrade notes are at bottom.

I'm almost embarrased to call this hack, more of an addon, since it only changes a few things. All the credit in the world goes to PPN for this hack, and I just simply edited this.

What this hack does is adds a new 'Description' field to your New Thread page, where a user can put in a description and it will show up underneath the post subject on the forumdisplay.

Since some people don't like their tables being make longer, I did some more compacting and put the description into an alt, so when you put your mouse over the subject link on the Forum Display, a little dropdown appears with the thread description, rather then having it displayed underneath the link in text.

Here's a list of feature this hack has:
  • New Description Field in New Thread allows user to make description for thread
  • Description showed on Forum Display in drop down alt text (mouseover)
  • Description can be edited in the Edit Thread admin options...
  • Description can be deleted in Edit Thread admin options, when input box is left blank.
To do's:
- Add edit input box into edit post.

Installation Time:
1 minute for upgrade
10 minutes for manual install
4 minutes for original install, then upgrade.

*It is highly recommended you run PPN's vb hacker file for original hack, then use upgrade*

To upgrade from PPN's version to Alt Text Version:

In the 'forumdisplaybit' template...

Find this code:

Code:

<a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]">$thread[title]</a></normalfont>
<br><smallfont>$thread[description]</smallfont>

Replace with this code:

Code:

<a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]" title="$thread[description]">$thread[title]</a></normalfont>
It's that simple.

Thanks PPN for the awesome hack!

If you need the clean install, and want to edit all the files manually, a txt is attached with instructions. Otherwise, go to this thread, install his hack with the VB-Hacker, then come back and use the upgrade.

traekwon 06-14-2002 03:37 AM

Screenshot...

RDX1 06-22-2002 12:38 AM

cool cool, looks nice

Dark Shogun 08-21-2002 06:50 PM

It doesn't seem to work for me. The description box is under subject like it is supposed to be but when I hoover over the subject after posting it says thread[description].

Dark Shogun

FleaBag 10-11-2002 09:57 PM

When I do the template edit, it takes away the thread description and doesn't add the alt description. I already had the description hack installed. Any ideas?

N!ck 10-12-2002 12:47 AM

might want to check out my thread preview hack too

traekwon 11-06-2002 11:39 PM

Quote:

Originally posted by Dark Shogun
It doesn't seem to work for me. The description box is under subject like it is supposed to be but when I hoover over the subject after posting it says thread[description].

Dark Shogun

Whoops! Sorry for the late reply, I totally forgot about this thread. I made a mistake while typing up the instructions but it's fixed now. Just add a $ before thread[description] to make '$thread[description]'.

traekwon 11-06-2002 11:43 PM

Quote:

Originally posted by GamerForums
When I do the template edit, it takes away the thread description and doesn't add the alt description. I already had the description hack installed. Any ideas?
Double check to make sure you correctly edited the forumdisplaybit template so that it says 'title=$thread[description]' after the href link.


All times are GMT. The time now is 01:42 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.00932 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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