[ABD]Linked Profile Picture 0.3.0

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
zkaraca
Registered User
Posts: 139
Joined: Wed Jan 30, 2008 7:52 pm

Re: [RC1]Linked Profile Picture 0.2.0

Post by zkaraca »

It works fine in IE7 or Firefox but does not resize in IE6 or IE5.5

If i use a huge pic, it will mess up the layout of the site because it's not resizing. I did not change anything. If i'm the only one having this problem i'll just reinstall and see what happens.

BTW. IE SUCKS!!! :evil:
Asira.nl * Zeki.nl Just having some fun!
Blackkt
Registered User
Posts: 9
Joined: Mon Oct 06, 2008 12:17 am

Re: [RC1]Linked Profile Picture 0.2.0

Post by Blackkt »

ThePhantom2 wrote:just wondering how hard it would be to add a link or icon such as 'view my profile' in the profile field beside the posts if the member has added a profile picture?
i am interested in something similar to this also.....i have tried w no luck maybe i could use that 2 but this is what i was looking for......

i have a community type site w phpbb3 integrated but not inside....and would like to have a link under their name in the forum post they make .....and maybe a button in their profile page under name and rank....both would say View My Profile....and would link to something like this

http://www.mysite.com/{username} ----- their username would be added to the link automatically cause that would be their profile page at my site......

thx in advance....
User avatar
iEric
Registered User
Posts: 249
Joined: Mon Apr 10, 2006 10:57 pm
Location: Falköping, Sweden

Re: [RC1]Linked Profile Picture 0.2.0

Post by iEric »

ThePhantom2 wrote:just wondering how hard it would be to add a link or icon such as 'view my profile' in the profile field beside the posts if the member has added a profile picture?
Sorry it took a few xtra days. Got visitors here over the weekend.

Here it is. I'll probably put it in the next update (0.3.0)
If a user have a profile picture, the camera will show up.
Link => Profile

- - -

Add-on: Icon in viewtopic_body.html

Image: Image

Copy:

Code: Select all

 icon_contact_lpp.gif -> styles/prosilver/imageset/icon_contact_lpp.gif
Imageset

Open: includes/acp/acp_styles.php
Find:

Code: Select all

