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)
-   -   Forums arranged in columns on forumhome (https://vborg.vbsupport.ru/showthread.php?t=99829)

Blackheart_72 01-15-2009 05:13 PM

Quote:

Originally Posted by Reece^B (Post 1713234)
Veccy what are you using in your columncell template?
It's very neat and what not. Mind sharing lol?

Here you go fella.

columncell template ( using standard vb style):

Code:

<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="$column_width">
        <div>
<table border="0" cellpadding="1" cellspacing="5">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" class="ForumImages" /></td>
<td>
                <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><br />
<if condition="$show['lastpostinfo']">
<div class="smallfont" align="$stylevar[left]">
<div style="clear:both">
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>>
Posted By <b><phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase></b>

-$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']">-<span class="time">$lastpostinfo[lastposttime]</span></if></div><br />
<b>Forum Info:</b> Threads: $forum[threadcount]
Posts: $forum[replycount]
</if>
</td>
</table>
</td>


Blackheart_72 01-15-2009 05:29 PM

Quote:

Originally Posted by Reece^B (Post 1713238)
On another note, when you have the columnised forums how did you remove the last post, threads, posts bit @ the top?

Could people share their template? I've spent got knows how long trying to make this look good, but it's not happening lol.

Also, anyone got that image prefix in the forum manager to work?

I have removed it from the columns but kept it in the normal forums, this is what i have where the code from the hack goes in level one no post:

Code:

<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$forum['subforumcolumns'] > 1">
        <tr>
       
<style="border: none; width: 100%;">
                        $childforumbits

                </td>
        </tr>
<else />
<tr align="center">
          <td class="thead" width="30">&nbsp;</td>
          <td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead" width="125">$vbphrase[last_post]</td>
          <td class="thead" width="55">$vbphrase[threads]</td>
          <td class="thead" width="55">$vbphrase[posts]</td>
          <if condition="$vboptions[showmoderatorcolumn]">
          <td class="thead" width="100">$vbphrase[moderator]</td>
          </if>
        </tr>
        $childforumbits
</if>
</tbody>
</if>

I am going to look at the prefixes asap for glamrock and will post in here if i get it sorted.

GlamRockTalk 01-15-2009 05:43 PM

Veccy, thank you so much! I'd love to be able to use the normal prefix option within the forum manager for the custom icons! :D

Reece^B 01-15-2009 08:19 PM

Ledge you ledge, yeah same as above. :)

ArnyVee 01-17-2009 02:23 PM

Veccy, hopefully you can get it working for the normal prefix option. I'd rather do the "normal" way rather than the 'template way' :)

Reece^B 01-18-2009 08:44 AM

Yup, does it work in IE properly?

Because I get this in IE:
http://img140.imageshack.us/img140/8610/picnm6.jpg
As you can see all the tables are spaced, not how they're supposed to be!

Blackheart_72 01-18-2009 09:54 AM

I will take a look later today, mine looks fine in IE with the default template.

Have had no luck with the prefixes yet though.

carubmun 01-18-2009 10:27 AM

Veccy, you have been helping people a great deal with this plugin it seems. Great thanks for that.
Im one of the many hapless folks who just cant make it work, at least not the way its supposed to work (in my head at least).
Ive been trying for a year now to get this to work... and no dice.
I like how you have it in your forum... very much like what i want to do.

1. Three Columns
2. The "last post" info visible.
3. And the Status Icon "old/new/locked,etc..." working correctly.

Would it be possible for you to put what you have done here as one step by step guide for those of us still having trouble?

GlamRockTalk 01-18-2009 11:45 AM

carubmun, you might want to look through some of the past posts. Veccy has detailed and even pasted the same codes he uses within the last few pages of this mod. Check 'em out, they may already help you with what you're looking for. :)

Blackheart_72 01-18-2009 02:24 PM

How to use image prefixes:

open the forumhome_forumbit_columncell template and find:

Code:

<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" class="ForumImages" /></td>
change to:

Code:

<td><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" class="ForumImages" /></td>
create 5 images and give them a prefix (i used 17_ for the example):

Code:

17_forum_link.gif
17_forum_new.gif
17_forum_new_lock.gif
17_forum_old.gif
17_forum_old_lock.gif

and upload them to your style statusicon folder, then i added 17_ in the prefix field.


All times are GMT. The time now is 08:58 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.03963 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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