Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-12-2002, 09:48 AM
imported_Massie imported_Massie is offline
 
Join Date: Aug 2002
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I add the thread name on top table header?

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?
Attached Images
File Type: jpg howthread.jpg (76.6 KB, 0 views)
Reply With Quote
  #2  
Old 08-12-2002, 01:22 PM
imported_Massie imported_Massie is offline
 
Join Date: Aug 2002
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 08-12-2002, 01:28 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 08-12-2002, 03:35 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 08-13-2002, 01:14 AM
imported_Massie imported_Massie is offline
 
Join Date: Aug 2002
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 08-13-2002, 06:42 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 08-13-2002, 11:11 PM
imported_Massie imported_Massie is offline
 
Join Date: Aug 2002
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #8  
Old 08-14-2002, 12:17 AM
imported_Massie imported_Massie is offline
 
Join Date: Aug 2002
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #9  
Old 08-16-2002, 03:12 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look for "New Posting Templates" in your Admin Control Panel.
Reply With Quote
  #10  
Old 08-17-2002, 03:05 AM
imported_Massie imported_Massie is offline
 
Join Date: Aug 2002
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:53 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.04248 seconds
  • Memory Usage 2,269KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete