PhotoPost Popup This was an old 6.x mod that myself, JustDave, and Omegatron had all worked on at some point in time.
It essentially add's a button to the rich text editor panel (that shows in all post/reply windows) which launches a pop-up panel with a user's photos that are in PhotoPost.
Once a photo is clicked, bbcode is placed in the post window to link the image.
I need help I follow your instructions. Seems to be simpel but it dont work. I get the extra tab in the editor but click to it bring only an error in the java console and no popup window:
error: x is not a function error: openPhotoPanel is not defined
Maybe there is missing a file in your archive or missing instructions?
ok, this brings up the popup window. It shows the correct layout and the buttons work, but I see no photos from my user. I setup photopost.inc.php as it should.
Only one thing is unclear. You put this code in it: $pp_url="http://www.mysite.com/photopost/"; //url to photopost install NO trailing slash
You say NO slash but put it yourself at the end. I try both version with my own url but see no images. I dont get any error message so I be connected to the database. Any clues?
found another little problem, but this doesnt solve my main problem. In photopost.tpl is a hardcoded path, I use an other path to my board. I change it for me.
Nice. One thing I noticed, $pp_prefix needs to be included in the global call of the functions or else the query doesn't see your table prefix. Thanks!
One more issue I noticed, in the photopost.tpl file, the URL to the javascript include is hardcoded with a ubb7 directory name, so clicking the image doesn't find the updatePost function until you fix this url.
Thanks! Quick note, in the v 0.2 zip file photopost.inc.php, localhost is misspelled on line 12. Now, for me (running UBBT 7.1b5) it opens a window that says "My PhotoPost Pictures", but there are no pics displayed, just the heading and then the two buttons at the bottom. When I go directly to my photopost install, I am logged in and have pix in my gallery. Any thoughts on why it's not finding any pix?
And did you apply my two fixes above? I had the same problem (blank no photos) until I made those minor adjustments.
Hi Josh, I did the javascript/URL fix just now. The $pp_prefix already seems to be in the v.2 zip file version of photopost.inc.php, and as a test I just hard coded "pp_photos" in place of the two occurrences of the variable in the page as well, but still just a popup with some options but no photos. Allen, my server error log is empty... which is actually kinda weird, considering I must have some broken image links or something somewhere in my thousands of pages. "Error Log Last 300 Error Log Messages in reverse order:
[ Go Back ] "
Last edited by Calpy; 02/13/20073:41 PM. Reason: Added image
This need an update to work with 7.3 After I take a look to the beta4 code I see changes in templates/default/standart_text_editor.tpl and /ubb_js/standard_text_editor.js that need to review by someone. The way javascript is handled was changed a little bit.
Anyone have time to do it? This is one of two things that stopped me right now to bring my page on 7.3
I found the problem. In /templates/default/standard_text_editor.tpl is the following code:
Code
{literal} function openPhotoPanel() { photoWindow=window.open('ubbthreads.php?ubb=photopost','photopanel','scrollbars=yes,resizable=yes,width=500,height=600'); if (photoWindow.opener == null) photoWindow.opener = self; } {/literal}
The problem: there iss missing the base dir in front of ubbthreads.php?ubb=photopost. For a workaround I hardcode it for me like this: /board/ubbthreads.php?ubb=photopost This work. But what ist the propper way to enter it inside a function? I try {$config.BASE_URL}/ubbthreads.php?ubb=photopost but this dont work. Who can help?
I just installed Photopost on my testing site (ubb v7.4.1) and am getting the popup window with no pictures in it as well.. I have tried the fixes above and can not seem to figure it out.
Allen I have checked out your site and love the way you have it working, that is one of the reasons we bought Photopost.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.