vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Sub Title.... (https://vborg.vbsupport.ru/showthread.php?t=101523)

lemarsu 11-25-2005 03:18 PM

Sub Title....
 
1 Attachment(s)
Hi,

Is there away to have a sub-title to appear at for each thread?

One way I was thinking of doing this is to use the Latest title of the last post to appear in the thread listing...

Next post will help illustrate what I mean.

LeMarsu

Have a look at this image to help you understand.

Hence in the image the sub title would read : "This subtitle would appear on the main thread list..." as written above.

Regards

LeMarsu

merk 11-25-2005 08:38 PM

You would have to:
  • add a column to the database
  • add a field to the $validfields array in the thread_fp datamanager
  • add another HTML input field
  • GPC that field in newthread_post_start (and add to $newpost array)
  • pass to datamanager in newthread_process ($dataman->setr('fieldname', $post['fieldname'])
i think that'd work

lemarsu 11-26-2005 10:27 PM

Is there no way to get the Latest topic from the last thread to display?

ie is this is the last tread it would show "Here is the Sub Title"

merk 11-27-2005 12:19 AM

Im sorry, i dont understand what you're asking.

lemarsu 11-27-2005 02:34 PM

1 Attachment(s)
When you do reply (not quick reply) you get a Title Field you can fill in.

I would like to take the latest title field (in this case I put in "123456789") I would like it to be displayed in the thread list on my forum.

The Image will help to explain

LeMarsu

Just looking around at the Threadbit template, there is a variable called $thread[lastpostdate] is there a something like : $thread[lastpostthreadtitle]
Or I can create?

merk 11-27-2005 08:50 PM

Ah. Theres quite a bit of mucking around to get that one working unfortunatly :\

Maybe someone can help you out (i dont have time to reasearch it :()

lemarsu 11-28-2005 12:08 PM

Just been looking around on this and I think this may need a plugin to be written...

I think something in the sort may be needed... not sure of the syntax

Code:

$get_lasttile = $db->query_read("
                        SELECT title
                        FROM " . TABLE_PREFIX . "post AS post
                        WHERE threadid = $threadid
                                And $thread[lastpostdate] = dateline.post
                                AND visible IN (1
                        ")



All times are GMT. The time now is 10: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.01119 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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