php forum
php mysql forum
php mysql smarty
 
Page 3 of 15 < 1 2 3 4 5 ... 14 15 >
Topic Options
#256422 - 08/13/03 05:49 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: -Fusion-]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
[]Astaran said:<br />Maybe a bit offtopic, but where can i find some technical details about Hivemail(<br />especially the backend)?<br />Does it parse all incoming mail from a catch all account and inserts the data into a MySQL table? [/]<br />Yes that is what it does Astaran. A cron script or a scheduled task in windows is responsible for this. The data is stored either in the database (the whole message) or in a file and the database (some data like the headers etc.)
_________________________
Nikos

Top
#256423 - 08/13/03 05:55 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: MRLefferts]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Also Stefan if I may a couple of corrections:<br /><br />1. ubbt.inc.php<br />Function send_header. You need to include in the authenticate function the hm_emails field, otherwise it will always return zero. Hence you need to find this:<br /><br /> // -------------------------------------------------------------------<br /> // If we don't have a status then they we need to try and authenticate<br /> if (!isset($user['U_Status'])) {<br /> $userob = new user;<br /> $user = $userob -> authenticate();<br /> }<br /><br />and replace it with this:<br /><br /> // -------------------------------------------------------------------<br /> // If we don't have a status then they we need to try and authenticate<br /> if (!isset($user['U_Status'])) {<br /> $userob = new user;<br /> $user = $userob -> authenticate("hm_emails");<br /> }<br /><br /> if (!isset($user['hm_emails'])) {<br /> $userob = new user;<br /> $user = $userob -> authenticate("hm_emails");<br /> }<br /><br />2. ubbthreads_plugin.php<br />Function update_newmail<br /><br />Change the function to :<br /><br />function update_newmail() {<br /> global $dbh, $config;<br /> <br /> $userob = new user;<br /> $user = $userob -> authenticate("hm_userid");<br /> <br /> if ($user['U_Number']) {<br /> <br /> $Uid = addslashes($user['U_Number']);<br /> $hiveid = $user['hm_userid'];<br /> <br /> if ($hiveid != "0") {<br /> $query = "SELECT userid FROM {$options['database']}.hive_message WHERE userid = $hiveid AND status = 0";<br /> $sth = $dbh -> do_query($query);<br /> $count=mysql_num_rows($sth);<br /> if ($count > 0) {<br /> $newemail = $count;<br /> } else {<br /> $newemail = 0;<br /> }<br /> $dbh -> do_query("UPDATE {$config['dbname']}.{$config['tbprefix']}Users SET hm_emails = '$newemail' WHERE hm_userid = $hiveid");<br /> }<br /> }<br /><br />}<br /><br />This will use the .threads authenticate to see if the user is logged in and with one query retrieve the hm_userid as well. Also please note that the UPDATE query needs the {$config['dbname']) and not the 'dbserver', otherwise it points to the localhost (or wherever your DB is stored) instead of the database name.<br /><br />It is working great for me!! Great job!<br /><br />(now all I have to do is create some templates to match those of the .threads <img src="/forum/images/graemlins/tongue.gif" alt="" />)
_________________________
Nikos

Top
#256424 - 08/13/03 06:35 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: Hal_dup2]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
dimopoulos I don't think this is needed.<br /><br />The way I chose was to have hm_email by default in the userob routine so it is part of the default just like new PM, maybe I missed that part will documenting the hack but It should work like this.<br /><br />OK, checking the code I did forget something <img src="/forum/images/graemlins/tongue.gif" alt="" /> gimme a minute to tell you what it is supposed to be.
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#256425 - 08/13/03 06:43 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: egor]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
there my code in ubbt.inc.php was <br />
Code:
  // ----------------------------------------------------------------- <br />  // We are automatically adding StyleSheet, Status, Privates and <br />  // FrontPage and Number to each SQL call because this information is needed by <br />  // every script that makes a call to authenticate <br />     if ($Query != "*") { <br />        if ($Query) { $Query .=","; } <br />        $Query .= "U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned, hm_emails"; <br />      } <br /> 
<br /> <br />since hm_emails is used on all pages we need it here, sorry for the bug <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#256426 - 08/13/03 06:48 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: -Fusion-]
Stefan_dup1 Offline
Power User

