From 684f7f185cd12e0c7528f77d92737d4ffb4dfacd Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 1 Aug 2011 14:41:56 +0300 Subject: [PATCH] Fix Notice: Undefined property: KunenaUser::$ty_received --- administrator/components/com_kunena/install/install.xml | 2 +- .../components/com_kunena/install/kunena.install.upgrade.xml | 1 + .../template/default20/html/topic/default_profile.php | 2 +- .../template/default20/html/user/default_summary.php | 2 +- .../views/topic/tmpl/default_profile_horizontal.php | 4 ++-- .../com_kunena/views/topic/tmpl/default_profile_vertical.php | 4 ++-- components/com_kunena/views/topic/view.html.php | 4 ++-- components/com_kunena/views/user/tmpl/default_summary.php | 2 +- components/com_kunena/views/user/view.html.php | 2 +- 9 files changed, 12 insertions(+), 11 deletions(-) diff --git a/administrator/components/com_kunena/install/install.xml b/administrator/components/com_kunena/install/install.xml index d882f4a13a..4ede294dea 100644 --- a/administrator/components/com_kunena/install/install.xml +++ b/administrator/components/com_kunena/install/install.xml @@ -496,7 +496,7 @@ - + diff --git a/administrator/components/com_kunena/install/kunena.install.upgrade.xml b/administrator/components/com_kunena/install/kunena.install.upgrade.xml index 6f16fb0262..91743b7321 100644 --- a/administrator/components/com_kunena/install/kunena.install.upgrade.xml +++ b/administrator/components/com_kunena/install/kunena.install.upgrade.xml @@ -291,6 +291,7 @@ ALTER TABLE `#__kunena_categories` ADD `topic_ordering` VARCHAR(16) NOT NULL default 'lastpost' AFTER `allow_polls`; + ALTER TABLE `#__kunena_users` ADD `thankyou` int(11) NULL default '0' AFTER `showOnline`; \ No newline at end of file diff --git a/components/com_kunena/template/default20/html/topic/default_profile.php b/components/com_kunena/template/default20/html/topic/default_profile.php index a5819209fa..febf34870e 100644 --- a/components/com_kunena/template/default20/html/topic/default_profile.php +++ b/components/com_kunena/template/default20/html/topic/default_profile.php @@ -31,7 +31,7 @@ userposts) : ?>
  • userposts) ?>
  • userpoints) : ?>
  • userpoints); ?>
  • userkarma ) : ?>
  • userkarma ?>
  • - usertyr ) : ?>
  • usertyr ) ?>
  • + thankyou ) : ?>
  • thankyou ) ?>
  • usermedals) ) : ?>
  • usermedals as $medal ) : ?> diff --git a/components/com_kunena/template/default20/html/user/default_summary.php b/components/com_kunena/template/default20/html/user/default_summary.php index 1e34317863..66d1cb3253 100644 --- a/components/com_kunena/template/default20/html/user/default_summary.php +++ b/components/com_kunena/template/default20/html/user/default_summary.php @@ -39,7 +39,7 @@ usermedals)) : ?>
  • usermedals as $medal ) : echo $medal,' '; endforeach ?>
  • : profile->uhits) ?>
  • displayKarma(); ?>
  • - usertyr)): ?>
  • usertyr) ?>
  • + thankyou)): ?>
  • thankyou) ?>
  • pmLink)) : ?>
  • pmLink ?>
  • personalText) ) : ?> diff --git a/components/com_kunena/views/topic/tmpl/default_profile_horizontal.php b/components/com_kunena/views/topic/tmpl/default_profile_horizontal.php index 8b8be8df54..822ef5b439 100644 --- a/components/com_kunena/views/topic/tmpl/default_profile_horizontal.php +++ b/components/com_kunena/views/topic/tmpl/default_profile_horizontal.php @@ -24,8 +24,8 @@ userposts) : ?> userposts); ?> - usertyr) : ?> - usertyr); ?> + thankyou) : ?> + thankyou); ?> userpoints) : ?> userpoints); ?> diff --git a/components/com_kunena/views/topic/tmpl/default_profile_vertical.php b/components/com_kunena/views/topic/tmpl/default_profile_vertical.php index d65624f1c9..c8e03adae5 100644 --- a/components/com_kunena/views/topic/tmpl/default_profile_vertical.php +++ b/components/com_kunena/views/topic/tmpl/default_profile_vertical.php @@ -54,8 +54,8 @@ userposts) : ?>
  • userposts); ?>
  • - usertyr) : ?> -
  • usertyr); ?>
  • + thankyou) : ?> +
  • thankyou); ?>
  • userpoints) : ?>
  • userpoints); ?>
  • diff --git a/components/com_kunena/views/topic/view.html.php b/components/com_kunena/views/topic/view.html.php index 3f2166eff2..a979911349 100644 --- a/components/com_kunena/views/topic/view.html.php +++ b/components/com_kunena/views/topic/view.html.php @@ -565,7 +565,7 @@ function getMessageProfileBox() { $this->userranktitle = $this->profile->getRank ( $this->topic->category_id, 'title' ); $this->userposts = $this->profile->posts; $activityIntegration = KunenaFactory::getActivityIntegration (); - $this->usertyr = $this->profile->ty_received; + $this->thankyou = $this->profile->thankyou; $this->userpoints = $activityIntegration->getUserPoints ( $this->profile->userid ); $this->usermedals = $activityIntegration->getUserMedals ( $this->profile->userid ); } else { @@ -573,7 +573,7 @@ function getMessageProfileBox() { $this->userrankimage = null; $this->userranktitle = null; $this->userposts = null; - $this->usertyr = null; + $this->thankyou = null; $this->userpoints = null; $this->usermedals = null; } diff --git a/components/com_kunena/views/user/tmpl/default_summary.php b/components/com_kunena/views/user/tmpl/default_summary.php index 41da028d7e..a0267bdacb 100644 --- a/components/com_kunena/views/user/tmpl/default_summary.php +++ b/components/com_kunena/views/user/tmpl/default_summary.php @@ -33,7 +33,7 @@
  • : GMT localtime->toTimezone(); ?>
  • : localtime->toKunena('time'); ?>
  • posts)): ?>
  • : posts); ?>
  • - usertyr)): ?>
  • : usertyr); ?>
  • + thankyou)): ?>
  • : thankyou); ?>
  • userpoints)): ?>
  • userpoints); ?>
  • usermedals)) : ?>
  • usermedals as $medal ) : echo $medal,' '; endforeach ?>
  • : profile->uhits); ?>
  • diff --git a/components/com_kunena/views/user/view.html.php b/components/com_kunena/views/user/view.html.php index f00a490d72..37cc713572 100644 --- a/components/com_kunena/views/user/view.html.php +++ b/components/com_kunena/views/user/view.html.php @@ -104,7 +104,7 @@ protected function displayCommon($tpl = null) { $this->rank_image = $this->profile->getRank (0, 'image'); $this->rank_title = $this->profile->getRank (0, 'title'); $this->posts = $this->profile->posts; - $this->usertyr = $this->profile->ty_received; + $this->thankyou = $this->profile->thankyou; $this->userpoints = $activityIntegration->getUserPoints($this->profile->userid); $this->usermedals = $activityIntegration->getUserMedals($this->profile->userid); }