![]() |
Quote:
|
Quote:
|
Nice hack install and nominate :up:
|
Getting the following error when upgrading from 5.3
Code:
Database error in vBulletin 4.0.0: |
Try removing all of the thank you hack and do a clean install of the newest version here. It's worth a shot.
|
Was thinking that but then I guess all users loose their thanks.
No big deal I guess. I'll backup the DB before I do that though! |
I am no coder but it is a shot in the dark. I agree with the loss of thanks my members lost the same too as I uninstalled the 3.8 version before I upgrade the forum but they understand too.
|
Hi there, thanks for the great post - I am trying to figure out how I can make this appear on a custom skin - what do I add and to which template file?
|
The install assumes that the relevant fields on the table don't exist. Is there not a way of checking to see if they already exist and skip?
Code:
<![CDATA[$db->query_write("CREATE TABLE IF NOT EXISTS`". TABLE_PREFIX ."post_thanks` ( `id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, `userid` INT(10) NOT NULL, `username` VARCHAR(50) NOT NULL, `date` INT(10) NOT NULL, `postid` INT(10) NOT NULL) "); $db->query_write("ALTER TABLE `". TABLE_PREFIX ."post_thanks` ADD INDEX ( `postid` )"); $db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` ADD `post_thanks_user_amount` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); $db->query_write("ALTER TABLE `". TABLE_PREFIX ."post` ADD `post_thanks_amount` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); $db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` ADD `post_thanks_thanked_posts` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL"); $db->query_write("ALTER TABLE `". TABLE_PREFIX ."user` ADD `post_thanks_thanked_times` INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");]]> |
Installed and Love it!
Is there a way to install this a second time to make it say "hugs" and track separately? Just curious. :) ETA - I moved the postbit thingy to make the thanks go next to editpost, but its still under the avatars and stuff. No big deal, just curious as to why it isn't moving. I did the legacy thing and refreshed, cleared cache, etc. still didn't budge. I guess it just wants to hang out over there. ;) |
All times are GMT. The time now is 07:17 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:
|