1. Random News

Random News

  |   13
Random News

Random News - Creates a link that, when clicked the visitor, will be postponed to a random news.
An Example: www.youwebsite.com/random/ - takes you to a random news from all categories
Or
An Example: www.youwebsite.com/random/1/ - takes you to a random news from a particular category

*www.youwebsite.com/random/1/ - Category ID

installation instructions:

1.Loading random.php file to the root directory
2.open the .htaccess and find:
RewriteEngine On

Add below:
#Random new [L]
RewriteRule ^random/([^/]*)(/?)+$ random.php?cat=$1 [L]


Login Required!Only registered users can download files. Please register or Login
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+12

Comments 13

jopaulmj
jopaulmj
V.I.P.
Commented By jopaulmj on May 17, 2013 (12:52 am)
why this error showing in my site

Warning: Cannot modify header information - headers already sent by (output started at /home/admin/public_html/random.php:1)

I resolved this issue thanks
5 26Forum topics : 0Forum replies : 0Forum likes : 0
upl4you
upl4you
Members
Commented By upl4you on July 14, 2013 (8:30 am)
thank you nice template
N/A 10Forum topics : 1Forum replies : 4Forum likes : 0
Ammir
Ammir
Members
Commented By Ammir on October 13, 2013 (2:21 am)
need for version 10 please ?
N/A 38Forum topics : 4Forum replies : 43Forum likes : 0
sawanbanna
sawanbanna
DLE TEAM
Commented By sawanbanna on October 13, 2013 (4:41 pm)
it's working with 10.0, it's already tested
31 409Forum topics : 23Forum replies : 979Forum likes : 150

« Live as if you were to die tomorrow. Learn as if you were to live forever! »
artgri12
artgri12
Members
Commented By artgri12 on December 11, 2013 (5:45 pm)
Warning: Cannot modify header information - headers already sent by (output started at /home/admin/public_html/random.php:1)

How can Д° resolve this problem?
N/A 2Forum topics : 0Forum replies : 0Forum likes : 0
DLEStarter
DLEStarter
DLE TEAM
Commented By DLEStarter on December 11, 2013 (8:30 pm)
the error indicated that you already use this same database query on your site so this module acquiring the same query to your database...this means you have 2 rand() queries in your site..so you should disable or remove on of them.
29 225Forum topics : 9Forum replies : 558Forum likes : 116
artgri12
artgri12
Members
Commented By artgri12 on December 13, 2013 (8:25 am)
Quote: DLEStarter
the error indicated that you already use this same database query on your site so this module acquiring the same query to your database...this means you have 2 rand() queries in your site..so you should disable or remove on of them.


Hi, thanks for reply, Д° didn't undarstand exactly what to do (half site is deleted, no result :), maybe this code is wrong: header('Location: '.$full_story.'');
N/A 2Forum topics : 0Forum replies : 0Forum likes : 0
DLEStarter
DLEStarter
DLE TEAM
Commented By DLEStarter on December 13, 2013 (4:26 pm)
no, it's not wrong and I just tested it twice with 9.8 and 10.0 both working just fine without any errors and no issue.
29 225Forum topics : 9Forum replies : 558Forum likes : 116
k0ss.
k0ss.
Members
Commented By k0ss. on February 7, 2014 (9:18 am)
dosen't work if i have categories with subcategories.
For example i have:
------

-----
It work's with 4/5/x , but with 3 no... :(

3->category
4/5/x->subcategory

Help?
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
yorismith
yorismith
Moderators
Commented By yorismith on February 8, 2014 (1:09 am)
k0ss, category ID is explicit...if you add category id=3 then want all posts in 4,5,x to show in 3...in that case you are from different point of view because sub-category will not show up in main category like in DLE script setting...ID=3 means "3" not 4,5,x...so if you don't have any articles posted in "Movies" because a;; articles are posted in Action, Animation and ID:X ...this means you don't have anything damn thing in "Movies" got it? why it's difficult to understand simple logic...?
32 288Forum topics : 2Forum replies : 699Forum likes : 117

- Nothing comes free...
- A generous heart, kind speech, and compassion are the things which renew humanity
ShutteR
ShutteR
Members
Commented By ShutteR on November 15, 2014 (4:14 am)
403 Forbidden.

Why?
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
yorismith
yorismith
Moderators
Commented By yorismith on November 16, 2014 (11:18 am)
Quote: ShutteR
403 Forbidden.

Why?

most likely you have problem with htaccess, so make sure you install step #2
32 288Forum topics : 2Forum replies : 699Forum likes : 117

- Nothing comes free...
- A generous heart, kind speech, and compassion are the things which renew humanity
shadowless
shadowless
Members
Commented By shadowless on March 26, 2016 (1:48 pm)
Quote: jopaulmj
why this error showing in my site

Warning: Cannot modify header information - headers already sent by (output started at /home/admin/public_html/random.php:1)

I resolved this issue thanks





how?
N/A 4Forum topics : 0Forum replies : 0Forum likes : 0
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.