'buttons'    => array(
                'icon_back_top', 'icon_contact_aim', 
  • Inline-find:

    Code: Select all

    'icon_contact_jabber', 
    Inline after-add:

    Code: Select all

     'icon_contact_lpp', 

Open: language/en/acp/styles.php
Find:

Code: Select all

	'IMG_ICON_CONTACT_WWW'		=> 'Website',
After-add:

Code: Select all

//Mod: Linked Profile Picture
	'IMG_ICON_CONTACT_LPP'			=> 'MOD: LPP',

Open: styles/prosilver/imageset/imageset.cfg
Find:

Code: Select all

img_icon_contact_msnm = icon_contact_msnm.gif*20*20
After-add:

Code: Select all

# MOD: Linked Profile Picture
img_icon_contact_lpp = icon_contact_lpp.gif*20*20


Stylesheet

Open: styles/prosilver/theme/colours.css
Find:

Code: Select all

.quote-icon, .quote-icon a		{ background-image: url("{IMG_ICON_POST_QUOTE_SRC}"); }
After-add:

Code: Select all

/* MOD: Linked Profile Picture */
.lpp-icon, .lpp-icon a			{ background-image: url("{IMG_ICON_CONTACT_LPP_SRC}"); }

Open: styles/prosilver/theme/buttons.css
Find:

Code: Select all

.quote-icon, .quote-icon a		{ background: none top left no-repeat; }
After-add:

Code: Select all

/* MOD: Linked Profile Picture */
.lpp-icon, .lpp-icon a			{ background: none top left no-repeat; }

Find:

Code: Select all

ul.profile-icons li.jabber-icon	{ width: {IMG_ICON_CONTACT_JABBER_WIDTH}px; height: {IMG_ICON_CONTACT_JABBER_HEIGHT}px; }
After-add:

Code: Select all

/* MOD: Linked Profile Picture */
ul.profile-icons li.lpp-icon	{ width: {IMG_ICON_CONTACT_LPP_WIDTH}px; height: {IMG_ICON_CONTACT_LPP_HEIGHT}px; }

Template / Page

Open: styles/prosilver/template/viewtopic_body.html
Find:

Code: Select all

<!-- IF postrow.U_PM or postrow.U_EMAIL or postrow.U_WWW or postrow.U_MSN or postrow.U_ICQ or postrow.U_YIM or postrow.U_AIM -->
  • Inline-find:

    Code: Select all

    postrow.U_AIM -->
    Inline replace-with:

    Code: Select all

    postrow.U_AIM or postrow.U_LPP -->

Find:

Code: Select all

<span>{L_JABBER}</span></a></li><!-- ENDIF -->
After add:

Code: Select all

		<!-- MOD: Linked Profile Picture -->
					<!-- IF postrow.U_LPP --><li class="lpp-icon"><a href="{postrow.U_POST_AUTHOR}" title="{L_PROFILE_PICTURE}"><span>{L_PROFILE_PICTURE}</span></a></li><!-- ENDIF -->

Open: viewtopic.php
Find:

Code: Select all

$user->setup('viewtopic', $topic_data['forum_style']);  
  • Inline-find:

    Code: Select all

    'viewtopic'  
    Inline replace-with:

    Code: Select all

    array('viewtopic', 'mods/Linked_Profile_Picture')  

Find:

Code: Select all

                'allow_pm'            => 0, 
After-add:

Code: Select all

            // MOD: Linked Profile Picture
                'lpp'                => '', 

Find:

Code: Select all

                'search'        => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", 'search_author=' . urlencode($row['username']) .'&sr=posts') : '',  
After-add:

Code: Select all

            // MOD: Linked Profile Picture
                'lpp'    => $auth->acl_get('u_viewprofile') && $row['user_profile_picture'], 

Find:

Code: Select all

        'U_JABBER'        => $user_cache[$poster_id]['jabber'], 
After-add:

Code: Select all

    // MOD: Linked Profile Picture
        'U_LPP'            => $user_cache[$poster_id]['lpp'], 
- - -
# Refresh imageset in ACP->Styles->Imageset
# Refresh theme in ACP->Styles->Theme
# Purge the cache in ACP->General

:)
Last edited by iEric on Tue Oct 14, 2008 5:05 am, edited 2 times in total.
User avatar
iEric
Registered User
Posts: 249
Joined: Mon Apr 10, 2006 10:57 pm
Location: Falköping, Sweden

Re: [RC1]Linked Profile Picture 0.2.0

Post by iEric »

Blackkt wrote:i am interested in something similar to this also.....i have tried w no luck maybe i could use that 2 but this is what i was looking for......

i have a community type site w phpbb3 integrated but not inside....and would like to have a link under their name in the forum post they make .....and maybe a button in their profile page under name and rank....both would say View My Profile....and would link to something like this

http://www.mysite.com/{username} ----- their username would be added to the link automatically cause that would be their profile page at my site......

thx in advance....
That would take another MOD to do it. You can ask in the MOD request's.
Or you could also try to create this with a custom profile field.
Blackkt
Registered User
Posts: 9
Joined: Mon Oct 06, 2008 12:17 am

Re: [RC1]Linked Profile Picture 0.2.0

Post by Blackkt »

ok thx....i will give the custom profile field a try before requesting......thx for the info....
ThePhantom2
Registered User
Posts: 72
Joined: Tue Feb 05, 2008 11:26 am
Location: NSW, Australia

Re: [RC1]Linked Profile Picture 0.2.0

Post by ThePhantom2 »

iEric wrote:
ThePhantom2 wrote:just wondering how hard it would be to add a link or icon such as 'view my profile' in the profile field beside the posts if the member has added a profile picture?
Sorry it took a few xtra days. Got visitors here over the weekend.

Here it is. I'll probably put it in the next update (0.3.0)
If a user have a profile picture, the camera will show up.
Link => Profile

- - -

Add-on: Icon in viewtopic_body.html

Image: Image

Copy:

Code: Select all

 icon_contact_lpp.gif -> styles/prosilver/imageset/icon_contact_lpp.gif
Imageset

Open: includes/acp/acp_styles.php
Find:

Code: Select all

'buttons'    => array(
                'icon_back_top', 'icon_contact_aim',  
  • Inline-find:

    Code: Select all

    'icon_contact_jabber',  
    Inline after-add:

    Code: Select all

     'icon_contact_lpp',  

Open: language/en/acp/styles.php
Find:

Code: Select all

	'IMG_ICON_CONTACT_WWW'		=> 'Website',
After-add:

Code: Select all

//Mod: Linked Profile Picture
	'IMG_ICON_CONTACT_LPP'			=> 'MOD: LPP',

Open: styles/prosilver/imageset/imageset.cfg
Find:

Code: Select all

img_icon_contact_msnm = icon_contact_msnm.gif*20*20
After-add:

Code: Select all

# MOD: Linked Profile Picture
img_icon_contact_lpp = icon_contact_lpp.gif*20*20


Stylesheet

Open: styles/prosilver/theme/colours.css
Find:

Code: Select all

.quote-icon, .quote-icon a		{ background-image: url("{IMG_ICON_POST_QUOTE_SRC}"); }
After-add:

Code: Select all

/* MOD: Linked Profile Picture */
.lpp-icon, .lpp-icon a			{ background-image: url("{IMG_ICON_CONTACT_LPP_SRC}"); }

Open: styles/prosilver/theme/buttons.css
Find:

Code: Select all

.quote-icon, .quote-icon a		{ background: none top left no-repeat; }
After-add:

Code: Select all

/* MOD: Linked Profile Picture */
.lpp-icon, .lpp-icon a			{ background: none top left no-repeat; }

Find:

Code: Select all

ul.profile-icons li.jabber-icon	{ width: {IMG_ICON_CONTACT_JABBER_WIDTH}px; height: {IMG_ICON_CONTACT_JABBER_HEIGHT}px; }
After-add:

Code: Select all

/* MOD: Linked Profile Picture */
ul.profile-icons li.lpp-icon	{ width: {IMG_ICON_CONTACT_LPP_WIDTH}px; height: {IMG_ICON_CONTACT_LPP_HEIGHT}px; }

Template / Page

Open: styles/prosilver/template/viewtopic_body.html
Find:

Code: Select all

<!-- IF postrow.U_PM or postrow.U_EMAIL or postrow.U_WWW or postrow.U_MSN or postrow.U_ICQ or postrow.U_YIM or postrow.U_AIM -->
  • Inline-find:

    Code: Select all

    postrow.U_AIM -->
    Inline replace-with:

    Code: Select all

    postrow.U_AIM or postrow.U_LPP -->

Find:

Code: Select all

<span>{L_JABBER}</span></a></li><!-- ENDIF -->
After add:

Code: Select all

		<!-- MOD: Linked Profile Picture -->
					<!-- IF postrow.U_LPP --><li class="lpp-icon"><a href="{postrow.U_POST_AUTHOR}" title="{L_PROFILE_PICTURE}"><span>{L_PROFILE_PICTURE}</span></a></li><!-- ENDIF -->

Open: viewtopic.php
Find:

Code: Select all

$user->setup('viewtopic', $topic_data['forum_style']);  
  • Inline-find:

    Code: Select all

    'viewtopic'  
    Inline replace-with:

    Code: Select all

    array('viewtopic', 'mods/Linked_Profile_Picture')  

Find:

Code: Select all

                'allow_pm'            => 0,  
After-add:

Code: Select all

            // MOD: Linked Profile Picture
                'lpp'                => '',  

Find:

Code: Select all

                'search'        => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", 'search_author=' . urlencode($row['username']) .'&sr=posts') : '',  
After-add:

Code: Select all

            // MOD: Linked Profile Picture
                'lpp'    => $row['user_profile_picture'],  

Find:

Code: Select all

        'U_JABBER'        => $user_cache[$poster_id]['jabber'],  
After-add:

Code: Select all

    // MOD: Linked Profile Picture
        'U_LPP'            => $user_cache[$poster_id]['lpp'],  
- - -
# Refresh imageset in ACP->Styles->Imageset
# Refresh theme in ACP->Styles->Theme
# Purge the cache in ACP->General

:)
iEric, you are awesome, thank you very much, worked a treat :D
User avatar
iEric
Registered User
Posts: 249
Joined: Mon Apr 10, 2006 10:57 pm
Location: Falköping, Sweden

