My phpBB3 version of smilies in a scroll box!

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 04 Mar 2010, 23:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum

My phpBB3 version of smilies in a scroll box!

Post by Steve »

prosilver instructions
open styles/prosilver/templates/posting_editor.html
[spoiler]Find:

Code: Select all

			<strong>{L_SMILIES}</strong><br />
			<!-- BEGIN smiley -->
				<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
			<!-- END smiley -->
replace with:

Code: Select all

			<div style="width:100%; height:300px;border: solid 1px gray; overflow:auto;">
			<strong>{L_SMILIES}</strong><br />
			<!-- BEGIN smiley -->
				<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
			<!-- END smiley -->
			</div>
[/spoiler]
subsilver2 instructions
open styles/subsilver2/templates/posting_body.html
[spoiler]find:

Code: Select all

				<!-- BEGIN smiley -->
					<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a>
				<!-- END smiley -->
replace with:

Code: Select all

	        <div style="width:100%; height:300px;border: solid 1px gray; overflow:auto;">
				<!-- BEGIN smiley -->
					<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a>
				<!-- END smiley -->
			</div>	
[/spoiler]
Save and refresh template for prosilver and subsilver2.
height and border can be adjusted in this part of the new html code.

Code: Select all

height:290px;border: solid 1px gray;
snip.PNG
[hsimg]http://www.djsimg.com/images/93199341_0310_subss.png[/hsimg]
NAPWR wrote: Nice, Stoker is Hot
User avatar
Oliver
BBCoder III
BBCoder III
Posts: 120
Joined: 07 Mar 2010, 09:55

Re: My phpBB3 version of smilies in a scroll box!

Post by Oliver »

What happens in the chat smileys?
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 04 Mar 2010, 23:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum

Re: My phpBB3 version of smilies in a scroll box!

Post by Steve »

Oliver » 25 Mar 2010, 13:35 wrote:What happens in the chat smileys?

doesnt affect the chat smilies heres how to do it for mini-chat for prosilver based styles,

open styles/prosilver/template/mchat_body.html
find:

Code: Select all

<!-- BEGIN mchatsmilerow -->
<a href="javascript://" onclick="insert_text('{mchatsmilerow.MCHAT_SMILE_CODE}', true);"><img src="{mchatsmilerow.MCHAT_SMILE_IMG}" width="{mchatsmilerow.MCHAT_SMILE_WIDTH}" height="{mchatsmilerow.MCHAT_SMILE_HEIGHT}" alt="{mchatsmilerow.MCHAT_SMILE_CODE}" title="{mchatsmilerow.MCHAT_SMILE_EMOTION}" /></a>
<!-- END mchatsmilerow -->
replace with:

Code: Select all

<div style="width:100%; height:45px;border: solid 1px gray; overflow:auto;">
<!-- BEGIN mchatsmilerow -->
<a href="javascript://" onclick="insert_text('{mchatsmilerow.MCHAT_SMILE_CODE}', true);"><img src="{mchatsmilerow.MCHAT_SMILE_IMG}" width="{mchatsmilerow.MCHAT_SMILE_WIDTH}" height="{mchatsmilerow.MCHAT_SMILE_HEIGHT}" alt="{mchatsmilerow.MCHAT_SMILE_CODE}" title="{mchatsmilerow.MCHAT_SMILE_EMOTION}" /></a>
<!-- END mchatsmilerow -->
</div>
height and border can be adjusted in this part of the code:

Code: Select all

height:45px;border: solid 1px gray;
refresh template for prosilver
[hsimg]http://www.djsimg.com/images/42052124_0310_chat.png[/hsimg]
NAPWR wrote: Nice, Stoker is Hot
User avatar
Oliver
BBCoder III
BBCoder III
Posts: 120
Joined: 07 Mar 2010, 09:55

Re: My phpBB3 version of smilies in a scroll box!

Post by Oliver »

Thanks. Very good.
User avatar
kevinviet
BBCoder III
BBCoder III
Posts: 123
Joined: 06 Mar 2010, 02:52

Re: My phpBB3 version of smilies in a scroll box!

Post by kevinviet »

Thanks again, you're awesome vectra-mods :thumbsup:
Widmo
BBCoder II
BBCoder II
Posts: 11
Joined: 09 Mar 2010, 00:33

Re: My phpBB3 version of smilies in a scroll box!

Post by Widmo »

Awesome! :o :thumbsup:
wide
BBCoder II
BBCoder II
Posts: 16
Joined: 15 Mar 2010, 10:01

Re: My phpBB3 version of smilies in a scroll box!

Post by wide »

Thanks.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 16:14
Location: Don't really know!

Re: My phpBB3 version of smilies in a scroll box!

Post by cisco007 »

if you would like to put everything except the topic review link in the scroll bar, for prosilver,
like in the pic:
my smilies.PNG
Find:

Code: Select all

			<strong>{L_SMILIES}</strong><br />
			<!-- BEGIN smiley -->
				<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
			<!-- END smiley -->
		<!-- ENDIF -->
		<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
			<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
		<!-- ENDIF -->

		<!-- IF BBCODE_STATUS -->
		<!-- IF .smiley --><hr /><!-- ENDIF -->
		{BBCODE_STATUS}<br />
		<!-- IF S_BBCODE_ALLOWED -->
			{IMG_STATUS}<br />
			{FLASH_STATUS}<br />
			{URL_STATUS}<br />
		<!-- ENDIF -->
		{SMILIES_STATUS}
		<!-- ENDIF -->
Replace with:

Code: Select all

             <div style="width:100%; height:300px;border: solid 1px gray; overflow:auto;">
             <strong>{L_SMILIES}</strong><br />
             <!-- BEGIN smiley -->
                <a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
             <!-- END smiley -->
                          <!-- ENDIF -->
              <!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
                 <br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
              <!-- ENDIF -->
		<!-- IF BBCODE_STATUS -->
		<!-- IF .smiley --><hr /><!-- ENDIF -->
		{BBCODE_STATUS}<br />
		<!-- IF S_BBCODE_ALLOWED -->
			{IMG_STATUS}<br />
			{FLASH_STATUS}<br />
			{URL_STATUS}<br />
		<!-- ENDIF -->
		{SMILIES_STATUS}
		<!-- ENDIF -->
              </div> 
Mario14125
I have been banned!
I have been banned!
Posts: 26
Joined: 29 Apr 2010, 08:38
Location: Poland

Re: My phpBB3 version of smilies in a scroll box!

Post by Mario14125 »

Thanks. Very good mod :)
Click Here!
artikkk
BBCoder II
BBCoder II
Posts: 42
Joined: 02 May 2010, 16:33

Re: My phpBB3 version of smilies in a scroll box!

Post by artikkk »

Thanks.. very good :D