[Beta] Contact Board Administration 0.1.4

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] Contact Board Administration 0.1.3

Postby idiotnesia » 23 May 2007, 19:50

much better than previous version :good:

Just litle suggestion, after the message has bent sent succesfully I think it's better if the link not to the contact page again but to the index page.


My request
- Make category, for example advertisment, registration problem, and so on that can be configured in ACP.
And the subject that will be displayed in email, pm, post become [category] Subject
- the contact bot user is taken from the real poster, so admin can know whether the poster is member or guest.
idiotnesia
Cadet II
Cadet II
 
Posts: 28
Joined: 16 Feb 2007, 19:20
Gender: Male


Re: [Beta] Contact Board Administration 0.1.3

Postby eviL3 » 24 May 2007, 13:01

idiotnesia wrote:much better than previous version :good:

YAY! :)

idiotnesia wrote:Just litle suggestion, after the message has bent sent succesfully I think it's better if the link not to the contact page again but to the index page.

Good idea, doing that right now ;)

idiotnesia wrote:My request
- Make category, for example advertisment, registration problem, and so on that can be configured in ACP.
And the subject that will be displayed in email, pm, post become [category] Subject

That's a very nice idea, and i know how i'm going to do that! :) I'll add it!

idiotnesia wrote:- the contact bot user is taken from the real poster, so admin can know whether the poster is member or guest.

I won't add that, it's a nice idea but too confusing imo.

Thanks for all those suggestions! :yahoo:
Image
User avatar
eviL3    
MOD Author
MOD Author
 
Posts: 1002
Joined: 05 Nov 2006, 08:14
Location: Cooking in the MODs kitchen
Gender: Male

Re: [Beta] Contact Board Administration 0.1.4

Postby eviL3 » 25 May 2007, 09:14

2007-04-10 - Version 0.1.4
  • Redirect to index instead of contact page after submit (thanks idiotnesia)
  • New feature: Contact reason (thanks idiotnesia)

Image
Image
User avatar
eviL3    
MOD Author
MOD Author
 
Posts: 1002
Joined: 05 Nov 2006, 08:14
Location: Cooking in the MODs kitchen
Gender: Male

Re: [Beta] Contact Board Administration 0.1.4

Postby darjana » 12 Jan 2008, 06:50

i have installed this add on and im 100% sure i did everythign correct even im triple check the file modified

but the thing is.. why there is no contact form config in acp? can someone enlighten me?

because whenever i try access contact.php it says contact is disabled
darjana
Cadet I
Cadet I
 
Posts: 15
Joined: 11 Jan 2008, 03:24
Location: Malaysia
Gender: Male

Re: [Beta] Contact Board Administration 0.1.4

Postby darjana » 12 Jan 2008, 18:48

or do you guys know any sql command to run to enable the contact form + post on forum thing + captcha?


:clapping: :clapping: :clapping:
darjana
Cadet I
Cadet I
 
Posts: 15
Joined: 11 Jan 2008, 03:24
Location: Malaysia
Gender: Male

Re: [Beta] Contact Board Administration 0.1.4

Postby darjana » 12 Jan 2008, 22:32

bump bump bump......

