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)

AKapadia 05-28-2006 10:00 PM

Forums arranged in columns on forumhome + Extra Future
 
In this hack i just add some extra Future. It was made by Xenon

When we install Forums arranged in columns on forumhome it just show the main Thread name and few people ask me how i customise on my site and show last post and then other forum info. with it..

well it's simple 1st install this hack..

https://vborg.vbsupport.ru/showthread.php?t=99829

And then login in ur admincp

SKins > Forum Home Templates > forumhome_forumbit_columncell

Look For <div class="smallfont">$forum[description]</div></if>

Add This After that

Quote:


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

and save it... it will work for sure

If u want to add Image next to Topic then add that in discription of forum...

This is my 1 hack and i really don't know how to post he hack so i m just doing w.e i can to help other members...

Valter 05-29-2006 02:03 AM

Use <br /> instead od <br>.

Use $vbphrase[phrasename] instead of typing text inside templates.

There are all standard phrases for what you typed.

Zachariah 05-29-2006 01:27 PM

*.txt file please.

Jay... 05-29-2006 03:16 PM

nice hack!

El-Gazaly 05-29-2006 03:25 PM

very nice hack
installed

Jay... 05-29-2006 03:27 PM

Doesnt seem to work for me!

AKapadia 05-29-2006 03:35 PM

Quote:

Originally Posted by Jay...
Doesnt seem to work for me!


What it say when u try it ?

Mr Chad 05-30-2006 12:32 AM

OMG THATS ******* HOT!

Ill see wat i can do with this, this will be very useful for site.com (one of my sites)

Mr Chad 05-30-2006 12:44 PM

Here we go:

http://www.imgshed.com/files/1/wooo_thumb.png


i needed a better layout :) this did it for me

AKapadia 05-30-2006 05:25 PM

nice work with it :) awesome graphics

Bernd 05-30-2006 08:17 PM

is it possible to disable\enable this per forum category?

I would like to use this layout for specific forums only.

Mr Chad 05-30-2006 10:00 PM

actually you can do more than that, you can turn it on in one forum for 2 columns and another forum for 3 columns, and another one could just be normal :).

I love it, im going to be working on it a lil more to see what i can come up with.

What i really want is to display the sub-fourms

Mr Chad 05-30-2006 10:04 PM

A better way to display images is to use an if condition:

<if condition="$forum[forumid] == 1"></if>

Mr Chad 05-31-2006 01:07 AM

heres an update of what i got so far, http://site.net/forums/

Bernd 05-31-2006 07:55 AM

I have added an url of an image in the forum description, but the image does not show up. How exactly do you add an image to a forum?

AKapadia 05-31-2006 01:30 PM

<center><img src="imageurl.gif" border=0></center>

AKapadia 05-31-2006 01:30 PM

Chad let me know if u can make Sub forum like this.. love to add that hack on site :) coz my forum is getting too long :-s

Bernd 05-31-2006 01:54 PM

Well, tried as suggested. The image is still not showing up. See attachment for details. Don't even get a red x

Snake 05-31-2006 09:30 PM

Thanks for the hack! :)

Farjad 05-31-2006 11:18 PM

Quote:

Originally Posted by Mr Chad
actually you can do more than that, you can turn it on in one forum for 2 columns and another forum for 3 columns, and another one could just be normal :).

I love it, im going to be working on it a lil more to see what i can come up with.

What i really want is to display the sub-fourms

How did you get the subforums to be displayed... lol
@AKapadia... lol good hack [copied of my forum + worked it on your forum then releasing this hack here lol] anyways its k.. lolz

and btw... if u guyz want me to release this in plug-in format it shouldnt be hard... in mean while let me also try to get subforumz displayed!

WritersBeat 06-01-2006 12:51 AM

Yeah, anyone find a way to display it as a subforum to?

lukeeales 06-01-2006 03:57 PM

This is great, I will install it shortly. Plug in format would be awesome.

Farjad 06-01-2006 10:15 PM

actually nevermind.. i got a better looking code thou try this guyz:

replace whole forumhome_columncell with :

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><U>$forum[title]</U></strong></a>
        </div><blockquote style="margin-left: 15px; margin-top: 0px; margin-right: 0px;">
        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if><br>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$forum[link] != ''">
  <else />
  <div class="smallfont" align="$stylevar[left]">$forum[lastpostinfo]</div>Forum Info: Topics: <strong style="font-weight: 400">$forum[threadcount]
        Posts: $forum[replycount]</strong>
<br /></if></blockquote></td>


Mr Chad 06-02-2006 07:00 AM

this is what i came up with:
http://www.imgshed.com/files/1/example.PNG

as you can see i got the subforums to work, [Live Example]

AKapadia 06-02-2006 02:14 PM

looks hot... nice.. work :)

Mr Chad 06-02-2006 09:11 PM

What i want to do is make the whole box glow, (by changing the images) if there has been any new threads/posts.

HTML Code:

        <if condition="$forum[statusicon] == old OR lock">
        <!-- normal look -->
        </if>
        <if condition="$forum[statusicon] == new">
        <!-- glowing boarder :) -->
        </if>


ericgtr 06-05-2006 07:28 PM

Moved this to template modifications since there are no actual file changes for this specific mod.

davewolf 06-06-2006 03:04 PM

Chad how did you get the subforum text list show ? :)

What youve done is just what i need as i have lots of sub-forums.

Farjad 06-07-2006 03:03 AM

Quote:

Originally Posted by Mr Chad
What i want to do is make the whole box glow, (by changing the images) if there has been any new threads/posts.
a
HTML Code:

        <if condition="$forum[statusicon] == old OR lock">
        <!-- normal look -->
        </if>
        <if condition="$forum[statusicon] == new">
        <!-- glowing boarder :) -->
        </if>


easy, just put the regular code in first if and then dont have the second if just change it to <else /> and put the glow of the code closing it with an </if>

or like this
Code:

        <if condition="$forum[statusicon] == new">
glow td here
<else />
old td here
</if>


Blackbeard 06-07-2006 11:18 AM

What changes do i need to make to put an image in the columns for each forum??

Thanks in advance

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 01:16 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.02720 seconds
  • Memory Usage 1,814KB
  • 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_code_printable
  • (2)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete