Hi,
I would like to spend the written contributions from the Forum in the 4images user profile.
The users in the Forum and 4images always the same ID
--
Hallo,
ich würde gerne die geschrieben Beiträge aus dem Forum in dem 4images-User-Profil ausgeben.
Die User haben in 4images als auch im Forum immer die gleiche ID
Beide Systeme (4images) und das WBB 3.1.4 liegen in der gleichen DB
member.php
Alles anzeigen
and
in member_profile.html
{wbb_post}
But that does not work. Did I miss something?
Aber das funktioniert nicht. Habe ich etwas übersehen?
This Works:
But is this Correct?
Edit 2:
All dont work, and this dont work too
With this code, I spent every user the same ...
As I said, that is USER ID in the Forum and 4images the same.
Dont work:
Dont work
Dont work
.... i dont no ...
I would like to spend the written contributions from the Forum in the 4images user profile.
The users in the Forum and 4images always the same ID
--
Hallo,
ich würde gerne die geschrieben Beiträge aus dem Forum in dem 4images-User-Profil ausgeben.
Die User haben in 4images als auch im Forum immer die gleiche ID
Beide Systeme (4images) und das WBB 3.1.4 liegen in der gleichen DB
member.php
Quellcode
- //-----------------------------------------------------
- //--- Show Profile ------------------------------------
- //-----------------------------------------------------
- // WBB Datenbank auslesen
- $sql = "SELECT a.userID, a.posts
- FROM ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = c.user_id)
- LEFT JOIN wbb1_1_user a ON (a.userID = ".get_user_table_field("u.", "user_id").")
- WHERE c.user_id = $user_id
- ORDER BY c.user_name ASC";
- $result = $site_db->query($sql);
and
in member_profile.html
{wbb_post}
But that does not work. Did I miss something?
Aber das funktioniert nicht. Habe ich etwas übersehen?
Quellcode
- DB Error: Bad SQL Query: SELECT a.userID, a.posts FROM 4images_users u ON (u.user_id = c.user_id) LEFT JOIN wbb1_1_user a ON (a.userID = u.user_id) WHERE c.user_id = ORDER BY c.user_name ASC
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON (u.user_id = c.user_id) LEFT JOIN wbb1_1_user a ON (a.userID = u.us' at line 2
This Works:
But is this Correct?
Edit 2:
All dont work, and this dont work too
With this code, I spent every user the same ...
As I said, that is USER ID in the Forum and 4images the same.
Dont work:
Dont work
Dont work
.... i dont no ...
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Sumale.nin ()