is it possible to have plogger linked into phpbb3 forums, so only registered users on my forums can use the photo gallery. The reason i ask is my photo section is getting bombed with spam in my comment areas for each of my photos. or is there another way to do this with out a password. At the moment my users can click on my link without a password and upload photos to the ablum, the can look at other photos and leave comments, This is how i wanted it, i didnt want the user to sign on to the forums and then sign up again for the photo gallery so the option of signing in was taken out. But if it is possible to link it with phpbb3 forum users, i would like to know how it could be done. or is it possible to have an admin section where i can enter ips or better still certain email address they cant leave comments if they use a certain email address. any help would be great. I can be contacted via email kyle32@tpg.com.au
Its been a while since i played with phpbb. Try this.. <?php define('IN_PHPBB', true); $phpbb_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx);
its a standalone page .. copy all code into a new blank text-document .. save as.. exampel: my-gallery.php .. upload it .. got to the page ..check for errors , its been a while since i hacked phpbb so we have to do that ;)
i know what php code looks like, havnt really done much with it, would really like to learn it, there just seems more whebsites out there that use php. I done what you said, but i called the file test.php
this is the errors i get
[phpBB Debug] PHP Notice: in file /test.php on line 13: main(gallery.php) [function.main]: failed to open stream: No such file or directory [phpBB Debug] PHP Notice: in file /test.php on line 13: main(gallery.php) [function.main]: failed to open stream: No such file or directory [phpBB Debug] PHP Notice: in file /test.php on line 13: main(gallery.php) [function.main]: failed to open stream: No such file or directory
Fatal error: main() [function.require]: Failed opening required 'gallery.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/kyle/public_html/forums/test.php on line 13
now my forums is under www.newcastlefishing.com/forums/ and my photo gallery is under www.newcastlefishing.com/photos/