[DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
Locked
starwar
Registered User
Posts: 99
Joined: Tue Nov 21, 2006 7:22 pm

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by starwar » Tue Aug 26, 2008 8:11 pm

I update to 0.2.0,my thank icon is disappear.

In admin panel,I can't find enable/disable,where is this?

can u help me pls?

User avatar
Mahoney
Registered User
Posts: 196
Joined: Sun Mar 16, 2008 4:07 pm
Contact:

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by Mahoney » Tue Aug 26, 2008 8:29 pm

Hello starwar
starwar wrote: In admin panel,I can't find enable/disable,where is this?

can u help me pls?
Edit a Forum and under "General forum settings" you will find the Option "Enable the Thanks MOD:"

Best regards: Mahoney

starwar
Registered User
Posts: 99
Joined: Tue Nov 21, 2006 7:22 pm

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by starwar » Wed Aug 27, 2008 3:50 am

It don't appear for me,what I may need?

thank

construaprende
Registered User
Posts: 59
Joined: Tue May 18, 2004 7:40 pm
Location: Mexico
Contact:

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by construaprende » Wed Aug 27, 2008 3:57 am

Error using Seven MODX installer:
style/prosilver/memberlist_view.html
Does not Exist

It Should be:
styles/prosilver/template/memberlist_view.html

construaprende
Registered User
Posts: 59
Joined: Tue May 18, 2004 7:40 pm
Location: Mexico
Contact:

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by construaprende » Wed Aug 27, 2008 4:52 am

starwar wrote:It don't appear for me,what I may need?

thank
I have the same problem, but this is my fist time I install this module 0.2, I don't see how to enable it

EDITED:
I Cleaned all cache from General (Main) Admin Page, and know I see how to enable it

But i See twice the option to enable it

starwar
Registered User
Posts: 99
Joined: Tue Nov 21, 2006 7:22 pm

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by starwar » Wed Aug 27, 2008 5:59 am

ya,it work :D

thank

madtay
Registered User
Posts: 328
Joined: Tue Jun 27, 2006 10:27 pm
Contact:

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by madtay » Wed Aug 27, 2008 9:56 am

Hi, just to let you know i encountered a problem with this mod giving me errors in viewtopic.php when no forum or topic id was used...

Code: Select all

[27-Aug-2008 10:25:06] PHP Warning:  strtr() [<a href='function.strtr'>function.strtr</a>]: The second argument is not an array. in /home/f1racing/public_html/includes/session.php on line 1899
[27-Aug-2008 10:25:06] PHP Warning:  strtr() [<a href='function.strtr'>function.strtr</a>]: The second argument is not an array. in /home/f1racing/public_html/includes/session.php on line 1899
[27-Aug-2008 10:25:06] PHP Warning:  strtr() [<a href='function.strtr'>function.strtr</a>]: The second argument is not an array. in /home/f1racing/public_html/includes/session.php on line 1899
[27-Aug-2008 10:25:06] PHP Warning:  strtr() [<a href='function.strtr'>function.strtr</a>]: The second argument is not an array. in /home/f1racing/public_html/includes/session.php on line 1899
[27-Aug-2008 10:25:06] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/f1racing/public_html/includes/session.php:1899) in /home/f1racing/public_html/includes/functions.php on line 3613
[27-Aug-2008 10:25:06] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/f1racing/public_html/includes/session.php:1899) in /home/f1racing/public_html/includes/functions.php on line 3615
[27-Aug-2008 10:25:06] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/f1racing/public_html/includes/session.php:1899) in /home/f1racing/public_html/includes/functions.php on line 3616
[27-Aug-2008 10:25:06] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/f1racing/public_html/includes/session.php:1899) in /home/f1racing/public_html/includes/functions.php on line 3617
[27-Aug-2008 10:25:06] PHP Fatal error:  template->_tpl_load_file(): File /message_body.html does not exist or is empty in /home/f1racing/public_html/includes/functions_template.php on line 63
[27-Aug-2008 10:44:05] PHP Warning:  strtr() [<a href='function.strtr'>function.strtr</a>]: The second argument is not an array. in /home/f1racing/public_html/includes/session.php on line 1899
[27-Aug-2008 10:44:05] PHP Warning:  strtr() [<a href='function.strtr'>function.strtr</a>]: The second argument is not an array. in /home/f1racing/public_html/includes/session.php on line 1899
[27-Aug-2008 10:44:05] PHP Warning:  strtr() [<a href='function.strtr'>function.strtr</a>]: The second argument is not an array. in /home/f1racing/public_html/includes/session.php on line 1899
[27-Aug-2008 10:44:05] PHP Warning:  strtr() [<a href='function.strtr'>function.strtr</a>]: The second argument is not an array. in /home/f1racing/public_html/includes/session.php on line 1899
[27-Aug-2008 10:44:05] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/f1racing/public_html/includes/session.php:1899) in /home/f1racing/public_html/includes/functions.php on line 3613
[27-Aug-2008 10:44:05] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/f1racing/public_html/includes/session.php:1899) in /home/f1racing/public_html/includes/functions.php on line 3615
[27-Aug-2008 10:44:05] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/f1racing/public_html/includes/session.php:1899) in /home/f1racing/public_html/includes/functions.php on line 3616
[27-Aug-2008 10:44:05] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/f1racing/public_html/includes/session.php:1899) in /home/f1racing/public_html/includes/functions.php on line 3617
[27-Aug-2008 10:44:05] PHP Fatal error:  template->_tpl_load_file(): File /message_body.html does not exist or is empty in /home/f1racing/public_html/includes/functions_template.php on line 63
I searched these forums for a solution and found where the problem seemed to be, it is explained in this thread...
http://www.phpbb.com/community/viewtopi ... 1&t=548841

