Firefox PHP

Module: Self-Delete Posts Option

Posted by Joe Curia 
Re: Module: Self-Delete Posts Option
October 12, 2010 10:32AM
Hello,
The correct file is read_threads.tpl in /mods /treeview /templates /lightweigt
Which line (number) must write the code?
Language: PHP
{IF MODERATOR false} {IF MESSAGES->URL->SELF_DELETE_POST} {MESSAGES->URL->SELF_DELETE_POST} {/IF} {/IF}
I would like him to write line 62:
Language: PHP
{IF MESSAGE->URL->REPORT}&raquo; <a class="icon" href="{MESSAGE->URL->REPORT}">{LANG->Report}</a>{/IF}
that does not work. This breaks the page.
Can you help me again?

Thanks a million
Re: Module: Self-Delete Posts Option
October 12, 2010 10:34AM
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
Re: Module: Self-Delete Posts Option
October 12, 2010 11:15AM
was my fault, an open TAG. Ok, I can write it anywhere. But it is not a link "delete"

thanx



Edited 1 time(s). Last edit at 10/12/2010 12:34PM by masei1202.
Re: Module: Self-Delete Posts Option
October 12, 2010 11:41AM
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
Re: Module: Self-Delete Posts Option
October 12, 2010 11:59AM
YESSSSSSSS :) it work!

have many thanks.
how I can support your work? Donation?

Greetings
masei1202

p.s. Can I remove the link (server) and the picture again?
Re: Module: Self-Delete Posts Option
October 12, 2010 12:02PM
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
Re: Module: Self-Delete Posts Option
October 12, 2010 12:41PM
A very small question I would have. We use two language files in the Forum. (German_du and English). In the MOD self_delete_posts exists only one language file (english.php). I write a second to the MOD does not work. How do I put the MOD provides both languages?

thanx
Re: Module: Self-Delete Posts Option
October 12, 2010 12:43PM
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
Re: Module: Self-Delete Posts Option
October 12, 2010 01:05PM
Thank you, now everything is complete.

masei1202
Sorry, only registered users may post in this forum.

Click here to login