1. corner banner module all dle

corner banner module all dle

  |   8
corner banner module all dle

corner banner module all dle


Corner banner for the site

Installation of banner on the server

download the file

Copy folder "sprava_baner" from archive to your server in a folder engine/modules

Open the file in a text editor index.php

Find:
require_once ROOT_DIR.'/engine/init.php';


insert below:
Information!You must register before you can view this text. Please register or Login


Find:
$tpl->set('{vote}', $tpl->result['vote']);

Add below:
Information!You must register before you can view this text. Please register or Login

Go to folder
engine/modules/sprava_baner/

Open file 1.js
change the link http://mmore.org.ua 2nd line
esel.ad_url = escape('<span style="color: #ff0000;">http://mmore.org.ua</span>'); 

Open main.tpl in your template,add in start
Information!You must register before you can view this text. Please register or Login

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

+6

Comments 8

Keymaster
Keymaster
V.I.P.
Commented By Keymaster on October 17, 2011 (2:00 am)

Works like a charm and you can use any custom made pic but it Slows the site way down on loading untill everyting is loaded but Great thanks for sharing

4 50Forum topics : 13Forum replies : 96Forum likes : 4

The Secret to life is to live life as if there is no tomorrow.
Quarantine
Quarantine
Moderators
Commented By Quarantine on December 3, 2011 (3:40 pm)
is this also work multipurpose and how to add more then one link
32 27Forum topics : 21Forum replies : 163Forum likes : 15

spamhater
spamhater
DLE TEAM
Commented By spamhater on December 3, 2011 (9:11 pm)
to add multiple banners, you should be able to do so simply copy, rename and paste the new tag for example...

1) copy and rename the file "sprava_baner.php" like sprava_baner2.php, sprava_baner3.php etc...
2) open those files and change the tag name like in the file "sprava_baner2.php" find:
create_cache("sprava_baner", $sprava_baner);

Replace with:
create_cache("sprava_baner2", $sprava_baner2);


2) copy and rename the 1.js like 2.js, 3.js etc...
Open those file and change the URL for each one...

3) follow the instruction in the installation provided by Gozan above, but add the actual new file and tags for example:
in the index.php add additional tag line
include ROOT_DIR.'/engine/modules/sprava_baner/sprava_baner2.php';

and
$tpl->set('{sprava_baner2}',$sprava_baner2);

in main.tpl add
{sprava_baner2}


Those are easy example...just let me know if it doesn't work...
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.
Quarantine
Quarantine
Moderators
Commented By Quarantine on December 8, 2011 (5:59 pm)
ok bro thats nice i will do that and hope this will work awsom
32 27Forum topics : 21Forum replies : 163Forum likes : 15

Pitiku
Pitiku
Members
Commented By Pitiku on February 4, 2013 (6:30 pm)
No work in dle 9.6 recourse
2 3Forum topics : 2Forum replies : 5Forum likes : 0
spamhater
spamhater
DLE TEAM
Commented By spamhater on February 4, 2013 (7:24 pm)
just tested it, working fine with 9.6
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.
Assass1NNN
Assass1NNN
Members
Commented By Assass1NNN on February 21, 2014 (12:48 am)
HTML; create_cache("sprava_baner", $sprava_baner); ?>
ERROR?
Id doesn't work dle 10.1 what
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
yorismith
yorismith
Moderators
Commented By yorismith on February 21, 2014 (3:26 pm)
Assass1NNN
I just checked, it's working with 10.1..question is what kind of server cache you use or which php version you use, the code might have problem with php 5.4 and 5.3 but will work 100% with 5.2 on 10.1, I don't check on php 5.3 and newer on any linux server but I tested on localhost on windows wamp server it works withe both 5.3 and 5.4
32 288Forum topics : 2Forum replies : 699Forum likes : 117

- Nothing comes free...
- A generous heart, kind speech, and compassion are the things which renew humanity
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.