- You are here:
- Main › Forum › Application Support
[cBB Follower] Link to profile
5 posts
• Page 1 of 1
-
- mladiucitelj
- Posts: 153
- Joined: Sun Sep 02, 2012 11:40 pm
- Location: Slovenia, Europe
Sat Oct 27, 2012 10:42 pm • via Web
What to insert in follower_body.html to add a link to current user (standard) profile view?
I want to get from Follower to users profile.
I want to get from Follower to users profile.
- IvanPF
- Administrator
- Posts: 2010
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Mon Nov 05, 2012 12:03 pm • via Android
Hi.
The apperance of the link depends to the zone of the page where it put.
please tell me the zone do you want to put the link to help you.
The apperance of the link depends to the zone of the page where it put.
please tell me the zone do you want to put the link to help you.
-
- mladiucitelj
- Posts: 153
- Joined: Sun Sep 02, 2012 11:40 pm
- Location: Slovenia, Europe
Mon Nov 05, 2012 3:03 pm • via Web
Zone? Don't understand...
I just want when I'm in "follower" I can add a link to conventional profile under Contact (od the right side of wall).
I just want when I'm in "follower" I can add a link to conventional profile under Contact (od the right side of wall).
- IvanPF
- Administrator
- Posts: 2010
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Mon Nov 05, 2012 4:36 pm • via Web
mladiucitelj wrote:I can add a link to conventional profile under Contact (od the right side of wall).
This is exactly what I needed to know.
You must set the option "Follower as default profile" as "No" to have access to both profiles.
Follow this steps:
1. Open /follower.php
2. Find:
- Code: Select all
function show_wall_profile($data, $user_notes_enabled = false, $warn_user_enabled = false)
{
global $config, $auth, $template, $user, $phpEx, $phpbb_root_path;
3. Add after:
- Code: Select all
global $follower;
4. Find:
- Code: Select all
'AGE' => $age,
5. Add before:
- Code: Select all
'USERNAME' => $data['username'],
'U_PROFILE' => (!$follower->default_profile) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u=' . $data['user_id']) : '',
6. Open /styles/{your style}/template/follower/follower_body.html
If your style is based on prosilver:
7. Find:
- Code: Select all
<!-- IF U_EMAIL --><dt>{L_EMAIL_ADDRESS}:</dt> <dd><a href="{U_EMAIL}">{L_SEND_EMAIL_USER} {USERNAME}</a></dd><!-- ENDIF -->
8. Add before:
- Code: Select all
<!-- IF U_PROFILE --><dt>{L_READ_PROFILE}:</dt> <dd><a href="{U_PROFILE}">{USERNAME}</a></dd><!-- ENDIF -->
If your style is based on subsilver2:
7. Find:
- Code: Select all
<!-- IF U_EMAIL -->
<tr>
<td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_EMAIL_ADDRESS}: </td>
<td class="gen" align="{S_CONTENT_FLOW_BEGIN}"><a href="{U_EMAIL}">{EMAIL_IMG}</a></td>
</tr>
<!-- ENDIF -->
8. Add before:
- Code: Select all
<!-- IF U_PROFILE -->
<tr>
<td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_READ_PROFILE}: </td>
<td class="gen" align="{S_CONTENT_FLOW_BEGIN}"><a href="{U_PROFILE}">{USERNAME}</a></td>
</tr>
<!-- ENDIF -->
9. Clear cache.
-
- mladiucitelj
- Posts: 153
- Joined: Sun Sep 02, 2012 11:40 pm
- Location: Slovenia, Europe
Mon Nov 05, 2012 9:47 pm • via Web
Yes, that's what I want
Thank you!
Thank you!
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests
- External Links
- phpBB Official
- phpBB Official (Spanish)
- Raul Arroyo Monzo
- PasionReef
- About CaniDev
- Terms of use
- Privacy Policy
- About Us
- Contact
- © 2011-2024 CaniDev