Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorkyle
    • CommentTimeDec 2nd 2007
     
    hi all

    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

    cheers
    •  
      CommentAuthorkent
    • CommentTimeDec 2nd 2007
     
    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);

    $user->session_begin();
    $auth->acl($user->data);
    $user->setup('common');

    page_header('Page title');

    require('gallery.php');
    the_gallery();

    page_footer();
    ?>
    • CommentAuthorkyle
    • CommentTimeDec 3rd 2007
     
    hi kent

    so where do i put this code, and what will this do.

    thanks for the reply

    cheers
    •  
      CommentAuthorkent
    • CommentTimeDec 3rd 2007
     
    so .. your not familiar with php code ? .. ehum..

    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 ;)
    • CommentAuthorkyle
    • CommentTimeDec 4th 2007
     
    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/

    cheers
    •  
      CommentAuthorkent
    • CommentTimeDec 4th 2007
     
    Try this..
    <?php
    define('IN_PHPBB', true);
    $phpbb_root_path = './';
    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.' . $phpEx);

    $user->session_begin();
    $auth->acl($user->data);
    $user->setup('common');

    page_header('Page title');

    require('../photos/gallery.php');
    the_gallery();

    page_footer();
    ?>