|
|
|
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo
|
|
|
Moved by: lui 12-01-2010, 17:07 |
Nazwa tematu jako link |
| Author |
Message |
~Matteo


Helped: 1454 times Posts: 3072 Location: Cieszyn
|
|
|
|
 |
Logan4

Helped: 113 times Posts: 525 Location: Warszawa
|
Posted: 09-08-2010, 22:38
Forum address: http://www.arbuzownia.pl |
|
|
Przy wyszukiwaniu wykrzacza bład
| Code: | SQL Error : 1054 Unknown column 'p.post_text' in 'field list'
|
Odpowiada za niego ten fragment instruckji.
Jeśli tego punktu nei wykonujemy to przy wyszukiwaniu link do tematu który jest linkiem nie działa.
Próbowałem już na kilka sposobów ale nie poptrafie tego zrobić.
| Quote: |
#
#-----[ FIND ]---------------------------------------------------
#
$sql = "SELECT t.* $post_text_select, f.forum_id, f.forum_name, f.forum_color, f.forum_moderate, u.username, u.user_id, u.user_level, u.user_jr, u2.username as user2, u2.user_id as id2, u2.user_level as user_level2, u2.user_jr as user_jr2, p.post_username, p2.post_username AS post_username2, p2.post_time, ph.post_id as post_helped, p.post_approve, p2.post_approve as post_approve2
#
#-----[ REPLACE WITH ]---------------------------------------------------
#
$sql = "SELECT t.* $post_text_select, f.forum_id, f.forum_name, f.forum_color, f.forum_moderate, u.username, u.user_id, u.user_level, u.user_jr, u2.username as user2, u2.user_id as id2, u2.user_level as user_level2, u2.user_jr as user_jr2, p.post_username, p2.post_username AS post_username2, p2.post_time, pt.post_text, ph.post_id as post_helped, p.post_approve, p2.post_approve as post_approve2 |
[ Dodano: 10-08-2010, 02:17 ]
Edytowac nie moge, ale instrukcja jest niekompletna. Zamiast replace w serach.php lepiej dac taka skoro to mozna zrobic przez after add.
Mianowicie:
| Code: | #
#-----[ OPEN ]------------------------------------------
#
search.php
#
#-----[ FIND ]---------------------------------------------------
#
$sql = "SELECT t.*, f.forum_id, f.forum_name, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2
WHERE t.topic_id IN ($search_results)
AND t.topic_poster = u.user_id
AND f.forum_id = t.forum_id
AND p.post_id = t.topic_first_post_id
AND p2.post_id = t.topic_last_post_id
AND u2.user_id = p2.poster_id";
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
p2.post_time
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------------
#
, pt.post_text
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
, " . USERS_TABLE . " u2
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------------
#
, " . POSTS_TEXT_TABLE . " pt
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
WHERE t.topic_id IN ($search_results)
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------------------------
#
AND pt.post_id = t.topic_first_post_id |
|
_________________ Odpłatnie wykonuje: Instalowanie skryptu, modów. Przenoszenie Baz Danych, naprawa polskich znaków |
|
|
|
 |
~Matteo


Helped: 1454 times Posts: 3072 Location: Cieszyn
|
Posted: 13-08-2010, 15:28
Forum address: - |
|
|
Przed chwilą zainstalowałem tego moda 2 razy.
Wszystko przebiegło prawidłowo.
W którymś miejscu robisz błąd. | Logan4 wrote: | | ale instrukcja jest niekompletna | Instrukcja jest w pełni kompletna. |
_________________ Nie wykonuję żadnych zleceń! | Nie pomagam warezom! | Pomagam tylko na forum. | Visca el Barça! |
|
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Add this topic to your bookmarks Printable version
|
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 Group | | Page generated in 0.18 second. SQL queries: 12 | |
 |
|