Profile Visitors (4.1 Released | SMF 2.0 Compatible)

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

Previous topic - Next topic

[SiNaN]

My SMF 2.x Mods:

PM Informer
Topic Locked Message

Excluding SimplePortal, my other mods will not be updated to SMF 2.x until the final release.
Former SMF Core Developer | My Mods | SimplePortal

Sudhakar Arjunan

Quote from: F.L.A.M.E.R on August 26, 2008, 04:39:15 PM
Jana Gana Mana Rocks the world... just 53 seconds but yet heart touching...

Thanks a lot for excellent comment i have never expected from a SMF community.
Its Our National Anthem. Thanks a lot Mumbai F.L.A.M.E.R . But it seems you are 16 , is that true.

Quote from: [SiNaN] on August 26, 2008, 04:57:11 PM
asudhakar:

I can't see it. Guests don't have permission to view profile visitors I think.

F.L.A.M.E.R:

Sorry. I couldn't get what you mean.

No way, guest could access the profile page . I have checked it and F.L.A.M.E.R is taking about the video i have in my profile.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

runebergen


Go figure, every time I look around for a mod i desperately need... its Sinan who have made it :D :D :D



Rockin mod this one too!!! 

[SiNaN]

They can see profile pages, but not Profile Visitors.

Thanks runebergen. ;)
Former SMF Core Developer | My Mods | SimplePortal

billis_2

 Please help me!

Install Actions
Installations actions for "Profile_Visitors":
Installing this package will perform the following actions:                                             Type Action Description
1. Execute Modification ./index.php                                                                     Test successful
2. Execute Modification ./Sources/Load.php                                                            Test successful
3. Execute Modification ./Sources/ManagePermissions.php                                            Test successful
4. Execute Modification ./Sources/ModSettings.php                                                               Test successful
5. Execute Modification ./Sources/Profile.php                                                            Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english.php         Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php     Skipping file
8. Execute Modification ./Themes/default/Admin.template.php                                      Test successful
9. Execute Modification ./Themes/default/Profile.template.php                                      Test successful
10. Execute Modification ./Themes/default/UltimateProfile.template.php                       Skipping file
11. Execute Code install.php

And
Database Error
Duplicate column name 'visitors'
File: /***/***/public_html/forom/Packages/temp/install.php
Line: 6

shadow82x

Will this be updated to 2.0 soon? Or in 5.0?
Colin B
Former Spammer, Customize, & Support Team Member

Adish - (F.L.A.M.E.R)

Quote from: billis_2 on September 09, 2008, 05:37:11 PM
Please help me!

Install Actions
Installations actions for "Profile_Visitors":
Installing this package will perform the following actions:                                             Type Action Description
1. Execute Modification ./index.php                                                                     Test successful
2. Execute Modification ./Sources/Load.php                                                            Test successful
3. Execute Modification ./Sources/ManagePermissions.php                                            Test successful
4. Execute Modification ./Sources/ModSettings.php                                                               Test successful
5. Execute Modification ./Sources/Profile.php                                                            Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english.php         Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php     Skipping file
8. Execute Modification ./Themes/default/Admin.template.php                                      Test successful
9. Execute Modification ./Themes/default/Profile.template.php                                      Test successful
10. Execute Modification ./Themes/default/UltimateProfile.template.php                       Skipping file
11. Execute Code install.php

And
Database Error
Duplicate column name 'visitors'
File: /***/***/public_html/forom/Packages/temp/install.php
Line: 6


Welcome to SMF !, i dont see any problem here... all the tests are successfull.. and the duplicate entry in the database was like due to the last uninstall which "maybe" wasnt made properly... it is not a problem actually.. just carry on the forum.. if you get the error again just report in back..

[SiNaN]

shadow82x:

Probably. I'm going to rewrite the mod and update to SMF 2.0. Just too busy these days.

billis_2:

Run this query from PhpMyAdmin before installing the mod:

ALTER TABLE smf_members
DROP visitors,
DROP visitorstime
Former SMF Core Developer | My Mods | SimplePortal

