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..

mad@Max 09-02-2009 07:01 PM

Images is updated.
elenh, you added this variable without $?

Megatr0n 09-02-2009 07:07 PM

Maxim, you get my PM?

elenh 09-02-2009 10:15 PM

Quote:

Originally Posted by mad@Max (Post 1878570)
Images is updated.
elenh, you added this variable without $?

With $...
Sorry ,without the "$" its works fine.

Flowsion 09-03-2009 07:43 PM

When I click 'hot thread' it just blanks.

passwords 09-06-2009 08:40 AM

cannot see the pic of the hot thread, how can i set a poster for a thread ?

yahoooh 09-06-2009 08:44 AM

should use hook
i do not prefer file edit

jambo_1969 09-06-2009 09:35 AM

Server Load ?

mad@Max 09-06-2009 09:54 AM

yahoooh, if you find a hook that can replace an entire class - let me know:)
jambo_1969, no:)

Peter_Rosado 09-19-2009 06:37 PM

any way to show the hot threads by order of the amount that the users have hot threaded it? Also, any way to make hot threads delete themselves every X days, for example I want to see new hot threads every 7 days.

Peter_Rosado 09-19-2009 06:51 PM

I forgot to mention that when I click on the hot thread list it doesn't do anything :(

gantonr 12-13-2009 07:30 PM

1 Attachment(s)
latest version by mad@max

fixed all known bugs

added: now you can use first attachment from first post in thread for image.

thanks to mad@max

ps:
if you want that width and height settings from hot threads options effects attachments images in hot threads, if it used,
edit template mdm_ht_bit:
HTML Code:

<img title="$title" class="inlineimg"<if condition="$vboptions['mdm_ht_attach']"> style="max-width: $vboptions[mdm_ht_thumb_w]px; max-height: $vboptions[mdm_ht_thumb_h]px;"</if> src="$thumb" border="0" alt="$title" />

vktechnology 12-14-2009 10:10 AM

wow excelent hack

--------------
installed

vktechnology 12-14-2009 10:15 AM

Quote:

Originally Posted by gantonr (Post 1930111)
latest version by mad@max

fixed all known bugs

added: now you can use first attachment from first post in thread for image.

thanks to mad@max

ps:
if you want that width and height settings from hot threads options effects attachments images in hot threads, if it used,
edit template mdm_ht_bit:
HTML Code:

<img title="$title" class="inlineimg"<if condition="$vboptions['mdm_ht_attach']"> style="max-width: $vboptions[mdm_ht_thumb_w]px; max-height: $vboptions[mdm_ht_thumb_h]px;"</if> src="$thumb" border="0" alt="$title" />


When i install this 2.6.1 version nothing display at forum home.
but version 2.4.2 can display everything

my forum is VB3.8.4
---------------------

if it possible to display last image attachment instead of first image?


If first image doesn't look good then admin have to delete all attachment and reupload inorder to display first images

if use last image
admin can change images or upload new image easier

P?ŋĭsЋ?я 12-14-2009 12:03 PM

Thank you installed. :)

Ichigo88 12-14-2009 03:05 PM

nice hack! thank you!
it's possibole to make all automatic?
without any time clic make a hot thread?

mad@Max 12-14-2009 05:50 PM

Official update to v2.6.1 (changes in bold text).
vktechnology, just use /forum/misc.php?do=htupdt for update the cache.
Ichigo88, nothing is impossible, just a hack has a slightly different purpose :)

vktechnology 12-16-2009 12:43 PM

Quote:

Originally Posted by mad@Max (Post 1930658)
Official update to v2.6.1 (changes in bold text).
vktechnology, just use /forum/misc.php?do=htupdt for update the cache.
Ichigo88, nothing is impossible, just a hack has a slightly different purpose :)

already misc.php?do=htupdt
done

nothing display in forum home

vktechnology 12-18-2009 09:23 AM

Quote:

Originally Posted by vktechnology (Post 1931642)
already misc.php?do=htupdt
done

nothing display in forum home

it's working now
becuase i clear vB Optimise cache

vktechnology 12-18-2009 09:28 AM

2.6.1

one more problem

when login can not see hot thread

when logout can see hot thread

how to fix this ?

ravenfaust 12-18-2009 05:46 PM

this is AMAZING!!! Thanks for your work LOVE IT!!

ravenfaust 12-18-2009 06:51 PM

is there any way to keep this on forumhome only and not show about the threads?

Also how do i make the text bigger on the hot threads?

ravenfaust 12-18-2009 09:08 PM

there is an issue when u click List of Threads , its not in english

Ñíÿòü ñòàòóñ ãîðÿ÷åé
Ñíÿòü ñòàòóñ ãîðÿ÷åé

How do we fix that?

ravenfaust 12-19-2009 02:02 PM

No more support?

pablete 12-19-2009 08:38 PM

I have problem with this!. My folder hotimg is chmod 777 but whem i put a thead as hot in tools an advice show me:

There was an error encountered with your upload:

* Upload failed due to failure writing temporary file.

Someone can help me with this?

Thanks in advance!

ravenfaust 12-31-2009 04:02 PM

Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/predator:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in [path]/includes/class_upload.php on line 276

Warning: fopen() [function.fopen]: Filename cannot

algareem 01-01-2010 02:27 PM

Quote:

Originally Posted by ravenfaust (Post 1943481)
Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/predator:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in [path]/includes/class_upload.php on line 276

Warning: fopen() [function.fopen]: Filename cannot

enable uploading under Safe mode in Vbulletin Settings.

graphicnut 01-01-2010 06:45 PM

anyway, we can get tis to auto update "hottest thread" by amount of views in a 24hr period or something ?

Regards

algareem 01-23-2010 10:02 AM

is it possible to have more rows ?
also , if there is a way to have an external stand alone script to post in CMS or other php scripts with same functionality ?

sebil 02-16-2010 12:05 PM

is this gonna work in vb 4.... :)

if nottt.. cann youuuuuuuuuuuuu pleaseeeeeeeeeeeeeeeeeeee updateeeeeeeeeeeee


PLEASEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE EEEEEEEEEEEEEEEEEEEEEEEEEE

millionss pleaaaaaaaaaaaaaaaaseeeeeeeeeeeeeeeeeeeeeeee


I lovee thiss hackkkkkkkkkkkkkkkkkkkk
and will be very useful in our forum

a9eel 03-01-2010 10:52 AM

thx


All times are GMT. The time now is 07: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.01289 seconds
  • Memory Usage 1,818KB
  • 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_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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