MyBB Community Forums

Full Version: Cerise Theme Update
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
The thing is all the customization's which I have done, I don't remember all of them. Is there any short way to compare and edit?
(2020-01-21, 12:27 PM)expmrb Wrote: [ -> ]The thing is all the customization's which I have done, I don't remember all of them. Is there any short way to compare and edit?


I have stated your opions several times now more than I should of had to. Yes, to answer your question, there is a short way, open each theme in its own browser window side by side half screen per and then view the old as you edit the new.
Okay so I renamed the old theme and then uploaded the new theme. I have done some customization's so far as you suggested and its still on-going.

The theme looks fines except a blue line appears in each user's post. And also these posts highlight with light colour changes when I move my cursor, so how should I make it stop? And also the "Thankyou/like" plugins like button isn't showing in any posts. How to resolve it?

https://ibb.co/f9XkwMKAs you can see in the image that a blue lines are appearing. And also when I move my cursor to the post and to the box where user information is given it highlight itself with color change. There also should be a like or thank you button at the bottom of the post but it isn't present.
Post border styling by group id was added in the theme and can be modified in the css. Also for your thanks button you would have to manually copy the plugin insert into the new them else reinstall the plugin and it will insert it for you.
I did insert it manually but the Thankyou/Like button broke. And I don't know how to fix it!!

And for 'post border styling' which code to edit to turn it off?
(2020-01-29, 04:53 AM)expmrb Wrote: [ -> ]I did insert it manually but the Thankyou/Like button broke. And I don't know how to fix it!!

And for 'post border styling' which code to edit to turn it off?

Umm cerise has always had table row hover background highlighting in it so that is nothing new


As for the gid post border styling it is defined by usergroup color just like other gid elements in theme existant in the past. And since you are only complaining about the blue dashed border on hover and not the blue border itself? Just like the blue border, that blue dashed hover is for registered usergroup posts so you would edit usergroup 2 ie: gidpostbody_2:hover ie: change border width from 1px to 0px to removed the dashed border on hober. All group post styling is found in grouppost.css



As for your thanks plugin, did you make sure to include say things that it adds to say the headerinclude also?

For example in my plugin the thanks adds a css and a js file to headerinclude, modifies the showthread template and adds buttons in the postbit and postbit_classic templates. Just saying if something it is looking for isn't found then it wont load just for example. Though not sure which thanks plugin you are using so I can only speculate. Also are you using my plugin https://community.mybb.com/mods.php?acti...w&pid=1127 or this https://community.mybb.com/mods.php?action=view&pid=67 or this https://community.mybb.com/mods.php?action=view&pid=360 as just daying thankyou\like button doesn't let me know which plug to look at to see if there are other things you need to manually add if you are doing the manual route, also again why did you not just reinstall the plugin as it would of installed it in the new theme? Just a thought. Like you did when you installed the old version of cerise theme as it installed then obviously so it would install now.
(2020-01-29, 05:10 AM)vintagedaddyo Wrote: [ -> ]For example in my plugin the thanks adds a css and a js file to headerinclude, modifies the showthread template and adds buttons in the postbit and postbit_classic templates. Just saying if something it is looking for isn't found then it wont load just for example. Though not sure which thanks plugin you are using so I can only speculate. Also are you using my plugin https://community.mybb.com/mods.php?acti...w&pid=1127 or this https://community.mybb.com/mods.php?action=view&pid=67 or this https://community.mybb.com/mods.php?action=view&pid=360 as just daying thankyou\like button doesn't let me know which plug to look at to see if there are other things you need to manually add if you are doing the manual route, also again why did you not just reinstall the plugin as it would of installed it in the new theme? Just a thought. Like you did when you installed the old version of cerise theme as it installed then obviously so it would install now.

I amusing the third one "Thank You/Like System+MyAlerts & Tapatalk support" I didn't uninstall and reinstall the plugin because if I do that then I will loose the like count. And in order to get that I have to reupload my database in my live site which can be troublesome.
(2020-01-29, 07:44 AM)expmrb Wrote: [ -> ]
(2020-01-29, 05:10 AM)vintagedaddyo Wrote: [ -> ]For example in my plugin the thanks adds a css and a js file to headerinclude, modifies the showthread template and adds buttons in the postbit and postbit_classic templates. Just saying if something it is looking for isn't found then it wont load just for example. Though not sure which thanks plugin you are using so I can only speculate. Also are you using my plugin https://community.mybb.com/mods.php?acti...w&pid=1127 or this https://community.mybb.com/mods.php?action=view&pid=67 or this https://community.mybb.com/mods.php?action=view&pid=360 as just daying thankyou\like button doesn't let me know which plug to look at to see if there are other things you need to manually add if you are doing the manual route, also again why did you not just reinstall the plugin as it would of installed it in the new theme? Just a thought. Like you did when you installed the old version of cerise theme as it installed then obviously so it would install now.

I amusing the third one "Thank You/Like System+MyAlerts & Tapatalk support" I didn't uninstall and reinstall the plugin because if I do that then I will loose the like count. And in order to get that I have to reupload my database in my live site which can be troublesome.




