View Full Version : Who's Online for PhotoPost vBGallery
vinzphua
11-17-2005, 10:00 PM
If you are upgrading from a previous version, un-install the product first, then re-install the new version. (Yes, even from ver 1.0.0 to ver 1.0.1)
Do not use this product with...
WOL is built into PhotoPost vbGallery from versions 1.0.3 and 2.0.x onwards. Do not use this product with those versions of vbGallery.
Description:
This is a small product that shows locations of users in your PhotoPost vBGallery instead of "Unknown Location" in vB's Who's Online page. I did not add links to the locations.
I had wanted to add links to some of the locations, but it looks complicated (getting the necessary data from the database and working out who should and should not see the links and activity details like image title, id, etc based on user and category permissions). It will take a lot more effort then I'm willing to, or can invest at the moment... so, I will not be adding that in the near future.
Oblivion Knight modified version 1.0.2 of this plugin to add links to the gallery index page. He posted the plugin in post #45 (https://vborg.vbsupport.ru/showpost.php?p=915482&postcount=45).
Locations:
Browsing Image Gallery
Editing Gallery Image
Emailing Gallery Image
Managing Gallery Categories
Moderating Gallery Posts
Moderating Gallery Uploads
Posting Gallery Reply
Printing Gallery Image
Searching Gallery
Sending Gallery Ecard
Uploading To Gallery
Viewing Gallery
Viewing Gallery Image
Viewing Gallery Index
Viewing Gallery Slideshow
Viewing Linked Gallery Image
Credits:
Noppid for this WOL How-To (https://vborg.vbsupport.ru/showthread.php?t=82882).
Tested on:
vBulletin 3.5.1 and PhotoPost vBGallery (vbAdvanced Gallery) 1.01
vBulletin 3.5.4 and PhotoPost vBGallery 1.02
Effort to install:
1. Download the XML.
2. Import the product at the AdminCP->Plugin System->Manage Products.
(See the vBulletin manual on how to install products.)
What is installed:
- 3 Plugins
- 16 Phrases
(All names of the above are prefixed with "vp_")
Support:
Unfortunately I have to withdraw active support for this mod as I have simply do not have enough time on my hands nowadays.
Notes:
- If you have many plugins installed at the "online_location_unknown", it may interfere with this product. Most likely it's because the other hooks sets a variable that indicates the locations have been successfully processed. I have an "if" statement to catch that to prevent unnecessary processing. All you need to do to fix it is edit the "Process vBaGallery WOL Locations" plugin at that hook and remove:
if (!$handled)
{
and "}" in the last line of the plugin.
Change Log:
Ver 1.0.1 (Beta) - 19 Nov 2005
- Added missing phrases.
Ver 1.0.2 (Beta) - 26 Nov 2005
- Removed an extra line of code.
vinzphua
11-18-2005, 07:49 AM
* Reserved *
D|ver
11-18-2005, 09:35 AM
great thank you :) :)
blue6995
11-18-2005, 10:02 AM
Installed, thanks :up:
gonkowonko
11-18-2005, 10:20 AM
nice makes the WHOS ONLINE bit better;)
divided_by_fear
11-18-2005, 11:04 AM
screen shot?
Ramsesx
11-18-2005, 12:11 PM
ups, please delete this
Ramsesx
11-18-2005, 12:16 PM
Thank you very much, now waiting for the links directory :rolleyes:
Ah, it would be nice if you could to integrate what image people are looking.
Snake
11-18-2005, 12:46 PM
Screenshots?
vinzphua
11-18-2005, 01:23 PM
Screenshots coming soon.
I've also discovered I've left out a few phrases. I'll put up an updated XML within the hour.
vinzphua
11-18-2005, 02:32 PM
Updated and uploaded. Apologies for the inconvenience.
Screen shot added.
Also note I have decided not to add links to the locations, which I earlier had said I would do.
Snoop-It
11-18-2005, 07:45 PM
Thank you very much, been looking all over vbadvanced forum for something like this :)
Cheers!
tidy_boy
11-19-2005, 09:56 AM
Thanks for this. Just need the one for my links section :banana:
vinzphua
11-20-2005, 01:06 PM
I'm not using links, but if someone can send me a list of php files in the root of the link folder I can probably do up the plugin. But just locations, no links to their actual location.
Lea Verou
11-20-2005, 02:29 PM
Wow thank you sooooooooooo much!!!!
You rock!!
I badly needed this!!
Thanks thanks thanks!!!!
:D :D :D
Lea Verou
11-25-2005, 02:04 PM
I hate to say that, as I know how difficult it is for the coder to figure out but it doesn't work :( Still shows like "unknown location"... :(
moonclamp
11-25-2005, 07:08 PM
This is cool ... the only problem I'm getting is with showimage.php and browseimage.php. They're not specific enough.
If you click on the link it brings up a "no image/category selected." error
However, I'd rather have this than 'unknown location' :)
moonclamp
11-25-2005, 07:12 PM
I hate to say that, as I know how difficult it is for the coder to figure out but it doesn't work :( Still shows like "unknown location"... :(
Where is your gallery installed? Mine isn't in the default root/gallery folder so I had to edit line 3 of the xml file to read /interactive/gallery/ rather than just /gallery/
vinzphua
11-26-2005, 01:18 AM
Where is your gallery installed? Mine isn't in the default root/gallery folder so I had to edit line 3 of the xml file to read /interactive/gallery/ rather than just /gallery/
I've fixed it for Michelle. She has a lot of plugin's installed at the online_location_unknown hook and one of them messed with one of the statements in my plugin for preventing unecessary processing.
I will post and update around that in a while.
vinzphua
11-26-2005, 01:22 AM
This is cool ... the only problem I'm getting is with showimage.php and browseimage.php. They're not specific enough.
If you click on the link it brings up a "no image/category selected." error
However, I'd rather have this than 'unknown location' :)
That's odd because I didn't put in any links at all.
vinzphua
11-26-2005, 01:46 AM
Version 1.0.2 released. Bug fix... sort of. Noticed an extra line of code, but it did not seem to be causing problems for anyone. It has been removed.
Moparx
11-26-2005, 01:54 AM
the file is missing ;)
vinzphua
11-26-2005, 02:08 AM
Whoops! Sorry about that. Uploaded it again.
divided_by_fear
11-26-2005, 04:50 AM
lol its a nice hack but i still get this here and there
Unknown Location
/forum.php
moonclamp
11-26-2005, 09:40 AM
That's odd because I didn't put in any links at all.
I just checked ... I'd already tried to add some WOL info using the custom WOL hack. It wasn't working at all on its own ... but it seems that with yours added the 2 hacks were working together.
Very odd.
vinzphua
11-26-2005, 01:54 PM
lol its a nice hack but i still get this here and there
Unknown Location
/forum.php
This product only adds WOL locations for vBadvance Gallery. Forum.php is not one of vBa Gallery's locations. It's from the modcp or admincp. You would be in forum.php if you accessed the Forum Manager either in the AdminCP or ModCP.
I'm pretty sure this product does not interfere with the normal WOL processing of vBulletin locations. Perhaps you have another plugin that is doing that?
vinzphua
11-26-2005, 02:00 PM
I just checked ... I'd already tried to add some WOL info using the custom WOL hack. It wasn't working at all on its own ... but it seems that with yours added the 2 hacks were working together.
Very odd.
You're using the hack by Andreas? If so, there are some posts in that hack's thread that specifically says that it will not work with files outside the forum folder.
My plugins specifically looks for files from the gallery folder, and strips off the path, leaving only the filename. That allows the filenames to be recognised by the custom WOL hack.
Great work and thanks however it killed the link on my gallery so you could not find out what they were looking at. I tried to edit the xml file to show the true location of my gallery but no luck. It might be that I have a chat hook already set to show chat locations. At any rate since the only unknown location messages that I get are from my gallery I simply edited the $vbphrase[unknown_location] phrase to "</b>Photo Gallery<b>" The html code is in place on purpose so that it removes the bold type from the photo gallery but still closes the tag. I'm sure there are better ways but for me it worked fine. Again thanks for the work.
vinzphua
11-29-2005, 06:17 AM
MaxM,
I don't quite get what you mean.
Do you mean you are still getting "Unknown location" for gallery links, when my plugins are enabled? Or that the location names are shown, but the link to the location is gone?
Or that you uninstalled/disabled it and edited $vbphrase[unknown_location].
Anyway, if you want to known their URL, set "Can view actual location of user (filepath/url)" to YES in the usergroup permissions. Members of that user group will see a round button with a question mark in the same column as the location name. When they mouseover the button, they will see a popup showing the URL of the location.
divided_by_fear
11-30-2005, 08:41 PM
could you make one of these for vbadvanced? would be really nice since i get some of the Unknown Locations on there
MaxM,
I don't quite get what you mean.
Do you mean you are still getting "Unknown location" for gallery links, when my plugins are enabled? Or that the location names are shown, but the link to the location is gone?
Or that you uninstalled/disabled it and edited $vbphrase[unknown_location].
Anyway, if you want to known their URL, set "Can view actual location of user (filepath/url)" to YES in the usergroup permissions. Members of that user group will see a round button with a question mark in the same column as the location name. When they mouseover the button, they will see a popup showing the URL of the location.
I uninstalled your xml file and then edited my unknown_location text to read Photo Gallery since it was the only time I had ever seen unknown location. As I stated with your application I could not tell the exact url that people were looking at.
Max
vinzphua
12-01-2005, 04:45 AM
You can see the exact URL... just mouse over the Question Mark graphic on the right of the location name. See the attached image. This is provided that you set the appropriate permissions for yourself in the UserGroup.
divided_by_fear
12-01-2005, 07:35 AM
so do you think you could?
You can see the exact URL... just mouse over the Question Mark graphic on the right of the location name. See the attached image. This is provided that you set the appropriate permissions for yourself in the UserGroup.
I didn't try that, is there any way to make the url show up rather then just preview?
Thanks
vinzphua
12-01-2005, 09:49 AM
MaxM, yes there is. Give me a few days to work on it.
vinzphua
12-01-2005, 09:54 AM
could you make one of these for vbadvanced? would be really nice since i get some of the Unknown Locations on there
Which vBadvanced product?
Thing is, I'm not using anything else from them other then the Gallery. It's isn't hard to do, but I need the list of php files that are called and if possible access to your forum where I can see the vBadvanced product working. Can't guarantee I'll catch everything though.
As I have it now this is what you see. But if it could be fixed to look like that without the edit to the unknown that would be better.
divided_by_fear
12-01-2005, 06:59 PM
vinzphua ill pm you... yeah this would be great cause it sucks seeing that....
Rob Locke
12-23-2005, 06:36 PM
Is it possible for the next version to include a link to the gallery below the viewing location info? For example:
Browsing Image Gallery
Image Gallery (http://vbulletin.org)
Much like the Viewing Forum info.
Lea Verou
12-23-2005, 06:38 PM
Is it possible for the next version to include a link to the gallery below the viewing location info? For example:
Browsing Image Gallery
Image Gallery (http://vbulletin.org)
Much like the Viewing Forum info.
I think he said he's not going to do it.
vinzphua
02-14-2006, 01:54 AM
Hi all,
Sorry for the long absence. Life has been a mess for a while and I've had to shift my attention to more pressing issues. I won't be able to continue supporting this plugin. If I do upgrade it for the forum I'm administrating, I will TRY to update this thread.
DefenceTalk
02-21-2006, 06:00 PM
A little update: This hack does not work with latest version (3.5.4) of vB.
thanks!
vinzphua
02-22-2006, 12:32 PM
I should be upgrading the forum I'm administrating to 3.5.4 in the coming weeks. I'll put up the fix after that.
vinzphua
03-04-2006, 05:03 AM
I've upgraded my forum to vBulletin 3.5.4 and PhotoPost vBGallery to 1.0.2. I haven't tested it fully, but the plugin seems to work fine on my forum without any modifications.
DefenceTalk, could you elaborate how it's not working for you?
Oblivion Knight
03-04-2006, 06:56 AM
Working fine for me on 3.5.4, and I even fixed up the URL display.. :)
I hope you don't mind me posting this.
vinzphua
03-04-2006, 10:24 AM
Andy,
Don't mind at all. I'll even link to your post from my plugin description with due credit.
Went thru your code. If I'm not wrong, your URL only links to the index page of the gallery, right?
Oblivion Knight
03-04-2006, 06:58 PM
Yes. It's a lazy link (but looks better than the full URL).. ;)
Otherwise, it would require much more advanced coding to grab the exact names of the categories and images that a user was viewing.. I think.
dcpaq2xx
03-25-2006, 03:49 AM
I tried both xml files and I never was able to get it to work. It just always shows being in the main index page.
Doug
vinzphua
03-25-2006, 04:03 AM
It'll only work if you installed both vBulletin and vBGallery as recommended. Did you install vBGallery in a different folder then the one recommended in the installation instructions?
If you install it in different folders, then you will have to change some of the code.
dcpaq2xx
03-25-2006, 04:25 AM
It'll only work if you installed both vBulletin and vBGallery as recommended. Did you install vBGallery in a different folder then the one recommended in the installation instructions?
If you install it in different folders, then you will have to change some of the code.
I renamed the original folder called Gallery to something else, are you saying that if i change the folder name then I have to change everything referrenced to gallery in the plugin?
Would you be able to tell me what to edit to get this to work properly?
Thanks
Doug
vinzphua
03-27-2006, 12:24 PM
Go to Admin->Plugin System->Plugin Manager.
Look for "Hook Location: online_location_preprocess".
Click on "'PreProcess vBaGallery WOL Activities".
The first line of the code should be:
if (strpos($loc, '/gallery/') !== false)
Change "gallery" to the folder name you have chosen. Only change this line. Leave the rest alone.
Click save and you're done.
dcpaq2xx
03-27-2006, 01:03 PM
Thank you vinzphua
Ill give this a try first chance I get.
Doug
dcpaq2xx
03-30-2006, 07:38 AM
vinzphua,
Thank you that did work, but I notice that when I go deeper into the folders than just the Main Page the "WOL" shows "Viewing Gallery Index Home Gallery" until I reach the last folder that contains the actual images.
Once I hit that folder with the images it then shows "Browsing Image Gallery Home Gallery" and when I click on the "Home Gallery" link I get a white page cannot be displayed error.
Anything else that needs to be adjusted?
Doug
vinzphua
03-31-2006, 07:54 AM
Hi Doug,
Can you PM me your forum/gallery URL? I would like to see how you organise your gallery.
Second thing is, you should not be seeing the words "Home Gallery", unless you changed the phrases that were installed with the Product XML.
Disable the product and see if you still get an error when you click the "Home Gallery" link. When you say "Home Gallery" link, am I correct to assume you are talking about the (originally) "Home" link on the vBGallery menu bar?
vinzphua
03-31-2006, 08:02 AM
If you view a Category, for which the "Act as Category" option is set to "No", the WOL will show "Viewing Gallery Index".
dcpaq2xx
03-31-2006, 02:31 PM
I would like to see how you organise your gallery.
I have them organized like a "family tree" kinda like. I have multiple folders and you work your way through them until you get to the catagory you want. Like for example with car manufacturers, youll see a list of all the manufacturers, gm, ford, vw, chrysler, and so on. You click on which one you want, then you see another lists of folders by GM line such as like on GM for example, youd have, Buick, GMC, Chevrolet, and so on. Then you would select which one of these you want and then youd get a list of models and you would pick your model and the list just keeps breaking it down until you select the exact thing you want. Get the idea of how its laid out now?
It would be similar to the way the navigation line at the top of the forums here is or like when your on Ebay.com's site. See attached screen shots for an example.
Second thing is, you should not be seeing the words "Home Gallery", unless you changed the phrases that were installed with the Product XML.
I have not changed any phrases in the Gallery that I know of.
Disable the product and see if you still get an error when you click the "Home Gallery" link.
Ill give it a try when I get time.
When you say "Home Gallery" link, am I correct to assume you are talking about the (originally) "Home" link on the vBGallery menu bar?
NO, I am not.... I am referring to the "Home" link in the WOL, NOT the VB GAllery Menu Bar.
vinzphua
04-01-2006, 11:38 AM
I think I got it. You installed the modified one that Oblivion_Knight posted. It's in post #45. That's why you have "Home Gallery". You need to check with him why the link "Home Gallery" does not work.
As for "Viewing Gallery Index", I have answered in my previous post.
dcpaq2xx
04-01-2006, 04:37 PM
You installed the modified one that Oblivion_Knight posted. It's in post #45.
Yes that is correct, I did install his, I did not think there was a difference but apparently there is.
Doug
mrderanged
09-01-2006, 02:28 AM
I just uninstalled this mod and my forums are completely hosed!!!!!
Getting the following mysql errors everywhere:
Database error in vBulletin 3.5.3:
Invalid SQL:
SELECT
userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
language.phrasegroup_holiday AS phrasegroup_holiday,
language.phrasegroup_global AS phrasegroup_global,
language.options AS lang_options,
language.languagecode AS lang_code,
language.charset AS lang_charset,
language.locale AS lang_locale,
language.imagesoverride AS lang_imagesoverride,
language.dateoverride AS lang_dateoverride,
language.timeoverride AS lang_timeoverride,
language.registereddateoverride AS lang_registereddateoverride,
language.calformat1override AS lang_calformat1override,
language.calformat2override AS lang_calformat2override,
language.logdateoverride AS lang_logdateoverride,
language.decimalsep AS lang_decimalsep,
language.thousandsep AS lang_thousandsep
FROM user AS user
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) INNER JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))
WHERE user.userid = 8152;
MySQL Error : Unknown column 'language.phrasegroup_holiday' in 'field list'
Error Number : 1054
Date : Thursday, August 31st 2006 @ 10:19:03 PM
Script : http://www.arachnoboards.com/ab/index.php
Referrer :
IP Address : 24.47.177.239
Username :
Classname : vB_Database
Database error in vBulletin 3.5.3:
Invalid SQL:
SELECT languageid,
phrasegroup_holiday AS phrasegroup_holiday,
phrasegroup_global AS phrasegroup_global,
options AS lang_options,
languagecode AS lang_code,
charset AS lang_charset,
locale AS lang_locale,
imagesoverride AS lang_imagesoverride,
dateoverride AS lang_dateoverride,
timeoverride AS lang_timeoverride,
registereddateoverride AS lang_registereddateoverride,
calformat1override AS lang_calformat1override,
calformat2override AS lang_calformat2override,
logdateoverride AS lang_logdateoverride,
decimalsep AS lang_decimalsep,
thousandsep AS lang_thousandsep
FROM language
WHERE languageid = 1;
MySQL Error : Unknown column 'phrasegroup_holiday' in 'field list'
Error Number : 1054
Date : Thursday, August 31st 2006 @ 10:19:02 PM
Script : http://www.arachnoboards.com/ab/
Referrer :
IP Address : 68.225.182.163
Username :
Classname : vB_Database
PLEASE HELP!!!!!!
vinzphua
09-06-2006, 12:29 PM
Apologies for the late response, I don't check in here as often I used to.
This mod is a pure plugin and does not alter any vBulletin codes. And it is only excuted if you go to the WOL page. In both these errors, you are in the forum index page. The plugin has nothing to do with this error. Did you do anything else other then uninstall this product?
I suggest you disable all plugins temporarily and see if you still get this error. You can do this by editing your config.php and:
1. Look for '<?php'. This is usually in the first line of the config.php file.
2. Add 'define('DISABLE_HOOKS', true);' below that line.
If that helps, it means one of the other mods are acting up.
Wish I can help more.
mrderanged
09-06-2006, 01:34 PM
Nope, just uninstalled. Found out that right after I uninstalled it, my phrase table was completely wiped. Reinstalling the language with tools.php didn't even work. Jelsoft is looking into it now... :(
vinzphua
09-06-2006, 03:18 PM
Please keep me updated or point me to the bug report or thread. Though I still don't think the plugin had anything to do with it, I'll like to keep track of this. Just in case.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.