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
  #32  
Old 09-04-2001, 06:00 PM
handheld234
Guest
 
Posts: n/a
Default

It looks like you are only having troubles with Netscape. I am having that as well. I don't think it is due to the forumhome_lastpostby template, but rather the width of the Last Post column itself. [if you notice it loads at one width and then must enlarge as it fills the posts in, so the trick is to get it to load at the proper width the first time!]

If you can increase that, then your trouble should go away.
Reply With Quote
  #33  
Old 09-04-2001, 07:16 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well now when I delete a topic/thread it leaves the icon user date and time but delete the title. How can I fix this?You can check it out [URL=http://forums.suprascene.com/
Reply With Quote
  #34  
Old 09-04-2001, 10:48 PM
handheld234
Guest
 
Posts: n/a
Default

I don't think you can put just one post in there, delete it and expect it to say nothing. If you look in the first levels those posts are gone, so you are better off posting 4 test posts, deleting the last one, and see if it reverts back to the third post. I don't think you can expect it to say there was never a post now.
Reply With Quote
  #35  
Old 09-13-2001, 04:06 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I post in a sub-sub forum it does not change the title name on the main forum but when you click the link it take you to the sub of a sub forum. I believe others were having this problem, has this been fixed? If not how can we fix this?
Reply With Quote
  #36  
Old 09-13-2001, 08:18 PM
Funkie Funkie is offline
 
Join Date: Nov 2001
Location: uk
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone tell me how to fix the icon bug plz
Reply With Quote
  #37  
Old 09-18-2001, 04:27 PM
Amasov's Avatar
Amasov Amasov is offline
 
Join Date: Nov 2001
Location: Hamburg (GE)
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it depends on the variables.

For example: My Main-Forum has the ID 24. My Subforum has the ID 64. The Script (I don't know why) always referring to Forumid=24.

The Button (laspost.gif) is referring to "lastpost", so that is correct.

But the "$lasttitle" says the specific threadid, which is located in the Mainforum.

Where the hell is the problem?

Regards,
Chris.
Reply With Quote
  #38  
Old 09-20-2001, 07:49 AM
bbqfan
Guest
 
Posts: n/a
Default

Quote:
Originally posted by webhost
[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.

All main forums work great it is just the subforms can you someone pleasehelp me with this?
http://www.vbulletin.com/forum/showt...threadid=28489
Reply With Quote
  #39  
Old 09-23-2001, 10:02 AM
bbqfan
Guest
 
Posts: n/a
Default

yeah!!!
NO. 4...
there are 4 hacks with the same function here... maybe more...

please see my new code:
http://www.vbulletin.com/forum/show...&threadid=28489

maybe it interests you...
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:40 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.04533 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
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
  • (4)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
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (4)postbit_onlinestatus
  • (9)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