PDA

View Full Version : Show Thread Enhancements - [AJAX] Hot Threads


mad@Max
08-30-2009, 10:00 PM
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

Upload all files from folder upload to forum folder
Then change the attribute of folder hotimg on 777 (if it needed), for record thumbnails.
Edit template SHOWTHREAD. Find:<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:<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)
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
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
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
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:
<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
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:
<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
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
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
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

Daniloex
04-28-2010, 10:14 AM
I can not install it. I installed joomla in my domain, which may be incompatibility issues?

racale
04-30-2010, 12:49 PM
Warning: array_rand() [function.array-rand]: First argument has to be an array in [path]/global.php(607) : eval()'d code on line 1234

Someone can help me with this?

Thanks

marshal_ramdev
04-30-2010, 07:52 PM
will test it out :) .. thanks man

3beidat
04-30-2010, 07:53 PM
is it working with 3.8.5 ??
when i do (make a hot thread) i got blank page!!

http://www.xxxx.com/vb/postings.php?t=1510&pollid=

racale
04-30-2010, 11:36 PM
Someone can help me with this?

Thanks

racale
05-03-2010, 01:21 AM
hello

No one ever I can to help solve this problem with vb3.8.5

Warning: array_rand() [function.array-rand]: First argument has to be an array in [path]/global.php(607) : eval()'d code on line 1233

thanks

Ichigo88
05-08-2010, 09:33 AM
hello

No one ever I can to help solve this problem with vb3.8.5

Warning: array_rand() [function.array-rand]: First argument has to be an array in [path]/global.php(607) : eval()'d code on line 1233

thanks

not work fine in 3.8.5

is it working for VB 4 ? any newer versions ?

No

MichaelDance
05-12-2010, 02:44 PM
Thanks mate, awsome mod, using, installed, nominated MOTM and tagged :) thanks hope you get more soon:)

Ichigo88
07-02-2010, 09:16 AM
the developer is mad@Max but his not take any support :confused:

mad@Max
08-28-2010, 11:07 AM
Version for vb4 on dev stage...

Eduardo Leon
09-26-2010, 05:44 PM
i get this error :S

Warning: array_rand() [function.array-rand]: First argument has to be an array in [path]/global.php(607) : eval()'d code on line 1939

help me =/

Manoel J?nior
10-26-2010, 12:29 AM
Thx, work for me 3.8.6

COL NIL SATIS
11-18-2010, 01:27 PM
Version for vb4 on dev stage...

Awesome news :)

ppatil007
11-21-2010, 10:43 PM
Awesome news :)

its been almost 3 months :(

Ichigo88
12-22-2010, 06:14 PM
any news?

marsa5
12-29-2010, 06:11 PM
here in arabic

www.marsa5.com/vb