Re: [RC1]Linked Profile Picture 0.2.0

Post by iEric »

Thanks. Glad you liked it, and that it is working like you wanted it to. :)

---
Blackkt wrote:ok thx....i will give the custom profile field a try before requesting......thx for the info....
I know there a coulpe of guides around here and at startrekguide about using custom profile fields. For example with an image or in other pages than usual. You can look at them and meaybe they can bring some ideas.

Here's one of them http://startrekguide.com/community/view ... 816#p41816
vikingua
Registered User
Posts: 7
Joined: Tue Jul 17, 2007 3:21 pm

Re: [RC1]Linked Profile Picture 0.2.0

Post by vikingua »

Thanks, excellent mod. But how to arrive, if it is necessary to upload a photo on a server?
User avatar
iEric
Registered User
Posts: 249
Joined: Mon Apr 10, 2006 10:57 pm
Location: Falköping, Sweden

Re: [RC1]Linked Profile Picture 0.2.0

Post by iEric »

Thanks. :) I have thought of an upload function, but I don't know for now.

What do you mean by "arrive"? (sorry if I missunderstood that).
There is no upload function, but you can upload a picture to your own webserver, or using services like photobucket and link to the image, just like in the posts. You enter the address of the image in the profile.
User avatar
Diet Ebola Cola
Registered User
Posts: 132
Joined: Fri Oct 03, 2008 3:57 am
Location: USA

Re: [RC1]Linked Profile Picture 0.2.0

Post by Diet Ebola Cola »

Blackkt wrote:i am interested in something similar to this also.....i have tried w no luck maybe i could use that 2 but this is what i was looking for......

i have a community type site w phpbb3 integrated but not inside....and would like to have a link under their name in the forum post they make .....and maybe a button in their profile page under name and rank....both would say View My Profile....and would link to something like this

http://www.mysite.com/{username} ----- their username would be added to the link automatically cause that would be their profile page at my site......
You're probably looking for something similar to the My Page Mod that creates a separate profile homepage for each user..
vikingua wrote:Thanks, excellent mod. But how to arrive, if it is necessary to upload a photo on a server?
This mod displays the image linked from the profile field, so the image has to already be uploaded elsewhere to appear. The user enters the link for the image location in the field, and the mod takes care of the rest. :D
Diet Ebola Cola
User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry

Re: [RC1]Linked Profile Picture 0.2.0

Post by DragonMaster1 »

Anything on code to use for subsilver please?
User avatar
iEric
Registered User
Posts: 249
Joined: Mon Apr 10, 2006 10:57 pm
Location: Falköping, Sweden

Re: [RC1]Linked Profile Picture 0.2.0

Post by iEric »

If you mean for the xtra icon in viewtopic - it's on the way. :)
Or did you mean the MOD it self? There's a download link (and screenshots) in the 1st post for Subsilver2: http://www.phpbb.com/community/viewtopi ... 5#p5441225
User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry

Re: [RC1]Linked Profile Picture 0.2.0

Post by DragonMaster1 »

iEric wrote:If you mean for the xtra icon in viewtopic - it's on the way. :)
Or did you mean the MOD it self? There's a download link (and screenshots) in the 1st post for Subsilver2: http://www.phpbb.com/community/viewtopi ... 5#p5441225

The mod itself....missed that link

Thanx much

I’ll try to install it later today and see what happens
User avatar
iEric
Registered User
Posts: 249
Joined: Mon Apr 10, 2006 10:57 pm
Location: Falköping, Sweden

Re: [RC2]Linked Profile Picture 0.3.0

Post by iEric »

Updated the 1st post
http://www.phpbb.com/community/viewtopi ... 5#p5441225
  • Version 0.3.0
  • The icon add-on is included (in topic and PM)
  • Subsilver2 is in the same download.
Thanks for using this MOD.

//Eric
JasonWade
Registered User
Posts: 287
Joined: Mon Jun 05, 2006 9:22 am

Re: [RC2]Linked Profile Picture 0.3.0

Post by JasonWade »

Tried to download it, no problem, but then when I open the install file it can't be displayed, gives me some message (in Dutch so prob ably not very meaningfull to you) about xml and normally I never have problems opening mod install files....

Return to “[3.0.x] Abandoned MODs”