So to resolve this i have had to remove the line:

Code: Select all

$user->add_lang('mods/thanks');
from the viewtopic.php

and add the language entries to common.php language file.

This has resolved the issue but i thought you might like to know.

Thanks

User avatar
Mahoney
Registered User
Posts: 196
Joined: Sun Mar 16, 2008 4:07 pm
Contact:

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by Mahoney » Wed Aug 27, 2008 10:10 am

Hello construaprende
construaprende wrote:Error using Seven MODX installer:
style/prosilver/memberlist_view.html
Does not Exist

It Should be:
styles/prosilver/template/memberlist_view.html
Thank you for your message. The bug is now fixed.


Edit: @madtay
Thank you for your message. The bug is now fixed and the package has been updated.

Find in viewtopic.php

Code: Select all

//Begin Thank Post MOD
	$user->setup('mods/thanks');
//End Thank Post MOD

Replace With
(or delete it)

Code: Select all

//Nothing
Find

Code: Select all

// Send vars to template
Add before

Code: Select all

//Begin Thank Post MOD
$user->add_lang('mods/thanks');
//End Thank Post MOD


Best regards: Mahoney

User avatar
Professional
Registered User
Posts: 187
Joined: Mon Jan 21, 2008 2:40 pm

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by Professional » Wed Aug 27, 2008 1:08 pm

the subsilver2 changes files is noot included at this file.
is it like the previous version?
انجمن تخصصی نسل جدید موبایل ها
My Mobile Forum: M4P Forum
Every Thing That U Feel,Is Every Thing That I Feel.

User avatar
Mahoney
Registered User
Posts: 196
Joined: Sun Mar 16, 2008 4:07 pm
Contact:

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by Mahoney » Wed Aug 27, 2008 2:46 pm

Hello
Look at contrib/update_0.1.0_to_0.2.0/subsilver2.xml


Best regards: Mahoney

User avatar
Professional
Registered User
Posts: 187
Joined: Mon Jan 21, 2008 2:40 pm

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by Professional » Wed Aug 27, 2008 3:06 pm

sorry yes.
another thing i run the 0.1 sql query before and now i run this:

Code: Select all

ALTER TABLE `phpbb_forums` ADD COLUMN `enable_thanks` TINYINT(1) DEFAULT '0' NOT NULL; 
i think it isn't nedd to do the db_update.php as wel lbecause it ays:

Code: Select all

SQL ERROR [ mysql4 ]

Duplicate column name 'enable_thanks' [1060]

SQL

ALTER TABLE phpbb_forums ADD COLUMN enable_thanks TINYINT(1) DEFAULT '0' NOT NULL

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: db_update.php
LINE: 58
CALL: dbal_mysql->sql_query()
is it right?

and where shoud i enabel thank?
انجمن تخصصی نسل جدید موبایل ها
My Mobile Forum: M4P Forum
Every Thing That U Feel,Is Every Thing That I Feel.

User avatar
Mahoney
Registered User
Posts: 196
Joined: Sun Mar 16, 2008 4:07 pm
Contact:

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by Mahoney » Wed Aug 27, 2008 3:25 pm

Hello
The Error Message
Duplicate column name 'enable_thanks'
says, the column 'enable_thanks' already exists.
You have nothing to do more.

Best regards: Mahoney

User avatar
Professional
Registered User
Posts: 187
Joined: Mon Jan 21, 2008 2:40 pm

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by Professional » Wed Aug 27, 2008 3:32 pm

thank u,what about the enabling the mod?

i installed it now,how can i enable it now?
انجمن تخصصی نسل جدید موبایل ها
My Mobile Forum: M4P Forum
Every Thing That U Feel,Is Every Thing That I Feel.

usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by usenet2you » Wed Aug 27, 2008 3:42 pm

Professional wrote:thank u,what about the enabling the mod?

i installed it now,how can i enable it now?
ACP ==> Forums > Click on a category ==> Then edit a forum where you want the thanks is enabled.

User avatar
Professional
Registered User
Posts: 187
Joined: Mon Jan 21, 2008 2:40 pm

Re: [DEV] Thank Post Mod (hide MOD compatible ) 0.2.0

Post by Professional » Thu Aug 28, 2008 6:09 am

graet tnx,this is a very good mod. :D
it works perfect ,and as u said it use fewer ram taht the first thank mod.

i have only a question that if i want to place remove thank button center at subsilver2 style what shoud i do? :oops:

is it possible to place thank post button at the same place of remove thanks?
انجمن تخصصی نسل جدید موبایل ها
My Mobile Forum: M4P Forum
Every Thing That U Feel,Is Every Thing That I Feel.

Locked

Return to “[3.0.x] MODs in Development”