Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Amazon
show cart or checkout0 items
Cart Value: 0.00

Forums » DragonflyCMS Projects » Treasury and Supporters » Language definitions - Supporters 9.1.2
Language definitions - Supporters 9.1.2
For managing donations, site expenses and supporters - further enhancements only in the Donations Pro version.
Topic initiation via Bugger.

Post new topic    Reply to topic    Printer Friendly Page     Forum Index »  eCommerce » Treasury and Supporters

View previous topic :: View next topic  
Author Message
hqarrse
Director
Director

Offline Offline
Joined: Jan 08, 2006
Posts: 153

PostPosted: Wed Jul 02, 2008 1:47 pm
Post subject: Language definitions - Supporters 9.1.2

I don't know if this is a bug - more likely a peculaiarity of my system, but anyway...

On the supporters table of donors, donations, ranks, etc, 4 language definitions are not working, even though to me they look fine in the supports.php language file, the index and the template:

"{ Rank } { Rank calc } { Donation } { Lastdate }"

Using { Donation } as an example.

index.php:

'L_DONATION' => $lang['Amount'],


supports.php (language):

'Amount' => 'Amount<br/ Donated',

supporters.html:<th class="thTop" nowrap="nowrap">{L_DONATION}</th>


CMS debug error:


Notice line 28: Undefined index: Amount


hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Jul 02, 2008 1:58 pm
Post subject: Re: Language definitions - Supporters 9.1.2

Unless it's this forum removing the >, it should be,

'Amount' => 'Amount<br />Donated',

which is what I have in my lang file v1.2

Mind you, the most recent separate release was 9.1.3 but I have 9.1.4 in the full Treasury package.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
hqarrse
Director
Director

Offline Offline
Joined: Jan 08, 2006
Posts: 153

PostPosted: Wed Jul 02, 2008 2:02 pm
Post subject: Re: Language definitions - Supporters 9.1.2

My mistake in writing the post - it does have it. Also I have the version number wrong! I just downloaded the most recent Supportes, but will try the one out of the Treasury package now.


hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Jul 02, 2008 2:06 pm
Post subject: Re: Language definitions - Supporters 9.1.2

What may cause an issue like { Rank } showing is if you update a module, and update the default template, but still have the old template in a specific theme and that is not updated.

In that case, the specific theme will continue to use the template in its template folder, and ignore the updated default template.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
hqarrse
Director
Director

Offline Offline
Joined: Jan 08, 2006
Posts: 153

PostPosted: Wed Jul 02, 2008 2:23 pm
Post subject: Re: Language definitions - Supporters 9.1.2

I'm on the latest version from Treasury and still have the problem. There's only one template file (in the default theme), and only one language file. Thanks for the quick response BTW. Any other ideas?


hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Jul 02, 2008 2:54 pm
Post subject: Re: Language definitions - Supporters 9.1.2

Try clearing the cache files.

Otherwise, I'm not sure of what's causing the conflict - I may need to redefine the language file.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
hqarrse
Director
Director

Offline Offline
Joined: Jan 08, 2006
Posts: 153

PostPosted: Wed Jul 02, 2008 3:45 pm
Post subject: Re: Language definitions - Supporters 9.1.2

I was clearing the cache as I went. Leave it with me for a while and I'll have a play around. - edit: sorry, but I'll have to leave this for a while. Meanwhile though, does this help:

[root@arrse_apache_server cpgn2]# grep -r L_DONATION *

cache/tpl_default_supporters.html.inc: <th class="thTop" nowrap="nowrap"><?php echo ((isset($this->_tpldata['.'][0]['L_DONATION'])) ? $this->_tpldata['.'][0]['L_DONATION'] : '{ '.ucfirst(strtolower(str_replace('_', ' ', 'DONATION'))).' }'); ?></th>

modules/Supporters/index.php: 'L_DONATION' => $lang['Amount'],

themes/default/template/supporters.html: <th class="thTop" nowrap="nowrap">{L_DONATION}</th>


hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1


Last edited by hqarrse on Wed Jul 02, 2008 3:59 pm; edited 1 time in total
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Jul 02, 2008 3:52 pm
Post subject: Re: Language definitions - Supporters 9.1.2

It doesn't explain why it's happening, and shouldn't be necessary but, add this to blank line 17 of index.php,

get_lang('Supporters');


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
hqarrse
Director
Director

Offline Offline
Joined: Jan 08, 2006
Posts: 153

PostPosted: Wed Jul 02, 2008 4:01 pm
Post subject: Re: Language definitions - Supporters 9.1.2

I tried that before (and just have done again following your post) and no difference. Could it be that it's not installed properly? I'll uninstall and reinstall. It may be my fault from all the changes I was doing during Treasury / DonationsPro switches.


hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1
Back to top
View user's profile Visit poster's website
hqarrse
Director
Director

Offline Offline
Joined: Jan 08, 2006
Posts: 153

PostPosted: Wed Jul 02, 2008 4:13 pm
Post subject: Re: Language definitions - Supporters 9.1.2

Just uninstalled, deleted the rank_value column and reinstalled and the same. I wouldn't worry Phoenix. If it's not happening on other installs it's probably some peculiarity on ours that has crept in somewhere. Only the admins see it so it doesn't matter really so much.


hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Slackware/Apache 2.2.4/MySQL 5.0/PHP5.2/9.1.2.1
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Jul 02, 2008 4:35 pm
Post subject: Re: Language definitions - Supporters 9.1.2

It's a puzzle - I'll rewrite the language file anyway when I produce the new version which will allow you to select which "DP" module you want it to pull data from.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index »  eCommerce » Treasury and Supporters
Page 1 of 1
All times are GMT + 9.5 Hours



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum