Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Years, 1 Week ago How to use fontawesome icons?
#1
Solved: 4 Years, 1 Week ago
[Image: WEr5yY.jpg]

1. I want to put fontawesome icon next to "Beğen" button, how can I do that?
2. I want to put last button "Uyar" next to "Rapor Et" I don't want to have 2nd row, what should I do ?

I read the tutorial, it teaches how to activate fontawesome icons, but I already have them in every button except this one. Its from ThankyouLike plugin.
Reply
#2
Solved: 4 Years, 1 Week ago
check this reply: http://community.mybb.com/thread-180261-...pid1185363

and may i have your forum url to check the second issue...
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't seen it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#3
Solved: 4 Years, 1 Week ago
I think 2nd problem also was related to Beğen (Like) button. After I made some changes without knowing what I did, I managed to fix 2nd issue, but not first one.

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

This is code.

1. Is this code correct this way?
2. Where should I add that code you give? I tried almost everywhere.

Hmm It looks like I broke it, now when I like a post, I get both Unlike and Like options, when I Unlike it I get 2 Like buttons. I will revert my changes.
Reply
#4
Solved: 4 Years, 1 Week ago
Try this:

Content thankyoulike_button_add template:
<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="return thankyoulike.add({$post['pid']}, {$post['tid']});" title="{$lang->add_tyl}" id="tyl_a{$post['pid']}"><span id="tyl_i{$post['pid']}"><i class="fa fa-thumbs-o-up"></i> {$lang->add_tyl}</span></a></div>

Content thankyoulike_button_del template:
<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="return thankyoulike.del({$post['pid']}, {$post['tid']});" title="{$lang->del_tyl}" id="tyl_a{$post['pid']}"><span id="tyl_i{$post['pid']}"><i class="fa fa-thumbs-o-up fa-flip-vertical"></i> {$lang->del_tyl}</span></a></div>
Greetings Sven (ps: Sorry for my bad english!!)

My plugins - [email protected]
Reply
#5
Solved: 4 Years, 1 Week ago
Yes it worked! Thank you.

Now I got 2 buttons in 2nd row, do you know how to fix this one?

[Image: MWlNO2.jpg]
Reply
#6
Solved: 4 Years, 1 Week ago
Could you post an url and a test account login please.

Please rewrite TYL button templates again.

Content thankyoulike_button_add template:
<div id="tyl_btn_{$post['pid']}" class="postbit_buttons post_management_buttons float_right"><a class="add_tyl_button" href="thankyoulike.php?action=add&amp;pid={$post['pid']}&amp;my_post_key={$mybb->post_code}" onclick="return thankyoulike.add({$post['pid']}, {$post['tid']});" title="{$lang->add_tyl}" id="tyl_a{$post['pid']}"><span id="tyl_i{$post['pid']}"><i class="fa fa-thumbs-o-up"></i> {$lang->add_tyl}</span></a></div>

Content thankyoulike_button_del template:
<div id="tyl_btn_{$post['pid']}" class="postbit_buttons post_management_buttons float_right"><a class="del_tyl_button" href="thankyoulike.php?action=del&amp;pid={$post['pid']}&amp;my_post_key={$mybb->post_code}" onclick="return thankyoulike.del({$post['pid']}, {$post['tid']});" title="{$lang->del_tyl}" id="tyl_a{$post['pid']}"><span id="tyl_i{$post['pid']}"><i class="fa fa-thumbs-o-up fa-flip-vertical"></i> {$lang->del_tyl}</span></a></div>

~~~~~~~~~~~~~~~~~~~~

Then open theme postbit_classic template and search for:
<div class="post_controls">
	<div class="postbit_buttons author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}{$post['iplogged']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
{$post['button_tyl']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>
</div>

Replace that whole part with:
<div class="post_controls">
	<div class="postbit_buttons author_buttons float_left">
		{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}{$post['iplogged']}
	</div>
	<div class="postbit_buttons post_management_buttons float_right">
		{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
	</div>
	{$post['button_tyl']}
</div>
Greetings Sven (ps: Sorry for my bad english!!)

My plugins - [email protected]
Reply
#7
Solved: 4 Years, 1 Week ago
Hello, thank you I did what you said.

I got everything in one row now, but with one problem.

[Image: 7PV8oW.jpg]

I deleted iplogged part and now its fixed! I already have Show IP at the end of signature so that button was kinda unnecessary, although I don't know if I should delete that one and keep the button? Which one would you prefer?

I changed thread to "Solved"
Reply
#8
Solved: 4 Years, 1 Week ago
(10-06-2015, 10:33 AM)SvePu Wrote:
changes in templates

@SvePu - should we add this/change old template in Thankoyulike plugin as a default template?
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#9
Solved: 4 Years, 1 Week ago
@Eldenroot:
No, these are only changes for some custom themes. Default MyBB theme works with actual setup.
Greetings Sven (ps: Sorry for my bad english!!)

My plugins - [email protected]
Reply
#10
Solved: 4 Years, 1 Week ago
I know, but this one is not the only one - I fixed over 5+ instals of TYL system on MyBB default theme - almost same problem, 2 rows instead of one... I cannot reproduce it on my own forum
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)