pls help :( :(
darjana
Cadet I
Cadet I
 
Posts: 15
Joined: 11 Jan 2008, 03:24
Location: Malaysia
Gender: Male

Re: [Beta] Contact Board Administration 0.1.4

Postby IronDogg » 13 Jan 2008, 07:01

Cool, I too am anxiously waiting for this mod to post into hidden forum. This is exactly what I need. I like the idea that you are making it totally configurable in the acp too. Will there be an ability to add extra fields to the contact form?
The DoggPound - FPS Gaming Clan
The Aquaden - Tropical Fish & Aquaria
The DoggHouse - Personal Website
IronDogg
Borg Drone
Borg Drone
 
Posts: 38
Joined: 24 Jun 2007, 13:20
Location: Alberta, Canada
Favorite Team: Edmonton Eskimos
Gender: Male

Re: [Beta] Contact Board Administration 0.1.4

Postby darjana » 13 Jan 2008, 07:26

.....

no more support given? :cray: :cray: :cray: :cray:
darjana
Cadet I
Cadet I
 
Posts: 15
Joined: 11 Jan 2008, 03:24
Location: Malaysia
Gender: Male

Re: [Beta] Contact Board Administration 0.1.4

Postby eviL3 » 14 Jan 2008, 13:06

darjana, you need to add the module in the ACP. There should be instructions on how to do that.

IronDogg wrote:Cool, I too am anxiously waiting for this mod to post into hidden forum.

Yes, that's a bug. Here's a sorta-fix. Open contact.php.
Find:
Code: Select all
         $user_backup = array(
            'userdata'    => $user->data,
            'user_ip'   => $user->ip,
         );
         
         $sql = 'SELECT username, user_colour
            FROM ' . USERS_TABLE . '
            WHERE user_id = ' . (int) $config['contact_bot_user'] . '
            AND user_type <> ' . USER_IGNORE;
         $result = $db->sql_query($sql);
         $row = $db->sql_fetchrow($result);
         $db->sql_freeresult($result);
         
         if (!$row)
         {
            add_log('critical', 'LOG_CONTACT_BOT_INVALID', $config['contact_bot_user']);
            
            $message = $user->lang['CONTACT_BOT_USER_INVALID'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
            trigger_error($message);
         }
         
         $user->data = array_merge($user->data, array(
            'user_id'      => (int) $config['contact_bot_user'],
            'is_registered'   => 0,
            'username'      => $row['username'],
            'user_colour'   => $row['user_colour'],
         ));
         $user->ip = '0.0.0.0';

Replace with:
Code: Select all
         $backup = array(
            'user'   => $user,
            'auth'   => $auth,
         );
         
         $sql = 'SELECT *
            FROM ' . USERS_TABLE . '
            WHERE user_id = ' . (int) $config['contact_bot_user'] . '
            AND user_type <> ' . USER_IGNORE;
         $result = $db->sql_query($sql);
         $row = $db->sql_fetchrow($result);
         $db->sql_freeresult($result);
         
         if (!$row)
         {
            add_log('critical', 'LOG_CONTACT_BOT_INVALID', $config['contact_bot_user']);
            
            $message = $user->lang['CONTACT_BOT_USER_INVALID'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
            trigger_error($message);
         }
         
         $user->data = array_merge($user->data, $row);
         $user->ip = '0.0.0.0';

         $auth->acl($user->data);


Find:
Code: Select all
         // Restore $user->data and $user->ip from $user_backup
         $user->data   = $user_backup['userdata'];
         $user->ip   = $user_backup['user_ip'];
         unset($user_backup);


Replace with:
Code: Select all
         extract($backup);


IronDogg wrote:Will there be an ability to add extra fields to the contact form?

Probably not. I've got a highly updated version of this MOD, but it's integrated into a website, so i need to "backport" it.
Image
User avatar
eviL3    
MOD Author
MOD Author
 
Posts: 1002
Joined: 05 Nov 2006, 08:14
Location: Cooking in the MODs kitchen
Gender: Male

Re: [Beta] Contact Board Administration 0.1.4

Postby true » 28 Jan 2008, 05:42

eviL3
thank You for mod :)
I have problem with the russian letters in received messege from mod
Code: Select all
????: ????????-????????

??????????? Igor,

"?????/ test@test.ru" ??????? ??? ?????? ????? ????? ????????? ??????
"Test.ru":

???????????????? ?? ?????????????????? ??????)
words from file language/ru/email/admin_contact.txt look nice, but the text of messege look ????? symbols (
Any idea?
p.s. - Sorry for my english :blush:
true
Crewman
Crewman
 
Posts: 2
Joined: 28 Jan 2008, 05:29
Gender: Male

PreviousNext

Return to MODs in Development

Who is online

Users browsing this forum: Baidu [spider] and 19 guests