PDA

View Full Version : Who Viewed My Profile


Andreas
07 Jul 2005, 04:49
Who Viewed My Profile
Description
This Hack logs Profile Views and displays the last X Visitors.
It has settings for Flood Control, showing Unique Visitors and several Permissions (Can See Profile Views, Can see others Profile Views, Log Profile Views for Usergroup, Log Profile Views made by Usergroup).
It also takes care of invisible Users: They will be logged, but only shown to those who can see hidden Users.

Details
1 Product XML with 3 Queries, 3 Settings, 9 Phrases, 2 Templates and 3 Plugins
1 Bitfield XML
2 Template Edits

History
1.0.0
Initial Version
1.0.1
Fixed a Bug (http://www.vbulletin.org/forum/showpost.php?p=731876&postcount=8) that caused an SQL Error upon installation on Systems that use Table-Prefixes
1.0.2
Fixed a Bug (http://www.vbulletin.org/forum/showpost.php?p=732200&postcount=26) that caused an SQL Error when Floodcheck was enabled
1.0.3
Fixed a slight Bug for Permissions checks and updated for RC1 compatibiality
Please note: This Hack does only work for vBulletin 3.5.0 RC1 and up!
1.0.4
Fixed a slight typo that caused logging self-views in very rare cases

Important Note
This Add-on is no longer developed as vBulletin 3.7 contains similar built-in functionality.
You can use the attached product-profileviewsconvert.xml to convert existing data into vBulletin 3.7 format.
If you uninstall this hack before convertig the data, all existing data will be lost!

Please only click Install if you actually have installed/are using this Hack, and click Uninstall when you don't use it any longer!

Biker_GA
07 Jul 2005, 05:12
Hmmmmmmm. Loaded. However not showing the Profile Views in the UserCP menu.

Andreas
07 Jul 2005, 05:14
Did you Setup the Permissions?
By default none are active.

Biker_GA
07 Jul 2005, 05:15
Did you Setup the Permissions?
By default none are active.
Whups. Didn't see that screen. brb

Biker_GA
07 Jul 2005, 05:18
Works perfectly. :)

Biker_GA
07 Jul 2005, 05:22
I have a user who stalks via profiles. I have a feeling this will come to a screeching halt when she realizes the user will be able to see how many times she's viewing their profile. :)

Roxie
07 Jul 2005, 06:02
Excellent modification. :)

Roxie
07 Jul 2005, 06:13
Ok..after trying to upload the xml file, I get a database error. I now can't access the admin control panel. Here is the error:

Invalid SQL:
REPLACE INTO settinggroup (grouptitle, displayorder, volatile, product) VALUES ('memberlist', 250, 0, 'vbulletin');

MySQL Error : Table 'dizzam_daboard.settinggroup' doesn't exist Error Number : 1146
Date : Thursday, July 7th 2005 @ 02:11:15 AM

Andreas
07 Jul 2005, 08:03
Strange. Settinggroup memberlist is a default settinggroup, and the Table should really exist ...

Have you checked that the Table does exist?
Have you tried to disable all Plugins?

Roxie
07 Jul 2005, 08:16
I can't get into the admin panel to disable. And yes, the table (vb3_settinggroup) does exist.

I was thinking maybe there's a query I can run to disable this plugin?

Andreas
07 Jul 2005, 08:29
OK, there was a Problem with Table-Prefixes not being supported properly - this explains the SQL Error.

Open config.php and place


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


there.

Then go to Plugin Manager and delete all Plugins from this Hack.
Afterwards please check (in phpMyAdmin) if you have a row for grouptitle = 'memberlist' in Table vb3_settinggroup.

Roxie
07 Jul 2005, 08:30
any particular place to put that code?

Roxie
07 Jul 2005, 08:38
Nevermind. Figured it out. Just stuck it anywhere and was able to get back in.

And yes I do have that row.

Andreas
07 Jul 2005, 08:49
I think I found the Problem - stupid typo ;)

As said, delete all Plugins from the Hack, then remove the define from config.php, redownload and it should work then.
Sorry for the mess.
(I should start using Table-Prefixes on my Testserver ...)

Roxie
07 Jul 2005, 16:58
Okay, will try again. Thanks Kirby!

Roxie
07 Jul 2005, 17:44
Worked this time! :D

Roxie
07 Jul 2005, 18:25
Hate to be a pain...but the settings for the usergroups aren't sticking. When I change them...I get this error at the top of the page:

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 598

Andreas
07 Jul 2005, 18:31
Hmm ... where exactly do you get this error?

Roxie
07 Jul 2005, 18:36
OK...when I went to usergroups manager and selected the usergroup I wanted to edit...then I changed the settings (all to yes)..hit submit...and on the redirect screen (at the very top) was that error. I had to act quickly to copy it then redirects to the main usergroup manager page. When I went back into the usergroup that I had just edited...the settings that I had changed did not stick. Hope this makes sense.

Andreas
07 Jul 2005, 18:37
And it does only appear in Usergroup Manager after hitting Save?

Roxie
07 Jul 2005, 18:43
yep...

Andreas
07 Jul 2005, 18:45
Sounds a bit like a vBulletin Bug ...
Which Plugins from this Hack are currently activated?

Roxie
07 Jul 2005, 18:47
All of the plugins for this hack are activated.

Andreas
07 Jul 2005, 19:09
I ask again: Which Plugins from this Hack are being shown and activated?
It should be 3: member_complete, misc_start and cache_templates

Roxie
07 Jul 2005, 19:13
Yes. All three of those are activated in the plugin manager.

Biker_GA
07 Jul 2005, 19:19
Just ran into an issue with this one as well. Registered users are getting DB errors when attempting to view a profile from the Forum Home display page.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Deactivated the plugin and it's back to normal.

Andreas
07 Jul 2005, 20:04
Whoops :)
This happens when Flood Check is activated ... wrong column Name that somehow slipped through.
In Hook member_complete change byuserid to viewedby.