Ok,seeing as I am not familar with this plugin, it will take me a lil bit to read through the code and see exactly what all it modifies template wise, but honestly this is really wasting my limited free time and should be done by you since you insist on the manual route, when I cannot understand why you wouldn't just quickly set up a localhost on your computer, install mybb, the latet cerise theme then the thanks plugin, then rxport that theme and install it on your live site and the existing installed plugin would work fine and I wouldn't have to type out all these manual steps on my mobile phone and keep wasting my limited valuable freet time, but if I gotta keep doing this as annoyed as I already am because there  ton of steps to do manually and typing them on a mobile is beyond ugggh, anyhoo I guess keep checking back as I will add as I go, also currently on my mobile device so more of a pain but yeah first thing obviously is the attached stylesheet that attaches to each theme..



Add a stylesheet to cerise called thankyoulike.css Attached to: globally



Put this in that stylesheet called thankyoulike.css



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;
}

img[id^=tyl_i_expcol_]{
	vertical-align: bottom;
}

.popular_post{
	border: 2px solid;
	border-radius: 3px;
	border-color: rgba(112,202,47,0.5);
	background-color: rgba(139,195,74,0.3);
}

.tyl_counter{
	border: 1px solid #ccc;
	border-radius: 3px;
	background-color: #ddd;
	color: #333;
	padding: 1px 5px;
	float: right;
	margin: 4px 5px 0px 10px;
	font-weight: bold;
}


In posbit template  and postbit_classic find:



{$post['input_editreason']}
</div>
<div class="post_controls">


And change to:

{$post['input_editreason']}
</div>
<div style="{$post['tyl_display']}" id="tyl_{$post['pid']}">{$post['thankyoulike_data']}</div>
<div class="post_controls">


in postbit_author_user find

{$post['threadnum']}<br />


And change to:

{$post['threadnum']}<br />
	%%TYL_NUMTHANKEDLIKED%%<br />


In showthread template find:

<script type="text/javascript" src="{$mybb->asset_url}/jscripts/thread.js?ver=1822"></script>


Add this after:

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/thankyoulike.min.js"></script>
<script type="text/javascript">
<!--
	var tylEnabled = "{$mybb->settings['g33k_thankyoulike_enabled']}";
	var tylDisplayGrowl = "{$mybb->settings['g33k_thankyoulike_displaygrowl']}";
	var tylCollapsible = "{$mybb->settings['g33k_thankyoulike_collapsible']}";
	var tylUser = "{$mybb->user['uid']}";
	var tylSend = "{$lang->tyl_send}";
	var tylRemove = "{$lang->tyl_remove}";
// -->
</script>




In member_profile find

{$referrals}


add after

{$tyl_memprofile}


still in member_profile find

{$signature}


Add after

{$tyl_profile_box}


in forumdisplay_thread

Find
<td class="{$bgcolor}{$thread_type_class}">


add after
{$tyl_forumdisplay_thread_var}


Add a template group

Quote:Template Group Title
Thank You/Like
Quote:Template Group Prefix
thankyoulike


Add a template in that group called:



thankyoulike_button_add


contents of that:

<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_btn_{$post['pid']}"><span id="tyl_i{$post['pid']}">{$lang->add_tyl}</span></a>




Add another template in that group called

thankyoulike_button_del


contents of that

<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_btn_{$post['pid']}"><span id="tyl_i{$post['pid']}">{$lang->del_tyl}</span></a>


Add another template in that group called

thankyoulike_expcollapse


Contents of that

<a href="javascript:void(0)" onclick="thankyoulike.tgl({$post['pid']});return false;" title="{$tyl_showhide}" id="tyl_a_expcol_{$post['pid']}"><img src="{$theme['imgdir']}/{$tyl_expcolimg}" alt="{$tyl_showhide}" id="tyl_i_expcol_{$post['pid']}" /></a> 


Add another template in that group called

thankyoulike_member_profile


contents of that

<tr>
	<td class="trow1"><strong>{$lang->tyl_total_tyls_rcvd}</strong></td>
	<td class="trow1">{$memprofile['tyl_unumrcvtyls']} ({$tylrcvpd_percent_total})<br /><span class="smalltext">(<a href="tylsearch.php?action=usertylforthreads&amp;uid={$uid}">{$lang->tyl_find_threads_for}</a> &mdash; <a href="tylsearch.php?action=usertylforposts&amp;uid={$uid}">{$lang->tyl_find_posts_for}</a>)</span></td>
</tr>
<tr>
	<td class="trow2"><strong>{$lang->tyl_total_tyls_given}</strong></td>
	<td class="trow2">{$memprofile['tyl_unumtyls']} ({$tylpd_percent_total})<br /><span class="smalltext">(<a href="tylsearch.php?action=usertylthreads&amp;uid={$uid}">{$lang->tyl_find_threads}</a> &mdash; <a href="tylsearch.php?action=usertylposts&amp;uid={$uid}">{$lang->tyl_find_posts}</a>)</span></td>
</tr>


