Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Integracja portalu z forum phpbb3, Rejestracja i logowanie
SLaM
post
Post #1





Grupa: Zarejestrowani
Postów: 28
Pomógł: 0
Dołączył: 12.09.2003
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Witam, chce zintegrować proces rejestracji i logowania mojego portalu z forum - które mam zamiar zainstalować. Generalnie chodzi o to żeby użytkownik rejestrując się w portalu otrzymywał również konto na forum. Dane miały by być zapisywane w 2 tabelach (portalu i phpbb3).

Portal oparty jest na smartach, ale to kod źródłowy plików poniżej. Chodzi jeszcze o proces logowania, da się zrobić tak, żeby logując się w portalu automatycznie użytkownik był zalogowany na forum ? Bo chciał bym wywalić z szablonów phpbb logowanie i rejestracje, tak żeby można było się tylko zalogować i zarejestrować przez portal.

Proszę o pomoc, bo sam nie ogarniam takich spraw...

Źródła plików znajdują się w tym temacie na forum phpbb3:

http://phpbb3.pl/viewtopic.php?f=15&t=7826

Niestety tu na forum wywala mi komunikat że treść postu jest za długa i dlatego kod źródłowy plików na forum phpbb3.

Proszę o jakąś pomoc, bo nie wiem jak to ugryźć...
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
SLaM
post
Post #2





Grupa: Zarejestrowani
Postów: 28
Pomógł: 0
Dołączył: 12.09.2003
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


kartun11 dzięki za sugestie, tak też zrobiłem no i łap pochwale (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)

dostosowalem logowanie portalu do forum, na odwrot nie robie bo wywale logowanie forumowe... uzytkownik logujac sie przez portal dostaje ciacho portalowe i forumowe, jak sie wyloguje oba ciacha sa killowane i nastepuje zarowno po 1 stronie jak i po 2 wylogowanie z konta.
pozdrawiam.

pojawil sie kolejny problem na ktory nie moge wygooglowac rozwiazania ;/

moze ktos ma jakies pomysly, chodzi o przeniesienie uzytkownikow, hasel i maili z tabeli portalowej do tabeli forumowej:

  1. --
  2. -- Struktura tabeli dla `pm_users`
  3. --
  4.  
  5. CREATE TABLE `pm_users` (
  6. `id` int(5) NOT NULL AUTO_INCREMENT,
  7. `username` varchar(100) NOT NULL DEFAULT '',
  8. `password` varchar(100) NOT NULL DEFAULT '',
  9. `name` varchar(150) NOT NULL DEFAULT '',
  10. `gender` varchar(10) NOT NULL DEFAULT '',
  11. `country` varchar(50) NOT NULL DEFAULT '',
  12. `reg_ip` varchar(20) NOT NULL DEFAULT '',
  13. `reg_date` varchar(12) NOT NULL DEFAULT '',
  14. `last_signin` varchar(12) NOT NULL DEFAULT '',
  15. `email` varchar(150) NOT NULL DEFAULT '',
  16. `favorite` enum('0','1') NOT NULL DEFAULT '1',
  17. `power` enum('0','1','2') NOT NULL DEFAULT '0',
  18. `about` text NOT NULL,
  19. `avatar` varchar(255) NOT NULL DEFAULT 'no_avatar.gif',
  20. `activation_key` varchar(20) NOT NULL DEFAULT '',
  21. `new_password` varchar(32) NOT NULL DEFAULT '',
  22. PRIMARY KEY (`id`),
  23. UNIQUE KEY `username` (`username`)
  24. ) TYPE=MyISAM AUTO_INCREMENT=2430 ;
  25.  
  26. --
  27. -- Zrzut danych tabeli `pm_users`
  28. --
  29.  
  30. INSERT INTO `pm_users` VALUES (3, 'login', '6f552523775f396f1afcd50c4226b9ee', 'imie', 'male', '500', '87.206.52.191', '1223491518', '1229189853', 'mail@gmail.com', '1', '0', '', 'avatar893-3.jpg', '', '');


to wyzej przeniesc do:

  1. --
  2. -- Struktura tabeli dla `phpbb_users`
  3. --
  4.  
  5. CREATE TABLE `phpbb_users` (
  6. `user_id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT,
  7. `user_type` tinyint(2) NOT NULL DEFAULT '0',
  8. `group_id` mediumint(8) UNSIGNED NOT NULL DEFAULT '3',
  9. `user_permissions` mediumblob NOT NULL,
  10. `user_perm_from` mediumint(8) UNSIGNED NOT NULL DEFAULT '0',
  11. `user_ip` varchar(40) BINARY NOT NULL DEFAULT '',
  12. `user_regdate` int(11) UNSIGNED NOT NULL DEFAULT '0',
  13. `username` blob NOT NULL,
  14. `username_clean` blob NOT NULL,
  15. `user_password` varchar(120) BINARY NOT NULL DEFAULT '',
  16. `user_passchg` int(11) UNSIGNED NOT NULL DEFAULT '0',
  17. `user_pass_convert` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  18. `user_email` blob NOT NULL,
  19. `user_email_hash` bigint(20) NOT NULL DEFAULT '0',
  20. `user_birthday` varchar(10) BINARY NOT NULL DEFAULT '',
  21. `user_lastvisit` int(11) UNSIGNED NOT NULL DEFAULT '0',
  22. `user_lastmark` int(11) UNSIGNED NOT NULL DEFAULT '0',
  23. `user_lastpost_time` int(11) UNSIGNED NOT NULL DEFAULT '0',
  24. `user_lastpage` blob NOT NULL,
  25. `user_last_confirm_key` varchar(10) BINARY NOT NULL DEFAULT '',
  26. `user_last_search` int(11) UNSIGNED NOT NULL DEFAULT '0',
  27. `user_warnings` tinyint(4) NOT NULL DEFAULT '0',
  28. `user_last_warning` int(11) UNSIGNED NOT NULL DEFAULT '0',
  29. `user_login_attempts` tinyint(4) NOT NULL DEFAULT '0',
  30. `user_inactive_reason` tinyint(2) NOT NULL DEFAULT '0',
  31. `user_inactive_time` int(11) UNSIGNED NOT NULL DEFAULT '0',
  32. `user_posts` mediumint(8) UNSIGNED NOT NULL DEFAULT '0',
  33. `user_lang` varchar(30) BINARY NOT NULL DEFAULT '',
  34. `user_timezone` decimal(5,2) NOT NULL DEFAULT '0.00',
  35. `user_dst` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  36. `user_dateformat` varchar(90) BINARY NOT NULL DEFAULT 'd M Y H:i',
  37. `user_style` mediumint(8) UNSIGNED NOT NULL DEFAULT '0',
  38. `user_rank` mediumint(8) UNSIGNED NOT NULL DEFAULT '0',
  39. `user_colour` varchar(6) BINARY NOT NULL DEFAULT '',
  40. `user_new_privmsg` int(4) NOT NULL DEFAULT '0',
  41. `user_unread_privmsg` int(4) NOT NULL DEFAULT '0',
  42. `user_last_privmsg` int(11) UNSIGNED NOT NULL DEFAULT '0',
  43. `user_message_rules` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  44. `user_full_folder` int(11) NOT NULL DEFAULT '-3',
  45. `user_emailtime` int(11) UNSIGNED NOT NULL DEFAULT '0',
  46. `user_topic_show_days` smallint(4) UNSIGNED NOT NULL DEFAULT '0',
  47. `user_topic_sortby_type` char(1) BINARY NOT NULL DEFAULT 't',
  48. `user_topic_sortby_dir` char(1) BINARY NOT NULL DEFAULT 'd',
  49. `user_post_show_days` smallint(4) UNSIGNED NOT NULL DEFAULT '0',
  50. `user_post_sortby_type` char(1) BINARY NOT NULL DEFAULT 't',
  51. `user_post_sortby_dir` char(1) BINARY NOT NULL DEFAULT 'a',
  52. `user_notify` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  53. `user_notify_pm` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  54. `user_notify_type` tinyint(4) NOT NULL DEFAULT '0',
  55. `user_allow_pm` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  56. `user_allow_viewonline` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  57. `user_allow_viewemail` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  58. `user_allow_massemail` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  59. `user_options` int(11) UNSIGNED NOT NULL DEFAULT '895',
  60. `user_avatar` varchar(255) BINARY NOT NULL DEFAULT '',
  61. `user_avatar_type` tinyint(2) NOT NULL DEFAULT '0',
  62. `user_avatar_width` smallint(4) UNSIGNED NOT NULL DEFAULT '0',
  63. `user_avatar_height` smallint(4) UNSIGNED NOT NULL DEFAULT '0',
  64. `user_sig` mediumblob NOT NULL,
  65. `user_sig_bbcode_uid` varchar(8) BINARY NOT NULL DEFAULT '',
  66. `user_sig_bbcode_bitfield` varchar(255) BINARY NOT NULL DEFAULT '',
  67. `user_from` blob NOT NULL,
  68. `user_icq` varchar(15) BINARY NOT NULL DEFAULT '',
  69. `user_aim` blob NOT NULL,
  70. `user_yim` blob NOT NULL,
  71. `user_msnm` blob NOT NULL,
  72. `user_jabber` blob NOT NULL,
  73. `user_website` blob NOT NULL,
  74. `user_occ` blob NOT NULL,
  75. `user_interests` blob NOT NULL,
  76. `user_actkey` varchar(32) BINARY NOT NULL DEFAULT '',
  77. `user_newpasswd` varchar(120) BINARY NOT NULL DEFAULT '',
  78. `user_form_salt` varchar(96) BINARY NOT NULL DEFAULT '',
  79. PRIMARY KEY (`user_id`),
  80. UNIQUE KEY `username_clean` (`username_clean`(255)),
  81. KEY `user_birthday` (`user_birthday`),
  82. KEY `user_email_hash` (`user_email_hash`),
  83. KEY `user_type` (`user_type`)
  84. ) TYPE=MyISAM AUTO_INCREMENT=58 ;
  85.  
  86. --
  87. -- Zrzut danych tabeli `phpbb_users`
  88. --
  89.  
  90. INSERT INTO `phpbb_users` VALUES (8, 2, 6, '', 0, '', 1239190793, 0x457861626f74205b426f745d, 0x657861626f74205b626f745d, '', 1239190793, 0, '', 0, '', 0, 1239190793, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 0x706c, 0.00, 0, 0x44204d20642c205920673a692061, 1, 0, 0x394538444137, 0, 0, 0, 0, -3, 0, 0, 0x74, 0x64, 0, 0x74, 0x61, 0, 1, 0, 1, 1, 1, 0, 895, '', 0, 0, 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0x35666139373563323763626136643134);


moge liczyc na jakas wasza pomoc, bo 3000 userow "zakrzyczy" mnie ?

Ten post edytował SLaM 9.04.2009, 11:26:44
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 18.10.2025 - 10:29