Previous Thread
Next Thread
Print Thread
Rating: 5
Page 4 of 8 1 2 3 4 5 6 7 8
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I (and others) haven't been able to get this going correctly unless Threads and Hivemail both use the same database. I've gotten this working almost completely, w/ the only problem being that I don't get the flashing email .gif for new emails, which is a problem w/ the update routine (according to the test Charles asked me to do). But other than that it works great. I haven't downloaded this zip in a while, but there were problems w/ mine:
1. The .sql file only inserts hm_userid into the w3t_Users table, when it should also insert a field called hm_emails (or hm_email). More on this is somewhere in the thread if you look for it.

2. Use the SQL command mentioned earlier in this thread to change the hivemail templates (much easier & faster).

3. You may need a revision of the ubbt_plugin.php file that Nikos created. I can email that to you if you need it.

Good luck!

Sponsored Links
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
the zip file should be up to date appart from the require_once since I am still not sure it helps or not


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Charles -

Could you hack some code for me (or post the code) which would make the users log-in their email address and not allow the option of selecting their own email address? Basically using the original signup page while automatically creating an email account with the users "user" name. I think that (for me anyway) this is an easier way to keep track of email addresses.

--EDIT--
For now I'm going to add the hack as is since I haven't fully deployed the site - so if you do want to tackle the code for me that is where I'm coming from. And if you don't have time to do it - no sweat.
--EDIT--

Thanks

Last edited by Tom_H; 09/07/2003 6:15 PM.
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Post deleted by Tom_H

Last edited by Tom_H; 09/07/2003 10:04 PM.
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
You need to modify the mySQL file in the zip - add this line:
-------------------------------------------------
ALTER TABLE w3t_Users ADD hm_emails int(10) unsigned NOT NULL default "0";
-------------------------------------------------

No more SQL errors - CAN access my board again - still no hivemail integration.....

Last edited by Tom_H; 09/08/2003 12:53 AM.
Sponsored Links
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Post deleted by Tom_H

Last edited by Tom_H; 09/07/2003 10:57 PM.
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Down to one error and one problem...

--ERROR-----------------------------------------------------
SQL ERROR: Mon, Sep 08 2003 00:10:22 -0500 Database error only visible to forum administrators

Warning: Cannot modify header information - headers already sent by (output started at /home/tomh68/public_html/ubbthreads/mysql.inc.php:236) in /home/tomh68/public_html/ubbthreads/ubbt.inc.php on line 239
--END ERROR-------------------------------------------------

This happens on new user sign-up - feel free to check it out for yourself...www.udtsealboard.com.

Also - There is no option for checking mail in the users "My Home". I would assume that there's supposed to be but I have none??

Went through the mod twice checking everything and can't seem to find any differences.

Any ideas?

Tom

Last edited by Tom_H; 09/08/2003 12:58 AM.
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
[]Tom_H said:
Charles -

Could you hack some code for me (or post the code) which would make the users log-in their email address and not allow the option of selecting their own email address? Basically using the original signup page while automatically creating an email account with the users "user" name. I think that (for me anyway) this is an easier way to keep track of email addresses.

--EDIT--
For now I'm going to add the hack as is since I haven't fully deployed the site - so if you do want to tackle the code for me that is where I'm coming from. And if you don't have time to do it - no sweat.
--EDIT--

Thanks [/]This is easy to do, I will post the code later today


Do you believe in love at first sight,
or should I walk by again?
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
[]Tom_H said:
Down to one error and one problem...

--ERROR-----------------------------------------------------
SQL ERROR: Mon, Sep 08 2003 00:10:22 -0500 Database error only visible to forum administrators

Warning: Cannot modify header information - headers already sent by (output started at /home/tomh68/public_html/ubbthreads/mysql.inc.php:236) in /home/tomh68/public_html/ubbthreads/ubbt.inc.php on line 239
--END ERROR-------------------------------------------------

This happens on new user sign-up - feel free to check it out for yourself...www.udtsealboard.com.

Also - There is no option for checking mail in the users "My Home". I would assume that there's supposed to be but I have none??

Went through the mod twice checking everything and can't seem to find any differences.

Any ideas?

Tom [/]Tom could you go at the end of ubbt.inc and switch on the option to show mysql errors to all users? then go back and tell me what the error is.

Right now there is no way to check email in your my home page, all you will get is a flashing icon telling you you gave mail that will take you to your email login.


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
[]
Right now there is no way to check email in your my home page, all you will get is a flashing icon telling you you gave mail that will take you to your email login. [/]

