News:

Wondering if this will always be free?  See why free is better.

Main Menu

Ultimate Profile

Started by JovanT, March 12, 2009, 12:14:40 PM

Previous topic - Next topic

Xavi-Nena

Quote from: Harvester on March 29, 2009, 11:27:04 AM
Quote from: Antechinus on March 16, 2009, 03:06:36 AM
Well ya learn something every day. Ok, do it like this:

Find and delete:

// Let's see who viewed my profile.           

if(!empty($modSettings['pv_enabled']) && $context['can_view_visitor']) {
echo '
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="buddies">
<tr>
<td class="titlebg" height="26" align="center">
', $txt['pv_latest_visitors'] ,'
</td>
</tr>
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<td colspan="2">
<table width="100%">';
if (!empty($context['visitor_profiles'])) {
$i = 1;
foreach ($context['visitor_profiles'] as $visitor) {
if ($i == 1)
echo ' <tr>';
echo '
<td class="windowbg" align="center" valign="bottom" style="padding:5px; width: 100px;">', $visitor['avatar']['href'] ? '<img src="' . $visitor['avatar']['href'] .'" width="50" />' : '', '<br /><b>', $visitor['link'], '</b><br /><span class="smalltext">', $visitor['time'], $context['can_delete_visitor'] ? '<br /><a href="' . $scripturl . '?action=deletevisitor;profile=' . $context['member']['id'] . ';member=' . $visitor['id'] . ';sesc=' . $context['session_id'] . '">' . $txt[31] . '</a>' : '', '</span></td>';

if ($i == 3)
echo '</tr>';

$i++;
if ($i == 4) $i = 1;
}
} else
echo ' <tr><td>', $txt['pv_no_visitors'] ,'</td></tr>';

echo '
</table>
</td>
</tr>';

echo '
</table>
</td>
</tr>
</table>
<br />';
}


Find:

<td class="windowbg">
', un_htmlspecialchars ($context['member']['options']['media']) ,'
</td>
</tr>
</table>';


Add after:

// Let's see who viewed my profile.           

if(!empty($modSettings['pv_enabled']) && $context['can_view_visitor']) {
echo '
<br/>
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="buddies">
<tr>
<td class="titlebg" height="26" align="center">
', $txt['pv_latest_visitors'] ,'
</td>
</tr>
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<td colspan="2">
<table width="100%">';
if (!empty($context['visitor_profiles'])) {
$i = 1;
foreach ($context['visitor_profiles'] as $visitor) {
if ($i == 1)
echo ' <tr>';
echo '
<td class="windowbg" align="center" valign="bottom" style="padding:5px; width: 100px;">', $visitor['avatar']['href'] ? '<img src="' . $visitor['avatar']['href'] .'" width="50" />' : '', '<br /><b>', $visitor['link'], '</b><br /><span class="smalltext">', $visitor['time'], $context['can_delete_visitor'] ? '<br /><a href="' . $scripturl . '?action=deletevisitor;profile=' . $context['member']['id'] . ';member=' . $visitor['id'] . ';sesc=' . $context['session_id'] . '">' . $txt[31] . '</a>' : '', '</span></td>';

if ($i == 3)
echo '</tr>';

$i++;
if ($i == 4) $i = 1;
}
} else
echo ' <tr><td>', $txt['pv_no_visitors'] ,'</td></tr>';

echo '
</table>
</td>
</tr>';

echo '
</table>
</td>
</tr>
</table>
<br />';
}


This is the same as the block you deleted except there is a line break added just after the first echo.


The first code you say to find and delete... Its not in my UltimateProfile.php   I let dreamweaver search for it... not there...  I manually searched for it.. not there...   I have .9 version... looks like things changed...

Id like  to put the buddies under the right column still though.

Please help

to have this code you would have to have the profile visitors mod installed.

Xavi-Nena

Quote from: NenaGb on March 14, 2009, 02:07:10 AM
oh yes and is there a way to show an area of 'Latest Activity' for that particular user such as you find on facebook ?

anyone know of a way?

Harvester

ya know what would be cool for this mod?

At the moment it only shows your top 6 buddies. I have 30 or so buddies on my list and I think it would be great if the top 6 were randomly chosen on ever reload of my profile.

I think this would be a cool addition.

Anyway to pull it off?

Harvester

I have Custom Profile Field installed... or atleast I did...

what do I paste here??

/*
// This section is optional. You can paste code and display fields from Custom Profile fields mod.

echo '
<br />

<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="more_fields">
<tr>
<td class="windowbg">';


// PASTE YOUR CODE HERE


echo '
</td>
</tr>
</table>';
*/



which file do I get the code from?

mrtrc266

@ Harvester

That would be cool but if you want to show more buddies try this.
http://jovant.guruserve.com/test-forum/index.php?topic=72.0

