vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Latest Threads On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=60544)

NTLDR 01-26-2004 10:22 PM

That line needs to go in global.php above the code you added for this hack :)

SuperG 01-26-2004 11:31 PM

Dar! Ok, works beautifully now. You rule!

M.C. 01-27-2004 10:10 PM

NTLDR, i made small add-on for hack (template modification), wich make threads with new post bold and threads without no. May be someone likes it:

in template forumhome_latestthreadbit find:
HTML Code:

<a href="showthread.php?$session[sessionurl]threadid=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>
and replace with:
HTML Code:

<if condition="$show['firstnew']"><a href="showthread.php?$session[sessionurl]threadid=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a><else /><a href="showthread.php?$session[sessionurl]threadid=$thread[threadid]" title="$thread[preview]">$thread[title]</a></if>
Is any chanse to make bold sticky threads and show sticky sign or icon for them?

Good Luck

NTLDR 01-27-2004 10:22 PM

HTML Code:

<if condition="$thread['sticky'] == 1">image code here</if>
Obviously replacing image code here with the actual code for your sticky image ;)

M.C. 01-28-2004 12:12 AM

thanks, i was thinking it`s gonna be easy ;)

obiwan8472 01-28-2004 11:12 PM

Brilliant hack.. but how do I make it only choose the threads from one certain forum.. and not the others?

mharmon 01-30-2004 08:29 PM

NTLDR : Does this do anything to server load?

NTLDR 01-30-2004 08:30 PM

Adds one query to forumhome, so you shouldn't notice any decrease in performance.

Goyko 02-10-2004 10:47 AM

Hi there again,

I just figured out, that the hack doesn't display closed threads :(
Would be useful, if it would do this, because from time to time I post new threads and afterwards close them at once.
Those posts should be visible there too .. don't you think so?

Any idea, how to fix that?

Thanks in advance!
Best regards...
Goyko

NTLDR 02-10-2004 02:14 PM

Remove the section that looks like AND open <> 1 in the code you have added.


All times are GMT. The time now is 01:51 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.01212 seconds
  • Memory Usage 1,732KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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