Advanced search  

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]

Pages: 1 [2]   Go Down

Author Topic: phpbb profile page and latest photo/comments/quota tips  (Read 55406 times)

0 Members and 1 Guest are viewing this topic.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #20 on: June 03, 2005, 07:17:18 am »

@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.
Logged

peksami

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #21 on: October 17, 2005, 02:33:28 pm »

How can work SIMPLE MACHINES FORUM ?
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #22 on: October 17, 2005, 05:40:39 pm »

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.
Logged

flowmo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #23 on: August 03, 2007, 12:51:46 am »

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?
Logged

somebunny

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #24 on: October 13, 2007, 04:14:37 pm »

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
Code: [Select]
<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
Code: [Select]
below $template->assign_vars(array(

'USERID' => $profiledata['user_id'],
to the topic_review.php but that didnt help...

any ideas?

Logged

pszone

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #25 on: October 26, 2007, 01:06:00 pm »

@ 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.
Logged

somebunny

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #26 on: October 26, 2007, 01:13:20 pm »

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...
Logged

pszone

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #27 on: October 27, 2007, 10:07:35 am »

Open viewtopic.php

Find:
Code: [Select]
'U_POST_ID' => $postrow[$i]['post_id'])
Before ADD
Code: [Select]
'U_USER_ID' => $posterow[$i]['user_id'],
To make a link for the gallery in viewtopic_body.tpl add this:

Code: [Select]
<a href="/gallery/profile.php?uid={postrow.U_USER_ID}">Gallery profile</a>
Logged

somebunny

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #28 on: October 27, 2007, 10:36:33 am »

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...

Code: [Select]
'L_GALLERY_LINK' => $gallerylink,
'U_USER_ID' => $posterow[$i]['user_id'],
'U_POST_ID' => $postrow[$i]['post_id'])
);
« Last Edit: January 05, 2008, 11:38:20 am by Joachim Müller »
Logged

pszone

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #29 on: October 27, 2007, 11:54:23 am »

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

In viewtopic.php change:

Code: [Select]
'U_USER_ID' => $posterow[$i]['user_id'],
to

Code: [Select]
'U_USER_ID' => $poster_id,
Logged

somebunny

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #30 on: October 27, 2007, 03:38:32 pm »

oh yay!
thats seems to have it!
THANKS SO MUCH!!!!
 ;D
Logged

cordiafreaks

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #31 on: November 17, 2007, 08:36:05 am »

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
Logged

cordiafreaks

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #32 on: November 17, 2007, 09:33:13 am »

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

Code: [Select]
            <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'
Code: [Select]
$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
Logged

cordiafreaks

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #33 on: November 18, 2007, 09:29:50 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #34 on: November 18, 2007, 02:43:00 pm »

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

hkr

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #35 on: April 05, 2008, 06:05:45 am »

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

thnx..
Logged

edenffs

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #36 on: January 14, 2009, 07:53:27 pm »

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
Code: [Select]
'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
Code: [Select]
'CPG_GAL_LINK' => $user_id != ANONYMOUS ? ('../thumbnails.php?album=lastupby&uid=' . ($user_id)) : '',
Find in styles/subsilver2/template/memberlist_view.html
Code: [Select]
<!-- 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
Code: [Select]
<tr>
<td class="genmed" align="center">[<a href="{CPG_GAL_LINK}">View all uploaded images</a>]</td>
</tr>

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: phpbb profile page and latest photo/comments/quota tips
« Reply #37 on: February 05, 2009, 08:20:41 am »

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.
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.032 seconds with 20 queries.