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)
-   -   Latest Threads On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=83230)

MRGTB 09-10-2006 10:53 PM

Yeah, I know what you mean. Each to there own really. I prefer to show as much info as possible like the FORUM link and so on. But thats me, were all different.

Ninth Dimension 09-10-2006 10:55 PM

A suggestion to the hack owner - to make it so that only threads which have updates the member hasn't yet seen to appear in bold, while the rest remain unbolded.

EDIT: Nevermind, I've just seen you have something like this in place already. :)

Ninth Dimension 09-10-2006 10:56 PM

Quote:

Originally Posted by Gary Bolton
Yeah, I know what you mean. Each to there own really. I prefer to show as much info as possible like the FORUM link and so on. But thats me, were all different.

Yeah, I get what you're saying. One thing I think your forum might benefit from is to use a table to make all the info nice and organised into coloums, rather than just lose like it is now...

MRGTB 09-10-2006 11:02 PM

Quote:

Originally Posted by Ninth Dimension
Yeah, I get what you're saying. One thing I think your forum might benefit from is to use a table to make all the info nice and organised into coloums, rather than just lose like it is now...


Well it's really funny you should say that, because that has crossed my mind, but I was a little unsure how to get each post in it's own column though.

MRGTB 09-11-2006 12:13 AM

How can you get it so each latest thread displayed uses it's own alternate colour. Like alt1 and alt2 in the box. So it looks nicer. So if you displayed 4 threads, they would be like this: alt1,alt2,alt1,alt2

Ninth Dimension 09-11-2006 01:18 AM

I think I can do what you want, both with the coloums and alternating colours, but I'm going to need to see some of your templates first.

I'm going to need part of your FORUMHOME template, everything from <!-- latest threads start --> to <!-- latest threads end -->, and the whole of your forumhome_latestthreadbit template.

It would also be handy if you could give me the content of your 'Latest Threads on Forum Home' plugin.

If you can paste that info here, I'll see what I can do for you :D

MRGTB 09-11-2006 01:24 AM

Here is my template:

Code:

<!-- latest threads start -->
<if condition="$show['latestthreads']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('latest_threads')">
        <img id="collapseimg_latest_threads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latest_threads].gif" alt="" border="0" /></a>
<!-- title start -->
Latest Threads
<br />
<div class="smallfont">
Read latest threads
</div>
<!-- title end -->
</td>
</tr>
</tbody>
<tbody id="collapseobj_latest_threads" style="$vbcollapse[collapseobj_latest_threads]">
<tr>
<td class="alt1">
<!-- code start -->
$threadbits
<!-- code end -->
</td>
</tr>
</tbody>
</table>
<br />
</if>
<!-- latest threads end -->

Plug-ins attached

Ninth Dimension 09-11-2006 01:35 AM

I still need the forumhome_latestthreadbit template.

As for the plugin, could you maybe copy/paste the text for me please? The text I need can be found: ACP -> Plugins & Products -> Plugin Manager -> Latest Threads on Forum Home (the one listed next to forumhome_complete) -> then copy/paste all the text from the 'Plugin PHP Code' box please?

I'm just off to bed now, but I'll take a look in the morning and see what I can do for you :D

MRGTB 09-11-2006 01:38 AM

Here the threadbit code:

Code:

<div class="smallfont">
        <if condition="$show['firstnew']">
                <a href="showthread.php?t=$thread[threadid]&amp;goto=newpost"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a>
        </if>
        <if condition="$show['icon'] && !$show['firstnew']">
                <img style="vertical-align: middle;" src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" />
        </if>
        <a href="showthread.php?t=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>&nbsp;
        <em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
        &raquo; $vbphrase[replies]: $thread[replycount]
        &raquo; $vbphrase[views]: $thread[views]
        &raquo; $vbphrase[forum]: <a href="forumdisplay.php?f=$thread[forumid]">$forumdata[title]</a></div>

But you could have got the template code for this out the plug-in I attached to the other post above as a zip file

Ninth Dimension 09-11-2006 06:08 PM

OK, here goes... I've not tested it or anything, and I've not added the alternating colours yet, but try this on for size and see what you think:

FORUMHOME (part)
Code:

<!-- latest threads start -->
<if condition="$show['latestthreads']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="tcat" colspan="5"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('latest_threads')">
        <img id="collapseimg_latest_threads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latest_threads].gif" alt="" border="0" /></a>
<!-- title start -->
Latest Threads
<br />
<div class="smallfont">
Read latest threads
</div>
<!-- title end -->
</td>
</tr>
</tbody>
<tbody id="collapseobj_latest_threads" style="$vbcollapse[collapseobj_latest_threads]">
<!-- code start -->
$threadbits
<!-- code end -->
</tbody>
</table>
<br />
</if>
<!-- latest threads end -->

forumhome_latestthreadbit
Code:

<tr>
<td class="alt1"><div class="smallfont">
<if condition="$show['firstnew']">
        <a href="showthread.php?t=$thread[threadid]&amp;goto=newpost"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a>
</if>
<if condition="$show['icon'] && !$show['firstnew']">
        <img style="vertical-align: middle;" src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" />
</if>
<a href="showthread.php?t=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a></div></td>

<td class="alt2"><div class="smallfont"><em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase></div></td>

<td class="alt1"><div class="smallfont">$vbphrase[replies]: $thread[replycount]</div></td>

<td class="alt2"><div class="smallfont">$vbphrase[views]: $thread[views]</div></td>

<td class="alt1"><div class="smallfont">$vbphrase[forum]: <a href="forumdisplay.php?f=$thread[forumid]">$forumdata[title]</a></div></td>
</tr>



All times are GMT. The time now is 10:29 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.01483 seconds
  • Memory Usage 1,758KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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