phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

FAQFAQ - PIERWSZA POMOC!!  regulaminREGULAMIN  SzukajSZUKAJ  UżytkownicyUżytkownicy  GrupyGrupy  StatystykiStatystyki
RejestracjaRejestracja  ZalogujZaloguj  DownloadDownload  katalog Forów DyskusyjnychKatalog Forów   FAQ Video tutoriale

Poprzedni temat «» Następny temat
Need to add login to a custom portal
Autor Wiadomość
petekin74

Posty: 79
Wysłany: 23-05-2007, 21:12   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
 
     
Gadatliwa Kasia 

   
JA$ON

Posty: 116
Wysłany: 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.
_________________
Hey Gość, please take second to visit my Portal.
 
     
petekin74

Posty: 79
Wysłany: 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

Posty: 116
Wysłany: 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.
_________________
Hey Gość, please take second to visit my Portal.
 
     
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Możesz załączać pliki na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Kopiowanie wszelkich treści zawartych na forum, modyfikacji oraz instrukcji bez zgody administracji i autorów tematów/postów zabronione!

Powered by phpBB modified by Przemo © 2003 phpBB
Strona wygenerowana w 0,05 sekundy. Zapytań do SQL: 12
Polecane serwisy

Najlepsze oprogramowanie do prowadzenia sklepu internetowegoNajlepszy program do sklepu firmowany przez Przem'a

Sklep z gadżetami

Design Cart - Tworzenie sklepu internetowego

iRonin.IT

https://nabea.pl

• Zamów reklamę