vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Latest Threads On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=83230)

Chris M 06-15-2005 10:00 PM

Latest Threads On Forum Home
 
[high]Installation Instructions[/high]

Step 1: Upload the .xml file to the Product Manager
Step 2: Modify the [high]FORUMHOME[/high] template
Find:
HTML Code:

<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
        </tr>
</tbody>
</if>

Add below:
HTML Code:

<!-- latest threads -->
<if condition="$show['latestthreads']">
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestthreads')"><img id="collapseimg_forumhome_latestthreads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_latestthreads].gif" alt="" border="0" /></a>
                        $vbphrase[latest_threads]
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]">
        <tr>
                <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" /></td>
                <td class="alt1"><div class="smallfont">$threadbits</div></td>
        </tr>
</tbody>
</if>
<!-- /latest threads -->

Step 3: Click [high]INSTALL[/high]:D

[high]Credits[/high]
NTLDR - For allowing me to port his vB3 hack of this

[high]Updates[/high]
Version 1.1.0: Simple update to make this work with vBulletin 3.5.0 Beta 2 - If you are installing for the first time, follow the installation instructions - If you are upgrading, please delete the previous plugin, and upload the new one - This new plugin also has the uncached template fix :)

Version 1.1.1: Simple update to fix a permissions bug - Wasn't showing on my board because I had already fixed it and forgot about it lol :) - To upgrade, simply replace the plugin with the one attached ;)

Version 1.1.2: Simple update to fix a permissions bug again:) - To upgrade, simply replace the plugin with the one attached ;)

Chris

Reverend 06-16-2005 06:38 PM

Getting error at top of page with this:

Warning: Invalid argument supplied for foreach() in /index.php(450) : eval()'d code on line 11

Chris M 06-16-2005 06:43 PM

Try changing:
PHP Code:

$forumcache 

to
PHP Code:

$vbulletin->forumcache 

Satan

Reverend 06-16-2005 06:47 PM

Quote:

Originally Posted by hellsatan
Try changing:
PHP Code:

$forumcache 

to
PHP Code:

$vbulletin->forumcache 

Satan

In the plugin or template ??

Chris M 06-16-2005 06:47 PM

The plugin...

Satan

Reverend 06-16-2005 06:49 PM

Quote:

Originally Posted by hellsatan
The plugin...

Satan

New error:

Parse error: parse error, unexpected ')' in /****************/index.php(450) : eval()'d code on line 46

Chris M 06-16-2005 07:02 PM

I'm not sure then - The original not an invalid arguement here... :ermm:

Satan

Reverend 06-16-2005 07:19 PM

Both errors relate to this line in index:

PHP Code:

($hook vBulletinHook::fetch_hook('forumhome_complete')) ? eval($hook) : false

???

Chris M 06-16-2005 07:24 PM

Yeh that is the code that calls the [high]forumhome_complete[/high] hooks...

For some reason your board is rejecting the foreach in the code :ermm:

What other plugins/hacks do you have installed that utilise the [high]forumhome_complete[/high] hook?

Satan

Reverend 06-16-2005 07:26 PM

The only other plugin i use is this one New Posts & Threads Since Last visit
and that uses forumhome_start


All times are GMT. The time now is 03:34 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.01532 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_html_printable
  • (5)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (2)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