[BETA] Confession Boot Mod 1.1.0

MOD Authors: Discuss and post updates on new MODs in development for phpBB3, Receive feedback and Feature requests for MODs in development.

To submit your MOD or style, go to the STG MOD Manager
Forum rules
go to the STG MOD Manager to post your MOD in development.
Discuss and receive feedback for any MOD in development for phpBB3.
Suggest features for MODs in development.

No Support or MOD Requests
-- exceptions for MODs only posted here as Beta or Alpha.
Support requests for a MOD should be requested in the respective MOD topic.

Re: [BETA] Confession Boot Mod 1.1.0

Postby VileParty » 21 Jan 2008, 16:08

http://www.leetgraphics.com

Thank you very much. :DD
~~ via dictata ipsum in somnium ~~ | ~~ Recipe For LeetSauce ~~
Image
VileParty    
Cadet I
Cadet I
 
Posts: 18
Joined: 04 Jan 2008, 22:43
Location: Iowa, USA
Favorite Team: Steelers
Gender: Male


Re: [BETA] Confession Boot Mod 1.1.0

Postby ..::Frans::.. » 21 Jan 2008, 16:21

OK, what i did was this:

I opened up each and every available variable where one could get user_info from. Next, i changed all fields from the poster data to the CB User, even sessions, so if you are going to look into the sessions table, the poster would be really the CB user. There are still a few things i cannot change because they have to do with authorisations. If i change these too, it could be possible that the REAL user can see and post in a forum, but the CB user can't....therefore i needed to keep those original.....


Please, let me know if you encounter any problems.


OPEN
includes/functions_posting.php

FIND
Code: Select all
    //Added by ..::Frans::.. -  Confession Boot Mod
    if(($config['cb_enable']) && ($data['forum_id'] == (int) $config['cb_forum']))
    {
        $bck_user = $user;
        $user->data['user_id'] = (int) $config['cb_user'];
        $user->ip = $config['cb_ip'];
    }
    //Added by ..::Frans::.. -  Confession Boot Mod
  