shadow82x

Quoteshadow82x:

Probably. I'm going to rewrite the mod and update to SMF 2.0. Just too busy these days.
Perfectly understandable. Its the school year now. :P ;)
Colin B
Former Spammer, Customize, & Support Team Member

puppeter

I get the same message:

Duplicate column name 'visitors'
File: /***/***/public_html/forom/Packages/temp/install.php
Line: 6


and it prevents me from installing the mod... now what?

someone said that this message should be ignored, but mod isnt working at all...

4fit?

Mod installed and is workig fine.  However, the time that is logged is off.  For instance, my forum time says 9:29:14, but my profile visit says 5:29:14.  Appeara that it is not picking up the forum time offset correctly or something.  Any fix for this

F4r4Zm0In

Hi all,

while trying to access profile :

http://mydomainname.com/community/index.php?action=profile

I am getting this error message

Quote

    Database Error
    Unknown column 'mem.visitorcount' in 'field list'
    File: /home/vol2/byethost15.com/b15_800787/mydomainname.com/htdocs/community/Sources/Load.php
    Line: 895

Also, while trying to access user profile's

for example > http://mydomainname.com/community/profiles/jackking-u302.html

i am getting the same error message:

Quote

    Database Error
    Unknown column 'mem.visitorcount' in 'field list'
    File: /home/vol2/byethost15.com/b15_800788/mydomainname.com/htdocs/community/Sources/Load.php
    Line: 895



Any ideas  ???



---------------------
Not Just Another Forum
---------------------

F4r4Zm0In

Common Fellow,

Its already two days passed, and i have received no response

Can some please throw some light on this issue.

Regards.
---------------------
Not Just Another Forum
---------------------

[SiNaN]

puppeter:

Run this query from PhpMyAdmin:

ALTER TABLE smf_members
DROP visitors

It the problem wil persist, then use this:

ALTER TABLE smf_members
DROP visitorstime

4fit?:

This is an old mod of my, it has some annoying bugs but really don't have time to update.

../Sources/Profile.php

Find:

'time' => strftime($time_format, $visitortime[$count]),

Replace:

'time' => timeformat($visitortime[$count], $time_format),

F4r4Zm0In:

Run this query from PhpMyAdmin:

ALTER TABLE smf_members
ADD visitorcount INT( 10 ) DEFAULT 0 NOT NULL

For all:

I was moving my house, sorry for delay.
Former SMF Core Developer | My Mods | SimplePortal

Kimmie

#274
I have been randomly seeing these 2 errors (once every few days) in my log and I am not sure if its a mod issue or not so I wanted to check with you here first :) :

http://patriotgames2.info/index.php?action=profile2 
8: Undefined index: visitors
File: /home//public_html/Sources/Profile.php
Line: 445

http://patriotgames2.info/index.php?action=profile2
8: Undefined index: visitorstime
File: /home/patriotg/public_html/Sources/Profile.php
Line: 446

(every time I get this error it always shows "profile2")

When I click on the link that it gives as to where the error occured I get this (which is what I am assuming the member saw):

An Error Has Occurred!
The user whose profile you are trying to view does not exist.

Would this be a mod issue or just a general issue appearing because this person is trying to view the profile of someone who is no longer a member? If it is just a general error, does the fact that the ending on the link always shows "profile2" mean that its the same persons profile they are all trying to view? (meaning member #2)?

Thanks for any info you can provide on this :)

[SiNaN]

Interesting. I know this mod has a few bugs but not sure what causes that. Can you attach your Profile.php file here?
Former SMF Core Developer | My Mods | SimplePortal

Filipina

hi.  I love this MOD idea and I tried for several hours to make it work with the SMF Gallery Pro Mod which shows the most recent 5 pictures you add in the gallery inside your profile.  The Gallery Pro MOD lists the pictures right below your profile picture.  I am trying to get this profile visitors MOD to show display directly below the Gallery Pro MOD pics in the same column of course. 

