Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-20-2001 Last Update: Never Installs: 0
 
No support by the author.

Deutsch
Diese Hack zeigt auf der index.php unter dem username der das letzte posting gemacht hat auch den titel des threads auf dem dieser das reply geschrieben hat!

English
This hack showes the thread title in the "Last Post" col.

Information
[Version nummer] maybe 1.0 beta
[Files to change] index.php and forumhome_lastpostby template

Installation

== in index.php ==
find:
PHP Code:
        // prepare template vars
        
if (!$showforumdescription) {
          
$forum['description']='';
        } 
below that add:
PHP Code:
       $lastposttitle $DB_site->query("SELECT title FROM thread WHERE forumid='$forum[forumid]' ORDER BY lastpost DESC");
       
$lastposttitle $DB_site->fetch_array($lastposttitle);
       
$lastposttitle $lastposttitle[title];
       if (
strlen($lastposttitle) > 20) {
           
$lastposttitle substr($lastposttitle,0,18);
    
$lastposttitle .= "..";
       } 
== in forumhome_lastpostby template ==
find:
PHP Code:
<a href="member.php3?s=$session[sessionhash]&action=getinfo&find=lastposter&forumid=$forum[forumid]"><b>$forum[lastposter]</b></a
und this add:
PHP Code:
<br><a href="showthread.php3?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]"><b>$lastposttitle</b></a></a></smallfont></td
thats all folk

have phun!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-25-2001, 03:55 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone figured out how to have the last title also show up on sub-forums? I have 3 to 4 levels deep on some and this would really help.
Reply With Quote
  #23  
Old 08-28-2001, 06:56 AM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I have installed this on my board I used the instuctions from the first thread in this post by somnium
Here is what I have and the problems or bugs I have with it.

First I had a main forum with sub forums under it. The main forum of this was not open for threads but all subforums under it was. With this setup and by using the script changes by somnium nothing showed up in the last post column showing the last thread of the this forum and subforums. So I went back and made the main forum of this set along with all subforums under it open for posts. By doing this it resolved the problem now the last post shows up. Now this is what I get when I open my board and look at this forum with sub-forums and you see the last post for example say yesterday's news you click on it and it opens say example the thread called todays news . you look at the 2 threads and yesterdays news is in the main forum and todays news is in a subforum,since todays news is newer it is the last thread but since it is in a subforum the title does not show up but yesterday's news does because it is in the main forum. Any fix for this? llok in my signature and go to my board and go forums at the bottom and click on last post and you will see the problem. Thanks any help would be appreciated.

Joey
Reply With Quote
  #24  
Old 08-29-2001, 06:16 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[B]EXCHANGE[B/]

Can you help with this the subforms are driving me crazy. I read the thread over and over and I see where you mentioned something about this below.
Quote:
Originally posted by dwh
My icons are coming out wrong. for example icon7.gif points to icon14.gif??

Also why the need to add any code to forumdisplay.php??
All main forums work great it is just the subforms can you someone pleasehelp me with this?
Reply With Quote
  #25  
Old 08-29-2001, 06:59 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

kinda busy now but to give you a clue in his code he just pointed to the iconidnumber .gif instead of using iconpath. Using phpmyadmin browse the table icon, you'll see there's a whole path there, you need to get the path info from the sql select statement then point to that instead of the iconidnumber.
Reply With Quote
  #26  
Old 08-29-2001, 07:45 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is all I have done
Installation

== in index.php ==
find:


PHP Code:
// prepare template vars
        
if (!$showforumdescription) {
          
$forum['description']='';
        } 

below that add:

PHP Code:
$lastposttitle $DB_site->query("SELECT title FROM thread WHERE forumid='$forum[forumid]' ORDER BY lastpost DESC");
       
$lastposttitle $DB_site->fetch_array($lastposttitle);
       
$lastposttitle $lastposttitle[title];
       if (
strlen($lastposttitle) > 20) {
           
$lastposttitle substr($lastposttitle,0,18);
    
$lastposttitle .= "..";
       } 

== in forumhome_lastpostby template ==
find:

PHP Code:
<a href="member.php3?s=$session[sessionhash]&action=getinfo&find=lastposter&forumid=$forum[forumid]"><b>$forum[lastposter]</b></a
und this add:

PHP Code:
<br><a href="showthread.php3?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]"><b>$lastposttitle</b></a></a></smallfont></td
Reply With Quote
  #27  
Old 08-29-2001, 08:02 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, I thought you had icon problems didn't read thru everything. I don't use subforums. I think they're too complicated somehow and confusing which template matches what and it messes me up no matter how much I fiddle so I gave up for now. If I knew the table structure for them I'd try to help you but not sure how the table structure looks so impossible to answer you. Maybe somone who uses it will come in and help;
Reply With Quote
  #28  
Old 08-29-2001, 08:07 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dwh

Think we might have the fix, we are having to change around
the way you use a subform. Forum verus Cateorgy, I think it will
work we have 3 working already.

Thanks for responding
Reply With Quote
  #29  
Old 08-31-2001, 02:23 AM
handheld234
Guest
 
Posts: n/a
Default

Be sure to use that updated forumhome_lastpostby template he posted [and I copied with one small change for English]. It is important.
Reply With Quote
  #30  
Old 09-01-2001, 07:30 PM
EXCHANGE's Avatar
EXCHANGE EXCHANGE is offline
 
Join Date: Oct 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So here is another fix. Now the link of the last thread name brings you to the post ist belongs to (error came with subforums). Also titles of moderated and not yet approved posts are not shown anymore.
Reply With Quote
  #31  
Old 09-04-2001, 05:43 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I move my icon over off the text a bit? Below is my forumhome_lastpostby:

<table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink">
<tr align="right">
<td nowrap rowspan="2">$icon</td>
<td nowrap><smallfont><a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]"><b>$lastposttitle</b></a> (<a href="member.php?s=$session[sessionhash]&action=getinfo&find=lastposter&forumid=$forum[forumid]"><b>$forum[lastposter]</b></a>)</smallfont></td>
</tr>
<tr align="right">
<td nowrap><smallfont>$forum[lastpostdate] <font color="#666686">$forum[lastposttime]</font></td>
</tr>
</table>

Here is a link to my forums index so you can view my problem.
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 10:45 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.04632 seconds
  • Memory Usage 2,331KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_onlinestatus
  • (11)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete