phpbb profile page and latest photo/comments/quota tips - Page 2 phpbb profile page and latest photo/comments/quota tips - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

phpbb profile page and latest photo/comments/quota tips

Started by garrynz, March 24, 2005, 07:29:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joachim Müller

@gaatsen & matu111: usually, mods come as-is, there's little point in permanently requesting new features. The mod author might not even be around any more.

peksami

http://www.mesenet.org
Free msn messenger stuff! Smilies, avatars, downloads etc..
http://www.mesenet.org
------
http://www.samiweb.net/mobiili/fi/index.php
Mobile, Wallpapers, Ringtones.. games

Joachim Müller

ask this on the smf board - you would have to write a completely different hack. Don't try to hijack threads, especially when the previous postings already say something along the same lines.

flowmo

I know this is a very old topic, but could someone include their modified profile.php so I can get some ideas of what all needs to be removed?

somebunny

I go the profile page to show the link, but Im trying to get php to show the link When veiwing posts.
see over there on the left, I want it to display "MY GALLERY" under where it sayd POST COUNT...

I have successfully gotten the link to show by adding the
<a href="/gallery/profile.php?uid={USERID}">Gallery profile</a>


but the link stops at the uid, without adding the persons UID....
ex: /gallery/profile.php?uid=

Im not sure where else I need to edit.
I added
below $template->assign_vars(array(

'USERID' => $profiledata['user_id'],

to the topic_review.php but that didnt help...

any ideas?


pszone

@ somebunny

I think, I can help, but I dont understand where exactly you want to show the link  "Gallery Profile" - in view topic, in profile page or in diffrent place.

somebunny

When reading all the posts in a thread.  Like right now, if you look over to the left to see who wrote this, you will see my username, karma, and all that.  I would like it to work right there under karma...

pszone

Open viewtopic.php

Find:
'U_POST_ID' => $postrow[$i]['post_id'])

Before ADD
'U_USER_ID' => $posterow[$i]['user_id'],

To make a link for the gallery in viewtopic_body.tpl add this:

<a href="/gallery/profile.php?uid={postrow.U_USER_ID}">Gallery profile</a>

somebunny

#28
nope, still doesnt show the userid.
I dont understand why it works on the PROFILE page, but not right there.

[Edit GauGau] Replaced hotlinkied image with attachment [/Edit]

Code is inserted correctly...

'L_GALLERY_LINK' => $gallerylink,
'U_USER_ID' => $posterow[$i]['user_id'],
'U_POST_ID' => $postrow[$i]['post_id'])
);

pszone

I made a little mistake, sorry. Here, that should work:

In viewtopic.php change:

'U_USER_ID' => $posterow[$i]['user_id'],

to

'U_USER_ID' => $poster_id,

somebunny


cordiafreaks

I've installed this hack onto my forum, but I'm getting error code, here's a link to the example:

http://cordiafreaks.com/phpbb2/profile.php?mode=viewprofile&u=2

I hope someone can help! thanks

cordiafreaks

Here's my edited 'profile_view_body.tpl'..... It isn't inserting the users id into the hyperlink!

            <a href="/cpg1410/profile.php?uid={postrow.U_USER_ID}">Gallery profile</a>
<!-- PHP -->
            include('/cpg1410/include-profile.php?uid=' . $this->vars['USERID']);
            <!-- ENDPHP -->



And the 'usercp_viewprofile.php'
$template->assign_vars(array(
'USERID' => $profiledata['user_id'],
'USERNAME' => $profiledata['username'],


I have copied the 'profile.php' and renamed the copy to 'include-profile.php' but haven't made any changes to the file.

In my php profiles, I want a link to the user's gallery with the latest addition thumbnails below it.

Cheers

cordiafreaks

I worked out some of it myself... no longer need the help! Thanks

Joachim Müller

Why don't you share your insight, for the benefit of others with similar questions?

hkr

Hi,
is there any MOD which could help do the same if i am not using cpg in bridging mode?

thnx..

edenffs

I have just got this to work.
PHPBB3  - COPPERMINE bridge,  this one http://forum.coppermine-gallery.net/index.php/topic,53678.0.html
Coppermine installed in web root and phpbb3 in /forum
using Subsilver2 style

Display a link to all of a users uploaded images in the phpbb3 user profile.

Find in memberlist.php
'U_REMOVE_FOE' => ($foe) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=zebra&amp;remove=1&amp;mode=foes&amp;usernames[]=' . $user_id) : '',

Add after
'CPG_GAL_LINK' => $user_id != ANONYMOUS ? ('../thumbnails.php?album=lastupby&uid=' . ($user_id)) : '',

Find in styles/subsilver2/template/memberlist_view.html
<!-- IF S_USER_LOGGED_IN and S_ZEBRA -->
<tr>
<td class="genmed" align="center">[ <!-- IF U_ADD_FRIEND and U_ADD_FOE--><a href="{U_ADD_FRIEND}">{L_ADD_FRIEND}</a> | <a href="{U_ADD_FOE}">{L_ADD_FOE}</a><!-- ENDIF --><!-- IF U_REMOVE_FRIEND --><a href="{U_REMOVE_FRIEND}">{L_REMOVE_FRIEND}</a><!-- ENDIF --><!-- IF U_REMOVE_FOE --><a href="{U_REMOVE_FOE}">{L_REMOVE_FOE}</a><!-- ENDIF --> ]</td>
</tr>


Add After
<tr>
<td class="genmed" align="center">[<a href="{CPG_GAL_LINK}">View all uploaded images</a>]</td>
</tr>



Joachim Müller

An unrelated reply by sjoudi was split into a separate thread and moved to the bridging support board, where sjoudi should have started his thread in the first place. Of course you can not start a new thread on the mods board, as that board deals with actual mods and is not meant to allow people to dump their support or mod requests. That's what the support board is for. Hence I moved your reply. You caused a lot of extra moderation effort that could have been avoided easily if you would have looked just a little harder.