121
Mods & Plugins (Releases & Support) / Re: Signature image v2.23
« on: July 20, 2009, 02:53:19 AM »
Thx a lot, I gues that has fixed it
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
hast du folgendes schon ausprobiert wennst den [MOD] Birthday Mod v1.0 im einsatz hastCode: [Select]$age = calc_age($user_row['birthday']);
, array($fsize, $far+12+strlen($show['total_users'])*($fsize+4))
in line 247, and now there are no errors in the server-logs any longer. Thx for it!jetzt wo du es sagst, aber was macht es da, oder wird jetzt schon über die funktions.php eine Tabelle erstelltWie gesagt, ICH hab ja nicht das Problem (denn ich habe die MOD noch nicht), meine Frage war ja nur, ob das Problem geklärt ist, weil ich die MOD installieren möchte.
schaue in deine Datenbank, ist sie da OK, wenn nicht erslle diese
ich glaube, die shoutbox müsste mal komplett neu updatet werden, verträgt sich nicht so richtig mit den neuen Versionen.
Bei der Gelegenheit, könnte das denn mit erweitert werden.
"shoutusr"=>$shouts[$i]['name'],
...danach das einfügen:"shoutdate"=>date('j.n./G:i', $shouts[$i]['date']),
Das "date"-Format kann natürlich individuell angepasst werden.im Moment ist mir nicht klar, wo das gespeichert werden soll, oder steht hier wie man die Tabelle 'users_viewprofile' anlegen soll
wenn man wüsste was diese enthalten soll, könnte man diese ja anlegen, dann würde es auch gespeichert
if (!function_exists('member_viewprofile_check_table')) {
function member_viewprofile_check_table() {
global $site_db, $table_prefix;
if (!defined('USERS_VIEWPROFILE_TABLE')) {
define('USERS_VIEWPROFILE_TABLE', $table_prefix . 'users_viewprofile');
}
$sql = "
CREATE TABLE IF NOT EXISTS " . USERS_VIEWPROFILE_TABLE . " (
field_id int(11) unsigned NOT NULL AUTO_INCREMENT,
user_id int(11) NOT NULL DEFAULT '0',
other_user_id int(11) NOT NULL DEFAULT '0',
view_date int(11) NOT NULL DEFAULT '0',
view_count int(11) NOT NULL DEFAULT '0',
PRIMARY KEY(field_id)
) TYPE=MyISAM;
";
$result = $site_db->query($sql);
}
}
if (!function_exists('member_viewprofile_check_user')) {
function member_viewprofile_check_user($user_id = 0, $other_user_id = 0, $user_level = GUEST) {
global $site_db;
$user_id = preg_replace("/[^0-9]+/i", "", $user_id);
$other_user_id = preg_replace("/[^0-9]+/i", "", $other_user_id);
$user_level = preg_replace("/[^0-9]+/i", "", $user_level);
if (empty($user_id) || empty($other_user_id) || $user_level == GUEST || $user_level == USER_AWAITING) {
return;
}
if ($user_id == $other_user_id) {
return;
}
$sql = "
SELECT uvp.user_id, uvp.other_user_id
FROM " . USERS_VIEWPROFILE_TABLE . " uvp
LEFT JOIN " . USERS_TABLE . " u ON (" . get_user_table_field("u.", "user_id") . " = uvp.user_id)
WHERE uvp.user_id = " . $user_id . " AND uvp.other_user_id = " . $other_user_id . " AND " . get_user_table_field("u.", "user_level") . " >= '" . USER . "'
";
$get_info = $site_db->query_firstrow($sql);
if (isset($get_info['user_id']) && $user_id == $get_info['user_id'] && isset($get_info['other_user_id']) && $other_user_id == $get_info['other_user_id']) {
$site_db->query("UPDATE " . USERS_VIEWPROFILE_TABLE . " SET view_count = view_count + 1, view_date = '" . time() . "' WHERE user_id = " . $user_id . " AND other_user_id = " . $other_user_id);
return $user_id;
return $other_user_id;
return $user_level;
} elseif (isset($get_info['user_id']) && $user_id != $get_info['user_id'] && isset($get_info['other_user_id']) && $other_user_id != $get_info['other_user_id']) {
$sql = "
INSERT INTO " . USERS_VIEWPROFILE_TABLE . "
(field_id, user_id, other_user_id, view_date, view_count)
VALUES(NULL, '" . $user_id . "', '" . $other_user_id . "', '" . time() . "', '1')
";
$result = $site_db->query($sql);
return $user_id;
return $other_user_id;
return $user_level;
} elseif (!$site_db->not_empty($sql)) {
$sql = "
INSERT INTO " . USERS_VIEWPROFILE_TABLE . "
(field_id, user_id, other_user_id, view_date, view_count)
VALUES(NULL, '" . $user_id . "', '" . $other_user_id . "', '" . time() . "', '1')
";
$result = $site_db->query($sql);
return $user_id;
return $other_user_id;
return $user_level;
}
}
}
Hallo ihr,
Wie bekomme ich denn in den Einträgen das Erstellungsdatum+ Uhrzeit rein (wie im Admin)
Habe schon gesucht, ob das schon besprochen wurde, konnte aber dazu nichts finden.
lieben gruss Harald
Kann da niemand weiterhelfen?
Edit://
Hat das niemand eingebaut?
Also der Einbau klappte wunderbar, die Tabellen sind auch da, aber warum wird nichts gespeichert?
Bei mir steht immer, dass niemand mein Profil angesehen hat!
Edit//
Help me , Help Me
Bitte um Hilfe. Alles klappt soweit, aber angezeigt wird mir nichts!
Hi Fat Bastard,
I was looking for the same option to add some extra fields for my categories.
Works well if you change the code for the new fields in all the needed files:
categories.php
global.php
admin/categories.php
includes/functions.php
Then {cat_type} and {cat_price} will show.
Loet
There is additional_user and additional_image, how difficult is it to add an additional_category
functionality?
e.g. in addition to description some other fields, these should also be searchable.
Problem is: anything that isn't just an additional text field to 4images_images seems hard to add.
A configurable usr/cat-like drop-down menu for other data would be nice.