Profile Visitors (4.1 Released | SMF 2.0 Compatible)

Started by [SiNaN], April 09, 2008, 12:44:17 AM

Previous topic - Next topic

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

Marcus Forsberg

BTW, could you post a screenshot of how it looks when being used whit ultimate profile mod?

[SiNaN]

Quote from: MTF95 on April 21, 2008, 10:46:22 AM
BTW, could you post a screenshot of how it looks when being used whit ultimate profile mod?


I don't have installed forum now but it is shown like buddies. :)
Former SMF Core Developer | My Mods | SimplePortal

Marcus Forsberg


Cal O'Shaw

Hello,

At the risk of imposing (and because the code is invisible in the examples above), would it be possible to check box the groups besides the Admins that do not get tracked?  The Global Moderators were placed in a group that was cloned from Global Moderator and then tweaked.

If not, would it be possible to post the lines to exclude additional groups again but "break" the HTML so it doesn't get rendered (i.e. put a space after < in tags, such as "< br>")?

Grazie!

Cal

2pac

Hey I was thinking, maybe you could add a # of views counter? That would be cool! just throwing it out there.

[SiNaN]

Quote from: Cal O'Shaw on April 21, 2008, 11:24:28 AM
Hello,

At the risk of imposing (and because the code is invisible in the examples above), would it be possible to check box the groups besides the Admins that do not get tracked?  The Global Moderators were placed in a group that was cloned from Global Moderator and then tweaked.

If not, would it be possible to post the lines to exclude additional groups again but "break" the HTML so it doesn't get rendered (i.e. put a space after < in tags, such as "< br>")?

Grazie!

Cal

Didn't understand the second part but I will make it so that you can choose which groups will not be logged in the profile visitors in the next version.

Quote from: 2pac on April 22, 2008, 12:16:36 AM
Hey I was thinking, maybe you could add a # of views counter? That would be cool! just throwing it out there.

I was thinking of it. I'll add it somewhere.
Former SMF Core Developer | My Mods | SimplePortal

Cal O'Shaw

Hi,

I'm using IE7 here and the "code select" boxes are wide and have almost no height.  I assumed the code inside had been processed by SMF when presenting the page.  Turns out I have a tiny scroll bar on the right and the box displays almost the entire letters of code (cuts off a bit of the top).

But since you're going to incorporate that as something controlled in the Admin panel, it becomes moot.

Grazie mille!

Cal

[SiNaN]

You couldn't see the codes I gave because of your browser. Is it what you say? :)
Former SMF Core Developer | My Mods | SimplePortal

Sabre™

Quote from: Sabre™ on April 21, 2008, 07:15:52 AM
If you like, I can PM you an accounts details, so you can see what is happening.
Quote from: [SiNaN] on April 21, 2008, 08:35:56 AM
I would like to.

Awesome. I'll send you the pm now.
It is definitely the old summary function within my profile template, as when I removed it, the mod worked fine.
Hopefully you can find the fix/ work around as you did for the earlier version.
Thanks alot mate :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Sheree

hi there maybe you can help me out after installing the mod i got this error on the profile page

Table 'ourcrib_sheree.profile_comments' doesn't exist
File: /home/ourcrib/public_html/Sources/Load.php(1737) : eval()'d code
Line: 510

[SiNaN]

Quote from: Sheree on April 22, 2008, 05:39:46 AM
hi there maybe you can help me out after installing the mod i got this error on the profile page

Table 'ourcrib_sheree.profile_comments' doesn't exist
File: /home/ourcrib/public_html/Sources/Load.php(1737) : eval()'d code
Line: 510

That is related to the Profile Comments mod. Can you check whether you have the field profile_comments in smf_members in your database?
Former SMF Core Developer | My Mods | SimplePortal

PrizeLive.com

#92
Just installed but received an error on the profile page:

Database Error
Table 'moneytalkpro.feedback' doesn't exist
File: /home/moneytalkpro/public_html/forums/Sources/Load.php(1727) : eval()'d code
Line: 285