OR (don't know which version you are using right now)

Code: Select all
    //Added by ..::Frans::.. -  Confession Boot Mod
    if(($config['cb_enable']) && ($data['forum_id'] == (int) $config['cb_forum']))
    {
        $bck_user = $user;
        $user->data['user_id'] = (int) $config['cb_user'];
        $user->ip = $config['cb_ip'];

        $sql = 'SELECT user_colour FROM '.USERS_TABLE.' WHERE user_id = '.$user->data['user_id'];
        $result = $db->sql_query($sql);
        $row = $db->sql_fetchrow($result);
        $db->sql_freeresult($result);
        $user->data['user_colour'] = $row['user_colour'];

    }
    //Added by ..::Frans::.. -  Confession Boot Mod
  


REPLACE WITH
Code: Select all
    //Added by ..::Frans::.. -  Confession Boot Mod
    if(($config['cb_enable']) && ($data['forum_id'] == (int) $config['cb_forum']))
    {
        $bck_user = $user;
        $user->data['user_id'] = (int) $config['cb_user'];
        $user->ip = $user->data['user_ip'] = $config['cb_ip'];

        $sql = 'SELECT * FROM '.USERS_TABLE.' WHERE user_id = '.$user->data['user_id'];
        $result = $db->sql_query($sql);
        $row = $db->sql_fetchrow($result);
        $db->sql_freeresult($result);

        $user->data['user_colour']      = $row['user_colour'];
        $user->data['user_posts']       = $row['user_posts'];
        $user->data['username']         = $row['username'];
        $user->data['username_clean']   = $row['username_clean'];
        $user->data['user_type']        = $row['user_type'];
        $user->data['group_id']         = $row['group_id'];
        $user->data['user_regdate']     = $row['user_regdate'];
        $user->data['user_email']       = $row['user_email'];
        $user->data['user_birthday']    = $row['user_birthday'];
        $user->data['session_user_id']  = $row['user_id'];
        $user->data['session_ip']       = $user->data['user_ip'];

    }
    //Added by ..::Frans::.. -  Confession Boot Mod
 
ping...
User avatar
..::Frans::..
STG Development
STG Development
 
Posts: 1608
Joined: 28 Mar 2007, 15:37
Location: Netherlands
Favorite Team: RKC
Gender: Male
phpBB Knowledge: 9

Re: [BETA] Confession Boot Mod 1.1.0

Postby VileParty » 21 Jan 2008, 16:36

Edit... made a new post and it works great. :good:

My board thanks you! :hello:
~~ via dictata ipsum in somnium ~~ | ~~ Recipe For LeetSauce ~~
Image
VileParty    
Cadet I
Cadet I
 
Posts: 18
Joined: 04 Jan 2008, 22:43
Location: Iowa, USA
Favorite Team: Steelers
Gender: Male

Re: [BETA] Confession Boot Mod 1.1.0

Postby ..::Frans::.. » 21 Jan 2008, 16:49

:hello:
ping...
User avatar
..::Frans::..
STG Development
STG Development
 
Posts: 1608
Joined: 28 Mar 2007, 15:37
Location: Netherlands
Favorite Team: RKC
Gender: Male
phpBB Knowledge: 9

Re: [BETA] Confession Boot Mod 1.1.0

Postby Sniper_E » 21 Jan 2008, 17:07

:yahoo: I like that Frans! I like this mod also.... I wish we could put one in the Ten Foward Lounge.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6991
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [BETA] Confession Boot Mod 1.1.0

Postby ..::Frans::.. » 21 Jan 2008, 17:29

Maybe put one on deck 15? You could actually really warn people what's going on there without.......


...well, you know....
ping...
User avatar
..::Frans::..
STG Development
STG Development
 
Posts: 1608
Joined: 28 Mar 2007, 15:37
Location: Netherlands
Favorite Team: RKC
Gender: Male
phpBB Knowledge: 9

Re: [BETA] Confession Boot Mod 1.1.0

Postby sanah » 25 Aug 2011, 19:18

Hi,
i am trying to install this mod . Have done all the process to install but i don't find it on the acp
can u help me pls ?
sanah
Crewman
Crewman
 
Posts: 1
Joined: 25 Aug 2011, 18:46
Gender: Female

Re: [BETA] Confession Boot Mod 1.1.0

Postby zenrei » 15 Sep 2011, 12:26

I just wanted to check...

So if I didn't want the anonymous name to be "Guest"
All I have to do is create a user and call him... Nunya Beezwax, for instance, then put that users' number in the admin field?
zenrei
Cadet II
Cadet II
 
Posts: 28
Joined: 13 Oct 2008, 15:39
Gender: Female
phpBB Knowledge: 5

Re: [BETA] Confession Boot Mod 1.1.0

Postby zenrei » 15 Sep 2011, 12:30

sanah wrote:Hi,
i am trying to install this mod . Have done all the process to install but i don't find it on the acp
can u help me pls ?


sanah, I had that too... I had to go to ACP > System > Administration Control Panel

Edit the module that you want to add it to (I added it to .Mods)

Then Create a new module called "Confession Booth"

Once it's created, edit it and you'll see the dropdown next to Add module, scroll down and you'll eventually see "Confession Booth Settings" select that, and click add module.

Now, just click on the Tab you added it to... BAM! all set :)
zenrei
Cadet II
Cadet II
 
Posts: 28
Joined: 13 Oct 2008, 15:39
Gender: Female
phpBB Knowledge: 5

Re: [BETA] Confession Boot Mod 1.1.0

Postby zenrei » 15 Sep 2011, 12:40

when I try typing my username into the username field, it's ignoring it and posting using the anonymous' name.

I have the feature turned on in the form settings. Am I doing something wrong?
zenrei
Cadet II
Cadet II
 
Posts: 28
Joined: 13 Oct 2008, 15:39
Gender: Female
phpBB Knowledge: 5

PreviousNext

Return to MODs in Development

Who is online

Users browsing this forum: No registered users and 9 guests