vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Forums arranged in columns on forumhome + Extra Future (https://vborg.vbsupport.ru/showthread.php?t=116985)

Farjad 06-07-2006 02:21 PM

in my forum i did was <img src="images/forum/$forum[forumid].jpg"> in the template bit...

Blackbeard 06-07-2006 09:25 PM

Do you mean this template - forumhome_forumbit_columncell

Code:

<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="$column_width">
        <div>
                <img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
                <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
        </div>
        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['lastpostinfo']"><BR>
<div class="smallfont" align="$stylevar[left]">
<div style="clear:both">
&nbsp;&nbsp;&nbsp;&nbsp;Last Post: <a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>
</div>
<div<if condition="is_browser('ie', 6)"> style="float:$stylevar[left]"</if>>
&nbsp;&nbsp;&nbsp;&nbsp;Posted <phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>

-$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']">-<span class="time">$lastpostinfo[lastposttime]</span></if></div><BR>
&nbsp;&nbsp;&nbsp;&nbsp;Forum Info: Topic: $forum[threadcount]
Post: $forum[replycount]
</if>
</td>


^SuiCyde^ 08-26-2006 03:28 AM

Code:

then add this new function to the file:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ###################### Start construct_forum_columns #######################
function construct_forum_columns($parentid, $columncount)
{

i assumed this meant right after you make the other changes, but when i do that, i get an error.......


Fatal error: Call to undefined function: construct_forum_columns() in /home/knockout/public_html/board/includes/functions_forumlist.php on line 296

what am i doing wrong?

Kenyon 08-29-2006 02:15 PM

Quote:

Originally Posted by ^SuiCyde^
what am i doing wrong?

I assume you're referring to Xenon's instructions. The instructions are bit sloppy - they don't specify where the user should put the function, and for non-coders that can be incredibly confusing.

The best thing to do is put that new function at the very end of the file, right before the closing PHP tag ( ?> ).

Harley D 11-23-2006 01:39 PM

I don't have a "forumhome_forumbit_columncell" template.
I'm running VB ver 3.5.4 and Cyb - Sub-forums Arranger, found here
https://vborg.vbsupport.ru/showthread.php?t=113942

I used this code in my "forumhome_forumbit_level1_nopost" with excellent results. You can check it out here www.srtcaliber.com.
just another way to use this code for those who don't have the "forumhome_forumbit_columncell" template.

Thanks for the code!

b65ran 05-05-2007 11:35 PM

Nice add on. Is there anyway I can show five latest threads under each forum instead of showing only the last replied thread ?

FReeSTER 05-21-2010 04:30 AM

can someone update this Mod for vb4.03 please


All times are GMT. The time now is 08:36 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.01216 seconds
  • Memory Usage 1,734KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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