vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do I add the thread name on top table header? (https://vborg.vbsupport.ru/showthread.php?t=84146)

imported_Massie 08-12-2002 09:48 AM

How do I add the thread name on top table header?
 
1 Attachment(s)
I have a pic to illustrate what I mean, I saw the code on the original mod but it does not show... any ideas on what I need to do?

imported_Massie 08-12-2002 01:22 PM

Saintdog, you have it here, it the top bar above each post, on the top graphic, you have the thread title and when it was posted.... that is what I wonder how you added... I tried and tried but it would not show :(

SaintDog 08-12-2002 01:28 PM

There is a tutorial to do this floating around here somewhere, I have not personally released it though as I have have had about 30 minutes to myself over the past 2 weeks (I am moving to a new house and it is taking all my time).

I will see if I can find the link for you.

mashby 08-12-2002 03:35 PM

Are you sure you're not looking for this template mod? I think this one does the trick. :)

The basic concept is that you have an image in the background of your cell tag, for example <td background="image.gif">, and then the text appears in front of it.

imported_Massie 08-13-2002 01:14 AM

Thank you SaintDog, it just looks really nice!

Mashby I went to look at what you suggested but I don't think it's the same? And as for the example, I am still lost :(

mashby 08-13-2002 06:42 PM

In your postbit, you have table that provides the structure for the post and includes the images surrounding the post. I would assume, something like this:
<table>
<tr>
<td>left image</td>
<td>center image</td>
<td>right image</td>
</tr>
</table>

The image for the center table cell should be part of the tag itself and not included in the cell. In other words, you should have <td background="center_image.gif"></td> and not <td>center_image.gif</td>

If the above is correct, then any text that you place inside the cell can be centered and will appear on top of the image. The link I posted earlier descirbes this mod in detail.

So, you should have something similar to this as your center table cell:
<td background="center_image.gif" width="100%" align="center"> <b>$ post[title]</b> $ post[postdate] </td>

Note: the above code has a space between the $ and the rest of the variable so that it will display correctly in this post.

Does this help?

imported_Massie 08-13-2002 11:11 PM

Mashby this is what I have,

<td align="center" background="{imagesfolder}/greengrad1pix0.gif" width="100%"><a href="forumdisplay.php?s=$ session[sessionhash]& forumid=$ forum[forumid]"><normalfont color="#000000"><b>$ thread[title]</b></normalfont></a></td>

imported_Massie 08-14-2002 12:17 AM

I went to play with the code in DW and added what you suggested and it worked. Thank you!!! Of course, later I realized that it was not working because it had $ thread[title] instead of $ post[title]

Thank you so much for your help! Now I need to figure out how to add it to the other tables hehe.... do you know what template holds the tables where the new thread and new reply bottoms reside? Thanks!

mashby 08-16-2002 03:12 PM

Look for "New Posting Templates" in your Admin Control Panel.

imported_Massie 08-17-2002 03:05 AM

Thank you Mashby! Do you know how I go about adding a link to sub forums on the main forum page, so say a forum has 10 subs, how do I add a link to each to the forum description? Thanks for all your help!

mashby 08-20-2002 04:47 PM

Well, you'd have to manually add them, or play with the "Forum Depth" setting in your Admin Control Panel | Options.

I'm looking do something simliar with a private forum I'm working on, but I haven't found the template that will give me the results I want yet. Let me know ifyou find a solution.


All times are GMT. The time now is 09:59 PM.

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.00988 seconds
  • Memory Usage 1,732KB
  • 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
  • (11)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