Not Solved Button changed for Thank/You/Like System after upgrade
#1
Not Solved
I use the Thank You/Like System plugin, Version 2.1.0. The button changed after upgrading MyBB from 1.8.12 to 1.8.13 and 1.8.14. The button was placed in-line to the left of the reply button. Now it's placed above the reply button and it got the magnifier icon on it too. 

Please, find a screen dump attached. Here is a link to the thread where I've got it from:

http://campingforum.net/showthread.php?tid=68&page=2

I believe one might have to change something in the template, but I can't see what to change. This is what it looks like in Edit Templates:

Edit Template: thankyoulike_button_add

<div id="tyl_btn_{$post['pid']}" class="postbit_buttons"><a class="add_tyl_button" href="thankyoulike.php?action=add&amp;pid={$post['pid']}&amp;my_post_key={$mybb->post_code}" onclick="thankyoulike.add({$post['pid']}, {$post['tid']}); return false;" title="{$lang->add_tyl_button_title}" id="tyl_a{$post['pid']}"><span id="tyl_i{$post['pid']}">{$lang->add_tyl}</span></a></div>

Edit Template: thankyoulike_button_del

<div id="tyl_btn_{$post['pid']}" class="postbit_buttons"><a class="del_tyl_button" href="thankyoulike.php?action=del&amp;pid={$post['pid']}&amp;my_post_key={$mybb->post_code}" onclick="thankyoulike.del({$post['pid']}, {$post['tid']}); return false;" title="{$lang->del_tyl_button_title}" id="tyl_a{$post['pid']}"><span id="tyl_i{$post['pid']}">{$lang->del_tyl}</span></a></div>


Attached Files Thumbnail(s)
   
Reply
#2
Not Solved
Can you share the content of your postbit template as well ?
- MyBB Heart
Reply
#3
Not Solved
looks like required stylesheet is wiped out.
thankyoulike.css stylesheet with this content needs to be attached to showthread.php file.

you can also deactivate & reactivate the plugin & it might be fixed on its own.
Reply
#4
Not Solved
Sorry, for taking some time to come back to you.

(2017-12-06, 04:59 AM)WallBB Wrote: Can you share the content of your postbit template as well ?

This is what the code of thankyoulike_postbit looks like:

<div class="post_controls tyllist {$unapproved_shade}">
	{$tyl_expcol} 
	<span id="tyl_title_{$post['pid']}" style="{$tyl_title_display}">{$lang->tyl_title}</span><span id="tyl_title_collapsed_{$post['pid']}" style="{$tyl_title_display_collapsed}">{$lang->tyl_title_collapsed}</span><br />
	<span id="tyl_data_{$post['pid']}" style="{$tyl_data_display}">&nbsp;&nbsp;• {$post['thankyoulike']}</span>
</div>



(2017-12-06, 07:59 AM).m. Wrote: looks like required stylesheet is wiped out.
thankyoulike.css stylesheet with this content needs to be attached to showthread.php file.

you can also deactivate & reactivate the plugin & it might be fixed on its own.

I've tried to deactivate and reactivate the plugin, but it doesn't help Sad

I thought the thankyoulike.css file should have been located in cache->themes->theme1 or theme2, but it's not there. Where to find it?
Reply
#5
Not Solved
^ see this reply & its next reply
Reply
#6
Not Solved
(2017-12-12, 06:07 PM).m. Wrote: ^ see this reply & its next reply

Thanks I've had a look at it and also uninstalled and reinstalled the plugin, but it didn't solve the problem Sad

The section in yours thankyoulike.php file that is marked looks the same in my file. This i how the equivalent section looks like in my thankyoulike.php file:
	"stylesheet" => "div[id^=tyl_btn_] {
	display: inline-block;
}

a.add_tyl_button span{
	background-image: url(images/thankyoulike/tyl_add.png);
	background-repeat: no-repeat;
	font-weight: bold;
}

a.del_tyl_button span{
	background-image: url(images/thankyoulike/tyl_del.png);
	background-repeat: no-repeat;
	font-weight: normal;
}

.tyllist{
	background-color: #f5f5f5;
	border-top: 1px dotted #ccc;
	border-bottom: 1px dotted #ccc;
	padding: 2px 5px;
}

.tyllist_classic{
	background-color: #f5f5f5;
	border-top: 1px dotted #ccc;
	border-bottom: 1px dotted #ccc;
	padding: 2px 5px;
}
Reply
#7
Not Solved
Just uninstall and install again... you messed up the css file during updating to the latest MyBB version. You wont lost any data.
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#8
Not Solved
(2017-12-14, 04:52 PM)Eldenroot Wrote: Just uninstall and install again... you messed up the css file during updating to the latest MyBB version. You wont lost any data.

I've tried to uninstall and install again, but it didn't help. A new problem appeared: Neither the "ThankYou button" or the thanks already given are shown. This despite that I choose NOT delete the database records when uninstalling the plugin. 

I even unistalled it and replaced the files with the previous version of the plugin. The result was the same: Neither the "ThankYou button" doesn't show or the thanks already given. I uninstalled the plugin again and uploaded the files of the latest version of the plugin and installed it again. No change: Neither the "ThankYou button" or the already given than you records are shown.

A also saved a copy of the database before I started to uninstall and install the plugin. After importing the saved database, "ThankYou button" and the thanks already given are shown again, but the "ThankYou button" is as before shown in the wrong place and having the wrong look.
Reply
#9
Not Solved
^ would you like to PM me temporary access to forum admin panel to check it ..
Reply
#10
Not Solved
[attachment=39778 Wrote:.m. pid='1292461' dateline='1513306518']^ would you like to PM me temporary access to forum admin panel to check it ..

Thanks for the offer. I'm not that keen to give others access to the admin panel, before doing so I have to make sure I've backed up everything, just in case something goes wrong.

I had a first look at the "Creating and Modifying Templates", where one can read: 

Once your plugin has been installed, you should now be able to see the template you created in your Admin CP under 
Templates & Style > Templates > Global Templates

Shouldn't there be a template for the "ThankYou button" in Global Templates?

Please, find a screen dump of the Global Templates attached.


Attached Files Thumbnail(s)
   
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)