To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

English version - Need to add login to a custom portal

petekin74 - 23-05-2007, 21:12
Temat postu: Need to add login to a custom portal
Hello, I wrote a custom portal for my prz forum. I was wondering if somebody could show me how to right a login for the portal. I would prefer that all the login code resides in my portal.php code and without using any tpl files.

Any help would be great. Thanks

JA$ON - 23-05-2007, 21:42

petekin74 napisał/a:
and without using any tpl files

what?? i dont know if this is even possible...
maybe you should take a closer look at the login_menu.tpl
(.../templates/subsilver/portal_modules/login_menu.tpl)
and check the portal.php for the lines that refer to login_menu.tpl
you will definitely need both (the code from portal.php and from login_menu.tpl) and i think you also need some code defined in portal_data.php (.../includes/portal_data.php).

why did you create your own portal anyway instead of changeing the original portal? look at my portal please, you will not notice one little thing that is similar to the original portal but still it is completely build up on the original files.

petekin74 - 24-05-2007, 03:52

I started the portal from scratch because of a few things. I am trying to do my own php and I am a beginner. Also, I hate having ten thousand files just for 1 portal. Having the php output the html layout is very easy to do and gets rid of the need for the tpl files. have a look at my portal if you want. It is very clean yet displays everything that I want and it is all in 1 file.

http://portal.ateamclan.com

only thing that is missing is the login :/

JA$ON - 24-05-2007, 12:40

ive seen your portal and is nice and clean.
but the reason why the portal needs all of these .tpl files is not only because you can then switch all the modules on/off in admin panel, its also for security reasons.
creating your own portal from scratch that does not refer to .tpl files but to html coded files seems very unsecure to me. i dont know how good your coding is but you said you are a beginner so i think its very questionable.. :|
by the way, .tpl files are basicly written in html as well so its actually really easy to modify them if you know html.



Powered by phpBB modified by Przemo © 2003 phpBB Group