1. Hide v5.5 light edition version 2 (English)

Hide v5.5 light edition version 2 (English)

  |   9
Hide v5.5 light edition version 2 (English)

# Added function to hide text in the comments!
# Hiding the text depending on the number of comments and publications;
# When displaying the parameters of the Hide specifies the user login that set it ;
# Hidden content visible to the user who put Hide;
# The ability to customize styles to output messages to suit your needs (100% modulus "stereotyping") ;
# The module does not create any additional queries to the database ;
# All code written for the new, which excludes the possibility of the appearance of old bugs ;
Altered module: DroT
All rights are reserved, the author of the module Gauss :)

Using the module:

[hide=5,10]Hidden Text[/hide]

First is the number of news, in case this number is 5, then the number of comments on the example of the number 10!

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

+5

Comments 9

Gozan
Gozan
V.I.P.
Commented By Gozan on December 6, 2011 (10:59 am)
nice module thanks for great post
snegurka
33 132Forum topics : 20Forum replies : 88Forum likes : 7
sawanbanna
sawanbanna
DLE TEAM
Commented By sawanbanna on December 7, 2011 (2:53 am)
thanks man...good module... bravo
31 409Forum topics : 23Forum replies : 979Forum likes : 150

« Live as if you were to die tomorrow. Learn as if you were to live forever! »
Gozan
Gozan
V.I.P.
Commented By Gozan on December 9, 2011 (9:26 am)
i think after install your version is no need for this code in file

/template/{THEME}/hide/look.tpl


<div align="right" class="hide" >Hide Set: <a href="/user/{avtor}/" title="{avtor}">{avtor}</a></div>


you can remove it bravo
33 132Forum topics : 20Forum replies : 88Forum likes : 7
romeoluv56
Commented By romeoluv56 on December 9, 2011 (12:45 pm)
Quote: Gozan
i think after install your version is no need for this code in file

/template/{THEME}/hide/look.tpl


<div align="right" class="hide" >Hide Set: <a href="/user/{avtor}/" title="{avtor}">{avtor}</a></div>

you can remove it


This is just to notify the members, who set the Hide.
there is no issue keeping or removing. shy
Gozan
Gozan
V.I.P.
Commented By Gozan on April 3, 2012 (10:17 am)
is compatible with 9.5

i can`t find codes in steps 4,9

in File engine/modules/show.full.php:
while ( $row = $db->get_row( $sql_result ) ) {


in File engine/classes/comments.class.php:
while ( $row = $this->db->get_row( $sql_result ) ) {


finally, this module not working after install all steps except 4,9 instruction.

how to make it works in 9.5 ?
33 132Forum topics : 20Forum replies : 88Forum likes : 7
spamhater
spamhater
DLE TEAM
Commented By spamhater on April 3, 2012 (2:14 pm)
For 9.5...

step #4 find: (engine/modules/show.full.php)
$options = news_permission( $row['access'] );

Add above
        $dle_hide = new dle_hide;
        $row['short_story']=$dle_hide->parse($row['short_story'],$row[
;'autor']); $row['full_story']=$dle_hide->parse($row['full_story'],$row[&
#39;autor']);

Step #9 Find: (engine/classes/comments.class.php)
if ( count( $rows ) ) foreach ( $rows as $row ) {

Add below:
            $dle_hide = new dle_hide(array('area'=>'comments'));
            $row['text']=$dle_hide->parse($row['text'], strip_tags(stripslashes($row['name'])));
            unset($dle_hide);

Also skip step #11
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.
Gozan
Gozan
V.I.P.
Commented By Gozan on April 3, 2012 (3:04 pm)
spamhater,
it work`s now... u my hero superman, thanks snegurka
33 132Forum topics : 20Forum replies : 88Forum likes : 7
Miskov
Miskov
Members
Commented By Miskov on April 20, 2012 (1:27 pm)
i have a problem with step #1
i cannt find it (engine/modules/functions.php)
function formatsize($file_size) {


i use dle 9.5
N/A 3Forum topics : 0Forum replies : 0Forum likes : 0
sawanbanna
sawanbanna
DLE TEAM
Commented By sawanbanna on April 20, 2012 (4:03 pm)
Quote: Miskov
i have a problem with step #1
i cannt find it (engine/modules/functions.php)

are you kidding man? I checked 8.0,8.2,8.3,8.5,9.0,9.2,9.3,9.4,9.5 they are all the same and exactly the word:
function formatsize($file_size) {

unless you modified the functions.php before...in that case no one can help you.
31 409Forum topics : 23Forum replies : 979Forum likes : 150

« Live as if you were to die tomorrow. Learn as if you were to live forever! »
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.