Add another template to that group called

thankyoulike_member_profile_box


Contents of that

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%" class="tborder tfixed">
<tr>
<td colspan="2" class="thead"><strong>{$lang->tyl_profile_box_thead}</strong></td>
</tr>
{$tyl_profile_box_content}
</table>
<br />




thankyoulike_member_profile_box_content


contents of that

<tr>
<td class="trow2" width="80%"><span class="smalltext">{$lang->tyl_profile_box_subject}</span></td>
<td class="trow2" width="20%" align="center"><span class="smalltext">{$lang->tyl_profile_box_number}</span></td>
</tr>
<tr>
<td class="trow1"><strong>{$memprofile['tylsubject']}</strong></td>
<td class="trow1" align="center"><strong>{$memprofile['tylcount']}</strong></td>
</tr>
<tr>
<td class="trow1" colspan="2" style="padding: 0; border: 0;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
<tr>
<td class="trow2" width="50%"><span class="smalltext">{$lang->tyl_profile_box_thread}</span></td>
<td class="trow2" width="50%"><span class="smalltext">{$lang->tyl_profile_box_forum}</span></td>
</tr>
<tr>
<td class="trow1">{$memprofile['tylthreadname']}</td>
<td class="trow1">{$memprofile['tylforumname']}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="trow2" colspan="2"><span class="smalltext">{$lang->tyl_profile_box_message}</span></td>
</tr>
<tr>
<td class="trow1 scaleimages" colspan="2">{$memprofile['tylmessage']}</td>
</tr>




Add another template to that group called

thankyoulike_member_profile_box_content_none


contents of that

<tr>
<td class="trow1" colspan="2">{$lang->tyl_profile_box_content_none}</td>
</tr>



Add another template to that group called

thankyoulike_postbit




contents of that
<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>




Add another template to that group called

thankyoulike_postbit_author_user


Contents of that

{$lang->tyl_rcvd}: {$post['tyl_unumrtyls']}
<br />
{$lang->tyl_given}: {$post['tyl_unumtyls']}



Add another template to that group called

thankyoulike_postbit_classic


Contents of that

<div class="post_controls tyllist_classic {$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>


Add another template to that group called

thankyoulike_tyl_counter_forumdisplay_thread


Contents of that

<span title="{$lang->tyl_firstpost_tyl_count_forumdisplay_thread}" class="tyl_counter">{$thread['tyls']}</span>


Add another template to that group called

thankyoulike_users


Contents of that
<span class="smalltext">{$comma}</span><a href="{$profile_link}" class="smalltext" {$datedisplay_title}>{$tyl_list}</a>{$datedisplay_next}



Ok Yes the icon on the button is slightly misaligned though you can fix that in css as it is an image and the buttons in the theme use font awesome, but yeah you can modify css to align the image or modify the button template to use a  font awesome icon instead

The thankyou plug attaches a stylesheet to each theme that is called thankyoulike.ccss

in there is the button styling:

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;
}

You can try adding say padding-right to the two images if you want to kerp the images or

If you want it  corrrected quicklyy and to use fa icons like the rest of the butyons then modify this part of css

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;
}
*/

.postbit_buttons a.add_tyl_button span:before {
	content: "\f164";
}
.postbit_buttons a.del_tyl_button span:before {
	content: "\f165";
}

[Image: Screenshot-20200129-103936-Firefox.jpg]

Also modify this part of the plug css like so:

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

.tyllist_classic{
	/*background-color: #f5f5f5;
    border-top: 1px dotted #ccc;
	border-bottom: 1px dotted #ccc;*/
    background-color: #252525;
	border-top: 1px dotted #303030;
	border-bottom: 1px dotted #303030;
	padding: 2px 5px;
}

[Image: Screenshot-20200129-111429-Firefox.jpg]
The thing is here : the code in thankyoulike.css is already present. In postbit and postbit_classic I have already added this code along with the like button code. And all the templates under the new template group are too present already. The only thing I didn't have or I already edited, is the code that you gave me to put in the showthread template. So, I put it there. But nothing has changed.
(2020-01-29, 09:29 AM)expmrb Wrote: [ -> ]The thing is here : the code in thankyoulike.css is already present. In postbit and postbit_classic I have already added this code along with the like button code. And all the templates under the new template group are too present already. The only thing I didn't have or I already edited, is the code that you gave me to put in the showthread template. So, I put it there. But nothing has changed.

Interesting seeing how you commented 44 mins ago and I am still typing steps. Also I have it installed on latest cerise with the thanks plugin on my mobile localhost so I know the theme and plugin play fine together.

again I still am boggled why you didn't just use a localhost on your comp, install the latest cerise theme and the thanks plugin, then export the theme from localhost and use that xml file to install on your live site with the existing installed plugin and it would work fine due to being installed in the theme already and have saved time especially my time, as I have suggested previously. Just saying, now hopefuy in my tired state all the steps are there now for manual, and I have also suggested twice a much more easy and time effective alternative, and seing as it is 2:28 in the morning, I would like to get some sleep, take care.
Pages: 1 2 3