3.2 Add image up to cBB chat

All edits in this section have been tested on 3.2.x
Forum rules
To add a post here you need to click on the topic attribute by doing this you aggree that you have tested the snippet your adding on 3.2.x
User avatar
clight77
Moderator
Moderator
Posts: 100
Joined: Thu Oct 15, 2015 12:33 pm
Status: Online

Add image up to cBB chat

Post by clight77 » Sat Jun 09, 2018 9:03 pm

Add image up to cBB chat

Open:

ext/canidev/chat/styles/prosilver/template/event/overall_footer_content_after.html


Find:

Code: Select all

<!-- IF S_CHAT_RULES or S_CHAT_SOUND_ENABLED -->
			<li class="separator"></li>
			<!-- IF S_CHAT_SOUND_ENABLED --><li class="chat-responsive-hide"><a href="#!sound" title="{L_CHAT_SOUND}"><span class="chat-icon-sound"></span></a></li><!-- ENDIF -->
			<!-- IF S_CHAT_RULES --><li class="chat-responsive-hide"><a href="#!rules" title="{L_CHAT_RULES}"><span class="chat-icon-question-sign"></span></a></li><!-- ENDIF -->
			<li class="chat-responsive-menu"><a href="#!showbox/options"><span class="chat-icon-menu"></span></a></li>
		<!-- ENDIF -->


Replace with:

Code: Select all

<!-- IF S_CHAT_RULES or S_CHAT_SOUND_ENABLED -->
			<li class="separator"></li>
			<!-- IF S_CHAT_SOUND_ENABLED --><li class="chat-responsive-hide"><a href="#!sound" title="{L_CHAT_SOUND}"><span class="chat-icon-sound"></span></a></li><!-- ENDIF -->
			<!-- IF S_CHAT_RULES --><li class="chat-responsive-hide"><a href="#!rules" title="{L_CHAT_RULES}"><span class="chat-icon-question-sign"></span></a></li><!-- ENDIF -->
		
			<li class="chat-responsive-menu"><a href="#!showbox/options"><span class="chat-icon-menu"></span></a></li>
			
           {% if IMAGEUPLOAD_USE_UPLOAD %}
<li {% if not PHPBB_IS_32 %}class="small-icon icon-upload"{% endif %} data-last-responsive="true">
	<a href="#" onclick="popup('./imageupload', 600, 650); return false;" title="{{ lang('IMAGEUPLOAD_UPLOAD') }}" role="menuitem">
		{% if PHPBB_IS_32 %}<i class="icon fa fa-upload" aria-hidden="true"></i>{% endif %}<span>{{ lang('IMAGEUPLOAD_UPLOAD') }}</span></a></li>
{% endif %}
<!-- ENDIF -->
	

User avatar
Martin
Founder
Founder
Posts: 1098
Joined: Sun May 24, 2015 3:14 pm
Status: Offline

Re: Add image and file up to cBB chat

Post by Martin » Sun Jun 10, 2018 12:04 am

;)

Code: Select all

 {% if FILEUPLOAD_USE_UPLOAD %}
<li {% if not PHPBB_IS_32 %}class="small-icon icon-upload"{% endif %} data-last-responsive="true">
	<a href="{{ U_FILEUPLOAD_UPLOAD }}" title="{{ lang('FILEUPLOAD_UPLOAD') }}" role="menuitem">
		{% if PHPBB_IS_32 %}<i class="icon fa fa-upload" aria-hidden="true"></i>{% endif %}<span>{{ lang('FILEUPLOAD_UPLOAD') }}</span></a></li>
{% endif %}
		
           <li class="separator"></li>
         
			{% if IMAGEUPLOAD_USE_UPLOAD %}
<li {% if not PHPBB_IS_32 %}class="small-icon icon-upload"{% endif %} data-last-responsive="true">
	<a href="{{ U_IMAGEUPLOAD_UPLOAD }}" title="{{ lang('IMAGEUPLOAD_UPLOAD') }}" role="menuitem">
		{% if PHPBB_IS_32 %}<i class="icon fa fa-upload" aria-hidden="true"></i>{% endif %}<span>{{ lang('IMAGEUPLOAD_UPLOAD') }}</span></a></li>
{% endif %}
Image

Save page loads and make pages shorter find it here. Show user sig once in a page
Use this to install an ext on your board no more ftp or path making.
Path too install this ext is ext/boardtools/upload https://www.phpbb.com/community/viewtop ... #p13700571

User avatar
clight77
Moderator
Moderator
Posts: 100
Joined: Thu Oct 15, 2015 12:33 pm
Status: Online

Re: Add image up to cBB chat

Post by clight77 » Sun Jun 10, 2018 12:09 am

I forgot about language files :(

User avatar
Martin
Founder
Founder
Posts: 1098
Joined: Sun May 24, 2015 3:14 pm
Status: Offline

Re: Add image up to cBB chat

Post by Martin » Sun Jun 10, 2018 12:12 am

The switches are more important use my code but put in your find and add also it will pull langs from the board ;) .

User avatar
clight77
Moderator
Moderator
Posts: 100
Joined: Thu Oct 15, 2015 12:33 pm
Status: Online

Re: Add image up to cBB chat

Post by clight77 » Sun Jun 10, 2018 12:21 am

With popup

Code: Select all

{% if IMAGEUPLOAD_USE_UPLOAD %}
<li {% if not PHPBB_IS_32 %}class="small-icon icon-upload"{% endif %} data-last-responsive="true">
	<a href="#" onclick="popup('./imageupload', 600, 650); return false;" title="{{ lang('IMAGEUPLOAD_UPLOAD') }}" role="menuitem">
		{% if PHPBB_IS_32 %}<i class="icon fa fa-upload" aria-hidden="true"></i>{% endif %}<span>{{ lang('IMAGEUPLOAD_UPLOAD') }}</span></a></li>
{% endif %}

User avatar
clight77
Moderator
Moderator
Posts: 100
Joined: Thu Oct 15, 2015 12:33 pm
Status: Online

Re: Add image up to cBB chat

Post by clight77 » Sun Jun 10, 2018 6:33 pm

THX
That's cleaner :)