4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 22, 2018, 08:09:04 AM

Login with username, password and session length
Search:     Advanced search
Follow 4images on twitter: Click here to follow!
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support) (Moderators: mawenzi, Rembrandt)
| | |-+  [mod] last image in phpbb profile
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 » »» Print
Current Topic Rating: *****
Author Topic: [mod] last image in phpbb profile  (Read 17232 times)
dosensteck
Full Member
***
Offline Offline

Posts: 160

Thank You
-Given: 0
-Receive: 0


View Profile
« on: September 18, 2005, 01:45:21 PM »

kleine erweiterungzu diesem mod: http://www.4homepages.de/forum/index.php?topic=1658.0

öffne includes/usercp_viewprofile.php (PHPBB)

finde
1
2
3
//
// Generate page
//

darüber einfügen

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// <!-- last image -->
   $sql = "SELECT image_id, image_name, image_thumb_file, image_date, cat_id, image_description
           FROM  4images_images WHERE user_id='".$profiledata['user_id']."'
ORDER BY image_date DESC
LIMIT 1";
   if ( !($query_result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, 'geht nicht', '', __LINE__, __FILE__, $sql);
   }
   $result = $db->sql_query($sql);
   $last_image_id = '';
   $last_image_title = '';
   while ($row = mysql_fetch_array($result))
   {
   $last_image_id = $row['image_id'];
   $last_image_thumb_file = $row['image_thumb_file'];
   $last_image_name = $row['image_name'];
   $last_image_description = $row['image_description'];
     $last_cat_id = $row['cat_id'];
   $last_image_date = $row['image_date'];
       
         
   }

   If ( $last_image_id )
   {
   $last_image = '<a href="http://www.example.com/details.php?image_id=';
   $last_image .= $last_image_id;
   $last_image .= '" target="_blank" class="postlink"><img src="http://www.example.com/data/thumbnails/';
   $last_image .= $last_cat_id;
   $last_image .= '/';
       $last_image .= $last_image_thumb_file;
   $last_image .= '" alt="'.$last_image_description.'" title="'.$last_image_name.'" border="0" /></a>';
   $last_image .= '<br>';
   $last_image .= $last_image_name;
   $last_image .= '<br>';
   }
   else
   {
   $last_image = '';
   }
// <!-- END last image -->

ändere www.example.com zu deinem 4 image pfad!

finde
1
'USER_ID' => $profiledata['user_id'],

danach einfügen
1
'LAST_IMAGE' => $last_image,

in templates/subSilver/profile_view_body.tpl kann jetzt {LAST_IMAGE} an belibiger position eingefügt werden

ist sicherlich nicht perfekt geschrieben, funktioniert aber Very Happy
« Last Edit: August 15, 2006, 10:21:26 PM by dosensteck » Logged
BartAfterDark
Hero Member
*****
Offline Offline

Posts: 520

Thank You
-Given: 0
-Receive: 2


View Profile
« Reply #1 on: November 07, 2005, 10:45:31 PM »

Hallo.

I can't seem to find this line
1
'USER_ID' => $profiledata['user_id'],
I use the newest version of phpbb
Logged
Acidgod
4images Moderator
4images Guru
*****
Offline Offline

Posts: 2420

Thank You
-Given: 0
-Receive: 1

It's me?


View Profile WWW
« Reply #2 on: November 08, 2005, 09:59:16 AM »

ich weiss ja das Du Deutsch kannst... *g*

Schreibe uns mal den Code von deiner includes/usercp_viewprofile.php...
Logged

BartAfterDark
Hero Member
*****
Offline Offline

Posts: 520

Thank You
-Given: 0
-Receive: 2


View Profile
« Reply #3 on: November 08, 2005, 04:33:33 PM »

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<?php
/***************************************************************************
 *                           usercp_viewprofile.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: usercp_viewprofile.php,v 1.5.2.6 2005/09/14 18:14:30 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
exit;
}

if ( empty(
$HTTP_GET_VARS[POST_USERS_URL]) || $HTTP_GET_VARS[POST_USERS_URL] == ANONYMOUS )
{
message_die(GENERAL_MESSAGE$lang['No_user_id_specified']);
}
$profiledata get_userdata($HTTP_GET_VARS[POST_USERS_URL]);

if (!
$profiledata)
{
message_die(GENERAL_MESSAGE$lang['No_user_id_specified']);
}

$sql "SELECT *
FROM " 
RANKS_TABLE "
ORDER BY rank_special, rank_min"
;
if ( !(
$result $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR'Could not obtain ranks information'''__LINE____FILE__$sql);
}

$ranksrow = array();
while ( 
$row $db->sql_fetchrow($result) )
{
$ranksrow[] = $row;
}
$db->sql_freeresult($result);

//
// Output page header and profile_view template
//
$template->set_filenames(array(
'body' => 'profile_view_body.tpl')
);
make_jumpbox('viewforum.'.$phpEx);

//
// Calculate the number of days this user has been a member ($memberdays)
// Then calculate their posts per day
//
$regdate $profiledata['user_regdate'];
$memberdays max(1round( ( time() - $regdate ) / 86400 ));
$posts_per_day $profiledata['user_posts'] / $memberdays;

// Get the users percentage of total posts
if ( $profiledata['user_posts'] != 0  )
{
$total_posts get_db_stat('postcount');
$percentage = ( $total_posts ) ? min(100, ($profiledata['user_posts'] / $total_posts) * 100) : 0;
}
else
{
$percentage 0;
}

$avatar_img '';
if ( 
$profiledata['user_avatar_type'] && $profiledata['user_allowavatar'] )
{
switch( $profiledata['user_avatar_type'] )
{
case USER_AVATAR_UPLOAD:
$avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="' $board_config['avatar_path'] . '/' $profiledata['user_avatar'] . '" alt="" border="0" />' '';
break;
case USER_AVATAR_REMOTE:
$avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="' $profiledata['user_avatar'] . '" alt="" border="0" />' '';
break;
case USER_AVATAR_GALLERY:
$avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img src="' $board_config['avatar_gallery_path'] . '/' $profiledata['user_avatar'] . '" alt="" border="0" />' '';
break;
}
}

$poster_rank '';
$rank_image '';
if ( 
$profiledata['user_rank'] )
{
for($i 0$i count($ranksrow); $i++)
{
if ( $profiledata['user_rank'] == $ranksrow[$i]['rank_id'] && $ranksrow[$i]['rank_special'] )
{
$poster_rank $ranksrow[$i]['rank_title'];
$rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' $ranksrow[$i]['rank_image'] . '" alt="' $poster_rank '" title="' $poster_rank '" border="0" /><br />' '';
}
}
}
else
{
for($i 0$i count($ranksrow); $i++)
{
if ( $profiledata['user_posts'] >= $ranksrow[$i]['rank_min'] && !$ranksrow[$i]['rank_special'] )
{
$poster_rank $ranksrow[$i]['rank_title'];
$rank_image = ( $ranksrow[$i]['rank_image'] ) ? '<img src="' $ranksrow[$i]['rank_image'] . '" alt="' $poster_rank '" title="' $poster_rank '" border="0" /><br />' '';
}
}
}

$temp_url append_sid("privmsg.$phpEx?mode=post&amp;" POST_USERS_URL "=" $profiledata['user_id']);
$pm_img '<a href="' $temp_url '"><img src="' $images['icon_pm'] . '" alt="' $lang['Send_private_message'] . '" title="' $lang['Send_private_message'] . '" border="0" /></a>';
$pm '<a href="' $temp_url '">' $lang['Send_private_message'] . '</a>';

if ( !empty(
$profiledata['user_viewemail']) || $userdata['user_level'] == ADMIN )
{
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&amp;" POST_USERS_URL .'=' $profiledata['user_id']) : 'mailto:' $profiledata['user_email'];

$email_img '<a href="' $email_uri '"><img src="' $images['icon_email'] . '" alt="' $lang['Send_email'] . '" title="' $lang['Send_email'] . '" border="0" /></a>';
$email '<a href="' $email_uri '">' $lang['Send_email'] . '</a>';
}
else
{
$email_img '&nbsp;';
$email '&nbsp;';
}

$www_img = ( $profiledata['user_website'] ) ? '<a href="' $profiledata['user_website'] . '" target="_userwww"><img src="' $images['icon_www'] . '" alt="' $lang['Visit_website'] . '" title="' $lang['Visit_website'] . '" border="0" /></a>' '&nbsp;';
$www = ( $profiledata['user_website'] ) ? '<a href="' $profiledata['user_website'] . '" target="_userwww">' $profiledata['user_website'] . '</a>' '&nbsp;';

if ( !empty(
$profiledata['user_icq']) )
{
$icq_status_img '<a href="http://wwp.icq.com/' $profiledata['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' $profiledata['user_icq'] . '&img=5" width="18" height="18" border="0" /></a>';
$icq_img '<a href="http://wwp.icq.com/scripts/search.dll?to=' $profiledata['user_icq'] . '"><img src="' $images['icon_icq'] . '" alt="' $lang['ICQ'] . '" title="' $lang['ICQ'] . '" border="0" /></a>';
$icq =  '<a href="http://wwp.icq.com/scripts/search.dll?to=' $profiledata['user_icq'] . '">' $lang['ICQ'] . '</a>';
}
else
{
$icq_status_img '&nbsp;';
$icq_img '&nbsp;';
$icq '&nbsp;';
}

$aim_img = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' $profiledata['user_aim'] . '&amp;message=Hello+Are+you+there?"><img src="' $images['icon_aim'] . '" alt="' $lang['AIM'] . '" title="' $lang['AIM'] . '" border="0" /></a>' '&nbsp;';
$aim = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' $profiledata['user_aim'] . '&amp;message=Hello+Are+you+there?">' $lang['AIM'] . '</a>' '&nbsp;';

$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : '&nbsp;';
$msn $msn_img;

$yim_img = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' $profiledata['user_yim'] . '&amp;.src=pg"><img src="' $images['icon_yim'] . '" alt="' $lang['YIM'] . '" title="' $lang['YIM'] . '" border="0" /></a>' '';
$yim = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' $profiledata['user_yim'] . '&amp;.src=pg">' $lang['YIM'] . '</a>' '';

$temp_url append_sid("search.$phpEx?search_author=" urlencode($profiledata['username']) . "&amp;showresults=posts");
$search_img '<a href="' $temp_url '"><img src="' $images['icon_search'] . '" alt="' sprintf($lang['Search_user_posts'], $profiledata['username']) . '" title="' sprintf($lang['Search_user_posts'], $profiledata['username']) . '" border="0" /></a>';
$search '<a href="' $temp_url '">' sprintf($lang['Search_user_posts'], $profiledata['username']) . '</a>';

//
// Generate page
//
$page_title $lang['Viewing_profile'];
include(
$phpbb_root_path 'includes/page_header.'.$phpEx);

if (
function_exists('get_html_translation_table'))
{
$u_search_author urlencode(strtr($profiledata['username'], array_flip(get_html_translation_table(HTML_ENTITIES))));
}
else
{
$u_search_author urlencode(str_replace(array('&amp;''&#039;''&quot;''&lt;''&gt;'), array('&'"'"'"''<''>'), $profiledata['username']));
}

$template->assign_vars(array(
'USERNAME' => $profiledata['username'],
'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']),
'POSTER_RANK' => $poster_rank,
'RANK_IMAGE' => $rank_image,
'POSTS_PER_DAY' => $posts_per_day,
'POSTS' => $profiledata['user_posts'],
'PERCENTAGE' => $percentage '%'
'POST_DAY_STATS' => sprintf($lang['User_post_day_stats'], $posts_per_day), 
'POST_PERCENT_STATS' => sprintf($lang['User_post_pct_stats'], $percentage), 

'SEARCH_IMG' => $search_img,
'SEARCH' => $search,
'PM_IMG' => $pm_img,
'PM' => $pm,
'EMAIL_IMG' => $email_img,
'EMAIL' => $email,
'WWW_IMG' => $www_img,
'WWW' => $www,
'ICQ_STATUS_IMG' => $icq_status_img,
'ICQ_IMG' => $icq_img
'ICQ' => $icq
'AIM_IMG' => $aim_img,
'AIM' => $aim,
'MSN_IMG' => $msn_img,
'MSN' => $msn,
'YIM_IMG' => $yim_img,
'YIM' => $yim,

'LOCATION' => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : '&nbsp;',
'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : '&nbsp;',
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : '&nbsp;',
'AVATAR_IMG' => $avatar_img,

'L_VIEWING_PROFILE' => sprintf($lang['Viewing_user_profile'], $profiledata['username']), 
'L_ABOUT_USER' => sprintf($lang['About_user'], $profiledata['username']), 
'L_AVATAR' => $lang['Avatar'], 
'L_POSTER_RANK' => $lang['Poster_rank'], 
'L_JOINED' => $lang['Joined'], 
'L_TOTAL_POSTS' => $lang['Total_posts'], 
'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']), 
'L_CONTACT' => $lang['Contact'],
'L_EMAIL_ADDRESS' => $lang['Email_address'],
'L_EMAIL' => $lang['Email'],
'L_PM' => $lang['Private_Message'],
'L_ICQ_NUMBER' => $lang['ICQ'],
'L_YAHOO' => $lang['YIM'],
'L_AIM' => $lang['AIM'],
'L_MESSENGER' => $lang['MSNM'],
'L_WEBSITE' => $lang['Website'],
'L_LOCATION' => $lang['Location'],
'L_OCCUPATION' => $lang['Occupation'],
'L_INTERESTS' => $lang['Interests'],

'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" $u_search_author),

'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);

$template->pparse('body');

include(
$phpbb_root_path 'includes/page_tail.'.$phpEx);

?>
Logged
dosensteck
Full Member
***
Offline Offline

Posts: 160

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #4 on: November 15, 2005, 07:43:19 PM »

setze es einfach unter

1
'USERNAME' => $profiledata['username'],

es muss nur bei den templates drinnen stehen, kann sein das ich die user_id selbst dazugeschrieben habe, kann mich nichtmehr ganz erinnen
Logged
BartAfterDark
Hero Member
*****
Offline Offline

Posts: 520

Thank You
-Given: 0
-Receive: 2


View Profile
« Reply #5 on: November 15, 2005, 07:50:49 PM »

Found the problem.
it's {LAST_IMAGE} instead of {last_image} Wink Hope this works for everyone else
Logged
BartAfterDark
Hero Member
*****
Offline Offline

Posts: 520

Thank You
-Given: 0
-Receive: 2


View Profile
« Reply #6 on: November 15, 2005, 07:58:07 PM »

you got it to show the 2 last images on your site. How did you edit that?
Logged
dosensteck
Full Member
***
Offline Offline

Posts: 160

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #7 on: November 16, 2005, 12:56:00 AM »

with very sick code Very Happy
(sorry, the 2 images was from my begining with php - the code is the same and only the variables are renamed, the limit is set to "2" - very bad)

i work now on a solution that display all images from the user in the profiles - only 5 images at the same time with paging

but paging works not correctly - i poste the code when i finished

ps: sorry for my english, i hope you undertand me  Embarassed
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« Reply #8 on: November 16, 2005, 01:06:15 AM »

replace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   $last_image_id = '';
   $last_image_title = '';
   while ($row = mysql_fetch_array($result))
   {
   $last_image_id = $row['image_id'];
   $last_image_thumb_file = $row['image_thumb_file'];
   $last_image_name = $row['image_name'];
   $last_image_description = $row['image_description'];
   $last_cat_id = $row['cat_id'];
   $last_image_date = $row['image_date'];
       
         
   }

   If ( $last_image_id )
   {
   $last_image = '<a href="http://www.example.com/details.php?image_id=';
   $last_image .= $last_image_id;
   $last_image .= '" target="_blank" class="postlink"><img src="http://www.example.com/data/thumbnails/';
   $last_image .= $last_cat_id;
   $last_image .= '/';
       $last_image .= $last_image_thumb_file;
   $last_image .= '" alt="'.$last_image_description.'" title="'.$last_image_name.'" border="0" /></a>';
   $last_image .= '<br>';
   $last_image .= $last_image_name;
   $last_image .= '<br>';
   }
   else
   {
   $last_image = '';
   }

with this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
   $last_image_id = '';
   $last_image_title = '';
   $last_image = '';
   while ($row = mysql_fetch_array($result))
   {
   $last_image_id = $row['image_id'];
   $last_image_thumb_file = $row['image_thumb_file'];
   $last_image_name = $row['image_name'];
   $last_image_description = $row['image_description'];
   $last_cat_id = $row['cat_id'];
   $last_image_date = $row['image_date'];
       
         
   $last_image .= '<a href="http://www.example.com/details.php?image_id=';
   $last_image .= $last_image_id;
   $last_image .= '" target="_blank" class="postlink"><img src="http://www.example.com/data/thumbnails/';
   $last_image .= $last_cat_id;
   $last_image .= '/';
       $last_image .= $last_image_thumb_file;
   $last_image .= '" alt="'.$last_image_description.'" title="'.$last_image_name.'" border="0" /></a>';
   $last_image .= '<br>';
   $last_image .= $last_image_name;
   $last_image .= '<br>';
   }

Once its done, you can change LIMIT 1 with the number you want
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
BartAfterDark
Hero Member
*****
Offline Offline

Posts: 520

Thank You
-Given: 0
-Receive: 2


View Profile
« Reply #9 on: November 16, 2005, 12:35:47 PM »

Hey vano. The limit does not work. It shows the third last image added instead of the last 3 images (when limit is changed to 3)

And to Dosensteck could you post your usercp_viewprofile.php here ?
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 565

mmm PHP...


View Profile WWW
« Reply #10 on: November 16, 2005, 02:37:00 PM »

Ops. missed a dot infront of .= in this line:
Quote  [Expand]
      $last_image .= '<a href="http://www.example.com/details.php?image_id=';

(I've updated the post above)
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
Stoleti
Hero Member
*****
Offline Offline

Posts: 574

Thank You
-Given: 0
-Receive: 1


View Profile
« Reply #11 on: July 27, 2006, 04:46:14 PM »

kleine erweiterungzu diesem mod: http://www.4homepages.de/forum/index.php?topic=1658.0

öffne includes/usercp_viewprofile.php (PHPBB)

finde
1
2
3
//
// Generate page
//

darüber einfügen

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// <!-- last image -->
   $sql = "SELECT image_id, image_name, image_thumb_file, image_date, cat_id, image_description
           FROM  4images_images WHERE user_id='".$profiledata['user_id']."'
ORDER BY image_date DESC
LIMIT 1";
   if ( !($query_result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, 'geht nicht', '', __LINE__, __FILE__, $sql);
   }
   $result = $db->sql_query($sql);
   $last_image_id = '';
   $last_image_title = '';
   while ($row = mysql_fetch_array($result))
   {
   $last_image_id = $row['image_id'];
   $last_image_thumb_file = $row['image_thumb_file'];
   $last_image_name = $row['image_name'];
   $last_image_description = $row['image_description'];
     $last_cat_id = $row['cat_id'];
   $last_image_date = $row['image_date'];
       
         
   }

   If ( $last_image_id )
   {
   $last_image = '<a href="http://www.example.com/details.php?image_id=';
   $last_image .= $last_image_id;
   $last_image .= '" target="_blank" class="postlink"><img src="http://www.example.com/data/thumbnails/';
   $last_image .= $last_cat_id;
   $last_image .= '/';
       $last_image .= $last_image_thumb_file;
   $last_image .= '" alt="'.$last_image_description.'" title="'.$last_image_name.'" border="0" /></a>';
   $last_image .= '<br>';
   $last_image .= $last_image_name;
   $last_image .= '<br>';
   }
   else
   {
   $last_image = '';
   }
// <!-- END last image -->

ändere www.example.com zu deinem 4 image pfad!

finde
1
'USER_ID' => $profiledata['user_id'],

danach einfügen
1
'LAST_IMAGE' => $last_image,

in templates/subSilver/profile_view_body.tpl kann jetzt {last_image} an belibiger position eingefügt werden

ist sicherlich nicht perfekt geschrieben, funktioniert aber Very Happy

This can be used at the profile on 4images ? showing the last pic by user ?
 Question
Logged
ccsakuweb
Sr. Member
****
Offline Offline

Posts: 498

Thank You
-Given: 1
-Receive: 0

Patri


View Profile WWW
« Reply #12 on: August 10, 2006, 12:50:16 AM »

Hallo.

I can't seem to find this line
1
'USER_ID' => $profiledata['user_id'],
I use the newest version of phpbb

me too ... where is this line in usercp_viewprofile????  hum... where can I write 
1
'LAST_IMAGE' => $last_image,
then?
Logged

Arrow 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more
dosensteck
Full Member
***
Offline Offline

Posts: 160

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #13 on: August 15, 2006, 10:20:33 PM »

among them
1
$template->assign_vars(array(

Logged
dennist
Pre-Newbie

Offline Offline

Posts: 6

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #14 on: February 25, 2007, 08:46:29 PM »

Hallo,

der mod ist wirklich klasse.

Jedoch habe ich noch eine Frage zur Darstellung der Bilder:
Momentan werden die Bilder in einer Liste untereinander angezeigt. Gibt es eine Möglichkeit die Bilder in einer Tabelle (6 Spalten) anzuordnen?

Viele Grüße Dennis
Logged
Pages: [1] 2 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.075 seconds with 19 queries.