Scheduled Maintenance: 10-11-2025 Electricity company maintenance between 09:00 and 15:00.
3.1.x Extensions Database 3.1 / 3.2 ⇒ [RC] Smilie Signs
- 
				Kinsman
 - Users

 - Posts: 109
 - Joined: 18 Aug 2016, 15:38
 
Re: [RC] Smilie Signs
So here is an odd thing, Smilie Signs work fine on the index, but are missing from the portal. I'd say this has happened since we updated Mchat to RC7, as they worked fine on both in RC6.
			
			
									
						
										
						- 
				Kinsman
 - Users

 - Posts: 109
 - Joined: 18 Aug 2016, 15:38
 
Re: [RC] Smilie Signs
Fixed it like this! 
			
			
									
						
										
						Code: Select all
<!-- IF SCRIPT_NAME == "posting" -->
	<script>function toggle_smiliesigns_abbc3_posting_box() { var x = document.getElementById('smiliesigns-posting-box'); if (x.style.display === 'block') { x.style.display = 'none';document.getElementById('smiley-box').style.display = 'block';document.getElementById('smiliesigns-abbc3-posting-button').title = '{L_SMILIESIGNS_BBCODE_HELP}';document.getElementById('smiliesigns-example-posting-box').style.display = 'none';document.getElementById('smilies-example-posting-link').title = '{L_SMILIESIGNS_EXAMPLE_BBCODE_HELP}'; } else { x.style.display = 'block';document.getElementById('smiley-box').style.display = 'none';document.getElementById('smiliesigns-abbc3-posting-button').title = '{L_SMILIES_BBCODE_HELP}'; } }</script>
		<span id="smiliesigns-abbc3-posting-button" title="{L_SMILIESIGNS_BBCODE_HELP}">
			<input id="smiliesigns-img" class="abbc3_button" name="smilie_signs" value="" onclick="toggle_smiliesigns_abbc3_posting_box();" type="button" style="width: 28px; !important" />
		</span>
<!-- ELSEIF SCRIPT_NAME == "viewtopic" -->
	<script>function toggle_smiliesigns_abbc3_viewtopic_box() { var x = document.getElementById('smiliesigns-viewtopic-box'); if (x.style.display === 'block') { x.style.display = 'none';document.getElementById('smiley-box').style.display = 'block';document.getElementById('smiliesigns-abbc3-viewtopic-button').title = '{L_SMILIESIGNS_BBCODE_HELP}';document.getElementById('smiliesigns-example-viewtopic-box').style.display = 'none';document.getElementById('smilies-example-viewtopic-link').title = '{L_SMILIESIGNS_EXAMPLE_BBCODE_HELP}'; } else { x.style.display = 'block';document.getElementById('smiley-box').style.display = 'none';document.getElementById('smiliesigns-abbc3-viewtopic-button').title = '{L_SMILIES_BBCODE_HELP}'; } }</script>
		<span id="smiliesigns-abbc3-viewtopic-button" title="{L_SMILIESIGNS_BBCODE_HELP}">
			<input id="smiliesigns-img" class="abbc3_button" name="smilie_signs" value="" onclick="toggle_smiliesigns_abbc3_viewtopic_box();" type="button" style="width: 28px !important;" />
		</span>
<!-- ELSEIF SCRIPT_NAME == "index" -->
	<script>function toggle_smiliesigns_abbc3_index_box() { var x = document.getElementById('smiliesigns-index-box'); if (x.style.display === 'block') { x.style.display = 'none';document.getElementById('smiliesigns-example-index-box').style.display = 'none';document.getElementById('smiliesigns-abbc3-index-button').title = '{L_SMILIESIGNS_BBCODE_HELP}';document.getElementById('chat_smilies').style.display = 'block';document.getElementById('mchat-smilies').style.display = 'block';document.getElementById('smilies-example-index-link').title = '{L_SMILIESIGNS_EXAMPLE_BBCODE_HELP}'; } else { x.style.display = 'block';document.getElementById('smiliesigns-abbc3-index-button').title = '{L_SMILIES_BBCODE_HELP}';document.getElementById('chat_smilies').style.display = 'none';document.getElementById('mchat-smilies').style.display = 'none'; } }</script>
		<span id="smiliesigns-abbc3-index-button" title="{L_SMILIESIGNS_BBCODE_HELP}">
			<input id="smiliesigns-img" class="abbc3_button" name="smilie_signs" value="" onclick="toggle_smiliesigns_abbc3_index_box();" type="button" style="width: 28px !important;" />
		</span>
<!-- ELSE -->
	<script>function toggle_smiliesigns_abbc3_index_box() { var x = document.getElementById('smiliesigns-index-box'); if (x.style.display === 'block') { x.style.display = 'none';document.getElementById('smiliesigns-example-index-box').style.display = 'none';document.getElementById('smiliesigns-abbc3-index-button').title = '{L_SMILIESIGNS_BBCODE_HELP}';document.getElementById('chat_smilies').style.display = 'block';document.getElementById('mchat-smilies').style.display = 'block';document.getElementById('smilies-example-index-link').title = '{L_SMILIESIGNS_EXAMPLE_BBCODE_HELP}'; } else { x.style.display = 'block';document.getElementById('smiliesigns-abbc3-index-button').title = '{L_SMILIES_BBCODE_HELP}';document.getElementById('chat_smilies').style.display = 'none';document.getElementById('mchat-smilies').style.display = 'none'; } }</script>
		<span id="smiliesigns-abbc3-index-button" title="{L_SMILIESIGNS_BBCODE_HELP}">
			<input id="smiliesigns-img" class="abbc3_button" name="smilie_signs" value="" onclick="toggle_smiliesigns_abbc3_index_box();" type="button" style="width: 28px !important;" />
		</span>
<!-- ENDIF -->- 
				Kinsman
 - Users

 - Posts: 109
 - Joined: 18 Aug 2016, 15:38
 
Re: [RC] Smilie Signs
Bugger, spoke too soon, but that did at least get the button to appear.
			
			
									
						
										
						- 
				Sniper_E
 - VIP

 - Posts: 1157
 - Joined: 14 Oct 2014, 19:01
 
Re: [RC] Smilie Signs
There will have to be a seperate set of switches for the portal.
I've been wanting to work those in for the portal.
But the portal will need to be reconized. In the portal template vars IF it had S_IS_PORTAL = true you would have a IF statement we could use. <!-- ELSE --> doesn't work for me. That allows it to show everywhere else.
[ Post made via Samsung Galaxy S5 Active ]
			
			
									
						
										
						I've been wanting to work those in for the portal.
But the portal will need to be reconized. In the portal template vars IF it had S_IS_PORTAL = true you would have a IF statement we could use. <!-- ELSE --> doesn't work for me. That allows it to show everywhere else.
[ Post made via Samsung Galaxy S5 Active ]

- 
				Kinsman
 - Users

 - Posts: 109
 - Joined: 18 Aug 2016, 15:38
 
Re: [RC] Smilie Signs
True, it's good enough for me though, as there is nowhere else.  
			
			
									
						
										
						- 
				Kinsman
 - Users

 - Posts: 109
 - Joined: 18 Aug 2016, 15:38
 
Re: [RC] Smilie Signs
Here are the template variables i found. 
			
			
									
						
										
						Code: Select all
protected function assign_template_vars()
	{
		$this->template->assign_vars(array(
			'S_PORTAL_LEFT_COLUMN'		=> $this->config['board3_left_column_width'],
			'S_PORTAL_RIGHT_COLUMN'		=> $this->config['board3_right_column_width'],
			'S_LEFT_COLUMN'			=> $this->check_module_count('left', $this->config['board3_left_column']),
			'S_CENTER_COLUMN'		=> $this->check_module_count('center'),
			'S_RIGHT_COLUMN'		=> $this->check_module_count('right', $this->config['board3_right_column']),
			'S_TOP_COLUMN'			=> $this->check_module_count('top'),
			'S_BOTTOM_COLUMN'		=> $this->check_module_count('bottom'),
			'S_DISPLAY_PHPBB_MENU'		=> $this->config['board3_phpbb_menu'],
			'B3P_DISPLAY_JUMPBOX'		=> $this->config['board3_display_jumpbox'],
			'T_EXT_THEME_PATH'		=> $this->path_helper->get_web_root_path() . ltrim($this->root_path . 'styles/' . $this->user->style['style_path'] . '/theme/', './'),
		));- 
				Sniper_E
 - VIP

 - Posts: 1157
 - Joined: 14 Oct 2014, 19:01
 
Re: [RC] Smilie Signs
What portal is that you use?  So I can check out the capibility. I'll add portal in.
[ Post made via Samsung Galaxy S5 Active ]
			
			
													[ Post made via Samsung Galaxy S5 Active ]

					Last edited by Sniper_E on 27 Oct 2016, 06:01, edited 1 time in total.
									
			
						
										
						- 
				Kinsman
 - Users

 - Posts: 109
 - Joined: 18 Aug 2016, 15:38
 
Re: [RC] Smilie Signs
Board 3
[ Post made via Android ]
			
			
									
						
										
						[ Post made via Android ]

- 
				Sniper_E
 - VIP

 - Posts: 1157
 - Joined: 14 Oct 2014, 19:01
 
Re: [RC] Smilie Signs
Find
Before Add
I'm getting all of the switches setup for the portal. I'll have to figure out how to get mChat in the portal and I can fine tune everything. But it's looking good so far.
[ Post made via Samsung Galaxy S5 Active ]
			
			
									
						
										
						Code: Select all
			'S_PORTAL_LEFT_COLUMN'		=> $this->config['board3_left_column_width'],Code: Select all
			'S_IS_BOARD3_PORTAL'		=> true,[ Post made via Samsung Galaxy S5 Active ]

- 
				Sniper_E
 - VIP

 - Posts: 1157
 - Joined: 14 Oct 2014, 19:01
 
Re: [RC] Smilie Signs
Smilie Signs 1.0.11 is now out!
First post Updated
Setup for Board3 Portal now!
Let's see how bad I screwed this up.
			
			
									
						
										
						First post Updated
Setup for Board3 Portal now!
Let's see how bad I screwed this up.
- 
				Puchahawa
 - Users

 - Posts: 193
 - Joined: 20 Jun 2015, 17:58
 
Re: [RC] Smilie Signs
Checking version 1.0.11 with ie and chrome on 3.1.10 board with abbc3, prosilver and aero.   The smilie guy button shows up correct and the sign smilies show up and work.  The mouse overs are all correct and the examples all show correctly.  Only issue I came across is the smilies aren't showing up in the signs.  same issue regardless of the browser, or style.
Curiosity, is the common2.php file specific for the portal? Don't recall seeing it before.
Don't know if this will help or not but this is the source code for the smilie on the aeroblack style
			
			
						Curiosity, is the common2.php file specific for the portal? Don't recall seeing it before.
Don't know if this will help or not but this is the source code for the smilie on the aeroblack style
Code: Select all
<div class="content"><div style="text-align: center;padding: 6px 6px 0;display: inline-block;" class="sign-wrap">
<div style="padding: 8px;margin: 0;-webkit-border-radius: 20px;-o-border-radius: 20px;-moz-border-radius: 20px;border-radius: 20px;" class="forabg sign-head">
<div style="padding: 2px 6px;margin: 0;-webkit-border-radius: 18px;-o-border-radius: 18px;-moz-border-radius: 18px;border-radius: 18px;" class="panel sign-inner">test version 1.0.11</div>
</div>
<div style="padding: 0;background-size: 6px 42px;background-repeat: no-repeat;background-color: transparent;background-position: center top;" class="forumbg sign-img"><img src="http://sniper-e.com/ext/sniper/smiliesigns/images/sign_beg.gif" alt="" /></div>
</div></div>
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
			
						
										
						- 
				Sniper_E
 - VIP

 - Posts: 1157
 - Joined: 14 Oct 2014, 19:01
 
Re: [RC] Smilie Signs
Oh shit I had my site's url in the smilie image name. Let me fix that.
That is suppose to be ./ext/... in your bbcode html replacement.
The other common2 lang file is nothing.
I've updated the first post with those fixes.
			
			
									
						
										
						That is suppose to be ./ext/... in your bbcode html replacement.
The other common2 lang file is nothing.
I've updated the first post with those fixes.
- 
				Puchahawa
 - Users

 - Posts: 193
 - Joined: 20 Jun 2015, 17:58
 
Re: [RC] Smilie Signs
Hey sniper, are you interested in testing this on 3.2 RC1?
			
			
									
						
										
						- 
				Sniper_E
 - VIP

 - Posts: 1157
 - Joined: 14 Oct 2014, 19:01
 
Re: [RC] Smilie Signs
Sure but I haven't been able to install 3.2 RC1, I'll try again. Maybe it will drop right in 3.2
			
			
									
						
										
						