vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - [AJAX] Hot Threads (https://vborg.vbsupport.ru/showthread.php?t=222162)

mad@Max 08-30-2009 10:00 PM

[AJAX] Hot Threads
 
1 Attachment(s)
Description:
Hack allows the main forum page displaying a list of "hot threads" in the form of tablets with posters.

Compatibility: 3.7.х - 3.8.х

Features
  • realisation on ajax:
    • load and refresh through a defined time in settings hot threads
    • load the entire list of hot threads
    • removal of the status of the hot threads in the loaded list
  • set and removal of the status of a hot thread in the menu "Options Thread" of each thread
  • opportunity to choose your own tag images
  • choice of forums to display panel
  • individual disable hack in preferences of User CP
  • creation of thumbnails on the link from the threads
  • caching
  • able to use attachments
  • no need to edit the file

How in work
In the menu "Options Thread" of each topic appears "Make a hot thread / Remove the status of hot (depending on status). Checking the threads in such a way, we form a list of hot threads. Further, this list will be rotated in a random order, in the quantities to what you specify in the settings (default 5). Posters displayed in each cell, are collected from the first post of the thread, the first image, from tag img (or your own). Then this image uploading to your server, for make a thumbnail, and write it in db as link of image to your server.
To see the current list of hot threads, simply click on the "List of Threads" in the header of the output window. When you load a list of topics, with the possibility (for groups 5,6,7) removal of the status of hot or at any of the topics on the list.

Install
  1. Upload all files from folder upload to forum folder
  2. Then change the attribute of folder hotimg on 777 (if it needed), for record thumbnails.
  3. Edit template SHOWTHREAD. Find:
    HTML Code:

    <div><label for="ao_sut"><input type="radio" name="do" id="ao_sut" value="stick" /><if condition="$show['unstick']">$vbphrase[unstick_thread]<else />$vbphrase[stick_thread]</if></label></div>
    Add buttom:
    HTML Code:

    <div><label for="ao_sht"><input type="radio" name="do" id="ao_sht" value="hotthread" /><if condition="$thread['hotthread']">$vbphrase[unhot]<else />$vbphrase[dohot]</if></label></div>
    (strange why in this section no hook)
  4. Import product

elenh 08-31-2009 07:32 PM

great hack! INSTALLED & MOTHM

mad@Max 08-31-2009 07:40 PM

Thanks:)

elenh 08-31-2009 08:00 PM

but looks like not working corect with the vba_index.They dont display the anything..

saadessa 08-31-2009 08:23 PM

thank you for this nice hack

mad@Max 08-31-2009 09:41 PM

For vba and another cms necessary add to setting cms variable $mdm_ht_box as global.

eXoOutsider 09-01-2009 02:01 AM

How is this on server load?

TimberFloorAu 09-01-2009 02:31 AM

ANy chance we can see this in english, and perhaps a demo ?

PaylaX 09-01-2009 04:43 AM

Kudos on taking the time to do this modification.

But we want english screenshot

elenh 09-01-2009 10:03 AM

Quote:

Originally Posted by mad@Max (Post 1877418)
For vba and another cms necessary add to setting cms variable $mdm_ht_box as global.

added but still works not..


All times are GMT. The time now is 11:26 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.01095 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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