I had to use a package parser to make manual edits. I didn't see anything about making any database changes.
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Marcus Forsberg

The packageparser doesn't show database changes.

PrizeLive.com

#94
Quote from: MTF95 on April 22, 2008, 10:39:25 AM
The packageparser doesn't show database changes.

How will I know what database changes to make then?

EDIT: Nevermind. THIS mod is working fine now :). It was an issue with another mod that I had installed.
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Marcus Forsberg

Quote from: MoneyTalkPro.com on April 22, 2008, 10:42:12 AM
Quote from: MTF95 on April 22, 2008, 10:39:25 AM
The packageparser doesn't show database changes.

How will I know what database changes to make then?

EDIT: Nevermind. THIS mod is working fine now :). It was an issue with another mod that I had installed.

There should be some .php file in the package. There you can see what tables to make.

JoshieDaMan

#96
No failure installing, but however, one piece of code failed ultimate profile.

Look at my picture when I put this in.

Theme/Default/Ultimate.Profile.php
Find.
echo '
</td>';


// Now print the second column.


Replace with.

if(!empty($modSettings['enableProfileVisitors']) && $context['can_view_visitor']) {
echo '<br />
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%">
<tr>
<td class="titlebg" height="26" align="center">
', $txt['pv_latest_visitors'] ,'
</td>
</tr>';
if(!empty($visitor_profile)) {
echo '
<tr>
<td class="windowbg">
<table align="center">
<tr>';
foreach ($visitor_profile as $visitor)
echo '
<td class="windowbg" align="center" style="padding:5px;">', $visitor['avatar']['href'] ? '<img src="' . $visitor['avatar']['href'] .'" width="65" />' : '', '</td>';
echo '
</tr>
<tr>';
foreach ($visitor_profile as $visitor) {
echo '
<td class="windowbg" style="padding:5px;"><b>', $visitor['username'], '</b><br /><span class="smalltext">Posts:', $visitor['posts'], '<br /><a href="', $scripturl, '?action=profile;u=', $visitor['id'], '">', $txt[79], '</a>';
if ($context['can_delete_visitor'])
echo '<br /><a href="' . $scripturl . '?action=deletevisitor;profile=' . $context['member']['id'] . ';member=' . $visitor['id'] . ';sesc=' . $context['session_id'] . '">' . $txt[31] . '</a>';
echo '</span>
</td>';
}
echo '
</tr>
</table>';
}
else {
echo '<tr>
<td class="windowbg" align="center">', $txt['pv_no_visitors'], '</td>
</tr>';
}
echo '
</td>
</tr>
</table>';
}
echo '
</td>';


// Now print the second column.


I did that, now. Look how it turned out -

Solution?

cleanfiles

#97
Hey [SiNaN], Trying another of your mods and..
Tested ok, but after install I have this line at the top of the forum.

$txt['pv_latest_visitors'] = 'Latest Visitors'; $txt['pv_no_visitors'] = 'No visitors.'; $txt['enableProfileVisitors'] = 'Enable Profile Visitors?'; $txt['pv_dLogAdmin'] = 'Do not log Admins';

I am going to play around with it again will check back here later on.
EDIT; I forgot to say the mod is not working at all either, obviously because of the error.

Sabre™

#98
Hi cleanfiles. 
Go into your Languages directory...  Open up your    Modifications.english.php      and go to the bottom of that page/file.

You will see all of that code down there.
Just above it..  you will see this:         ?>

Move the  ?>   to the bottom of the page/file.   And save.

Remember to backup anything you change FIRST!!  ;)
Seeya :)

EDIT:    Just saw you edited your comment while I was typing.    The above should remove the code from the top of your screen, I cant guarantee it'll fix the mod problems youre having.  Just post back if the problem persists. :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


cleanfiles

Thanks Sabre™ that got rid of the error, but the mod still not working.
It's not all that important, would have been a nice addition though.  :)

Advertisement: