vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Latest XX Threads on Forumhome Page (https://vborg.vbsupport.ru/showthread.php?t=43310)

TECK 09-07-2002 10:00 PM

Latest XX Threads on Forumhome Page
 
This hack will add your latest xx threads to your forum home page.
The good part is that you can do all this with only 1 query.

The following options are available:
- number of threads displayed
- alternating background color (same like the showthread view)
- thread's title (with link)
- thread's title lenght (just in case you use it in a small table)
- thread's icon
- thread's date and time
- thread's starter (with link)
- thread's no. of views
- thread's no. of replies

[high]The hack uses each forum's permissions.[/high]
In other words, if you have a private forum, your private threads will not show unless you have permissions to view them.

ESTIMATED INSTALL TIME: 5 minutes
REQUESTED BY: Nobody
TESTED IN VERSION: 2.2.7

To download the latest version of this hack, click below:

TECK 09-08-2002 10:27 AM

A screenshot with all options enabled, installed on a unhacked forum...
For a customized look check the next post.

TECK 09-08-2002 10:27 AM

My customized look...

TECK 09-08-2002 10:31 AM

Just in case you wonder what do I use for translator, here it is the html code:
Code:

<select name="trans"
onchange="window.location=('http://translate.google.com/translate_c?hl=en&amp;langpair='+this.options[this.selectedIndex].value+'&u=$bburl')">
<option value="-1" selected>Translate from...</option>
<option value="-1">------------------------------</option>
<option value="en|fr">English to French</option>
<option value="en|es">English to Spanish</option>
<option value="en|de">English to German</option>
<option value="en|it">English to Italian</option>
<option value="en|pt">English to Portuguese</option>
<option value="fr|en">French to English</option>
<option value="es|en">Spanish to English</option>
<option value="de|en">German to English</option>
<option value="it|en">Italian to English</option>
<option value="pt|en">Portuguese to English</option>
<option value="de|fr">German to French</option>
<option value="fr|de">French to German</option>
</select>


Erwin 09-08-2002 10:39 AM

:)

I have had my own version of this running on my forumhome for a few months now - yeah, mine runs with 1 query too. I also have the latest reply poster in as well as the forum category that the thread is in, using JOIN. Took me days to figure out how to join them - in the end Chen helped. :)

TECK 09-08-2002 10:47 AM

there is no need to use a join. just use the $thread['lastposter'] or whatever other option you want to add that is usually displayed in the showthread. i found that is already alot of information in there. look at my customized look, i only use the thread title and link. :)

Chris M 09-08-2002 11:05 AM

Cool hack m8:)

Satan

[D]Vincent 09-08-2002 12:32 PM

Vincent]Great hack, I've have it installed when I have some extra time :D

Velocd 09-08-2002 02:29 PM

I have this but it's the one installed on vBhome lite.

alibaba 09-08-2002 02:57 PM

Add the $threadbits string anywhere you like in your forumhome template.
????

where???


All times are GMT. The time now is 01:52 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.01126 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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