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)
-   -   Preview the first post in a thread first. (https://vborg.vbsupport.ru/showthread.php?t=33070)

x28 02-16-2002 04:04 AM

Works on 2.2.2 but take your time on the install.

Can be a little tricky.

Just a little :eek:

X-Fan 02-16-2002 05:19 AM

This is perfect for a content-based site like mine. Thanks Parker!!!

X-Fan 02-16-2002 05:26 AM

Quick question - is there any way for the preview to "skip" HTML/vB Code tags?

Hold the mouse over thread links in my News forum to see what I mean...

http://x-mencomics.com/xfan/forums/f...p?s=&forumid=2

Parker Clack 02-16-2002 11:43 AM

X Fan:

This does not strip the HTML or vB code from the information that is put into the title for the URL. I don't know the coding that would be required to do this.

Gutspiller:

Unfortunately the timout for the mouse pointer is controlled by your browser. IE does the same thing with anything that you point your mouse to. Opera on the other hand leaves the box up as long as the mouse is on the link. Netscape has a timout period too.

Parker

EJMack 02-17-2002 04:43 AM

is there anyway for it to display the last post???

freakyshiat 02-25-2002 05:22 AM

Does the 'preview' field in the database just keep on getting bigger and bigger? Is it ok to empty it once old threads are deleted?

Parker Clack 02-25-2002 06:49 AM

I'm sorry. The strip code is in the hack. I am not sure if it strips the vB code or HTML. I think it is the HTML codes.

The previews will be deleted when the thread is deleted. So if you delete threads to prune your boards the previews will be deleted too. The previews are copies to the first post made in a thread and will not change in size with subsequent posts in a thread.

I am sure you could set it up to display the last post but I am not sure how to do this.

Parker

weazel 02-25-2002 04:17 PM

great hack...will be using:)

N!ck 03-02-2002 05:31 PM

why don't you just use substr() to take the first five hundred characters directly from the post rather than storing the same data twice?

Parker Clack 03-02-2002 06:44 PM

nick:

So how would you write that? I am open to any suggestion to streamline the code any.

Parker


All times are GMT. The time now is 06:43 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.01204 seconds
  • Memory Usage 1,729KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (4)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