![]() |
Photopost "gallery" clickable icon in postbit(_legacy) and/or profiles.
Gone
|
Nice :)
|
Will test tomorrow
|
cheers, lovely mod
-b6 |
Not mentioned in the instructions (with zip) about altering the query for your database, please explain the query to us
Code:
$photo_query=$vbulletin->db->query_read("SELECT userid FROM photos"); and what this ? > ../gallery/showgallery.php/cat/500/ppuser/$post[userid] /cat/500/ppuser? your using search engine friendly, im not... ?cat=500&ppuser=$post[userid] (for me) -b6 |
Not sure why mine is not working...
My pp database is in the same one I use for vbulletin not a seperate database. Here is my gallery.php file. My custom field is feild8. If I go into my database (database name is satellit_vb) and go to the userfield I can input Yes in field 8 and then it shows up, so this shows me it is not looking at the photopost database correctly. Any ideas? Code:
<? |
Yes that works well thank you!
|
I'm trying to get this to work, but I'm getting the following error messages:
Database error in vBulletin 3.5.4: Invalid SQL: SELECT userid FROM mustangg_photopost.pp_photos; MySQL Error : Access denied for user 'mustangg_bowers'@'%' to database 'mustangg_photopost' Error Number : 1044 Date : Monday, May 8th 2006 @ 04:30:20 PM Script : http://www.mustanggt.org/forums/cron.php?&rand=503085 Referrer : http://www.mustanggt.org/forums/showthread.php?t=41439 IP Address : 69.117.185.102 Username : Unregistered Classname : vb_database I'm assuming I'm getting this error message because I have my photopost database separate from my vbulletin database (and it requires different users - mustangg_bowers is the user for my vbulletin database and mustangg_bowers1 is the user for my photopost database). Is there anyway around this?? Help! :bunny: Thanks! |
Quote:
vBulletin board - http://www.mustanggt.org/forums/index.php Photopost gallery - http://www.mustanggt.org/photopost/index.php Thanks. |
Quote:
Thanks! |
Quote:
|
Can this work for vbAdvanced Gallery?
|
My gallery.php contains the following:
Code:
$photo_query=$vbulletin->db->query_read("SELECT userid FROM photo-gallery.photos"); Invalid SQL: SELECT userid FROM photo-gallery.photos; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-gallery.photos' at line 1 Error Number : 1064 It's almost as if the PHP doesn't like the '-' in my database name. Anyway to fix this? |
Great JOB!
Works fine! Thank you very much! |
Quote:
|
Quote:
|
Quote:
Parse error: parse error, unexpected T_STRING in \wwwroot\forums\includes\cron\gallery.php on line 21 This is line 21 of gallery.php: $vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."userfield SET field38 = 'Yes' WHERE ".TABLE_PREFIX."userfield.userid = $posid AND ".TABLE_PREFIX ."userfield.field38 != 'Yes'"); |
This is an absolutely awesome hack! It's exactly how a gallery check should be setup for postbit processing.
Unfortunately my forums and classifieds are setup in separate databases and after spending a considerable amount of time yesterday and today, I still have not been able to get this to work. The problem is most likely my lack of php skills and mysql knowledge. I desparately want to implement this hack. Can anyone please help outy posting a gallery.php cron file that works for separate databases. I will gladly pay for this. From looking at another hack that retrieves the most recent photos for memberinfo display, the connection code looks like it should be something like this: Code:
$pppath = "/www/allfordmustangs.com/photopost"; Any and all help with this would be greatly appreciated. Regards, Scott Halliday |
Quote:
|
Database error in vBulletin 3.5.4:
Invalid SQL: SELECT userid FROM photopost.pp_photos; MySQL Error : SELECT command denied to user 'stuntfac_johnny'@'localhost' for table 'pp_photos' Error Number : 1142 Date : Tuesday, July 4th 2006 @ 04:00:49 PM Script : http://www.stuntfactoryx.com/forum/a...cron&cronid=15 Referrer : http://www.stuntfactoryx.com/forum/admincp/index.php IP Address : 205.188.117.8 Username : Johnny Classname : vb_database im getting this error. any ideas? my vb3.5.4 does not use a prefix and my photopost uses the default pp_ and everything is in the same database. that is my user name and my database is stuntfac_vb |
hmm interesting. i get this error when trying to run scheduled task. i checked w/phpmyadmin, the table is there. i have hacks installed to display random pics on forum home ect. and my gallery works fine and intergrates fine w/ my forums. its the only username and database i have. any ideas of things i could check permission wise that i could have overlooked?
|
Good Job, but don't work with Vbulletin 3.6 any Ideas?
|
Nobody can help?
|
Hello,
I don't get an error, the button don't appear... :-( |
Quote:
|
yea we have our forum and gallery on separate databases and too have an issue of sorts... here is our error we got:
Database error in vBulletin 3.6.0: Invalid SQL: UPDATE userfield SET field61 = 'Yes' WHERE userfield.userid = 0 AND userfield.field61 != 'Yes'; MySQL Error : Unknown column 'userfield.field61' in 'where clause' Error Number : 1054 Date : Wednesday, September 27th 2006 @ 08:10:50 AM Script : http://www.vvvvv.com/chat/admincp/cr...cron&cronid=20 Referrer : http://www.vvvvv.com/chat/admincp/cr....php?do=modify IP Address : 66.24.45.98 Username : pcloadmin Classname : vb_database |
hi,
i get this error when trying to run the scheduled task in 3.6.2 Database error in vBulletin 3.6.2: Invalid SQL: SELECT userid FROM photopost.pp_photos; MySQL Error : SELECT command denied to user 'mattsell_mattsel'@'localhost' for table 'pp_photos' Error Number : 1142 Date : Saturday, November 11th 2006 @ 02:43:09 PM Script : http://www.xxxxxxx.com/forum/admincp...cron&cronid=19 Referrer : http://www.xxxxxxx.com/forum/admincp/index.php IP Address : 195.93.21.133 Username : Matt Classname : vb_database vb and pp both share the same database, and are both clean installs any help would be great |
I tried to run the cron job manually using vbadmincp and it says Done.
But when i go to forum, i did not see the link? User has photos in the photopost. Where was wrong? Thanks, -K |
It is resolved now!!!
Have to explicitly insert the field number in the postbit legacy :) It is an awesome mod!!! Thank you Mini :knockedout: -K |
Quote:
same problem here. That makes at least three users here. |
To clarify......in 'gallery.php' do we replace the field id number (field61 in the example below) with whatever our field number is, which is created earlier in the instructions?
Quote:
|
Thanks once again Mini - good stuff.
Working in 3.6.4 and PP 5.6.2 (sharing DB and no prefixes on either). I had to modify code a bit. Working code if it helps anyone is: postbit: Code:
<if condition="$post['field7'] == 'Yes'"> Code:
<? |
and a different icon
|
*Solved*
|
Here is the error I am getting when it runs the cron:
> MySQL Error : Access denied for user 'vborforumuser'@'localhost' to database 'photopost' vborforumuser is set as the "User Database User" in my photopost config. I think the task needs to use my "PhotoPost Database User" instead. How do I get the task to run as a different user? Suggestions? |
Has this been updated for 3.6.5?
|
That would be a "no"?
|
Is it possible to make the same with reviewpost? showing the reviews of a member.
|
Thanks, great hack - running on 3.7 as well.
For those with the db error, make sure gallery.php is set to use the correct database and table name |
It works with 3.6.8 after some minor modifications. Excellent hack! Cheers.
|
All times are GMT. The time now is 04:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|