Hi there, I just want to know jow you can disable url rewriting from the index page ?
I have an alternative <body> which is displayed if you're not logged, that work but the problem is all the link, if if insert a register link for example, if i click on, that just keeping me on the same page !
But, on the first <body> (the original), all the link works ... though I work on index.tpl.php ...
after the <head></head>
{if isset($smarty.session.logged) && $smarty.session.logged===true}
original page
{else}
//alternative body
<body>
...
<a href="http://www.p2pmylife.com/user/menu_welcome.html" style="text-decoration:none;" >Pass Recover</a> | <a href="http://www.p2pmylife.com/user/menu_welcome.html" style="text-decoration:none;" >Register</a>
...
</body>
{/if}
Why the links dont work ... any ideas ?
Blog posts: 12
Added downloads: 2 Comments: 18 Forum posts: 573
I'm still not completely sure what you are trying to achieve, but you can redirect users using this PHP code: header ( 'location: http://diferior.com' );
die ();
If I click on, Iam redirected on the same, that dont call the page ... That's the problem since the beginning, so that's why I ask you for the manner to redirect and then insert links in the redirected page ...
Iam not really sure, but I think the mistake comes from the call of the /user/register.html page which is printed by the index.tpl.php page but the problem is the redirection I make in this page, and the page cant be displayed, it make a loop ! So I want to know how to display a page with a bypass of the index.tpl.php .?!
Blog posts: 12
Added downloads: 2 Comments: 18 Forum posts: 573
Sorry, I am still clueless on what you are trying to achieve. Can't you just simply insert the HTML into the file in static directory using a text editor?
I know im not very clear but i use a text editor yet, the problem is not here, well i'll come back to the beginning to make sure you've understand me !
I want to make a different index page on my website, not the usual main page by default on Diferior, I want a new page where you can just log into or register and that's all, if you try to go in other section unregistred you cant and you're redirected to this page ! That's just what i'm trying to do ! Now, you know what I mean ?
So, how can i do that ?
Blog posts: 12
Added downloads: 2 Comments: 18 Forum posts: 573
Add an aditional check to exec.php and if user is unregistered redirect to the static file. Make sure you allow unregistered users to access login and registration pages though.
Lots of women like which usually amount normally include a coach outlet online ,it provides coziness to many girls that don't even think it is a great bushel of great interest directly to them.The reputation of the coach outlet with the good old bag, was actually the original inspiration came from a softball glove, Cheap replica Coach Handbags features soft.Welcome to order Discount louis vuitton uk and lead a fashionable, luxury and elegant life from our Louis Vuitton Canada Outlet Store. Enjoy the shopping now here!louis vuitton Store Online Handbags can also bring great accuracy as well as practical applicability and fashionable.to obtain coach outlet online in Hainan is amongst the brand new darling from residential holiday makers.As long as you open our coach factory outlet webpage, you will view various Coach New Arrivals which are the most popular also the most fashionable in this year.coach outlet has a zippered closure and buckles for extra security. Shiny brass hardware, rounded leather handle, and an interior pocket. It also includes a limited edition Hawaii luggage tag and lock.Coach Madison Handbags and Coach Poppy Bags are viewed among probably the most newsworthy among the particular coach outlet store online so far.At louis vuitton sale,you will find Louis Vuitton Vernis Wallet uses Vernis leather lining instead of classic Monogram canvas, meanwhile creates another classic style with fashion.If you buy bags and purses of the latest new designs from the louis vuitton outlet now, you can enjoy special discounts. What else are you waiting for?Coach handbags and purses at the coach factory outlet with new designs make them have the most outstanding and eye-catching advantage among other brands goods.coach factory online is one of the most popular and successful leather brands in the U.S. market.Coach stands for the most-admired innovative style and conventions in American fashion.coach factory outlet offer excellent, elegant coach products in order to generate room for your new collections.They're purchased more quickly that you may at any time imagine.My friends bought a lot of coach items from the coach factory outlet online, including handbags, shoulder bags, sling bags and so on.Cheap louis vuitton uk wholesale offers a variety of options to satisfy your needs. Some new ones even has fashionable styles fold over flap to disguise the snap closure and a draw string is added for a convenient closure.If you want to catch up to the latest vogue, having louis vuitton Handbags of the latest styles can absolutely satisfy you.Just visit LV outlet webpage and select the most suitable products for yourself.Becoming a regular member of coach outlet online, you can even buy wholesale purses, handbags, leather wallets at preferential prices. Why not have a try?coach outlet handbags You can not just save your cash but also your time inside a convenient way to obtain the exact same bags product and do not be concerned the shippment of one's products.coach outlet store have Coach handbags,Coach Shoulder Bags,Coach Briefcases and so on,these bags are so perfectly reproduced,you won't even be able to tell the difference!Here you can find the latest products in different kinds of coach outlet store online making best materials.They are leisure practical products in the new generations.If you need to acquire the focus, you need to sustain the coach bags, which with stylish components that will immediately concoct you appreciably more attracting and outstanding.Do not miss the opportunity to get the Coach Outlet Coupons.coach outlet store spends more efforts on building their own brand.The reputation of the coach outlet with the good old bag, was actually the original inspiration came from a softball glove, Cheap replica Coach Handbags features soft.Here you can find the latest products in different kinds of coach outlet store online making best materials.They are leisure practical products in the new generations.Swarovski Earrings is one of the most popular Earrings styles, hermes birkin offer many advantages. The selection of Swarovski offers everything you've come to expect in a pair of Earrings and more.Most perple reckon that owning hermes bags from Outlet Store shopping is actually buying of the most useful bags on the planet.Aimengcrystal.com specializes in providing gucci uk jewelry, natural crystal jewelry and 925 sterling silver jewelry for many years.This unique pair of rhodium-plated hoop gucci uk sale features a dangling 3D Hello Kitty. With a moving head, she sparkles in a gradation of pink and white tones. Why not combine this eye-catching and modern design with the matching bracelet?Offering quality LV products with favorable prices, louis vuitton outlet store is at your service. Hurry up, or you can not seize the chance.These louis vuitton bags are sophisticated bags thanks to its beautiful Monogram canvas, leather trimmings and shiny golden brass pieces.
I have an alternative <body> which is displayed if you're not logged, that work but the problem is all the link, if if insert a register link for example, if i click on, that just keeping me on the same page !
But, on the first <body> (the original), all the link works ... though I work on index.tpl.php ...
after the <head></head> {if isset($smarty.session.logged) && $smarty.session.logged===true} original page {else} //alternative body <body> ... <a href="http://www.p2pmylife.com/user/menu_welcome.html" style="text-decoration:none;" >Pass Recover</a> | <a href="http://www.p2pmylife.com/user/menu_welcome.html" style="text-decoration:none;" >Register</a> ... </body> {/if}
Why the links dont work
Added downloads: 2
Comments: 18
Forum posts: 573
Yes , but how to redirect my visitors to this page instead of the index page ???
Added downloads: 2
Comments: 18
Forum posts: 573
header ( 'location: http://diferior.com' ); die ();
<a href="http://www.p2pmylife.com/user/register.html">register</a>
If I click on, Iam redirected on the same, that dont call the page ...
Iam not really sure, but I think the mistake comes from the call of the /user/register.html page which is printed by the index.tpl.php page but the problem is the redirection I make in this page, and the page cant be displayed, it make a loop ! So I want to know how to display a page with a bypass of the index.tpl.php .?!
Added downloads: 2
Comments: 18
Forum posts: 573
I want to make a different index page on my website, not the usual main page by default on Diferior, I want a new page where you can just log into or register and that's all, if you try to go in other section unregistred you cant and you're redirected to this page ! That's just what i'm trying to do !
So, how can i do that ?
Added downloads: 2
Comments: 18
Forum posts: 573
Make sure you allow unregistered users to access login and registration pages though.
# User logged? if ( isset ( $_SESSION [ 'logged' ] ) && $_SESSION [ 'logged' ] ) { }else{ ob_start (); $template -> display ( '../static/welcome.php' ); die (); }
But, now, what im supposed to do for the access of user/register and user/reminder pages, is it still in exec.php or is it away ?
Because the links still dont work ...
Thks
Added downloads: 2
Comments: 18
Forum posts: 573
Forum posts: 378
Forum posts: 307