Does it work after this change?

Biker_GA
07 Jul 2005, 20:21
Can mark this one fixed. WOOHOO! LOL

Andreas
07 Jul 2005, 22:29
@Roxie
If you deactivate the Plugins, does it still generate the Error then?

Roxie
07 Jul 2005, 22:36
Yes. It does.

Andreas
07 Jul 2005, 22:41
Hmm, if the Plugins are deactivated then no Code of this Hack is active ... strange.
If you delete includes/xml/bitfield_profileviews.php and afterwards call admincp/index.php?do=buildbitfields, the new Permissions sould disappear in Usergroup Manager.
If you do so, does it still give the error?
And do you have Hacks installed that modify usergroup.php?

taffy056
07 Jul 2005, 22:41
Hi,

Does this allow admins (for example) not to show on the list of people who have viewed your profile?

taffy

Andreas
07 Jul 2005, 22:43
If you set Administrators to "Log Profile Views Made by this Usergroup = No", then they will not be logged/counted.
They will also not show up if they are Invisible and the User viewing the List does not have permission to see Hidden.

kall
07 Jul 2005, 22:52
Umm... where's the bitfield xml ?

Biker_GA
07 Jul 2005, 22:56
Should be /includes/xml

Andreas
07 Jul 2005, 23:01
@kall
Should be in the ZIP under upload/includes/xml :)

Roxie
07 Jul 2005, 23:01
Hmm, if the Plugins are deactivated then no Code of this Hack is active ... strange.
If you delete includes/xml/bitfield_profileviews.php and afterwards call admincp/index.php?do=buildbitfields, the new Permissions sould disappear in Usergroup Manager.
If you do so, does it still give the error?
And do you have Hacks installed that modify usergroup.php?

When I delete the bitfield_profileviews.php the new permissions disappear and I get no error.
And I don't think any of my other hacks/plugins modify usergroup.php.

Andreas
07 Jul 2005, 23:10
Strange, really ... strange.
There are only two calls to escape_string() in usergroup.php, and none of them seems to be executed when updating usergroup permissions.
Sorry, don't know what the Problem actually could be :(
If you want, send me a PM with ACP and FTP account, i'll try to sort this out then.

kall
07 Jul 2005, 23:19
@kall
Should be in the ZIP under upload/includes/xml :)
You're right.. it should be, shouldn't it.

It isn't tho. On re-downloading the .zip it is... how very strange. :)

kall
07 Jul 2005, 23:20
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 598 :(

*edit* Ahh. Event Comment modification (which wasn't even working) was interfering with this.

Andreas
07 Jul 2005, 23:41
*edit* Ahh. Event Comment modification (which wasn't even working) was interfering with this.
Which Modification? I'd like to take a look at it to understand how the Problem could occur.

As for the Bitfield XML: Depending on when you downloaded the File it was missing right - but in the current one it isn't :)

Roxie
08 Jul 2005, 00:23
I wonder if one of my other hacks is interfering? hmmm.

kall
08 Jul 2005, 00:32
Which Modification? I'd like to take a look at it to understand how the Problem could occur.

As for the Bitfield XML: Depending on when you downloaded the File it was missing right - but in the current one it isn't :)
OK... it may have been the lack of the bitfield file, or the old plugin with the byuserid query .. but it was the Comments in Calendar Events 3.5 plugin/mod.

(Sorry, my connection is crap at the moment, I could barely get to this page)

Biker_GA
14 Jul 2005, 20:19
Kirby, I can't get this to work properly with Beta 4. Registered users are getting permission denied errors when attempting to view other profiles, and I did set the permission in the usergroup.

Andreas
16 Jul 2005, 00:17
Hmm, I haven't installed Beta 4 yet but there really shouldn't be a Problem.

Biker_GA
16 Jul 2005, 03:00
Hmm, I haven't installed Beta 4 yet but there really shouldn't be a Problem.

I'm wondering if it's a conflict with another plugin? Here's what I have loaded.

Who Viewed My Profile
Hide Threads with unfinished Polls
New PM On Forum Home (If Unread)
Microstats
Multiquote
Allow members to report own posts
quote post in PM
Opt-Out Forums from "Get New Posts"
Create Reported Post as Thread
Disable Reported Post E-mails

Andreas
16 Jul 2005, 03:04
Could be, yes. But I don't think so.
I'll get back to you when I tested this on Beta 4

Andreas
16 Jul 2005, 13:58
Tested on Beta 4 now (installed on Beta 3, then upgraded to Beta 4) - does work just fine for me.

Biker_GA
16 Jul 2005, 14:16
Well Shazbot! **sigh** OK. I'll play around with it sometime this weekend and see what the devil is going on with it.

Biker_GA
17 Jul 2005, 21:51
Kirby, I've narrowed this one down. If I set "Can see others Profile Views" to No, it prevents all users from viewing their own Profile Views as well. When it's set to yes, it works fine. Only in this case, I don't want the users to be able to see the other "Profile Views". :)

Andreas
18 Jul 2005, 05:08
Right.

In Hook misc_start


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



should be



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Gonna update the ZIP soon.

Biker_GA
18 Jul 2005, 13:14
Danke!

Brinnie
20 Jul 2005, 18:56
Okay, I figured it out. Nice mod. :) I have a feature request though:

Here is a profile on deviantART: http://h4m1337.deviantart.com/
On their profiles it shows only the 5 Recent Visitors and it displays them on the profile page without having to open a new window.
It also has the setting for users to dissable it. :)

Just a suggestion. ;)

Michael Morris
23 Jul 2005, 02:37
What's going wrong here. I tried using this hack's xml template as a pattern to get my own hack to work and install it's phrases and templates. It didn't work.

I then tried dumped the database and just install this hack to beta 4. No dice. So now I have no idea what to do next.

The vb plugin system is going to be utterly worthless for code portability if phrases and settings can't be packaged.

Andreas
26 Jul 2005, 18:52
Fixed a slight Bug and updated for RC1.

Boofo
27 Jul 2005, 00:36
No template changes, right? Just the product file? ;)

chizzzz
27 Jul 2005, 16:05
I cannot import the new file "product-profileviews.xml". It shows blank in my plugin manager, but if I try to import an older version, when it was named "profileviews.xml" it works fine. Please Help me

Andreas
27 Jul 2005, 16:18
@boofo
There are Template Edits, as stated in the Readme :)

@chizzzz
This is a Product XML, not a Plugin XML.
Therefore you must import it as Product, not as Plugin.

chizzzz
27 Jul 2005, 16:34
Aha! Thats it, Im new to 3.5 , didnt even know there was a difference in product and plugin, but it works like a Charm now, thanks a lot

Biker_GA
27 Jul 2005, 17:59
@boofo
There are Template Edits, as stated in the Readme :)


I think he meant with the update... I was wondering the same thing. Were there any changes to the templates when you updated the mod?

Andreas
27 Jul 2005, 18:06
No. There are no functional changes. Just the bugfixe already posted and converted to a Product for RC1.

Boofo
27 Jul 2005, 21:39
I think he meant with the update... I was wondering the same thing. Were there any changes to the templates when you updated the mod?

Yes, sir, that's what I meant. ;)

FleaBag
27 Jul 2005, 23:25
Awesome hack, thanks for sharing!

TTG
28 Jul 2005, 00:38
Useful addition .. installed with no problems on RC1
Clicked install

Gizmo5h1t3
10 Aug 2005, 00:30
works fine on RC2

mikey86
17 Aug 2005, 06:47
awesome job!

ack
23 Aug 2005, 05:26
Installed and works great. Thanks. ^_^

Metal480
09 Sep 2005, 19:20
Where does the xml file get imported to (I'm new to vBulletin)?

Elmer
29 Sep 2005, 03:30
when i set up permissions its gives me an error...

will this plug in be updated to work in vb3.5.0 gold???

.Tim
29 Sep 2005, 03:42
when i set up permissions its gives me an error...

will this plug in be updated to work in vb3.5.0 gold???

Works just fine for me.

Elmer
29 Sep 2005, 04:16
Works just fine for me.

not for me...
Its gives me an error when trying to set permission to any usergroup..

Andreas
29 Sep 2005, 12:55
I didn't test it, but I don't see any reason why it should not work with gold.
Pleass be aware that the Bitfield XML must be uploaded before you import the product XML. otherwise you will get errors in usergroup manger.

cnutter
04 Oct 2005, 23:19
Installed on 3.5.0 Gold and looks like everything is running fine... Thanx for another great entension....

Elmer
04 Oct 2005, 23:35
I didn't test it, but I don't see any reason why it should not work with gold.
Pleass be aware that the Bitfield XML must be uploaded before you import the product XML. otherwise you will get errors in usergroup manger.

It's working now, thanks.

Allan
17 Oct 2005, 13:37
Click install, thanks Kirby :)


edit: I do not find this menu

Andreas
17 Oct 2005, 20:26
As shown in the screenshot:
ACP / vBulletin Options / vBulletin Options / User Listing & Profile Viewing

Allan
17 Oct 2005, 20:39
As shown in the screenshot:
ACP / vBulletin Options / vBulletin Options / User Listing & Profile Viewing

Exactly, it does not appear :(

Have you the road ( url ) ?

Andreas
17 Oct 2005, 21:02
It's a standard vBulletin setting group ...
Normally, there is no way it could not be there.

admincp/options.php?do=options&dogroup=memberlist

Allan
17 Oct 2005, 21:11
ok, thanks Kirby :)

Kihon Kata
17 Oct 2005, 23:15
Hmmmmmmm. Loaded. However not showing the Profile Views in the UserCP menu.

Major Install! Worked flawlessly right away!

moonclamp
19 Oct 2005, 08:57
For some reason this is not showing my hits on other's profiles ... the administrator group settings are correct and it works fine for other users and my test account (registered member group)

RaceJunkie
29 Oct 2005, 05:17
Works but I have this problem.

http://www.localracechat.com/forums/images/table.bmp

.Tim
29 Oct 2005, 05:27
Did you add the code ABOVE this?



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

kittykattjess
29 Oct 2005, 09:52
are the both XML files going to the same folder, if so which one.. sorry but I need to know which folder as I am a bit new to this.

T I A

Allan
29 Oct 2005, 22:41
I have to uninstall the hack, and when I updates usergroup in Admincp, I have this error:


Database error in vBulletin 3.5.0:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administrateurs',
`description` = '',
`usertitle` = '<img alt=\"Admin\" src=\"images/status/administrateur.gif\" border=\"0\">',
`opentag` = '<b><i>',
`closetag` = '</b></i>',
`passwordexpires` = '180',
`passwordhistory` = '360',
`forumpermissions` = '1048575',
`attachlimit` = '0',
`pmquota` = '50',
`pmpermissions` = '3',
`pmsendmax` = '5',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions` = '205520831',
`genericoptions` = '23',
`profilepicmaxwidth` = '1000',
`profilepicmaxheight` = '1000',
`profilepicmaxsize` = '6553500',
`avatarmaxwidth` = '80',
`avatarmaxheight` = '80',
`avatarmaxsize` = '20000',
`userpagepermissions` = '15',
`profileviewpermissions` = '0'
WHERE usergroupid=6;

MySQL Error : Unknown column 'profileviewpermissions' in 'field list'
Error Number : 1054
Date : Sunday, October 30th 2005 @ 12:37:57 AM
Script : http://www.phylosophia.com/forum/admincp/usergroup.php
Referrer : http://www.phylosophia.com/forum/admincp/usergroup.php?do=edit&usergroupid=6
IP Address : xx.xxx.xx.xxxx
Username : Allan
Classname : vb_database

Andreas
29 Oct 2005, 22:48
You did not uninstall it correctly.

RaceJunkie
30 Oct 2005, 04:46
Did you add the code ABOVE this?



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I had the </table> in the wrong spot.. :ermm: All fine now

Parture
01 Nov 2005, 13:59
All profile views read 0 and I can't find the link in my User CP?

http://biblocality.com/forums

I did a search for "profileviewpermissions" for phrases and variables and nothing comes up???

I know what I did wrong. I forgot to upload the bitfield file to xml. I see I have the product xml file in the /xml folder so I think it is not suppose to be there and I accidently uploaded it instead. Was that my mistake? Should I take the product-profileviews.xml file out of the xml folder? -- I'll remove it, since I am pretty sure it is not suppose to be there as I don't see any other files there called product....xml

Rukas
29 Nov 2005, 12:05
How much extra bandwidth does this use?

lsgworldl
01 Dec 2005, 20:36
I have a slight problem here is a screen shot

Andreas
01 Dec 2005, 20:44
http://www.vbulletin.org/forum/showpost.php?p=808139&postcount=87

lsgworldl
01 Dec 2005, 22:13
http://www.vbulletin.org/forum/showpost.php?p=808139&postcount=87
and that means what? and who are you refering to would be nice to say who you are answering and where to add this?

and more info

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/lsgworld/public_html/pspgameforums/forum/includes/adminfunctions_template.php(3532) : eval()'d code on line 134

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

lsgworldl
01 Dec 2005, 23:29
this is how my template looks



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Andreas
02 Dec 2005, 05:36
@lsgworldl
Your screenshot shows that you edited template USERCP_SHELL incorrectly.
The link I posted describes the problem.

Snake
09 Dec 2005, 11:47
Works on 3.5.2?

RaceJunkie
10 Dec 2005, 15:28
Works on 3.5.2?


Yes I just upgraded to 3.5.2 and all works fine

Snake
10 Dec 2005, 16:36
Coolio.

Hanif
10 Dec 2005, 16:50
Andreas,

Just read the thread is there any way to send a user an email or pm once their profile has been read and give the user the option to block further notices??

Something like the following would be great:

Hanif,

Andreas has looked at your profile. http://www.sitename/forums/[member profile_id

You can see who else has looked at your profile here:- http://www.www.sitename/forums/

If you don't want to receive these notifications, you can change your settings here: http://www.www.sitename/forums/something???

Kind regards,

Hanif

Alphawolf83
11 Dec 2005, 17:23
Is this hack available for 3.0.7?

IrPr
27 Dec 2005, 21:09
not workin in 3.5.2

Andreas
28 Dec 2005, 02:33
Nope, works fine with 3.5.2

AquilaEagle
28 Dec 2005, 08:58
Nice, will try this out :)

chizzzz
31 Dec 2005, 18:10
Does anyone know the code or steps to show the last XX amount of people who viewed your priofile DIRECTLY on the profile Page, instead of a link to a popup?

Lpspider
03 Jan 2006, 01:56
Does anyone know the code or steps to show the last XX amount of people who viewed your priofile DIRECTLY on the profile Page, instead of a link to a popup?

I'd like this to please.

The Chief
03 Jan 2006, 18:35
works great, thanks for this ;)

/me clicks install

tendo
16 Jan 2006, 01:23
does this work on 3.5.3? looks awesome !

snyx
22 Jan 2006, 00:07
how would one go about adding the users viewed to the actual MEMBERINFO template. using this code. I tired to play about with the xml but im still trying to wrap my head around this new system.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Silvio
23 Jan 2006, 11:16
Dear Andrea,

I've *Installed* your great mod but i have a little problem and i need Help.

I cant see on own profile the last added menù reguarding who wiewed profile.

I uploaded on my vbull 3.5.3 ur module downloaded yesterday night (so recent) i have done all modifications required as per your instructions, but
1) on my profile users field (Your demo pic nr 1 from left) that show how many viewd profile is always at : 0 (by the way I will duble check on forum permission)

2) on personal panel there is not the menu as per Your demo pic nr 3 from left and i cant figure how to show it.

3) I am not able to find the query as per Your demo pic nr 1 from left.

I will be very gratefull for kind help on it

ty & regards

I apologize for my bad english, I hope all is understandable.

ciao take care

EXCUSE ME EDITED POST :

I found permissions all to disable position so now I set them up and all is solved Sorry for my lamerness.

Great mod & works perfectly ciao!!!

Silvio
23 Jan 2006, 15:51
Andreas,

Is it possible to add 2 possibilities more to this gorgeous mod?

1) show/not show Hidden users on the who view list.
2) show/not show administrators on the who view list.

ty 4 help

regards

Andreas
24 Jan 2006, 00:19
Users who can see hidden users will see them, others won't

Silvio
24 Jan 2006, 09:42
Ty so much Andreas, I did realized that, but i would like to have the possibility to show even hiddens if required. ( I am trying to hide only online users that likes to be hidden, but what they did in the forum could be nice to be tracked and displayed for the future use/stat)

Reguarding Administrators, can you please explain me how can I set that group not to be visible by users on view profile even if adm is Not hidden? (but at same time visible on view profile from other admins)

take care

Again excuse my bad english but is quite difficult for me to explain with few words (and without mistakes) what I need.

ciao

XtremeOffroad
07 Feb 2006, 02:17
Works fantastic.
Installed and yep clicked install too :nervous:

Silvio
12 Mar 2006, 15:15
....



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



should be




Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



?

ciao

shadowdancer36
15 Mar 2006, 14:35
If I wanted to do a custom menu but wanted to bring up who viewed my profile, what would the html (link) be? I tried pasting what was in the control panel, but it brings up the 'Edit Options' screen when put in as a link.

Andreas
17 Mar 2006, 04:04
@Silvio
Indeed.

FunaGuy
17 Mar 2006, 14:45
plz help me
i getting this error when i try to install the .xml file



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Andreas
17 Mar 2006, 15:54
Then you already have an setting "maxprofileviews".
check to which product it belongs.

FunaGuy
17 Mar 2006, 15:59
i dont understand???
how can i check?

FunaGuy
17 Mar 2006, 16:36
if u have time for me so i pm u my login information then u fix it

makemedie
17 Mar 2006, 18:48
Hey, I tried uninstalling the product, and it seems something has gone wrong here. Now whenever I try editing usergroups, it gives me the following error -



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Any idea why this error is happening and how I can fix it?

Andreas
17 Mar 2006, 18:57
Which vBulletin version do you use?
Did you delete the bitfield XML file before uninstalling the product?

FunaGuy
17 Mar 2006, 21:35
hey
plz clean ur pm space
bcz i cant send u pm of my login inform plzzzzzzzzzz
do fast

makemedie
18 Mar 2006, 05:30
Which vBulletin version do you use?
Did you delete the bitfield XML file before uninstalling the product?

I use vBulletin 3.5.3

I dont remember, it's been a while. As far as I know, I went straight to the plugin manager and uninstalled the plugin from there. Or deleted. Whichever.

shadowdancer36
18 Mar 2006, 17:47
If I wanted to do a custom menu but wanted to bring up who viewed my profile, what would the html be? I tried pasting what was in the control panel, but it brings up the 'Edit Options' screen when put in as a link.

FunaGuy
19 Mar 2006, 15:41
plz help me???

Andreas
23 Mar 2006, 04:49
Help with what?

makemedie
23 Mar 2006, 06:25
I use vBulletin 3.5.3

I dont remember, it's been a while. As far as I know, I went straight to the plugin manager and uninstalled the plugin from there. Or deleted. Whichever.

I'm still waiting for an answer, right now my forum displays usernames in a color that is completely unreadable, and because I uninstalled your plugin incorrectly, I cant edit the usergroups without getting an error.

Help?

Andreas
23 Mar 2006, 06:28
Well, just delete the bitfield XML and rebuild bitfields.

makemedie
24 Mar 2006, 20:01
The problem lies in the tables. You got us to create a new column called "profileviews" but now it doesnt exist anymore or something however it still shows the radio buttons and the four options (no text) at the bottom of usergroup settings.

Would deleting the "bitfield XML" fix that? Where would I do that?

yayvb
25 Mar 2006, 03:31
I've had this installed for a couple of months now and realized that sometimes (not always) the list shows guest on the list like 3 different times with 3 different times, etc. I imagine it's only supposed to show guest once?

Dsyn11
26 Mar 2006, 07:43
Profile Views aren't incrementing. What's wrong?

shadowdancer36
26 Mar 2006, 15:47
I guess I can't get help on my question huh?

yayvb
26 Mar 2006, 18:48
Try this


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

shadowdancer36
26 Mar 2006, 20:16
Try this


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Thanks for your help :) Could you tell me exactly how I should place it? Here's the code needed for the slide menu (which is java btw)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Here's what I put which didn't work.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



What did I do wrong?

Andreas
27 Mar 2006, 00:11
I've had this installed for a couple of months now and realized that sometimes (not always) the list shows guest on the list like 3 different times with 3 different times, etc. I imagine it's only supposed to show guest once?
Depending on your settings, every single view might get logged.

yayvb
27 Mar 2006, 00:41
Depending on your settings, every single view might get logged.
Thanks Andreas. What I mean is I have it logging guest views, but I notice that on some people's profiles instead of saying like 50 views and showing Guest, Me, another user, etc. It may show Guest, me, Guest, Guest,....

So it may show Guest listed a few times but on other profiles it only says Guest once. Obviously if there are 50 profiles and it shows Guest once and a few other usernames, the GUESTS aren't showing up in multiple lines. However I've seen as many as 3 Guests on 3 seperate lines on the Profile Views thing.

I guess I will show a screenshot at a later time because I am going through them to take a screenshot and I don't see this now. :banana: haha I'm not kidding or going insane, I have seen guests listed more than once on several people's profile views things. Oh well, I'll shut up. :) I'll chime back in with a screenshot if I notice it again.:knockedout:

yayvb
27 Mar 2006, 00:48
Thanks for your help :) Could you tell me exactly how I should place it? Here's the code needed for the slide menu (which is java btw)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Here's what I put which didn't work.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



What did I do wrong?
Ok because whatever script you are showing the above code from is unfamiliar to me, i can't help too much, especially with a popup type element. Try something like this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

That won't open a popup window though. If you want it to open in a seperate window you can try this although like I said I'm not familiar with that particular script.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

shadowdancer36
28 Mar 2006, 00:55
Well they both sent me to the edit options screen. This is the slide menu I'm using : http://www.dynamicdrive.com/dynamicindex1/davidmenu.htm

I take that back. I was looking under the wrong style :) Thanks yayvb

Andreas
28 Mar 2006, 13:21
Thanks Andreas. What I mean is I have it logging guest views, but I notice that on some people's profiles instead of saying like 50 views and showing Guest, Me, another user, etc. It may show Guest, me, Guest, Guest,....

So it may show Guest listed a few times but on other profiles it only says Guest once. Obviously if there are 50 profiles and it shows Guest once and a few other usernames, the GUESTS aren't showing up in multiple lines. However I've seen as many as 3 Guests on 3 seperate lines on the Profile Views thing.

I guess I will show a screenshot at a later time because I am going through them to take a screenshot and I don't see this now. :banana: haha I'm not kidding or going insane, I have seen guests listed more than once on several people's profile views things. Oh well, I'll shut up. :) I'll chime back in with a screenshot if I notice it again.:knockedout:
Show only uniqe Visitors = Yes
?

makemedie
30 Mar 2006, 05:15
Well, just delete the bitfield XML and rebuild bitfields.

Thanks a LOT. That worked.

I digged your plugin, only thing is I'm installing new skins at the moment so had to remove it. Will be installing it back on as soon as I get all my skins installed.

Cheers for that! :banana:

Nathan2006
31 Mar 2006, 10:49
Thank you Andreas

Works great! :D

Install

yayvb
02 Apr 2006, 07:10
I must've came to vb 100 times over the past few days ready to upload my screenshot and completely got sidetracked each time. :)

Here's what I'm talking about. I can't seem to get it to stop doing this.

freefallu
18 Apr 2006, 01:11
Hi Andreas,

This is my third post here in vb...org :)

I love the idea and have almost got it working. I have clicked install as it mostly isntalled except in the user profile I cant get the part where somebody clicks on the link " profile views " to get the above image pop up and show them a list of who looked at it. Im sure its something simple that Im missing. I have looked back through this thread but cant see anything that might help ?

David

freefallu
20 Apr 2006, 03:14
any ideas ?

r0ckstar
23 Apr 2006, 15:15
Everytime a member tries to view a profile they get this error

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/theeyorg/domains/mywebsite.com/public_html/member.php(653) : eval()'d code on line 166

Can anyone help I think the problem lies in the MEMBERINFO template

cat4m
26 Apr 2006, 01:29
Not sure if I was doing the right thing because when I tried to install the bitfield xml file it kept saying Invalid file. I have had to uninstall. This is all new to me so maybe someone can advise. Thanks

Svenna
29 Apr 2006, 21:14
hello Andreas,
maximum numbers of visitors...is meant with that? maximum it is the maximum number or how often one can have a look at the profile?I climb not quite through there . . sorry.

thank from Hamburg, Svenna

gibhut
03 May 2006, 14:28
I have noticed the more profile views you have the more rows it scans when displaying who viewed.. Also on our site with 90,000 members i have noticed the table for profileviews gets mighty big (13 million rows) have you thought about a different way to store them

MustangLisa
22 May 2006, 02:12
Installing for MySpace hack, thanks.

Shaliza
22 May 2006, 05:35
Cool hack.

folkish
01 Jun 2006, 01:02
Installed. Good hack, thanks.

saycan
21 Jun 2006, 08:21
dont workıng.
all tıme (profıle views :0)
:S
whY?

Mastar
21 Jun 2006, 12:18
dont workıng.
all tıme (profıle views :0)
:S
whY?
Edit the setting in the usergroup manager

camuca
30 Jun 2006, 04:46
good work - smooth installation

forzablues
03 Jul 2006, 23:33
installed all permission done but havent got option in usercp for provile views or anything

forzablues
04 Jul 2006, 17:07
Any help? Still now showing on profiles

www.street-stylers-southwest.co.uk/forum

theChronic
19 Jul 2006, 01:56
Awesome mod, props :)

paul41598
25 Jul 2006, 18:23
Id like to see the ability to reset profile views

paul41598
16 Aug 2006, 21:02
Pagination would be sweet

Snake
22 Aug 2006, 11:34
I hope it's going to work on 3.6.0. :)

Snake
22 Aug 2006, 12:18
Looks like it doesn't seem to work on 3.6. :(

Exitilus
22 Aug 2006, 17:47
Work's fine for me on 3.6

Snake
22 Aug 2006, 20:03
Yeah you're right. Just made a silly mistake here and there.

Muellmann
27 Aug 2006, 20:01
Running on 3.60 no Problem! Thx for this ;)

Kaasie
03 Sep 2006, 22:15
Did you Setup the Permissions?
By default none are active.
hi where can I find these permissions?
thanks

Shazz
03 Sep 2006, 22:34
hi where can I find these permissions?
thanks
Admin CP> Usergroup>Usergroup Manager>Usergroup options

Kaasie
03 Sep 2006, 22:36
yes found it, thanks for the quick reply, much appreciated..
works smooth on 3.6.0
had no probs installing, great hack

Shazz
03 Sep 2006, 22:42
yes found it, thanks for the quick reply, much appreciated..
works smooth on 3.6.0
had no probs installing, great hack
Your welcome :)
Its very nice, Wish somehow it would show all the guests that have viewed it.

Snake
18 Sep 2006, 16:35
I tried to get it working on my 3.6 forums and it's not working properly.

Shazz
18 Sep 2006, 21:35
I tried to get it working on my 3.6 forums and it's not working properly.
Mines working fine on 3.6.1...

Snake
19 Sep 2006, 09:10
Yeah it works fine but does it really counts the number of profile views? Mine's like... it's stucked with the current number.

Shazz
19 Sep 2006, 14:03
Yeah it works fine but does it really counts the number of profile views? Mine's like... it's stucked with the current number.
Guests don't count, and make sure you have usergroup options set and vBoptions set right.

Snake
19 Sep 2006, 15:31
Nope still no luck.

bagh1
20 Sep 2006, 08:08
Hi,
I am facing a weird problem. The mod installed fine but if I do not allow regular users to see other's profile views, then they don't see a link for their own profile views either even though I have the option "Can See Profile Views" specifically selected?

Anyone else seen this issue or know what I could be doing wrong here? TIA!

PoetJA-1975
08 Oct 2006, 08:10
very nice modification - Thanx for sharing it
Clicks INSTALL

theChronic
10 Oct 2006, 02:20
Works on my 3.6.2. Yay.

silks
15 Oct 2006, 12:02
hi i love this mod - would anyone tell me how i can include the members picture within the list of people who viewd my profile?

and then use this on the profile page instead of the pop up its self?

many thanks for making this available

4Prometheus
22 Nov 2006, 00:25
Thank you very much for taking the time and trouble to share a working hack.

Happy Holidays!

Peace.

Shazz
22 Nov 2006, 00:28
Thank you very much for taking the time and trouble to share a working hack.

Happy Holidays!

Peace.

Please stop copy pasting the same exact lines to every SINGLE THREAD ON THE SITE its a little annoying

witolds
25 Nov 2006, 08:25
Hi,
I am facing a weird problem. The mod installed fine but if I do not allow regular users to see other's profile views, then they don't see a link for their own profile views either even though I have the option "Can See Profile Views" specifically selected?


hi bagh1,

i have exactly the same problem;

did you find any solution to this?

chris1979
06 Apr 2007, 18:17
Does this work with 3.6.5 or is there an alternative?

Snake
07 Apr 2007, 12:40
Yep, seems to work fine with 3.6.5.

Shazz
07 Apr 2007, 13:32
http://www.vbulletin.org/forum/attachment.php?attachmentid=31691&d=1120711731
Does that part work?

AzaDiyaR
07 Apr 2007, 13:34
thanks very good :D this working :D

deezelpope
07 Apr 2007, 15:22
Beautiful! Flawless install! Thank you very much!:up:

gobears20
11 May 2007, 02:55
How would you get this in the post-bit field? Any idea? Also, I am using 3.6.5 and this works fine.

Thanks!

Mrdby
17 May 2007, 22:49
3.6.6?

serhat_kk
12 Jul 2007, 16:30
when i click who viewed my profile link it opens f.a.q>smilies...how do i fix?

serhat_kk
12 Jul 2007, 18:54
when i click who viewed my profile link it opens f.a.q>smilies...how do i fix?

can someone help

Blackhat
19 Aug 2007, 11:36
Thanks a LOT. That worked.

I digged your plugin, only thing is I'm installing new skins at the moment so had to remove it. Will be installing it back on as soon as I get all my skins installed.

Cheers for that! :banana:

How do I rebuild the bitfield ?

htscpl
23 Aug 2007, 14:27
Id like to see the ability to reset profile views

I hope I'm not stepping on any toes, I think Andreas does some wonderful work. I added a little cron job to reset the profile views at the beginning of each month. Just copy this code to a file and upload it to your /forum/includes/cron folder as: profileviewreset.php



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Then go to your AdminCP to your Scheduled Task and add a new Scheduled Task

Varname: profileviewsreset
Title: Reset Profile Views
Description: resets profile view log each month
Log Phrase:
Day of the week: *
Day of the Month: 1
Hour: 4 (I use 4 but you can enter any hour just not *)
Minute: 0 1 - - - -
Active: Yes
Log Entries: No
File Name: ./includes/cron/profileviewreset.php
Product: Vbulletin

Click "Save"
That should do it. I'm not much of a coder so if you have a problem with this I may not be of much help; however, there are lots of good coders here who I am sure can fix anything I've messed up. You do this at your own risk (had to add the disclaimer, lol)

nnjj.net
23 Sep 2007, 21:43
is there any update for this for 3.6.8?

Triky
18 Oct 2007, 16:47
Yes, it seem to doesn't work on new vB versions.

Prox0001
21 Oct 2007, 21:55
Would also be happy about that mod in 3.6.8 :)

Konstantinos
22 Oct 2007, 06:16
it works for me in 3.6.8

CP,
24 Oct 2007, 02:22
anything for 3.6.8?

Alphawolf83
24 Oct 2007, 06:38
it works for me in 3.6.8
Works like a charm for me in 3.6.8. :)

nnjj.net
26 Oct 2007, 16:39
Not Supported hack!
I think its a risk :S

hoobaa
22 Nov 2007, 20:00
I installed this product. But i can just see the number of profile views.
I cant see "Profile views" link as seem below

http://www.vbulletin.org/forum/attachment.php?attachmentid=31692&stc=1&thumb=1&d=

What can i do ?????

dirtycrow
17 Dec 2007, 21:54
You did not uninstall it correctly.
how do you uninstall it correctly, please?

dirtycrow
17 Dec 2007, 21:57
I have to uninstall the hack, and when I updates usergroup in Admincp, I have this error:

You did not uninstall it correctly.


i get the same error. can anyone please assist me in fixing this, or how to correctly uninstall it.

thank you very much!

:)

Andreas
30 Dec 2007, 14:44
A converter for vBulletin 3.7 is attached in the 1st post.

gbox master
20 Jan 2008, 14:31
dear andreas
first off all thnx for the time you put into hacks
but i see loads of errors when i read this topic
so my question is plain and simple

will this work on vb 3.6.8 patch2 ?
and are all the template modifications in the zip file ?
then i will certenly install it if it does

:up:

gbox master
20 Jan 2008, 16:08
dear andreas
first off all thnx for the time you put into hacks
but i see loads of errors when i read this topic
so my question is plain and simple

will this work on vb 3.6.8 patch2 ?
and are all the template modifications in the zip file ?
then i will certenly install it if it does

:up:

sofar so good i can see all screens
now just wait and see what will happen when i convrt the database :confused:
anyway good hack if it works fine it will be a standart hack on my forum 4 all users to use
:p:p:p:p:p:p

Konstantinos
25 Jan 2008, 21:34
yes it works in 3.6.8 pl2

req2d
30 Jan 2008, 02:38
Same error on the uninstall, it's a real pita tbh.

Bubble #5
14 Feb 2008, 18:32
A converter for vBulletin 3.7 is attached in the 1st post.
THANK YOU for this Andreas. We were just going to ask if one was available :)

inciarco
06 Mar 2008, 17:06
Great Mod!! :up:

Works Fine in vB 3.6.8. PL2!! :up:

Users must remember to Set Permissions of this Mod for each Usergroup; premissions are to See the Profile Views, and also for the Mod to Save the Views made by each Usergroup!! ;)

My Best Regards, and Thank You For Sharing This Excellent Mod!! :up:

:)

caliman
28 Mar 2008, 03:38
I uninstalled this and had the same SQL error when making new usergroups until I removed the bitfield xml file and rebuilt bitfields.

Now I have another bug that I believe was due to this mod and usergroups.


Now when I create a new usergroup and make it the primary group of a user. That user cannot view the forum (you do not have permission) regardless of forum permissions or the usergroup settings. This sucks.

Please help!

Thanks in advance.

chadi
24 May 2008, 05:55
Database error in vBulletin 3.7.0:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Member',
`description` = '',
`usertitle` = '',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '0',
`passwordhistory` = '0',
`advanced_bbcode_usergroup_on` = '1',
`profileviewpermissions` = '0',
`forumpermissions` = '3920127',
`genericpermissions` = '1344812099',
`attachlimit` = '0',
`pmquota` = '150',
`pmpermissions` = '3',
`pmsendmax` = '1',
`moderatepm_permissions` = '2',
`calendarpermissions` = '63',
`wolpermissions` = '1',
`adminpermissions` = '0',
`genericpermissions2` = '1',
`genericoptions` = '62',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '80',
`avatarmaxheight` = '80',
`avatarmaxsize` = '20000',
`signaturepermissions` = '135227',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '20000',
`sigmaxrawchars` = '150',
`sigmaxchars` = '150',
`sigmaxlines` = '2',
`sigmaxsizebbcode` = '2',
`sigmaximages` = '1',
`albumpermissions` = '239',
`albumpicmaxwidth` = '1200',
`albumpicmaxheight` = '1200',
`albumpicmaxsize` = '1048576',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '23',
`visitormessagepermissions` = '55',
`socialgrouppermissions` = '343',
`journalpermissions` = '34783',
`glossarypermissions` = '1',
`uscpermissions` = '2',
`gb_permissions` = '3',
`radiotvpermissions` = '449',
`advanced_bbcode_permissions` = 'core||allow_bbcode_basic||1|||core||allow_bbcode_color||1|||core||allow_bbcode_ size||0|||core||allow_bbcode_font||1|||core||allow_bbcode_align||1|||core||allow _bbcode_list||1|||core||allow_bbcode_url||1|||core||allow_bbcode_code||0|||core| |allow_bbcode_php||0|||core||allow_bbcode_html||0|||non_core||mp3||0'
WHERE usergroupid=2;

MySQL Error : Unknown column 'profileviewpermissions' in 'field list'
Error Number : 1054
Request Date : Saturday, May 24th 2008 @ 12:52:00 AM
Error Date : Saturday, May 24th 2008 @ 12:52:01 AM
Script : http://www.talkjesus.com/admin****/usergroup.php?do=update
Referrer : http://www.talkjesus.com/admin****/usergroup.php?do=edit&usergroupid=2
IP Address : xxxx
Username : Chad
Classname : vB_Database
MySQL Version : 5.0.45-community


I get this after saving a default member group, and on top of the 4 rows are also blank. I uninstalled it after running the converter too. After reinstalling it, the 4 rows are not blank any more. However, I wish to successfully uninstall it.

Andreas
24 May 2008, 07:19
Remove the bitfield XML.

caliman
24 May 2008, 17:16
Andreas - Any help with this issue after uninstall?

I uninstalled this and had the same SQL error when making new usergroups until I removed the bitfield xml file and rebuilt bitfields.

Now I have another bug that I believe was due to this mod and usergroups.


Now when I create a new usergroup and make it the primary group of a user. That user cannot view the forum (you do not have permission) regardless of forum permissions or the usergroup settings. This sucks.

Please help!

Thanks in advance.

Andreas
24 May 2008, 17:27
Look at the post above you ...

CP,
24 May 2008, 18:06
Hi we are interested in the 3.7.0 version.. will you make one?

Thanks

Paul M
24 May 2008, 18:18
Doesnt 3.7 do this by default.

caliman
24 May 2008, 19:13
Look at the post above you ...

You misread. I uninstalled it. Removed the bitfields per instructions, etc.

Read what it does to usergroups going forward in my post.

Warlord
04 Jun 2008, 00:24
I'm on 3.6.4 and the options for this hack aren't showing up in my user group permissions. Also, the option for "Who viewed my profile" is missing and the profile views don't seem to be counting. Anyone know where I might have screwed up?

I uploaded the XML product, made the templates changes, and updated my vbulletin options.

Warlord
04 Jun 2008, 00:56
Nermind.... turns out I'm just stupid. :p

*clicks install*

voter
08 Jul 2008, 10:53
Doesnt 3.7 do this by default.
How about date and time, I see that vb 3.7 by default keeps the information when the visitor was viewing the profile, but I didn't find out how one could view this Time-Date information.

In this mod it is possible but in vb 3.7???

htscpl
14 Jul 2008, 19:20
I would also like to see an upgrade to VB 3.7.?.

3.7.* Profile view, unless I'm missing something. only shows the last 10 visitors and a count. My members liked the old mod that showed all the visitors and number of visits for each. (I did a cron job to reset it each month so it wouldn't get out of hand). So, if we could mod 3.7.* for the same kind of info that would be great.

Henry

Shazz
14 Jul 2008, 20:18
So simular in whats already in 3.7 it would almost be pointless updating this.
I guess if you like extra detailed dates etc.

Mutib
18 Jul 2008, 17:45
it's nice hack but i found these problems with me

1- if i choosed a usergroup to See thier Profile Views, it's not working unless i give them previlages to see others Profile Views

2- guests although they cann't browse my forum unless they they are registered
but i find many veiws mde by guest although admins veiws is logged on

3- sometimes i check other's profile & i see 7 veiws & when i check who see the profiles i found 3 members only

i'm using 3.5.4 version

thanks for the addon

Konstantinos
04 Aug 2008, 10:59
looks like it works for 3,7