FAP CUSTOMIZATION - "Back To Profile" Link For Personal Gallery »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP CUSTOMIZATION - "Back To Profile" Link For Personal Gallery



McManus [ Sun 29 Apr, 2007 20:13 ]
Post subject: FAP CUSTOMIZATION - "Back To Profile" Link For Personal Gallery
I really want a "back to profile" link when viewing personal galleries.
Whenever I edit an album tpl, it's not changing a thing. I've emptied my cache, but still, the same.
So a quick cry for help, pleeeease, any done this?
Thanks


Artie [ Mon 30 Apr, 2007 01:19 ]
Post subject: Re: "Back To Profile" Link For Personal Gallery
Is it not enough to use the Back button or click on the poster's name?


McManus [ Mon 30 Apr, 2007 02:24 ]
Post subject: Re: "Back To Profile" Link For Personal Gallery
although that makes sense, no not really.
the aim is to make things idiot-frendly.
I've got links to personal galleries from user profiles, and it'd be nice to have links back again.
There's a whole world of people who can only navigate themselves round myspace and just breakdown on other sites, lol.


Artie [ Mon 30 Apr, 2007 21:24 ]
Post subject: Re: "Back To Profile" Link For Personal Gallery
How about just a link to the user profile....Back To would not be appropriate as you don't always get to the user's personal gallery by way of their profile.


McManus [ Wed 02 May, 2007 00:11 ]
Post subject: Re: "Back To Profile" Link For Personal Gallery
that'd be spot on!


Artie [ Wed 02 May, 2007 00:46 ]
Post subject: Re: "Back To Profile" Link For Personal Gallery
Give this a try...

OPEN album_mod/album_personal.php

FIND
Code: [Hide] [Select]
$download_full_link = '<a href="' . $download_link . '"><img src="' . $download_img . '" border="0" alt="' . $lang['Download_page'] . '" title="' . $lang['Download_page'] . '" align="middle" /></a>';

AFTER ADD
Code: [Hide] [Select]
$poster_profile_link = '<a href="'. append_sid(PROFILE_MG . '?mode=viewprofile&amp;' . POST_USERS_URL .'='. $album_user_id) .'">'. $username .''s Profile</a>';


FIND
Code: [Hide] [Select]
'UPLOAD_FULL_LINK' => $upload_full_link,

AFTER ADD
Code: [Hide] [Select]
'POSTER_PROFILE' => $poster_profile_link,


OPEN templates/YOUR TEMPLATE/album_cat_body.tpl

FIND
Code: [Hide] [Select]
<span class="gensmall"><b>{SLIDESHOW}&nbsp;</b></span>

IN-LINE, BEFORE ADD
Code: [Hide] [Select]
{POSTER_PROFILE}


McManus [ Thu 03 May, 2007 16:46 ]
Post subject: Re: "Back To Profile" Link For Personal Gallery

Thanks so much! Works a charm!


McManus [ Thu 03 May, 2007 18:02 ]
Post subject: Re: "Back To Profile" Link For Personal Gallery
McManus wrote: [View Post]
Works a charm!

I should've tested the link first.

I had to change a little bit to get it working.
in album_mod/album_personal.php
instead of
Code: [Hide] [Select]
$poster_profile_link = '<a href="'. append_sid(PROFILE_MG . '?mode=viewprofile&amp;' . POST_USERS_URL .'='. $album_user_id) .'">'. $username .''s Profile</a>';

i added this to get it working
Code: [Hide] [Select]
$poster_profile_link = '<a href="'. append_sid('profile.' . $phpEx . '?mode=viewprofile&amp;' . POST_USERS_URL .'='. $album_user_id) .'">'. $username .''s Profile</a>';


Artie [ Thu 03 May, 2007 20:06 ]
Post subject: Re: "Back To Profile" Link For Personal Gallery
You must not be using the lastest release of FAP.
It should work as is for FAP version 1.4.1


McManus [ Sat 05 May, 2007 00:19 ]
Post subject: Re: "Back To Profile" Link For Personal Gallery
According to my footer, I'm using 1.4.1


Artie [ Sat 05 May, 2007 03:54 ]
Post subject: Re: "Back To Profile" Link For Personal Gallery
Me too

Oh well, as long as you got it to work that's all that really matters.


McManus [ Mon 07 May, 2007 00:56 ]
Post subject: Re: "Back To Profile" Link For Personal Gallery
thanks for your help!




Powered by Icy Phoenix