I haven't tried it in version 9 yet cuz I upgraded to SMF RC1 and waiting for this to be ported but it should still work ???

GinaD

Not sure if anyone will be able to help me but everytime I try to add media to my Ultimate Profile it will either not play or tell me my playlist is empty.  Can anyone tell me how to fix this?

GQCritic

Quote from: GinaD on March 30, 2009, 10:35:27 AM
Not sure if anyone will be able to help me but everytime I try to add media to my Ultimate Profile it will either not play or tell me my playlist is empty.  Can anyone tell me how to fix this?

What sort of media are you attempting to add?

chrishicks

#147
Quote from: GinaD on March 30, 2009, 10:35:27 AM
Not sure if anyone will be able to help me but everytime I try to add media to my Ultimate Profile it will either not play or tell me my playlist is empty.  Can anyone tell me how to fix this?

I'm going to guess it's a playlist from playlist.com correct? We had/have the same problem. One simple "fix" is to use the alternate code they provide. When you are on the page where you copy the code to paste it on your page select "click here to try another code" and use that.

Now for the bad news. It's not a 100% fix for IE users as sometimes the music player just shows as a big red x box.

EDIT: I should point out that in order to get the alternate code you first need to select section E on the selection page.

romper

I get this:
Execute Modification   ./Sources/Profile.php   Test failed

all the rest are fine...I have Custom Profile Field Mod, is this the problem?

kingkingston

It downloads and installs fine until i click the profile button and get this

Unknown column 'com.time' in 'field list'
File: /home/wewantsp/public_html/Sources/Profile.php
Line: 1397

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.8, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.

when i unistall the mod everythings fine again

n-joy

Quote from: n-joy on March 29, 2009, 01:23:18 PM
Quote from: JovanT on March 29, 2009, 01:11:44 PM
Do you have Profile Visitors mod installed?
Hi!
A few posts ago in this topic, I found this:

QuoteI sent the package to Jovan. We should wait him until he upload the package to the Mod Site.

So, ultimate profile for SMF 2 is ready?
Will it be uploaded soon?
Thank You!
Kick?

Bec

#151
Just wondering if it is possible to have the ultimate profile on by default for all members or do they need to manually tick the box themselves?


I also have the mood bobel mod http://custom.simplemachines.org/mods/index.php?mod=1380 installed which was accessible from the old forum profile view, I just noticed that it is no longer accesible... how would i go about incorporating the code and getting it to show again??

tyty1234

Quote from: kingkingston on March 31, 2009, 08:02:31 AM
It downloads and installs fine until i click the profile button and get this

Unknown column 'com.time' in 'field list'
File: /home/wewantsp/public_html/Sources/Profile.php
Line: 1397

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.8, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.

when i unistall the mod everythings fine again
You should upgrade your database. Download the Large Upgrade file for SMF 1.1.8, and extract the upgrade.php and sql files.
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

kingkingston

Quote from: tyty1234 on March 31, 2009, 02:08:30 PM
Quote from: kingkingston on March 31, 2009, 08:02:31 AM
It downloads and installs fine until i click the profile button and get this

Unknown column 'com.time' in 'field list'
File: /home/wewantsp/public_html/Sources/Profile.php
Line: 1397

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.8, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.

when i unistall the mod everythings fine again
You should upgrade your database. Download the Large Upgrade file for SMF 1.1.8, and extract the upgrade.php and sql files.

If i knew how to do that i would have done it already,im not the brightest spark in the fire

tyty1234

Quote from: kingkingston on March 31, 2009, 02:41:37 PM
Quote from: tyty1234 on March 31, 2009, 02:08:30 PM
Quote from: kingkingston on March 31, 2009, 08:02:31 AM
It downloads and installs fine until i click the profile button and get this

Unknown column 'com.time' in 'field list'
File: /home/wewantsp/public_html/Sources/Profile.php
Line: 1397

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.8, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.

when i unistall the mod everythings fine again
You should upgrade your database. Download the Large Upgrade file for SMF 1.1.8, and extract the upgrade.php and sql files.

If i knew how to do that i would have done it already,im not the brightest spark in the fire
Ok here's what you need to do.

Go here, Scroll down to Download SMF 1.1.8, under the Large upgrade section, download the zip folder. Save it to your computer, and then open it. Extract only the upgrade.php file and the upgrade_1-1.sql file. Using a FTP client, FTP those two files to your forum directory. Once done, open up the upgrade.php page. (http://yoursite.com/forum/upgrade.php) Follow the onscreen instructions, and in a few minutes, your database will be up to date.
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.


Bec

Sorry!

FYI i tried inserting that code before asking and it did not work!

Is possible to have the ultimate profile on by default for all members or do they need to manually tick the box themselves?

tyty1234

There is a master setting.
Admin -> Features and Settings -> Ultimate Profile
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

Bec

I don't have any ultimate profile option in my admin panel

tyty1234

My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

Advertisement: