Thank You Mod (V1.2.3)

Started by ディン1031, January 11, 2006, 12:29:00 PM

Previous topic - Next topic

ormuz

This is my display.template

//Thank You Button is now where it belongs <<
if (isset($context['thank_you']['premission'])) {
if ($context['thank_you']['premission']['post'])
$normal_buttons['thankyou'] = array('text' => 'd_thank_you', 'image' => 'thank_you.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyoupost;topic=' . $context['current_topic'] . '.0');
elseif ($context['thank_you']['premission']['add'])
$normal_buttons['thankyou'] = array('text' => 'd_thank_you_add', 'image' => 'thank_you_add.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyouadd;topic=' . $context['current_topic'] . '.0');
}


Please take a look at my display.template file, perhaps there is something wrong!

ディン1031

No it's correct, but i think how your theme built with the "$normal_buttons" the Links could be the problem. The Strange thing is that it show Thank You... normal if something is wrong it should show d_thank_you...

Can you give me a image how it look in your forum...

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

ormuz

#462
Quote from: ディン1031 on December 05, 2008, 02:41:45 AM
No it's correct, but i think how your theme built with the "$normal_buttons" the Links could be the problem. The Strange thing is that it show Thank You... normal if something is wrong it should show d_thank_you...

Can you give me a image how it look in your forum...

Bye
DIN1031

I'm using default theme... Strange is that it display the first translation, but not the second one! See the attached files.

In the first one, when the thank you isn't active in the topic, the translation is displayed, in the second one, after the thank you been activated, is doesn't show the translation...

First image = "ACTIVAR "SITE DO MÊS"
Second image = "THANK YOU"

It should display the index.language.php right?
$txt['d_thank_you_add'] = 'Activar &quot;Site do M&ecirc;s&quot;';
$txt['d_thank_you'] = 'Nomear para &quot;Site do M&ecirc;s&quot;';


Any ideas?

ディン1031

Strange... it's the same as above... so i think it should work... i will  test it... but i'm sure it work...
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

xkiller213

someone help me!

i've installed this mod...

shows no errors...

i've also set the permissions...

but how come nothing happens?

i've used the default theme to see if anything would happen... if it worked then i'd use it on my other theme (Musiconica)...

i've already modded the other theme already, but i can't seem to find the place to put //Thank You Button is now where it belongs <<
if (isset($context['thank_you']['premission'])) {
if ($context['thank_you']['premission']['post'])
$normal_buttons['thankyou'] = array('text' => 'd_thank_you', 'image' => 'thank_you.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyoupost;topic=' . $context['current_topic'] . '.0');
elseif ($context['thank_you']['premission']['add'])
$normal_buttons['thankyou'] = array('text' => 'd_thank_you_add', 'image' => 'thank_you_add.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyouadd;topic=' . $context['current_topic'] . '.0');
}


coz i can't find this:
else
unset($normal_buttons['custom']);


but then i searched before and after that and placed it here:
    // Does this topic have some events linked to it?
    if (!empty($context['calendar_events']))
    {
        echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">
        <tr>
                <td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">
                        ', $txt['calendar_linked_events'], '
                </td>
        </tr>
        <tr>
                <td width="5%" valign="top" class="windowbg">
                        <ul>';
        foreach ($context['calendar_events'] as $event)
            echo '
                                <li>
                                        ', ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: red;">*</a> ' : ''), '<b>', $event['title'], '</b>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
                                </li>';
        echo '
                        </ul>
                </td>
        </tr>
</table>';
    }

    // Build the normal button array.
    $normal_buttons = array(
        'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),
        'new_topic' => array('test' => 'can_reply', 'text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=post;board=' . $context['current_board'] . '.0'),
    );
   
   
//Thank You Button is now where it belongs <<
if (isset($context['thank_you']['premission'])) {
if ($context['thank_you']['premission']['post'])
$normal_buttons['thankyou'] = array('text' => 'd_thank_you', 'image' => 'thank_you.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyoupost;topic=' . $context['current_topic'] . '.0');
elseif ($context['thank_you']['premission']['add'])
$normal_buttons['thankyou'] = array('text' => 'd_thank_you_add', 'image' => 'thank_you_add.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyouadd;topic=' . $context['current_topic'] . '.0');
}

    // Show the page index... "Pages: [1]".
    echo '
<div style="text-align:right;">', $context['previous_next'], '</div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td align="left" style="padding-left: 1ex;">
            <table cellpadding="0" cellspacing="0">
                <tr>
                    ', template_button_strip($normal_buttons, 'bottom'), '
                </tr>
            </table>
        </td>
        <td class="middletext" valign="bottom" align="right" style="padding-bottom: 4px;padding-right: 1ex;">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#lastPost"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>
    </tr>
</table>';

    // Show the page information, Number of views, Topic Tools, etc...


please tell me if it'll work..
[nofollow]

ormuz

Do u have activated the mod in the board options?

JungleBunny

Hi everybody,

can someone give me a good hint how this mod works with sticky postings ?
Works fine in the normal way but when I made this topic sticky, all Thanks are gone in this sticky first posting.
They all exist in the normal first posting but when you have got 7 pages, nobody will see it..

Thanks.

ディン1031

Quote from: JungleBunny on January 26, 2009, 04:04:33 PM
Hi everybody,

can someone give me a good hint how this mod works with sticky postings ?
Works fine in the normal way but when I made this topic sticky, all Thanks are gone in this sticky first posting.
They all exist in the normal first posting but when you have got 7 pages, nobody will see it..

Thanks.
oO Normal this should not happen, i've a lot of sticky with thank you posts...
Did you change something for the Sticky posts, or use any mod that extent the sticky options?

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

JungleBunny

Hi Din1031,

jep, I have the mod "Sticky First Post (extends sticky topic)".
Uninstall this mod ?

Thanks

ディン1031

Quote from: JungleBunny on January 27, 2009, 04:57:01 AM
Hi Din1031,

jep, I have the mod "Sticky First Post (extends sticky topic)".
Uninstall this mod ?

Thanks
Could you give me a link to the mod? ;)
I will try it, possible I've a idea to solve this. (But i need some time for that, i've some other important things to do :X)

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

JungleBunny

You are my Duke :D :D :D

Link to mod is http://custom.simplemachines.org/mods/index.php?mod=235

Would be great if you could help me.

Thank you

ディン1031

Quote from: JungleBunny on January 27, 2009, 03:23:50 PM
You are my Duke :D :D :D

Link to mod is http://custom.simplemachines.org/mods/index.php?mod=235

Would be great if you could help me.

Thank you
So it work like it should... if you go to the first page on the first sticky post the thank you list is shown. (Like it should) ;).

See image.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

JungleBunny

Hiya 1031,

I see :-X
But I think I known now the problem.
I installed the thank o matic mod previous and wanted to midify theThank You Mod in this kind that it is a participation for events.
They click on the Thank You button ( Participation button ) and their names will be listed for an event described in the topic.
Worked but not for the sticky topic.
But both mods do not work together :( :(

Thanks for your answers.

JungleBunny

ディン1031

Quote from: JungleBunny on January 31, 2009, 09:47:39 AM
Hiya 1031,

I see :-X
But I think I known now the problem.
I installed the thank o matic mod previous and wanted to midify theThank You Mod in this kind that it is a participation for events.
They click on the Thank You button ( Participation button ) and their names will be listed for an event described in the topic.
Worked but not for the sticky topic.
But both mods do not work together :( :(

Thanks for your answers.

JungleBunny
I know a lot mods where thank you mod and thank-o-matic work together, or did you mean sticky post does not work together with thank-o-matic?

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

JungleBunny

Thank o matic and sticky = no problem - Thank you user shown in sticky topic :D
Thank You Mod and sticky = no problem - Thank you user shown in sticky topic :D
Thank o matic and Thank You Mod and sticky = problem - Thank o matic Thank You User are shown as a list - No user shown from the Thank You Mod :-X

If it would help then I can make a snapshot.

ディン1031

Quote from: JungleBunny on January 31, 2009, 09:32:16 PM
Thank o matic and sticky = no problem - Thank you user shown in sticky topic :D
Thank You Mod and sticky = no problem - Thank you user shown in sticky topic :D
Thank o matic and Thank You Mod and sticky = problem - Thank o matic Thank You User are shown as a list - No user shown from the Thank You Mod :-X

If it would help then I can make a snapshot.
Complex problem. But i will look at it.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

JungleBunny

That would be really great :-* :-*
And all this  because I want that the members only have to click on a button so that their names are on the list :D

gilanisoft

hi
i have installed both thank you mod and thank-o-matic mode.but there is no thank you button in topic view or in posts.
please help me.here is my site link.

http://pmdc.gilanisoft.com

ディン1031

Quote from: gilanisoft on February 04, 2009, 07:29:01 PM
hi
i have installed both thank you mod and thank-o-matic mode.but there is no thank you button in topic view or in posts.
please help me.here is my site link.

http://pmdc.gilanisoft.com
Did you enable it on the boards?
Did you set up the permissions?
Did you make the costum theme changes if they are needed?

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

sombra

hello. nice mod very usefull

im having a bit of a problem in the maintain secction of the forum wen o go to repair thank you tables shows me an error in the log says this

http://todoilegal.net/index.php?action=admin;area=thankyoupostrepairtable
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Integer expected.
Function: updateMemberData
Apply Filter: Only show the errors from this file
Archivo: /home/todoile1/public_html/Sources/Subs.php
Línea: 564

any idea how to fix it

and thanks for this grat mod

Advertisement: