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)

nobita 10-23-2005 03:08 PM

How to I can change from 5 to 10 threads show on forumhome?

igoravr 10-23-2005 03:43 PM

Uncached templates: forumhome_latestthreadbit (5)

How to fix?

p.s. vb 3.5 gold

Vierie 10-23-2005 08:46 PM

Quote:

Originally Posted by nobita
How to I can change from 5 to 10 threads show on forumhome?

Find DESC LIMIT 5 in the xml-file and change that number to 10.

Vierie 10-23-2005 08:49 PM

Quote:

Originally Posted by igoravr
Uncached templates: forumhome_latestthreadbit (5)

How to fix?

p.s. vb 3.5 gold

You have to create a template forumhome_latestthreadbit.

Put
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 src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" />
          </if>         
<a href="showthread.php?t=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>         
<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] 
</div>

into it.

Chris M 10-23-2005 10:53 PM

I forgot to add the "cache_templates" plugin to the product :p

Re-download it, uninstall the previous product and install this new one :)

Chris

nobita 10-24-2005 03:37 AM

How to I can place latest threads in under navbar?

Xplorer4x4 10-25-2005 06:47 AM

Just put the template edit for forumhome and aply it to your navbar. Thats what I did.

Any chance of getting this to display the forum name as well?

Chris M 10-25-2005 12:34 PM

In the main plugin code, find:
PHP Code:

    $thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspecialchars($thread['title']), 22)); 

Add below:
PHP Code:

    $forumdata fetch_foruminfo($thread['forumid']), 1)); 

Then alter the template to add $forumdata[title] where you want it to show :)

That should work but it's untested :)

Chris

shardex 10-25-2005 07:22 PM

That syntax was close but did not work.

Try this:

Find:
PHP Code:

$thread['views'] = vb_number_format($thread['views']); 

Add Below:
PHP Code:

$forumdata fetch_foruminfo($thread['forumid']); 

If you wanted to add a link to the forum name add this to your template:
HTML Code:

<phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>
in the <a href="http://www.YOUR_SITE_HERE.com/forumdisplay.php?f=$thread[forumid]"> $forumdata[title] forum</a>.


nobita 10-26-2005 01:45 AM

Quote:

Originally Posted by Vierie
Find DESC LIMIT 5 in the xml-file and change that number to 10.

Thank a lot ;)

Quote:

Originally Posted by Xplorer4x4
Any chance of getting this to display the forum name as well?

Plz send me your code, i have placed it under navbar but it show isn't good.https://vborg.vbsupport.ru/external/2005/10/3.gif


All times are GMT. The time now is 02:43 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.01427 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (4)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