1. Add your site full URL to theme

Add your site full URL to theme

  |   5

I have been asked this question from a few people about this question, how would I add the full url of my website to the theme without having to input the whole http://www.mywebsite.com, because many of you are using SEO url user friendly, when you go to the links like



Then want to come back to : http://www.mywebsite.com/aboutus.html

but in your theme you only put :


so while you are in

It will take you to

What happen? you will get 404 error message...

Now what would you do to get the right url in your theme without having to input all this into your theme?

Here is simple hack for you....

Open index.php
$tpl->load_template ( 'main.tpl' );

Add this after (below):
$tpl->set( '{path}', $config['http_home_url'] );

Now you can use this code in your theme (main.tpl)

Make sure that you don't use / at the end of {path}
This is right tag

This is wrong

With above code it will get you full url to
{path}aboutme.html = http://www.mywebsite.com/aboutme.html

The code {path} will work only with main.tpl and all .tpl files that use {include} into main.tpl

That's all...I hope you like this trick....

Best of lucks to all DLE nulled fans...

If you like this...please rate it...

Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.



Comments 5

Commented By Gozan on November 12, 2011 (4:39 am)
nice tutorial,thanks mr.Tben
33 132Forum topics : 20Forum replies : 88Forum likes : 7
Commented By Gozan on March 22, 2012 (8:41 am)
in old URL DLE 9.2,
it was link auto characters to my language
old DLE 9.2

after upgrade to dle 9.5, the url stored like this i.e:
My Webpage
old links of articles is fine but any new articles stored like that
33 132Forum topics : 20Forum replies : 88Forum likes : 7
Commented By Gozan on April 2, 2012 (7:19 pm)
i wish u stand up strongly again mr.tben

i have another Q?

i have photo editor module from here
Module link

i want to change module path from




33 132Forum topics : 20Forum replies : 88Forum likes : 7
Commented By Gozan on April 3, 2012 (12:00 am)
i found tutorial about that writing by i386 umnik
Tut Link

http://website.com/index.php?do=photo_editor_online > Without using SEO
http://website.com/photoshop.html > with using SEO

create SEO by add this code:

RewriteRule ^photoshop.html$ index.php?do=photo_editor_online [L]

Now add the link in theme using this code:

<a href="/photoshop.html">online photoshop</a>

thanks 2much to i386

Good job princess lol
33 132Forum topics : 20Forum replies : 88Forum likes : 7
Commented By spamhater on April 3, 2012 (1:36 pm)
oh finally you have found the solution...nice 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.
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.