The other site I looked at had an "email" link in the navigation bar above the user info in "My Home" - so that's a custom link? Which file would I go to to add this link?

Also - hate to sound like an idiot - but I can't see how to turn on SQL errors to all users in ubbt.inc.php??? I'll keep looking and post when I find it.

Tom

Sponsored Links
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Found my mySQL error log:

--ERROR-----------------------------------------------------
[ERROR][Mon, Sep 08 2003 00:10:22 -0500] [/ubbthreads/adduser.php] [xxx.xxx.128.126] Unable to do_query:
UPDATE .Users
SET hiveuserid = 4
WHERE U_number = 25
- Table 'tomh68_ubb.Users' doesn't exist
[ERROR][Mon, Sep 08 2003 00:39:30 -0500] [/ubbthreads/adduser.php] [xxx.xxx.128.126] Unable to do_query:
UPDATE .Users
SET hiveuserid = 5
WHERE U_number = 28
- Table 'tomh68_ubb.Users' doesn't exist
[ERROR][Mon, Sep 08 2003 00:59:05 -0500] [/ubbthreads/adduser.php] [xxx.xxx.128.126] Unable to do_query:
UPDATE .Users
SET hiveuserid = 6
WHERE U_number = 29
- Table 'tomh68_ubb.Users' doesn't exist
[ERROR][Mon, Sep 08 2003 08:16:13 -0500] [/ubbthreads/adduser.php] [xxx.xxx.128.126] Unable to do_query:
UPDATE .Users
SET hiveuserid = 7
WHERE U_number = 30
- Table 'tomh68_ubb.Users' doesn't exist
--END ERROR-------------------------------------------------

Doesn't look too good - I added all the SQL queries from the hack and got positive feedback from the cPanel.

I'll keep looking for the "switch" to show errors to all users.

Tom

Last edited by Tom_H; 09/08/2003 8:36 AM.
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
my fault I did a bug

*edit*
to all of you please download the zip and replace the ubbt_plugin file in your hive mail folder.

this should fix all the bugs, I had forgotten to add $options in all functions requires so I could not work

Last edited by Charles; 09/08/2003 10:13 AM.

Do you believe in love at first sight,
or should I walk by again?
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
Don Julio, please email me the modified ubbt plugin file you use. It should be the same than the one in the zip, appart for the fix I just did but I would like to double check.

thanks


Do you believe in love at first sight,
or should I walk by again?
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
[]Tom_H said:
You need to modify the mySQL file in the zip - add this line:
-------------------------------------------------
ALTER TABLE w3t_Users ADD hm_emails int(10) unsigned NOT NULL default "0";
-------------------------------------------------

No more SQL errors - CAN access my board again - still no hivemail integration..... [/]

this query was added to the zip file, sorry I thought this had been corrected.


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
I'm still getting the error - double checked the change and the "$options" is in there but still....

--ERROR-----------------------------------------------------
SQL ERROR: Mon, Sep 08 2003 10:17:55 -0500 Database error only visible to forum administrators

Warning: Cannot modify header information - headers already sent by (output started at /home/tomh68/public_html/ubbthreads/mysql.inc.php:236) in /home/tomh68/public_html/ubbthreads/ubbt.inc.php on line 239
--END ERROR-------------------------------------------------
--FROM SQL LOG----------------------------------------------
- Table 'tomh68_ubb.Users' doesn't exist
[ERROR][Mon, Sep 08 2003 10:17:55 -0500] [/ubbthreads/adduser.php] [xxx.xxx.128.126] Unable to do_query:
UPDATE .Users
SET hiveuserid = 8
WHERE U_number = 32
--END ERROR-------------------------------------------------
???

FYI - Found the file to add the email link to the navigation header - ubbt_registerednav.tmpl

Tom

Last edited by Tom_H; 09/08/2003 10:43 AM.
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
download the zip again


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
The whole thing and reinstall?

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
no just replace ubbt plugin


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Now I'm getting the "Parse Error"...
--ERROR-----------------------------------------------------
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/tomh68/public_html/hivemail/includes/ubbthreads_plugin.php on line 147

Fatal error: Call to undefined function: update_newmail() in /home/tomh68/public_html/ubbthreads/ubbthreads.php on line 25
--END ERROR-------------------------------------------------

You have to add the curly braces as in dimopoulos' earlier post...

Let me find it....


Last edited by Tom_H; 09/08/2003 11:02 AM.
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Here it is....

[]

I had the same problem. Change all the instances of

$options['database'].

to

{$options['database']}.

You will also see that there is also a $options['dbserver']

A couple more variables also need to be treated this way.

[/]

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Check that - line 147 must be:
--EDIT------------------------------------------------------
$sth = $dbh -> do_query("SELECT hm_userid FROM {$config['dbserver']}.{$config['tbprefix']}Users WHERE U_Number = $Uid");
--END EDIT--------------------------------------------------

Note curly braces around "$config['dbserver']"

Tom

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
And still getting SQL error on new member register.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
the same sql error?



Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Exact.

If you want, I'll set up an admin acct for you to see.

He|| for that matter I could set up an ftp acct for you too.

??

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
please send the ftp account to me by PM


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Check your pm box - it didn't show up in my sent box so I don't know if you received it.

Tom

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
got it but getting access denied for the ftp, please check l/p


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Check PM

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
SQL ERROR: Mon, Sep 08 2003 12:00:35 -0500 Unable to do_query: UPDATE localhost.w3t_Users SET hiveuserid = 10 WHERE U_number = 35
update command denied to user: 'tomh68_tom@localhost' for table 'w3t_Users'

are both scripts installed in the same database?


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
YES!

From the posts that seemed like the way to do this.

Last edited by Tom_H; 09/08/2003 12:12 PM.
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
ok, strange then that he says you do not have access to this database, it might come from the way it is configured.

I would try removing all database vars then in the plugin file this might be the problem


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Did you get a look at the modded files? - All ok?

If I removed all database variables wouldn't that render the functions that use the variables useless??

Do you mean all refrences to "$options[database]"?

Tom

Last edited by Tom_H; 09/08/2003 1:32 PM.
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
yes the whole thing. you should have 2 database and dbserver


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Well, we got new errors...
--ERROR-----------------------------------------------------
SQL ERROR: Mon, Sep 08 2003 13:59:55 -0500 Unable to do_query: UPDATE w3t_Users SET hiveuserid = 13 WHERE U_number = 38
Unknown column 'hiveuserid' in 'field list'
Warning: Cannot modify header information - headers already sent by (output started at /home/tomh68/public_html/ubbthreads/mysql.inc.php:236) in /home/tomh68/public_html/ubbthreads/ubbt.inc.php on line 239
--END ERROR-------------------------------------------------

I also deleted the "." from the variables - should I not have done that?

Tom

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
If I do a clean install - how should the db's be setup?

Tom

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
Just so you know, I've got everything about this hack working except the PM style notifications for emails. When I used your ubbthreads_plugin.php file I got (and still do get) this error:
[] Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/laondal/public_html/correo/includes/ubbthreads_plugin.php on line 147

Fatal error: Call to undefined function: update_newmail() in /home/laondal/public_html/foros/ubbt.inc.php on line 1491 [/]
So it seems the update_newemail routine isn't working, which is why I don't get the PM syle notification. Using Nikos' modification of the file, I don't get that error, but I don't get the PM style noficiation either You say you've updated the zip, so I'll give yours a try again (the new one ). BTW, what is your email address (so that I can send you the ubbthreads_plugin.php that I'm using)?

*************EDIT****************
I just tried using your new version of the ubbthreads_plugin.php file and I got the same error. So for me, this is almost out of beta, but not quite there yet. The only problem is the update_newemail function, which is an error either in the ubbthreads_plugin.php file of the ubbt.inc.php file.

Last edited by donJulio; 09/08/2003 2:32 PM.
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
DonJulio -

Here's the mod to the file to fix that error:

[]Tom_H said:
Check that - line 147 must be:
--EDIT------------------------------------------------------
$sth = $dbh -> do_query("SELECT hm_userid FROM {$config['dbserver']}.{$config['tbprefix']}Users WHERE U_Number = $Uid");
--END EDIT--------------------------------------------------

Note curly braces around "$config['dbserver']"

Tom [/]

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
donjulio - are you using a combined DB or are your DB's separated (one for Threads, and one for Hivemail)?

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I'm using a combined database. Thanks for the fix. I'll give it a try!

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
Thanks! That fixed the error w/ the stock ubbthreads_plugin.php file. Hopefully the zip will get updated for that. Now I'll check to see if the update_newemails routine is working so I can get those PM style notifications
[]Tom_H said:
DonJulio -

Here's the mod to the file to fix that error:

[]Tom_H said:
Check that - line 147 must be:
--EDIT------------------------------------------------------
$sth = $dbh -> do_query("SELECT hm_userid FROM {$config['dbserver']}.{$config['tbprefix']}Users WHERE U_Number = $Uid");
--END EDIT--------------------------------------------------

Note curly braces around "$config['dbserver']"

Tom [/] [/]

Page 4 of 8 1 2 3 4 5 6 7 8

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)