1. Enable Posting Articles for Guests

Enable Posting Articles for Guests

  |   12
Enable  Posting Articles for Guests

1. open engine/inc/usergroup.php and search:
if( $id == 5 ) $gastgroup = "disabled";


Replace with:

#if( $id == 5 ) $gastgroup = "disabled";


2. Open engine/modules/addnews.php

and Remove them all there somewhere 3 pieces.

$is_logged


In some cases it is necessary to remove

$is_logged and


afterthis User group settings will enable in setting disable :
Enable automatic spam blocking programs


the last time we put NO in the "Enable automatic spam blocking programs,"
An example can be seen when adding a site once proposed a solution for
downloading files to news Group guests Replace AND and OR
3. Search in same file:
if ($is_logged AND $user_group[$member_id['user_group']]['allow_image_upload'] OR ($is_logged AND $member_id['user_group'] == 1))


Replace with:

if ($is_logged OR $user_group[$member_id['user_group']]['allow_image_upload'] OR ($is_logged AND $member_id['user_group'] == 1))


4. Open file engine/images.php search the line:

if (! $is_logged) {

die ( "<br><br><br><br><center>$lang[err_notlogged]</center>" );

}
if (! $user_group[$member_id['user_group']]['allow_image_upload'] and $member_id['user_group'] != 1) {

die ( "<br><br><br><br><center>$lang[err_noupload]</center>" );

}


Replace with:

/*if (! $is_logged) {

die ( "<br><br><br><br><center>$lang[err_notlogged]</center>" );

}

if (! $user_group[$member_id['user_group']]['allow_image_upload'] and $member_id['user_group'] != 1) {

die ( "<br><br><br><br><center>$lang[err_noupload]</center>" );

}*/

5. Open engine/inc/files.php and search:

if( !$user_group[$member_id['user_group']]['allow_image_upload'] OR ($member_id['user_group'] != 1 AND $action != "quick") ) {
msg( "error", $lang['index_denied'], $lang['index_denied'] );
}


Replace with:

/*if( !$user_group[$member_id['user_group']]['allow_image_upload'] OR ($member_id['user_group'] != 1 AND $action != "quick") ) {
msg( "error", $lang['index_denied'], $lang['index_denied'] );
}*/



In the end, all the groups will get access to download
files to the site at the time of adding news.
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+6

Comments 12

nellyville
Commented By nellyville on July 6, 2013 (2:39 am)
This hack not work for me. Did u test this hack or not, can u provide a demo site?
31 42Forum topics : 9Forum replies : 34Forum likes : 1

Check my website http://www.Jocuriarena.com
Quarantine
Quarantine
Moderators
Commented By Quarantine on July 6, 2013 (3:21 pm)
which version of dle u r using this screenshot taken from my own test site using dle 10.0 utf8
32 27Forum topics : 21Forum replies : 163Forum likes : 15

Kathryn
Kathryn
V.I.P.
Commented By Kathryn on July 6, 2013 (5:34 pm)
May I ask the difference between 9.8 and DLE10 in setting this up?
15 47Forum topics : 109Forum replies : 481Forum likes : 6
nellyville
Commented By nellyville on July 7, 2013 (4:57 am)
Quote: Maxjimme
which version of dle u r using this screenshot taken from my own test site using dle 10.0 utf8

I tried on DLE 9.8....
31 42Forum topics : 9Forum replies : 34Forum likes : 1

Check my website http://www.Jocuriarena.com
spamhater
spamhater
DLE TEAM
Commented By spamhater on July 7, 2013 (3:08 pm)
tested with 9.6,9.7,9.8 and 10.0, working fine...

Here is 10.0 test:
Information!You must register before you can view this text. Please register or Login
24 386Forum topics : 12Forum replies : 950Forum likes : 130

Love is a symbol of eternity. It wipes out all sense of time, destroying all memory of a beginning and all fear of an end!
Great achievement is usually born of great sacrifice, and is never the result of selfishness...Without continual growth and progress, such words as improvement, achievement, and success have no meaning.
Kathryn
Kathryn
V.I.P.
Commented By Kathryn on July 9, 2013 (12:53 pm)
Okay I would like to thank you spamhater for pointing that out but now thanks to you I am going to work on this today for the DLE 10 you helped me with.. prey

Okay I am having a problem locating this instruction in particular:
Open engine/inc/files.php and search:

See I have been searching for the file and am unable to locate it... Please advise. Yes I am not good at this ...but I figure if I can build a site with CSS easily then why am I having these problems LOL
15 47Forum topics : 109Forum replies : 481Forum likes : 6
spamhater
spamhater
DLE TEAM
Commented By spamhater on July 9, 2013 (7:16 pm)
This will make it easy for those who get confuse with instructions or can't find in instruction

1. Open engine/inc/usergroup.php
Find: (About line #372)
if( $id == 5 ) $gastgroup = "disabled";

Replace with: (usually just add comment sign # at the beginning of the line)
#if( $id == 5 ) $gastgroup = "disabled";

2. Open engine/modules/addnews.php
Find: (about line #36)
if ($is_logged AND $config['news_restricted'] AND (($_TIME - $member_id['reg_date'])

Replace with:
if ($config['news_restricted'] AND (($_TIME - $member_id['reg_date'])

Find: (about line #71)
if( isset( $_REQUEST['mod'] ) and $_REQUEST['mod'] == "addnews" and $is_logged and $user_group[$member_id['user_group']]['allow_adds'] )

Replace with:
if( isset( $_REQUEST['mod'] ) and $_REQUEST['mod'] == "addnews" and $user_group[$member_id['user_group']]['allow_adds'] )

Find: (about line #448)
} elseif( $is_logged and $user_group[$member_id['user_group']]['allow_adds'] ) {

Replace with:
} elseif( $user_group[$member_id['user_group']]['allow_adds'] ) {

Find: (About line #578) (This line is optional and not require because the setting is for allow to add custom SEO URL but if you allow them to add news why not allow them to add their own URL right?)
if( $is_logged and $member_id['user_group'] < 3 ) {

Replace with:
if( $member_id['user_group'] < 3 ) {

After this, all you have to do is go to "User Group Manager" to set Guest group to allow add news...

That's all you need for 10.0, many options are merge into different options in settings so you will not longer find any of them, and don't bother to find the file "engine/images.php", the last DLE version that using this file was 9.5, in 9.6 is no longer existing, so you can't find it, even if you find it then it means your DLE version was upgraded from 9.5 and older and it's no longer used by script, in another word, if you run AntiVirus module in DLE admin, it will treat this file and "thread" to DLE script...so what I am trying to tell you folks is "skip" whatever steps don't exist...the instruction was for 8.x and up to 9.5...

Also the option "allow_image_upload" in step #5 is long gone, no longer existing since 9.6, it's using option called "allow_files" now...we are living in new millennium now, not DLE 8.x era...

What I don't understand is everyone trying to fight spammers but want guest to add news...that don't make sense bazar
24 386Forum topics : 12Forum replies : 950Forum likes : 130

Love is a symbol of eternity. It wipes out all sense of time, destroying all memory of a beginning and all fear of an end!
Great achievement is usually born of great sacrifice, and is never the result of selfishness...Without continual growth and progress, such words as improvement, achievement, and success have no meaning.
Kathryn
Kathryn
V.I.P.
Commented By Kathryn on July 9, 2013 (11:29 pm)
LOL I took verbatim that this mod is for 9X and 10X as he listed it. Well that makes sense and it is not me.
As far as your statement about fighting spammers, I think things are a lot better on my end since I set it up to review the posts before posting. I must admit I am having second thoughts though.. laughing
Thank you for the easy to follow guide Spamhater.

Now the only problem I have is with the template, The upload button does not show to guests still why is that do I need to make a template change somewhere and add it?

15 47Forum topics : 109Forum replies : 481Forum likes : 6
spamhater
spamhater
DLE TEAM
Commented By spamhater on July 10, 2013 (10:12 pm)
Now that question is like walking in cemetery (not park) because have to keep track on those changes that moved to files.php and upload.class.php and usergroups.php...so, you will need expert to help you on that.. stena
24 386Forum topics : 12Forum replies : 950Forum likes : 130

Love is a symbol of eternity. It wipes out all sense of time, destroying all memory of a beginning and all fear of an end!
Great achievement is usually born of great sacrifice, and is never the result of selfishness...Without continual growth and progress, such words as improvement, achievement, and success have no meaning.
Kathryn
Kathryn
V.I.P.
Commented By Kathryn on July 11, 2013 (11:14 am)
Ahhh forget it then burumburum I will just leave things as they are.. I just don't know enough to do this mod .. it is not anything as it was originally posted then..
No problem.. and thank you

Has anyone had any luck with this for DLE v.10? Has anyone tried it? I am just curious .. Thank you
15 47Forum topics : 109Forum replies : 481Forum likes : 6
Quarantine
Quarantine
Moderators
Commented By Quarantine on July 20, 2013 (6:43 am)
in dle 10.0 works but one problem and that is no upload option for guests
32 27Forum topics : 21Forum replies : 163Forum likes : 15

Zonas
Zonas
Members
Commented By Zonas on January 10, 2014 (6:42 am)
To ensure a safe return : engine/inc/usergroup.php
if( $id == 5 ) $gastgroup = "disabled";

Go to line 566 : remote {$gastgroup}
N/A 1Forum 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.