slickplaid wrote:

You put both

if(!$forum_user['is_guest']) {

and the trailing

}

at the end?

Yes, the only difference between what you said and gave me, was that the lines @ 38, not 150.

I tried that fix, that did not work. It is still working, but shows up still on the guest page.

slickplaid wrote:

Yes, there is. I will be releasing a temporary update until I can finish more that will allow you to select whether it can be viewed by guests or not.

If you want to do a quick fix for that, you can add this into the manifest.xml, check the first and last lines, those are the ones you'll need to add:

in <hook id="hd_head">  line ~150-170

if(!$forum_user['is_guest']) { // this will remove the chat for users that aren't logged in
    
            $forum_head['prototypejs'] = '<script type="text/javascript" src="'.$ext_info['url'].'/media/js/prototype.js"></script>';
            $forum_head['ek_chatlitejs'] = '<script type="text/javascript" src="'.$ext_info['url'].'/media/js/chat.js?logged='.(($forum_user['is_guest']) ? 0 :(($forum_user['g_id'] == FORUM_ADMIN) ? 2 : 1)).'&amp;baseUri='.$base_url.'/&amp;extUri='.$ext_info['url'].'/"></script>';
    
            if (file_exists($ext_info['path'].'/media/js/lang/'.$forum_user['language'].'.js')) {
                $forum_head['ek_chatlitelangjs'] = '<script type="text/javascript" src="'.$ext_info['url'].'/media/js/lang/'.$forum_user['language'].'.js"></script>';
            } else {
                $forum_head['ek_chatlitelangjs'] = '<script type="text/javascript" src="'.$ext_info['url'].'/media/js/lang/English.js"></script>';
            }
    
            $ek_chatlite_css = (file_exists($ext_info['path'].'/media/css/'.$forum_user['style'].'.css')) ? $forum_user['style'] : 'default';
            $forum_head['style_ek_chatlite'] = '<link rel="stylesheet" type="text/css" media="screen" href="'.$ext_info['url'].'/media/css/'.$ek_chatlite_css.'.css" />';
    }  // this is the ending brace for removing guest access

And since this is a fork of the original development, it'll be released under a different name.

Ok great. Now, I'm not sure if you can help with this or not. Can I do the same thing with the guest user while using Daris Portal. See: http://punbb.informer.com/forums/topic/ … -by-daris/

Any help would be greatly appreciated! Thank you so much for the help!

29

(24 replies, posted in PunBB 1.3 extensions)

Nique wrote:

Well, i will put a download link online if the editor reaches beta status..

Beta's are for tests wink In the mean while you'll have to do it with screenshots (and maybe some examples).  This is for security reasons...

Understood. Thanks

Hi, is there a way to make this extension viewable only to registered users? I don't like the security risks of having it list out user names, it allows for a possible brute force attack. Don't want spam. Thank you in advance!

31

(24 replies, posted in PunBB 1.3 extensions)

This would be awesome! Can't wait! Download link yet? big_smile

32

(1 replies, posted in PunBB 1.3 extensions)

Hi Daris, I like this extension, but is there a way to deny guest access to changing the theme. It "seems" that they are changing the default theme of the entire forum. Thank you in advance!

EDIT: I am not a very good programmer either :-) So an help would be greatly appreciated!

EDIT: I further tested it, it does not change the default schema, however, I still would only like the function if the user is registered. Again, any help would be appreciated! Thank you!