Registered: 02/12/02
Posts: 70
[]Astaran said:<br />Maybe a bit offtopic, but where can i find some technical details about Hivemail(especially the backend)?<br />Does it parse all incoming mail from a catch all account and inserts the data into a MySQL table? [/]<br /><br />It's choosable ... saving in MySQL or flatfile ...<br /><br />english / german features list<br /><br />
_________________________
Gruß/Regards
Stefan
thinkfactory™

Top
#256427 - 08/13/03 06:54 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: egor]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
the zip was updated in order to reflect my mistake<br /><br />*Baaaad Charles*
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#256428 - 08/13/03 07:00 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: egor]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Thanks Charles
_________________________
Nikos

Top
#256429 - 08/13/03 07:02 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: Hal_dup2]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
also just for your info your update email function cannot work because we need to know if we have new emails BEFORE we identify otherwise the flashing image will use the old data. The goal is to update the data before we actually call for it <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#256430 - 08/13/03 07:31 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: MRLefferts]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
I am writing a small installer to handle the sql part. <br /> <br />for those who can't wait you can run the following command to update your login template <br /> <br />
Code:
 <br />UPDATE hive_template SET user_data = REPLACE(user_data,"vb_","ubbt_"), parsed_data = REPLACE(parsed_data,"vb_","ubbt_") WHERE title = 'login' <br />
<br /> <br />hope this will help some of you <img src="/forum/images/graemlins/tongue.gif" alt="" /> <br /> <br />Updated to replace both cells, untested let me know if it works.
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#256431 - 08/13/03 07:58 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: egor]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Charles, do we need to change the parsed_data field as well or just the user_data?
_________________________
Nikos

Top
#256432 - 08/13/03 08:00 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: Hal_dup2]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
well I tried the hivemail CP and apparently the only thing tou can edit is the user_data field. the other one is used I think to know which ones have been changed but I am not sure.
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#256433 - 08/13/03 08:05 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: Hal_dup2]
Stefan_dup1 Offline
Power User

Registered: 02/12/02
Posts: 70
[]dimopoulos said:<br />Charles, do we need to change the parsed_data field as well or just the user_data? [/]<br /><br />the parsed template parts of hm will be updated on saving the template ... forget about this.
_________________________
Gruß/Regards
Stefan
thinkfactory™

Top
#256434 - 08/13/03 08:07 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: MRLefferts]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
well yes but since we don't edit through the CP should I modify it too in my query?<br /><br />what is it used for?
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#256435 - 08/13/03 08:08 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: egor]
Stefan_dup1 Offline
Power User

Registered: 02/12/02
Posts: 70
Right Charles, forgot about this ... we need to update this too <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
Gruß/Regards
Stefan
thinkfactory™

Top
#256436 - 08/13/03 08:08 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: MRLefferts]
Stefan_dup1 Offline
Power User

Registered: 02/12/02
Posts: 70
... only if we're using your install - script <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Gruß/Regards
Stefan
thinkfactory™

Top
#256437 - 08/13/03 08:18 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: MRLefferts]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
ok updated the query
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#256438 - 08/13/03 10:51 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: egor]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Let me know when everything is figured out... then I'll try to install it again <img src="/forum/images/graemlins/grin.gif" alt="" />

Top
#256439 - 08/13/03 10:53 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: palmen]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
it should be perfect now []http://www.threadsdev.com/threads/php/uploads/panels/9432-2968.png[/]
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#256440 - 08/13/03 11:20 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: egor]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
oh sure, right when I prepare myself to take a nice break, it's ready <img src="/forum/images/graemlins/grin.gif" alt="" /> I need a nap, you guys make my head spin

Top
#256441 - 08/13/03 11:22 AM Re: Beta-[6.3] HiveMail - Integration 1.0 [Re: palmen]
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
well it works great when I do it but I need you guys to tell me when I forgot to put all the code in the files <img src="/forum/images/graemlins/tongue.gif" alt="" /> now if I did everything were would the fun be? <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
Page 3 of 15 < 1 2 3 4 5 ... 14 15 >


Moderator:  Ian_W 
Who's Online
0 registered (), 26 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks