Previous Thread
Next Thread
Print Thread
Rating: 5
Page 5 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
OK. The update_newemails routine still isn't working. I tried sending myself a test email and it the newem.gif indicator didn't appear in the header....

Sponsored Links
Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Sorry -

I think I'm going to restore my DB and start over from sctratch.

~~~Frustrated~~~

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Can't restore database - I'm hosed - starting over from scratch...

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
when you send an email, the email indicator will get updated only when you visit front page and my home not on any other page


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 -

Were you able to update the SQL query file and the ubbthreads_plugin.php file?

Tom

Sponsored Links
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
actually I had fixed that, just forgot to upload the zip

tom if you start from scratches try using require_once instead of require


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
In the plugin file?

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
I'll be reloading everything so it'll be a while before I am able to attempt this again.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
no in all the instance of require the plugin file in all thread files


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'll give it a shot. It'll be a while though.

Meanwhile, could you hack some code which will allow me to use the users "User Name" as their email account name and not give them the option of filling in the box for an email name? Maybe a display that shows the actual email address using username vice the fill-in box at the bottom.

Thanks - and if you don't have time...don't worry about it.

Tom

Last edited by Tom_H; 09/08/2003 4:45 PM.
Sponsored Links
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
I am headed for bed now but promised first thing tomorrow I will do this.

it should only be a few lines to change

you can only show them what the email adress would be like in the profile since during registration we do not know the login name


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
Awesome - thanks

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I've visited My Home after sending myself the test email and it still doesn't work . I've also visitied the ubbthreads.php page (even though Categories is my front page) and nothing. Could you test it out on my site Charles?
http://www.laondalatina.com//foros/newuser.php?Cat=
Thanks!

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Charles -

I don't know if this is a problem or not but I have a question about the final instruction for Hivemail files:

--COPY PASTE------------------------------------------------

login-Template:
---------------

Replace all "vb_" parts with "ubbt_"

--END COPY PASTE--------------------------------------------

When I execute this query on my database it displays "0 (as in zero) rows modified....

So I executed the query on just that table - "login_template" - and got the same thing "zero changes"

What do you make of this?

Tom

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
donjulio -

The starting point for trackig down that problem lies in the "ubbt.inc.php" file @ line 334. That's where the call for the icon is.

Tom

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
Thanks for your concern, but that's not it. I can manually change hm_emails from 0 to any other number and the icon appears. The problem is that the field hm_emails is always 0. I imagine it's supposed to go up when you get new emails, but it doesn't. That's the problem.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
not sure tom, could I access your db?

*edit* did you delete both databases when you reinstalled? if not then it was already hacked.

Last edited by Charles; 09/09/2003 1:50 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, I created an account and got

SQL ERROR: Database error only visible to forum administrators

could you look through your log and tell me what the error is?


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
fixed the ubbt_plugin with what don julio sent me, I did mess up with dbname variable in some place :/

so you can download it and use this one


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
ok in the plugin use this block

Code
<br />// ----------------------------------------------------------------------<br />// If we are allowing the user to create an email account then we give<br />// them a form<br /><br />//We do not want our users to choose their email so lets use the login<br />//first we check if we are on reg or my home screen<br />if (isset($Username)) { $hive_username = $Username; } else { $hive_username = {$ubbt_lang['USERNAME_TEXT']};}<br />	if ($_options['regopen']) {<br />		$choosehmname = "<br />			</td><br />			</tr><br />			<tr><br />			<td class=\"darktable\"><br />			{$ubbt_lang['HM_SIGNUP']}<br />		    <br /><br />			<input type=\"radio\" name=\"hive_signup\" value=\"yes\"> {$ubbt_lang['TEXT_YES']}<br />			<input type=\"radio\" name=\"hive_signup\" value=\"no\" checked> {$ubbt_lang['TEXT_NO']}<br /><br />		    <br /><br />			{$ubbt_lang['HM_SIGNUP2']}<br />			<b>$hive_username</b>&nbsp;&nbsp;<br />			<select name=\"hive_userdomain\">$hive_domainname_options</select><br />			</tr><br />			<tr><br />			<td class=\"lighttable\"><br />			<br /><br />		";<br />	}<br />


in adduser.php

change:

$hive_username = get_input("hive_username","post");

to

$hive_username = get_input("Loginname","post");

in changebasic.php

change

$hive_username = get_input("hive_username","post");

to

$hive_username = get_input("Username","post");

done

it not tested but it should work

let me know how it goes


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 -

I hacked the site to pieces trying different things. After no luck in fixing, I tried reloading the DB but it only partially reloaded so now I can't even get into Threads admin. I'll have to delete the DB and Threads AND Hivemail - literally starting from scratch. It's going to take a few days to get it up - It's exam week for me so maybe by the weekend. If you still want to check it out let me know and we'll work on details.

---EDIT---
re: DB delete:
No I didn't delete the DB before trying to restoring it - I think that's part of the problem - maybe I'll try doing that.

---EDIT 2---
Are the fixes just for donjulio or is that going to be integrated into the zip?

Tom

Last edited by Tom_H; 09/09/2003 8:35 AM.
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
if you have a db backup use phpmyadmin to load it back


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
Yeah, I have phpmyadmin but my DB was backed up before HiveMail install so I'll have to delete the current DB (read remove HiveMail) and restore the Threads DB - still would take a day to get it done - I have an exam this afternoon and don't know if I can get it done by your AM.

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
k, just let me know how it goes


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
Didn't work - reinstalling all.

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Charles -

Thanks for the code!

Just noticed - I'm s-l-o-w.

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
[]Charles said:
don julio, I created an account and got

SQL ERROR: Database error only visible to forum administrators

could you look through your log and tell me what the error is? [/]
That had never happened before. Strange. But I fixed it. I had replaced the ubbthreads_plugin.php file w/ the one that was in the zip yesterday morning and it didn't work. But I made a change based on what Tom said (adding curly brackets around $config on line 174 (or 147) ) and it seemed to be working. Not as well as I thought because of that error you got when registering. I went back to the version of ubbthreads_plugin.php made by Nikos (the one I emailed you) and I didn't get that error any more when I registered another test user. Weird.

Anyhow, here is a copy of the SQL error that happened when you tried to register:
[] Unable to do_query: UPDATE localhost.w3t_Users SET hiveuserid = 27 WHERE U_number = 101 - update command denied to user: 'laondal_admin@localhost' for table 'w3t_Users' [/]
I hope this helps

**********EDIT*************
Please try registering again, because that problem is gone w/ the Nikos version of ubbthreads_plugin.php. Then try sending yourself email to see if it updates as it should.

Last edited by donJulio; 09/09/2003 12:54 PM.
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
could you try again the file in the zip and tell me how it goes?


Do you believe in love at first sight,
or should I walk by again?
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
One thing that I noticed was that the query:

Unable to do_query: UPDATE localhost.w3t_Users SET hiveuserid = 27 WHERE U_number = 101 - update command denied to user: 'laondal_admin@localhost' for table 'w3t_Users'

is wrong because it refers to the host and not the database. You will need to change the

$sth = $dbh -> do_query("SELECT hm_userid FROM {$config['dbserver']}.{$config['tbprefix']}Users WHERE U_Number = $Uid");

into

$sth = $dbh -> do_query("SELECT hm_userid FROM {$config['dbname']}.{$config['tbprefix']}Users WHERE U_Number = $Uid");

and that should do it. This is what I had done in the plugin file.


Nikos
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
this should have been fixed in the latest zip which is why I asked if you could give it a try;


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 back up with Threads and Hivemail fresh. I'm probably going to try the integration again this Friday.

Any suggestions or "keys" to success before I hose my crap up a second time?

Tom

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
nope not really just follow the instructions you might want to install this on an unhacked board just to be sure.


Do you believe in love at first sight,
or should I walk by again?
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
[]Charles said:
could you try again the file in the zip and tell me how it goes? [/]

Sorry for not getting back to you on this. I tried it and then began having some database problems. I'm not sure if this caused it or not. I re-installed the database from a back-up and am currently using Nikos version of the plugin, but when I get a chance I'll give the one in the zip a try again Just remind me to do another back-up

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
I should have integrated nikos modifications so it SHOULD work.

please let me know if you got any errors with the DB problems


Do you believe in love at first sight,
or should I walk by again?
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
Ok. I'm glad I waited. It wasn't the ubbthreads_plugin.php file that caused the problem (as far as I can tell). I've installed the new one from the zip file and it's working the same as Nikos' version. But still now PM style notification for new emails. Has anyone got this working yet? Otherwise, everything is working well.

Last edited by donJulio; 09/13/2003 12:35 AM.
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
don julio could you give me FTP access?


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 -
I didn't install the hack today as planned because I got to thinking...

Besides the new mail notification, what does the hack do that a link to HiveMail will not do?? It seems like a lot of code yet you still need to reskin (I'm guessing) HiveMail to match Threads, you still need to go to the HiveMail front end, you still need to log-in to HiveMail. I don't mean to insult you or your work - indeed you wrote a lot of code, I just don't want to have to reinstall all again if a link will be sufficient.

Thank you,

Tom

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
np well we did some thinking on what was required without having to rewrite Hivemail and this is what came out.

- Users can create an account directly from threads.

- same password for both accounts, modifiying pass in threads will change it in hivemail too. Clicking on change passwd in HM will take you to my home in threads.

- PM style notifier when you have new mail.

in the work, auto login

as for the lot of code bit, I tried to put as much as possible in the library but you still do need to include it in the files


Do you believe in love at first sight,
or should I walk by again?
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
Just PM'ed you. BTW, the site is: laondalatina.com
Can't believe I forgot to mention that

Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,667
the access works but I get to an empty dir what i need is to be able to access the files so I can try to run a test or two


Do you believe in love at first sight,
or should I walk by again?
Page 5 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
Posts: 70
Joined: January 2007
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 20240506)