![]() |
Well, mine installed just fine, with just one strange problem: the first time you click to send admiration, you get the duplicate phrase. I've double checked the code, and its all correct. Any ideas why this is happening?
You know, I think I may know what the problem is: I missed "NOTE: You must replace TABLE_PREFIX with the prefix that you use on your VB3 installation... OR remove it if you are not using a table_prefix." So . . . can somebody explain that to me? I'm new to the SQL queries. How do I know if I'm using a table prefix, and if I am, what it is? |
Quote:
The hack cunningly uses MySql trickery to detect duplicates... the trickery is that when two identical rows get inserted it causes an error. I detect the error and that's how I know that an admiration already exists. However, it means I am basically masking MySql errors. Anyhow... table prefix. In your /includes/config.php file there is a bit that looks like this: Code:
// Prefix that your vBulletin tables have in the database. Code:
DATABASE WORK Now, in that CREATE TABLE bit the first line says: Code:
CREATE TABLE TABLE_PREFIXsecretadmirer ( Code:
CREATE TABLE secretadmirer ( Code:
CREATE TABLE vb3_secretadmirer ( You only need to do this once, in that piece of SQL. The script can work it out when running, but because I didn't build an installer, I couldn't work out whether you have a table prefix. Oh, and you will also want to run this which will delete the table that you made by accident: Code:
DROP TABLE TABLE_PREFIXsecretadmirer; Hope that all makes sense to you :) |
Perfectly clear, and now running perfectly! Many thanks!
|
Buro, I've looked in my phpadmin, and found a table called "TABLE_PREFIXsecretadmirer". Now, I have no table prefixes in my config file, so I'm not sure how this got created. And, the hack is working fine.
Suggestions??? |
Quote:
You must've run the SQL and then modified it to remove the TABLE_PREFIX bit and then ran it again. So just deleted the unused table :) |
Would it be possible to make this feature accessible from the user's postbit? So if you wanted to register admiration, you wouldn't have to go to the profile.
|
Okay here's my problem.
No longer have the blank page problem - for some reason when I FTPed the file it didn't come up with the entire code. Who knows. Anyhow, the PM's aren't sending like they're supposed to and neither are the e-mails. Any idea? |
Quote:
Note these bits: Code:
PHRASE WORK: |
Quote:
Check that you created the templates: Code:
TEMPLATE WORK |
Quote:
Code:
<a href="profile.php?$session[sessionurl]do=admire&userid=$userinfo[userid]">Register your admiration for $userinfo[username]</a> |
All times are GMT. The time now is 04:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|