vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Home Enhancements - ForumHome Category Spacing (https://vborg.vbsupport.ru/showthread.php?t=123530)

DaPro 08-08-2006 10:00 PM

ForumHome Category Spacing
 
This is a small port from what Floris and Zachery have written on Forum Category Spacing. I hope that some of you will find this bit of information usefull. Don't forget to click INSTALL :). Thanks.

Credits:
Floris - http://www.vbulletin.com/forum/showthread.php?t=110590
Zachery - https://vborg.vbsupport.ru/showthread.php?t=88983

Changelog:

*Note: I skipped 1.4 because 1.5 just looks better :D
v1.5 (May 12 2007)
========================
- Updated to Support vBulletin 3.6.6

v1.3 (Nov 03 2006)
========================
- Fixed forumhome Guest Message break.
- Fixed lastpost break.

v1.2 (Oct 31 2006)
========================
- Fixed some random HTML problems.
- Reworked the Last Post Optional Edit
- Should be 3.6.2 compatible

v1.1 (Aug 10 2006)
========================
- Updated to be XHTML Transitional Valid

v1.0 (Aug 9 2006)
========================
- Initial port & release

Brandon Sheley 08-09-2006 07:39 PM

thx, but can u link to the previous hack or a screen shot ?

thank you :)

DaPro 08-09-2006 08:32 PM

Quote:

Originally Posted by Loco.M
thx, but can u link to the previous hack or a screen shot ?

thank you :)

Sure no problem, did both for you guys! Enjoy.

Snatch 08-10-2006 06:05 AM

Cool, I searched for this so much.

but one question. How can I delete this Line (show Attach)

GreeTz
Snatch

Oblivion Knight 08-10-2006 06:15 AM

Quote:

Originally Posted by Snatch
Cool, I searched for this so much.

but one question. How can I delete this Line (show Attach)

GreeTz
Snatch

Delete this part of code in the FORUMHOME_FORUMBIT_LEVEL1_NOPOST template:
HTML Code:

<tr><td class="thead" style="line-height: 0; padding: 0; margin: 0;" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"><img src="$vboptions[cleargifurl]" alt="" width="1" height="12" /></td></tr>

Doc Great 08-10-2006 06:31 AM

One question, is it valid xhtml Transitional?

Cheers,
Sven

Snatch 08-10-2006 08:11 AM

Thank YOU !!!

GreeTz
Snatch

DaPro 08-10-2006 10:44 AM

Quote:

Originally Posted by Doc Great
One question, is it valid xhtml Transitional?

Cheers,
Sven

My apologies, I forgot to check the code for validation like I should :-|. I have updated the port to reflect the changes and just grab the new TXT file. For those who don't wanna go through it all here are the XHTML Validation changes. (If you find more let me know :))

Find the following code in FORUMHOME
======================================
HTML Code:

<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <if condition="$show['guest']">
    <!-- guest welcome message -->
    <tr>
        <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
    </tr>
    <tr>
        <td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
            <phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
        </td>
    </tr>
    <!-- / guest welcome message -->
    </if>
</thead>
$forumbits
$forumhome_markread_script
<!-- /main -->

Replace that code with the following:
======================================
HTML Code:

<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <if condition="$show['guest']">
    <!-- guest welcome message -->
    <tr>
        <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
    </tr>
    <tr>
        <td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
            <phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
        </td>
    </tr>
    <!-- / guest welcome message -->
    </if>
</table>
$forumbits
$forumhome_markread_script
<!-- /main -->

All done.

StuntFactoryX 08-10-2006 04:13 PM

what does this mean or do? xml stuff?

DaPro 08-10-2006 04:23 PM

Quote:

Originally Posted by StuntFactoryX
what does this mean or do? xml stuff?

It is pretty self explainitory. It seperates each forum category on the forumhome so it looks neater and more organized. Can be seen on many forums today. I even have a screenshot up there for you.

StuntFactoryX 08-10-2006 04:54 PM

i understand that... i was asking about the update... i used your first code and it worked great.. just curious what the update did? and the optional template edit that u have in the txt file what does that do? thanks for your work.. looks great w/ my skin.

DaPro 08-10-2006 05:08 PM

Quote:

Originally Posted by StuntFactoryX
i understand that... i was asking about the update... i used your first code and it worked great.. just curious what the update did? and the optional template edit that u have in the txt file what does that do? thanks for your work.. looks great w/ my skin.

Oh, well yea the first one should work fine, this is so your forum will be XHTML validated meaning that all browsers should be ok with this. I like having code be valid before using it. :)

GreysAnatomy 08-11-2006 05:29 AM

Thank you so so much! I had this on 3.5.4 and just couldn't do without it on 3.6 too. :)

Floris 08-11-2006 07:00 PM

Thanks for the credit :)

Moonkat 08-12-2006 07:34 AM

I'm using the Kirsch style & this did weird things with the post icon box portion of each forum listing - they're all different widths now. I'm trying to figure out which part controls that in order to fix it.

http://www.vanguardroleplayers.com/messedup.jpg

Moonkat 08-12-2006 10:42 AM

I'm not sure what went wrong. At any rate, I uninstalled this and did Flo's and it worked fine, so I'll go with that one. Thank you for posting this, though, it still helped & I wouldn't have found it otherwise probably. :)

aveon 08-13-2006 04:06 PM

cant we allign them thith out using the row i marked on the snap it volp be alot different and better if any one can figure it out...

http://img71.imageshack.us/img71/951...spacingfi1.gif

ma2002hi 08-14-2006 11:24 AM

thanks a lot man

jdk10 08-19-2006 07:58 PM

Works great. Thank you

Snake 08-20-2006 10:58 AM

Thanks for this! :)

idwf 08-23-2006 05:55 PM

thanks for this. Any chance you guys could point me in the direction of how to add images to the top and bottom of these?

xman_79 08-26-2006 07:36 PM

It is the first time when it's working great.
Thank you .

GreysAnatomy 08-28-2006 04:32 AM

I've installed it and it works great but the last part, the optional one in the forumhome_lastpostby template doesn't seem to work. Whenever people click on the little arrow in order to get to the last post, they get a message 'No Thread specified. If you followed a valid link, please notify the administrator.'

I know, I could just leave this but I love the way it looks and thought I'd ask since I have no idea what I'm doing and don't wanna mess up the whole template.

Ah well, I ended up messing around myself and here's the code that managed to fix my problem:
Code:

<table cellpadding="0" cellspacing="0" border="0" width="175"><tr align="$stylevar[right]">

                <td nowrap="nowrap"><span class="smallfont">

                <a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]" title="Go to first unread post in thread '$lastpostinfo[lastthread]'"><b>$lastpostinfo[trimthread]</b></a><br />

Poster: <a href="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]">$lastpostinfo[lastposter]</a><br />

                        $lastpostinfo[lastpostdate]

                        <if condition="$vboptions['yestoday'] != 2">

                                <span class="time">$lastpostinfo[lastposttime]</span>

                        </if>

                        </span></td>

                <td nowrap="nowrap">&nbsp;<a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a></td>

        </tr></table>

All I did was changing the link and url of the 'Go to last post' arrow.

upsetter 08-29-2006 02:05 AM

thank you sir, looks awsome... http://forums.boostconcept.com :)

Exitilus 08-30-2006 12:34 AM

Where would I reduce how much spacing is inbetween ?

Sean James 09-04-2006 09:29 AM

Great hack, and works great on my forumhome http://www.bluepearl-design.com/forums/?styleid=46

but when i view my sub-forums the page messes up http://www.bluepearl-design.com/foru...es/?styleid=46

Pipe Hitter 09-04-2006 04:55 PM

Quote:

Originally Posted by GreysAnatomy
I've installed it and it works great but the last part, the optional one in the forumhome_lastpostby template doesn't seem to work. Whenever people click on the little arrow in order to get to the last post, they get a message 'No Thread specified. If you followed a valid link, please notify the administrator.'


All I did was changing the link and url of the 'Go to last post' arrow.

Had the same problem. Thanks for the fix.

Exitilus 09-05-2006 12:03 AM

Quote:

Originally Posted by Moonkat
I'm not sure what went wrong. At any rate, I uninstalled this and did Flo's and it worked fine, so I'll go with that one. Thank you for posting this, though, it still helped & I wouldn't have found it otherwise probably. :)

Same here ... I'm a bit too lazy currently to see where the error in the code is though *lol*

rasun 09-06-2006 06:46 PM

Thank you, but now my Threads, Posts and Moderators collumns are to much expanded through this.
Forum and Last Posts collumn are now to small...

How can I change the column width?

ssvp 09-09-2006 05:26 AM

I'm no expert.. But here's what I did..


LEVEL1_NOPOST - I changed this to 20.
Code:

<td class="thead" width="20">&nbsp;</td>
LEVEL2_POST - I change this to 20. basically I added width="20"

Code:

<tr align="center">
        <td class="alt2" width="20" align="$stylevar[left]">

Now my Status icons I use fir that width, your icons may be different.. Basically I just did some trial and error.. It solved my various width issues..

Tony_FPM 09-09-2006 11:50 AM

I have used the one of Vbulletin.com. Alle worked accept for my private forums.
The are still attached ? Somebody know how to change this ?

Tony_FPM 09-13-2006 08:20 PM

Nobody can help me with this ???? Please !!!

Neo_Angelo 09-15-2006 11:40 AM

just what i've been looking for, i think this should be standard with vB...nice job!

Kadi 09-19-2006 07:56 AM

My FORUMHOME code is different than the one in step1. What should I do?

Smike 09-24-2006 11:57 AM

i search the same for vb3.6.1

Hornstar 09-25-2006 09:45 AM

Yeah ive been using this for a while thanks to floris and zachery, but im sure this will help lots of other people, as it makes your forums look heaps better.

SleekSkins 10-02-2006 09:19 PM

DaPro,

When you are logged in and the guest welcome is not showing. The table open and close tags are still there:
HTML Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

</table>

You should put the if statements before the table open tag and after the table close tag, like this:
HTML Code:

<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

...

</table>
</if>


a squared 10-09-2006 09:03 PM

Is this 3.6.2 compatible?

Shanj 10-12-2006 11:54 PM

Is there a mod to set the default collapse layout? At minimum it'd be nice to open the forum with no forums expanded. Bertter select one or more key ones to expand and that's part of the default view.

ONick 10-19-2006 06:46 PM

I was looking for this! Thanks! Clicked install! :lick:

Although after doing this, it seems that my category and last post columns are not aligned with each other. But the thread and posts columns are fine. Any idea on why this is?


All times are GMT. The time now is 07:13 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.01421 seconds
  • Memory Usage 1,838KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_html_printable
  • (7)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
  • (40)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