vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Latest Threads On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=60544)

Goyko 01-22-2004 10:15 AM

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

NTLDR 01-22-2004 11:44 AM

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?

Goyko 01-22-2004 05:01 PM

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

NTLDR 01-22-2004 05:25 PM

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

I assume its still there in post Gamma versions.

Goyko 01-22-2004 05:37 PM

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 :rolleyes:... 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

NTLDR 01-22-2004 06:33 PM

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 :)

Goyko 01-22-2004 07:14 PM

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

Greez
Goyko

NTLDR 01-22-2004 07:20 PM

Whats on line 464?

Goyko 01-22-2004 07:32 PM

Never mind :rolleyes:

I forgot a closing ";" at the end.

Now going to check if it works.

Goyko

Edit:

Now it works!
Thanks very much!

StarBuG 01-23-2004 08:48 AM

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


All times are GMT. The time now is 06:51 AM.

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.01268 seconds
  • Memory Usage 1,753KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete