Portal - Custom Addres w PA ustawień portalu
thunder - 09-07-2005, 11:32 Temat postu: Custom Addres w PA ustawień portalu Standardowo jest 8 pol do wpisania adresów na portalu do menu chcialbym je poszerzyć o kolejne 5 gdzie to moge zrobic. Bede wdzieczny za instruktaż.
Sylwia - 09-07-2005, 18:14
No przeciesz możesz cos takiego zrobić w którymś z menu albo w modułach...
Dlaczego Wy odrazu chcecie grzebać w kodzie?
Pozdrawiam
thunder - 09-07-2005, 19:02
ja mowie o czym innym ty mowisz znowu o czym innym przeczytaj jeszcze raz moj roblem i wtedy odpisz. Pozdrawiam.
They - 09-07-2005, 20:19
usuniete
Sylwia - 09-07-2005, 21:38
thunder, nie lubie takiego tonu odpowiedzi... Gdybyś się zastanowił to naparwdę mógłbyś ten sam efekt uzyskać przy wykorzystaniu jednego z dodatkowych menu lub modułów.
thunder - 10-07-2005, 11:26
ale mnie wlasnie nie chodzi o takie obejscie bezsensowne potrzebuje modulow i dodatkowych menu do czego innego ja potrzebuje dodatkowych pól stad moj problem
They - 14-07-2005, 21:25
aby dodać 5 pól nazwy i 5 pól adresu w PA -> Ogólne -> Ustawienia portalu to:
portal.php
znajdź:
Kod: | $custom_links8 = ($portal_config['custom_desc8'] && $portal_config['custom_address8']) ? '<a href="' . $portal_config['custom_address8'] . '" class="mainmenu">' . $portal_config['custom_desc8'] . '</a><br />' : ''; |
wklej następny:
Kod: | $custom_links9 = ($portal_config['custom_desc9'] && $portal_config['custom_address9']) ? '<a href="' . $portal_config['custom_address9'] . '" class="mainmenu">' . $portal_config['custom_desc9'] . '</a><br />' : '';
$custom_links10 = ($portal_config['custom_desc10'] && $portal_config['custom_address10']) ? '<a href="' . $portal_config['custom_address10'] . '" class="mainmenu">' . $portal_config['custom_desc10'] . '</a><br />' : '';
$custom_links11 = ($portal_config['custom_desc11'] && $portal_config['custom_address11']) ? '<a href="' . $portal_config['custom_address11'] . '" class="mainmenu">' . $portal_config['custom_desc11'] . '</a><br />' : '';
$custom_links12 = ($portal_config['custom_desc12'] && $portal_config['custom_address12']) ? '<a href="' . $portal_config['custom_address12'] . '" class="mainmenu">' . $portal_config['custom_desc12'] . '</a><br />' : '';
$custom_links13 = ($portal_config['custom_desc13'] && $portal_config['custom_address13']) ? '<a href="' . $portal_config['custom_address13'] . '" class="mainmenu">' . $portal_config['custom_desc13'] . '</a><br />' : ''; |
znajdź w linii:
wklej następny w linii:
Kod: | $custom_links9 . $custom_links10 . $custom_links11 . $custom_links12 . $custom_links13 . |
admin/admin_portal.php
znajdź:
Kod: | "CUSTOM_DESC8" => $new['custom_desc8'], |
wklej następny:
Kod: | "CUSTOM_DESC9" => $new['custom_desc9'],
"CUSTOM_DESC10" => $new['custom_desc10'],
"CUSTOM_DESC11" => $new['custom_desc11'],
"CUSTOM_DESC12" => $new['custom_desc12'],
"CUSTOM_DESC13" => $new['custom_desc13'], |
znajdź:
Kod: | "CUSTOM_ADDRESS8" => $new['custom_address8'], |
wklej następny:
Kod: | "CUSTOM_ADDRESS9" => $new['custom_address9'], "CUSTOM_ADDRESS10" => $new['custom_address10'], "CUSTOM_ADDRESS11" => $new['custom_address11'], "CUSTOM_ADDRESS12" => $new['custom_address12'], "CUSTOM_ADDRESS13" => $new['custom_address13'], |
znajdź (drugi i taki sam):
Kod: | "CUSTOM_DESC8" => $new['custom_desc8'], |
wklej następny:
Kod: | "CUSTOM_DESC9" => $new['custom_desc9'],
"CUSTOM_DESC10" => $new['custom_desc10'],
"CUSTOM_DESC11" => $new['custom_desc11'],
"CUSTOM_DESC12" => $new['custom_desc12'],
"CUSTOM_DESC13" => $new['custom_desc13'], |
znajdź (drugi i taki sam):
Kod: | "CUSTOM_ADDRESS8" => $new['custom_address8'], |
wklej następny:
Kod: | "CUSTOM_ADDRESS9" => $new['custom_address9'], "CUSTOM_ADDRESS10" => $new['custom_address10'], "CUSTOM_ADDRESS11" => $new['custom_address11'], "CUSTOM_ADDRESS12" => $new['custom_address12'], "CUSTOM_ADDRESS13" => $new['custom_address13'], |
templates/TWÓJ_STYL/admin/portal_config_body.tpl
znajdź:
Kod: | <tr>
<td class="row1">{L_CUSTOM_DESC} 8 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_desc8" size="20" maxlength="90" value="{CUSTOM_DESC8}" /></td>
<td class="row2">{L_CUSTOM_ADDRESS} 8 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_address8" size="20" maxlength="90" value="{CUSTOM_ADDRESS8}" /></td>
</tr> |
wklej następny:
Kod: |
<tr>
<td class="row1">{L_CUSTOM_DESC} 9 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_desc9" size="20" maxlength="90" value="{CUSTOM_DESC9}" /></td>
<td class="row2">{L_CUSTOM_ADDRESS} 9 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_address9" size="20" maxlength="90" value="{CUSTOM_ADDRESS9}" /></td>
</tr>
<tr>
<td class="row1">{L_CUSTOM_DESC} 10 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_desc10" size="20" maxlength="90" value="{CUSTOM_DESC10}" /></td>
<td class="row2">{L_CUSTOM_ADDRESS} 10 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_address10" size="20" maxlength="90" value="{CUSTOM_ADDRESS10}" /></td>
</tr>
<tr>
<td class="row1">{L_CUSTOM_DESC} 11 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_desc11" size="20" maxlength="90" value="{CUSTOM_DESC11}" /></td>
<td class="row2">{L_CUSTOM_ADDRESS} 11 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_address11" size="20" maxlength="90" value="{CUSTOM_ADDRESS11}" /></td>
</tr>
<tr>
<td class="row1">{L_CUSTOM_DESC} 12 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_desc12" size="20" maxlength="90" value="{CUSTOM_DESC12}" /></td>
<td class="row2">{L_CUSTOM_ADDRESS} 12 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_address12" size="20" maxlength="90" value="{CUSTOM_ADDRESS12}" /></td>
</tr>
<tr>
<td class="row1">{L_CUSTOM_DESC} 13 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_desc13" size="20" maxlength="90" value="{CUSTOM_DESC13}" /></td>
<td class="row2">{L_CUSTOM_ADDRESS} 13 <input type="text" class="post2" onFocus="Active(this)" onBlur="NotActive(this)" name="custom_address13" size="20" maxlength="90" value="{CUSTOM_ADDRESS13}" /></td>
</tr> |
I jeszcze:
Dodaj zapytania SQL w bazie danych phpmyadmin :
Kod: | INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('custom_desc9', '');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('custom_address9', '');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('custom_desc10', 'All Deaf');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('custom_address10', 'http://www.alldeaf.pl');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('custom_desc11', '');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('custom_address11', '');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('custom_desc12', '');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('custom_address12', '');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('custom_desc13', '');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('custom_address13', ''); |
The End.
thunder - 14-07-2005, 21:51
Serdeczne dzięki THEY wielkie piwo dla Ciebie : ). Pozdrawiam.
elmotron - 27-07-2005, 15:05
Troche odswieże temat i zadam pytanie z innej beczki
Jak można zmienić kolejność tych pól, a dokładniej linków standardowych względem tych dodatkowych
Standardowo wygląda to tak:
Cytat: |
1
2
3
4
Forum
Strona gówna (Portal)
Użytkownicy
Szukaj
Grupy
Profil
Zaloguj/Wyloguj/Rejestracja
5
6
7
8
|
Ma ktos jakiś pomysł?
Sylwia - 27-07-2005, 15:10
elmotron, wszystko ustawiasz w panelu admina-->ustawienia portlu.
elmotron - 27-07-2005, 15:15
Ale w PA moge jedynie ustawic które linki mają być a które nie (ze standardowych) z dodatkowych to jak kto chce.
A mi chodzi ze by zmienic kolejność standardowych wzgledem dodatkowych, a taiej mozliwosci w PA nie widze
np.
LINKI STANDARDOWE (na górze)
linki 1-8 (na dole)
normalnie wyglada to tak jak napisalem wyzej.
|
|
|