61
Mods & Plugins (Releases & Support) / Re: [Mod] Show original image in new window by clicking on image
« on: March 21, 2008, 01:54:41 PM »
yes i tried yesterday and works fine
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.
sure?? i saw in admin control panel and i the total of people online, it was less than the number in one category with your mod.
This MOD is work this way. Each visit is see for each user name session for each category page.
sounds great - just one question before installing it: i use a u3 usb stick - does the 4imagesMS-autorun affect the u3-autorun or will it work together? shure i could use a different stick but then again i'd love to carry not more than oneHi i installed this program in a u3 usb and it work rigth. But, u3 is autorun and windows say you to open 4images Mobile Server. So it works !
thx in advance, great idea
Hey ladies,I think that you only have to replace friendlist.php the path from the avatar and a little more. Search
I have installed the mod and it works with 1.7.1 too!
Ahm but the user pic in the buddy list does't work. I installed the "avatar" mod log time ago and not the "member personal photo".
Does anybode rewirte the addon acording the avatar mod?
Bye!
if(($config['userpic'])&&($user_row['userpic'])){
$user_pic = "<a href=\"".$site_sess->url($user_profile_link)."\"><img src=\"".$site_sess->url(ROOT_PATH."data/userpic/".$user_row['userpic'])."\"></a>";
}
if(($config['avatar_use'])&&($user_row['user_avatar'])){
$user_pic = "<a href=\"".$site_sess->url($user_profile_link)."\"><img src=\"".$site_sess->url(ROOT_PATH."".TEMPLATE_PATH."/avatars/".$user_row['user_avatar'])."\"></a>";
}
Does anyone have missing file friendslist.html ?At the end of the description I said the next
In rar is missing or is something wrong with description?
regards
#
#-----[ CREATE ]--------------------------------------------
#
templates/tus_plantillas/friendslist.html
#
#-----[ PASTE ]--------------------------------------------
#//NOte: In your design content. In example error.html paste the next code and rename to friendslist.html
<p> <b><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}</b></p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="title">{lang_friendslist_title}</span></td>
<td align="right">
<script language="JavaScript">
function clearfriendslist() {
if (confirm('{lang_delete_friendslist_confirm}')) {
location.href = "{url_delete_friendslist}";
}
}
</script>
<a href="javascript:clearfriendslist()"><b>{lang_delete_friendslist}</b></a>
</td>
</tr>
<br />
<hr size="1" /><div align="right"><form method="post" action="{filter_url}">
Buscar Usuario: <input name="filter" value="{filter}" class="searchinput"> <input type="submit" name="submit" value="{lang_go}" class="button" /><br>
<span class="smalltext">Puedes usar * como comodín cuando no estés seguro.</span><br>
</form></div>
{paging_stats}<br>
{if friendslist}
<table width="450" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="row2" valign="top">{friendslist}</td>
</tr>
</table>
</td>
</tr>
</table>
{endif friendslist}
<br />
<br />
{paging}
<br /><div align="center"> Mod Friends List created by <a href="http://www.myart.es" target="_blank">CCSakuweb</a></div><br>
Is it possible to ask a news item at once by knowing his id like the thumbnails does. This wil ask a link like "details.php?image_id=xx".
A link like news.php?news_id=xx shows the whole page.
$sql = "SELECT news_id, news_title, news_text, news.user_name, news_date, news.user_id, users.userpic FROM ".NEWS_TABLE." news, 4images_users users WHERE users.user_id = news.user_id ORDER BY news_date DESC LIMIT $offset, $newsPerPage";
if($news_id=="")
$sql = "SELECT news_id, news_title, news_text, news.user_name, news_date, news.user_id, users.userpic FROM ".NEWS_TABLE." news, 4images_users users WHERE users.user_id = news.user_id ORDER BY news_date DESC LIMIT $offset, $newsPerPage";
else
$sql = "SELECT news_id, news_title, news_text, news.user_name, news_date, news.user_id, users.userpic FROM ".NEWS_TABLE." news, 4images_users users WHERE users.user_id = news.user_id AND news_id = ".$news_id." ORDER BY news_date DESC LIMIT $offset, $newsPerPage";
1.
It works perfect. Thank you! But I have two questions:
1. Is it possible to delete the link from photo name and username so that photo name (e. g. r1000) and username are being displayed without link?
2. Is it possible to show how many comments have been posted to a photo? ("Kommentare: 6")
It could look like this:
Thank you in advance!
Take care,
your Michinator.
"comment_image_name" => ($view_image) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$row['image_id'])."\">".stripslashes($row['image_name'])."</a>" : stripslashes($row['image_name']),
"comment_image_name" => stripslashes($row['image_name']),
"image_user_name" => ($image_user_link) ? "<a href=\"".$image_user_link."\">".$image_user_name."</a>" : $image_user_name,
replace to:"image_user_name" => $image_user_name,
$bgcounter = 1;
while ($row = $site_db->fetch_array($result))
{
after add:$sql = "SELECT COUNT(*) AS counter
FROM ".COMMENTS_TABLE."
WHERE image_id=".$row['image_id'])."";
$comments_count = $site_db->query_firstrow($sql);
"comment_image" => ($view_image) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?image_id=".$row['image_id'])."\">".$thumb."</a>" : $thumb,
add after: "comment_total" => (isset($comments_count['counter']) && $comments_count['counter']) ? $comments_count['counter'] : 0,
$lang['userlevel_admin'] = "Admin";
$lang['userlevel_spamking'] = "Spamking";
or maybe ¿?:$lang['userlevel_vip'] = "VIP";
echo ">".$lang['userlevel_admin']."</option>\n";
add after echo "<option value=\"".SPAMKING."\"";
if ($userlevel == SPAMKING && $userlevel != "") {
echo " selected=\"selected\"";
}
echo ">".$lang['userlevel_spamking']."</option>\n";
in your case VIP and userlevel_vip, isnt it? if (!isset($comment_row[$i][$user_table_fields['user_level']]) || (isset($comment_row[$i][$user_table_fields['user_level']]) && $comment_row[$i][$user_table_fields['user_level']] == USER)) {
$comment_user_info = $lang['userlevel_user'];
}
elseif ($comment_row[$i][$user_table_fields['user_level']] == ADMIN) {
$comment_user_info = $lang['userlevel_admin'];
}
elseif ($comment_row[$i][$user_table_fields['user_level']] == MODERADOR) {
$comment_user_info = $lang['userlevel_moderador'];
}
UPDATE 4images_users SET user_level=3 WHERE user_name=test;
UPDATE 4images_users SET user_level=3 WHERE user_id=<id from test>;