Is it possible you can look at this profile.template file to see if it is possible to work.  I going to change the gallery profile MOD to list the last 3 instead of 5 so there is more room, if I can get this Mod to work.  Thanks for listening :) 

djrem

#277
One of my previous mods has edited the ban exceptions part of sources/profile.php

where would i need to put this part of the code:



'explanation' => $ban_explanation, ); } mysql_free_result($request); } // Do we need to fetch the visitor data? if(!empty($modSettings['pv_enabled']) && $context['can_view_visitor']) { //Prepare data variables. $context['visitor_profiles'] = array(); $visitor = explode(',', $context['member']['visitors']); $visitortime = explode(',', $context['member']['visitorstime']); $count = 19; $found = 0; while($count >= 0) { if (!empty($visitor[$count])) { //Get visitors' profile info. $request = db_query(" SELECT m.ID_MEMBER, m.realName, m.posts, m.avatar, a.ID_ATTACH, a.attachmentType, a.filename FROM {$db_prefix}members as m LEFT JOIN {$db_prefix}attachments AS a ON (a.ID_MEMBER = m.ID_MEMBER) WHERE m.ID_MEMBER = $visitor[$count]", __FILE__, __LINE__); while ($row = mysql_fetch_assoc($request)) { //Just an avatar check. if (stristr($row['avatar'], 'http://') && !empty($modSettings['avatar_check_size'])) { $sizes = url_image_size($row['avatar']); // Does your avatar still fit the maximum size? if ($modSettings['avatar_action_too_large'] == 'option_refuse' && is_array($sizes) && (($sizes[0] > $modSettings['avatar_max_width_external'] && !empty($modSettings['avatar_max_width_external'])) || ($sizes[1] > $modSettings['avatar_max_height_external'] && !empty($modSettings['avatar_max_height_external'])))) { // Fix it permanently! $row['avatar'] = ''; updateMemberData($row['ID_MEMBER'], array('avatar' => '\'\'')); } } $past = time() - $visitortime[$count]; if($past > 86400) $time_format = '%d/%m/%y'; else $time_format = '%H:%M:%S'; //Build up the array. $context['visitor_profiles'][] = array ( 'id' => $row['ID_MEMBER'], 'username' => $row['realName'], 'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>', 'avatar' => array( 'name' => $row['avatar'], 'image' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? '<img src="' . (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($row['avatar'], 'http://') ? '<img src="' . $row['avatar'] . '" alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row['avatar']) . '" alt="" class="avatar" border="0" />'), 'href' => $row['avatar'] == '' ? ($row['ID_ATTACH'] > 0 ? (empty($row['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row['filename']) : '') : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']), 'url' => $row['avatar'] == '' ? '' : (stristr($row['avatar'], 'http://') ? $row['avatar'] : $modSettings['avatar_url'] . '/' . $row['avatar']), ), 'time' => strftime($time_format, $visitortime[$count]), ); } mysql_free_result($request); $found = $found + 1; if($found == $modSettings['pv_show_count']) break; } $count = $count - 1; } }



I have attached

ryozo

Problem encountered during install

Installations actions for "Profile_Visitors":
Installing this package will perform the following actions:    Type   Action   Description
1.   Execute Modification   ./Themes/default/languages/Errors.english.php   Test successful
2.   Execute Modification   ./Themes/default/languages/ManagePermissions.english.php   Test successful
3.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
4.   Execute Modification   ./index.php   Test successful
5.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
6.   Execute Modification   ./Sources/Load.php   Test successful
7.   Execute Modification   ./Sources/Profile.php   Test successful
8.   Execute Modification   ./Themes/default/Profile.template.php   Test failed
9.   Execute Modification   ./Sources/ModSettings.php   Test failed
10.   Execute Modification   ./Themes/default/UltimateProfile.template.php   Skipping file
11.   Execute Code   database.php

I did Double check what this mod is searching in profile.template and modsetting.
all the codes are there so there should be no problem.
im attaching my profile.template and modsetting.

Thanks!

Sudhakar Arjunan

Hi SiNaN, Will i get a update to 2.0.4.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Advertisement: