Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Alternative Forumhome Lastpost Display Details »»
Alternative Forumhome Lastpost Display
Version: 1.31, by EWGF EWGF is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.x Rating:
Released: 04-01-2008 Last Update: 06-24-2008 Installs: 40
Template Edits
Re-useable Code  
No support by the author.

This tutorial changes the look of the last posted post in the forumhome template. The vertical column for the last posts disappears and a box with the last posted post appears below the forum description. Also see the included screenshot to get a better view of this mod.

History:
Version 1.0: First release.
Version 1.1: Added collapsable boxes.
Version 1.2: Fixed boxes for subforums.
Version 1.3: Fixed scrambled box without forum description, fixed box for no-posts forum, added missing "collapseimg" variable to lastpostby.gif, compatible with vBulletin 3.7.x.
Version 1.31: Small adjustment to the "forumhome_forumbit_level2_post" template.

Support only for people who've marked as installed.

Attachment 78123

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-30-2008, 12:20 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone to add this to the alternate posts and thread view?
Reply With Quote
  #13  
Old 05-05-2008, 07:10 PM
Hams Hams is offline
 
Join Date: May 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TCattitude View Post
For last vBulletin 3.7.0 RC3 this search and remove in forumhome_forumbit_level2_post:
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>

now is this:
<td class="alt2">$forum[lastpostinfo]</td>

Nice template mod, i like it!
thanx .. alot

you are best
Reply With Quote
  #14  
Old 06-20-2008, 11:41 PM
Raptor Raptor is offline
 
Join Date: Nov 2001
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how to change the style of the dark black border - say to a light gray dotted line ?

and how to change the background color of the last post info ?

Thanks in advance
Reply With Quote
  #15  
Old 06-21-2008, 09:03 PM
EWGF EWGF is offline
 
Join Date: May 2007
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Raptor View Post
how to change the style of the dark black border - say to a light gray dotted line ?

and how to change the background color of the last post info ?

Thanks in advance
Look into the bits

- forumhome_forumbit_level1_post
- forumhome_forumbit_level2_post

Code:
<div id="collapseobj_forumhome_lastpostby_$forum[forumid]" class="smallfont" style="padding:6px; margin-top:6px; border: 1px solid #000000; $vbcollapse[collapseobj_forumhome_lastpostby]" align="$stylevar[left]">$forum[lastpostinfo]</div>
Change the border: 1px solid #000000 into border: 1px dotted #555555. For the background; alter the smallfont-class used here, use another class which contains information for a backgroundcolor or just add background-color: pink to the above code.

Though it's more efficient to put it all into one class, instead of calling a class ?nd putting several other attributes after it. Small mistake from me of not doing so, but that's easy to alter. Could work on that, if people rather like that.

Quote:
Originally Posted by YLP1 View Post
How do you change the background of the last post info to like alt2 or alt1? Thanks in advance.
Code:
<div id="collapseobj_forumhome_lastpostby_$forum[forumid]" class="smallfont" style="padding:6px; margin-top:6px; border: 1px solid #000000; $vbcollapse[collapseobj_forumhome_lastpostby]" align="$stylevar[left]">$forum[lastpostinfo]</div>
Change the bolded text into class="alt1" or class="alt2".
Reply With Quote
  #16  
Old 06-22-2008, 12:51 AM
sdavis2702 sdavis2702 is offline
 
Join Date: Apr 2008
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks pretty good I like it. Once someone installs it, please shoot me a link of it. I'd like to see an entire forumhome page using this mod!
Reply With Quote
  #17  
Old 06-22-2008, 02:18 PM
EWGF EWGF is offline
 
Join Date: May 2007
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sdavis2702 View Post
Looks pretty good I like it. Once someone installs it, please shoot me a link of it. I'd like to see an entire forumhome page using this mod!
http://www.digital-forums.com/index.php
Reply With Quote
  #18  
Old 06-24-2008, 06:53 PM
Thomas Dukic Thomas Dukic is offline
 
Join Date: Apr 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi grate hack ( if i could not muck it up ) But as i just said i think i messed up. I would like to say am completely new to this so bare with me.

All was good untill i could not find the

Quote:
Search and remove:

----------

PHP Code:
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td
----------
Here is a copy of my forumhome_forumbit_level2_post where i think i went wrong:

PHP Code:
<tr align="center">
    <
td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]/></td>
    <
td class="alt1Active" align="$stylevar[left]id="f$forum[forumid]">
        <
div>
<
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_lastpostby_$forum[forumid]')"><img id="collapseimg_forumhome_lastpostby_$forum[forumid]src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_lastpostby].gif" alt="" border="0" /></a>
            <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
            <if 
condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
        </
div>
        <if 
condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<
div id="collapseobj_forumhome_lastpostby_$forum[forumid]class="smallfont" style="padding:6px; margin-top:6px; border: 1px solid #000000; $vbcollapse[collapseobj_forumhome_lastpostby]align="$stylevar[left]">$forum[lastpostinfo]</div>
        <if 
condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
        <if 
condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
    </
td>
    <
td class="alt2">$forum[lastpostinfo]</td>
    <
td class="alt1">$forum[threadcount]</td>
    <
td class="alt2">$forum[replycount]</td>
    <if 
condition="$vboptions['showmoderatorcolumn']">
    <
td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
    </if>
</
tr>
$childforumbits 

I rely can not see where i went wrong. So if someone could please show me where i went wrong or what i should put in there to make it correct.

My forum is here if you do have a look the welcome section is correct as it is just displaying the number of threads



But the rest of the forum is still displaying this :

Reply With Quote
  #19  
Old 06-25-2008, 02:53 PM
EWGF EWGF is offline
 
Join Date: May 2007
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They removed the "nowrap" in the latest version, forgot to edit the .txt file. So just look for the:
Code:
<td class="alt2">$forum[lastpostinfo]</td>
So it should look like this:
Code:
<tr align="center">
    <td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
    <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
        <div>
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_lastpostby_$forum[forumid]')"><img id="collapseimg_forumhome_lastpostby_$forum[forumid]" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_lastpostby].gif" alt="" border="0" /></a>
            <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
            <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
        </div>
        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<div id="collapseobj_forumhome_lastpostby_$forum[forumid]" class="smallfont" style="padding:6px; margin-top:6px; border: 1px solid #000000; $vbcollapse[collapseobj_forumhome_lastpostby]" align="$stylevar[left]">$forum[lastpostinfo]</div>
        <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
        <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
    </td>
    <td class="alt1">$forum[threadcount]</td>
    <td class="alt2">$forum[replycount]</td>
    <if condition="$vboptions['showmoderatorcolumn']">
    <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
    </if>
</tr>
$childforumbits
Reply With Quote
  #20  
Old 06-25-2008, 03:40 PM
Thomas Dukic Thomas Dukic is offline
 
Join Date: Apr 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much for your help !! All sorted now.
Reply With Quote
  #21  
Old 08-06-2008, 02:12 AM
glorify's Avatar
glorify glorify is offline
 
Join Date: Aug 2004
Posts: 376
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Changed the code a tad, but looks great here.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10293 seconds
  • Memory Usage 2,348KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete