Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Latest Threads On Forum Home Details »»
Latest Threads On Forum Home
Version: 1.00, by NTLDR (Coder) NTLDR is offline
Developer Last Online: Oct 2004 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-20-2004 Last Update: Never Installs: 170
 
No support by the author.

Latest Threads On Forum Home
Version: 1.0.2
vB-version: 3.0.0 Release Candidate 2
Developer: NTLDR
Install-difficulty: 1
File-edits: 2
Template-edits: 1

Description of the Hack:
This is taken from my vBindex hack and will display the latest X threads on your forum home page. Permissions are done automatically so forums users can't view will be excluded. Includes thread icon/goto new post image (if the thread is unread), title, last post info, number of views and replies.



Files modified for this Hack:
index.php


New templates for this Hack:
forumhome_latestthreadbit


Templates modified for this Hack:
FORUMHOME

New phrases for this Hack:
latest_threads

Show Your Support

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

Comments
  #12  
Old 01-22-2004, 10:15 AM
Goyko Goyko is offline
 
Join Date: Dec 2003
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi NTLDR,

I love this hack!

Anyway - Some problems resist:
Collapsing this section collapses it. <- o.k.
BUT - it doesn't remember the status (collapsed/uncollapsed)
To be honest, it's acting very weird ... sometimes the icon doesn't change... sometimes it's the wrong icon... sometimes it stays collapsed... sometimes not.

And if there was no post icon chosen for the post it shows a broken image link in front of every thread listed in the box.

Maybe you give it a try and recheck those issues?
Would be great to use this hack fully functional!
Thanks!

btw: I'm using it with the RC3 version. But I guess that couldn't be it?!

Best regards...
Goyko
Reply With Quote
  #13  
Old 01-22-2004, 11:44 AM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your FORUMHOME template find:

HTML Code:
style="$vbcollapse[collapseobj_forumhome_threads]">
Replace with:

HTML Code:
style="$vbcollapse[collapseobj_forumhome_latestthreads]">
That should fix the expand/collapse issue.

Do you have a default icon specified in your options? If so what have you entered there?
Reply With Quote
  #14  
Old 01-22-2004, 05:01 PM
Goyko Goyko is offline
 
Join Date: Dec 2003
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NTLDR
In your FORUMHOME template find:

HTML Code:
style="$vbcollapse[collapseobj_forumhome_threads]">
Replace with:

HTML Code:
style="$vbcollapse[collapseobj_forumhome_latestthreads]">
That should fix the expand/collapse issue.
Works perfectly! Thank you very much!!!

Quote:
Do you have a default icon specified in your options? If so what have you entered there?
Err..... to be honest I can't find this option.
Can you gimme a hint, where to look for it?

Best regards
Goyko
Reply With Quote
  #15  
Old 01-22-2004, 05:25 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ACP -> vBulletin Options -> Thread Display Options (showthread) -> Show Default Post Icon

I assume its still there in post Gamma versions.
Reply With Quote
  #16  
Old 01-22-2004, 05:37 PM
Goyko Goyko is offline
 
Join Date: Dec 2003
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NTLDR
ACP -> vBulletin Options -> Thread Display Options (showthread) -> Show Default Post Icon

I assume its still there in post Gamma versions.
Oh .. I was looking for a radio button :ermm:

Yes I have entered "images/icons/icon1.gif" in this field.
And the icon exists.

But ... shame on me ... the problem is NOT the default icon!
There are only problems, if an icon has been chosen for the post!
So it's the exact opposite, from what I was telling before.
Weird!

Sorry for misleading you ... should have observed more carefully!

Best regards...
Goyko
Reply With Quote
  #17  
Old 01-22-2004, 06:33 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, this should fix it:

Find this code in index.php

PHP Code:
    if ($thread['iconid']) {
        
$show['icon'] = true;
        
$thread['threadiconpath'] = &$iconcache["$thread[threadiconid]"]['iconpath'];
        
$thread['threadicontitle'] = &$iconcache["$thread[threadiconid]"]['title'];
    } elseif (!empty(
$vboptions['showdeficon'])) {
        
$show['icon'] = true;
        
$thread['threadiconpath'] = $vboptions['showdeficon'];
        
$thread['threadicontitle'] = $vbphrase['default'];
    } 
Replace it with:

PHP Code:
    $icon fetch_iconinfo($thread['iconid']);
    
    if (
is_array($icon)) {
        
$show['icon'] = true;
        
$thread['threadiconpath'] = $icon['iconpath'];
        
$thread['threadicontitle'] = $icon['title'];
    } 
That should fix it
Reply With Quote
  #18  
Old 01-22-2004, 07:14 PM
Goyko Goyko is offline
 
Join Date: Dec 2003
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All it does, is leading to a parse error on line 464

Greez
Goyko
Reply With Quote
  #19  
Old 01-22-2004, 07:20 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whats on line 464?
Reply With Quote
  #20  
Old 01-22-2004, 07:32 PM
Goyko Goyko is offline
 
Join Date: Dec 2003
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind

I forgot a closing ";" at the end.

Now going to check if it works.

Goyko

Edit:

Now it works!
Thanks very much!
Reply With Quote
  #21  
Old 01-23-2004, 08:48 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for making this hack!

You should put your Icon FIX into the installer cause I had the same problem!
After the fix it seems to worked with the icons


HOWEVER why can I see postings made in my developer section when I?m loged out?
Only Admins and Developers have access there!???

I thought the permissions where checked before displaying?

* StarBuG clicks install but hopes the fix for permissions comes soon

StarBuG
Reply With Quote
Reply

Thread Tools

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 06:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08699 seconds
  • Memory Usage 2,317KB
  • 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
  • (4)bbcode_html
  • (2)bbcode_php
  • (3)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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete