The Arcive of vBulletin Modifications Site. |
|
Random Thread Details »»
|
|||||||||||||||||||||||||
English:
What Does it?:This hack will add to Navbar Random Thread .Install: +Go to admin Cp +Plugin System -> Manage Products -> [Add/Import Product] -> Select +'product-random_thread.xml' then İmport. Find Navbar: Code:
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if> Code:
$rthread Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
*Reserved
|
|
#3
|
||||
|
||||
|
pls renew ur ss with supporting file types (jpg,jpeg etc.)
bmp desteklenmiyor inferno,direkt g?z?kmesi daha hoş olur demo g?r?nt?n?n
|
|
#4
|
|||
|
|||
|
Quote:
Added JPEG Demo
|
|
#5
|
||||
|
||||
|
reserved...
|
|
#6
|
|||
|
|||
|
That query will/could bring a forum to it's knees running every page view.
Code:
mysql> explain Select * From thread order by rand() DESC LIMIT 1
-> ;
+----+-------------+--------+------+---------------+------+---------+------+------+---------------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+--------+------+---------------+------+---------+------+------+---------------------------------+
| 1 | SIMPLE | thread | ALL | NULL | NULL | NULL | NULL | 6026 | Using temporary; Using filesort |
+----+-------------+--------+------+---------------+------+---------+------+------+---------------------------------+
1 row in set (0.03 sec)
Here's a better way. Code:
60*60 == 3600 3600*24 == 14400 14400*30 == 432000 1223479602 - 432000 == 1223047602 mysql> explain Select * From thread where dateline >= 1223047602 order by dateline DESC limit 1; +----+-------------+--------+-------+---------------+----------+---------+------+------+-------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+--------+-------+---------------+----------+---------+------+------+-------------+ | 1 | SIMPLE | thread | range | dateline | dateline | 4 | NULL | 104 | Using where | +----+-------------+--------+-------+---------------+----------+---------+------+------+-------------+ 1 row in set (0.00 sec) |
|
#7
|
|||
|
|||
|
It runs wrong.
When used, it transfers users to wrong thread.
|
|
#8
|
||||
|
||||
|
Attention - this does not take care of hidden forums or forumpermissions, means it could also bring up a thread from your internal hidden administrator-forum...
|
|
#9
|
|||
|
|||
|
Add "AND forumid not in(1,2,3)" to the query.
This hack needs a lot of work. |
|
#10
|
|||
|
|||
|
whats the point of this
|
![]() |
|
|