Module: Self-Delete Posts Option
Posted by Joe Curia
Re: Module: Self-Delete Posts Option October 12, 2010 04:32AM |
Registered: 12 years ago Posts: 38 |
Hello,
The correct file is read_threads.tpl in /mods /treeview /templates /lightweigt
Which line (number) must write the code?
Can you help me again?
Thanks a million
The correct file is read_threads.tpl in /mods /treeview /templates /lightweigt
Which line (number) must write the code?
I would like him to write line 62:Language: PHP{IF MODERATOR false} {IF MESSAGES->URL->SELF_DELETE_POST} {MESSAGES->URL->SELF_DELETE_POST} {/IF} {/IF}
that does not work. This breaks the page.Language: PHP{IF MESSAGE->URL->REPORT}» <a class="icon" href="{MESSAGE->URL->REPORT}">{LANG->Report}</a>{/IF}
Can you help me again?
Thanks a million
October 12, 2010 04:34AM |
Admin Registered: 18 years ago Posts: 8,532 |
Can you provide a screen shot of what you mean with the breaking page? The code can be put anywhere you like it to be in the template, so there's no dedicated line number for that.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Module: Self-Delete Posts Option October 12, 2010 05:15AM |
Registered: 12 years ago Posts: 38 |
October 12, 2010 05:41AM |
Admin Registered: 18 years ago Posts: 8,532 |
Repeat of a previous comment: Also beware that you use the correct message variables. Within the read_threads.tpl file, you must use MESSAGE instead of MESSAGES, because you are viewing a single message there, not an array of messages.
I think you missed out on this one. Based on your comments, I think that you are using MESSAGES not MESSAGE in your added code.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
I think you missed out on this one. Based on your comments, I think that you are using MESSAGES not MESSAGE in your added code.
Maurice Makaay
Phorum Development Team



Re: Module: Self-Delete Posts Option October 12, 2010 05:59AM |
Registered: 12 years ago Posts: 38 |
October 12, 2010 06:02AM |
Admin Registered: 18 years ago Posts: 8,532 |
Yes, you can remove the link and picture. Great that you got it to work now.
If you want to support our work, then feel free to make a donation.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
If you want to support our work, then feel free to make a donation.
Maurice Makaay
Phorum Development Team



Re: Module: Self-Delete Posts Option October 12, 2010 06:41AM |
Registered: 12 years ago Posts: 38 |
October 12, 2010 06:43AM |
Admin Registered: 18 years ago Posts: 8,532 |
Check that you are using the exact same file name in mods/<module>/lang/<language>.php as the file in include/lang/<language>.php. Phorum matches the languages based on the filename of the translation PHP-file.
If your main translation is include/lang/german.php, then the translation for this module must be in mods/self_delete_posts/lang/german.php
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
If your main translation is include/lang/german.php, then the translation for this module must be in mods/self_delete_posts/lang/german.php
Maurice Makaay
Phorum Development Team



Re: Module: Self-Delete Posts Option October 12, 2010 07:05AM |
Registered: 12 years ago Posts: 38 |
Sorry, only registered users may post in this forum.