Replace [img]-tag?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Ideas Centre
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Jabhi
Registered User
Posts: 572
Joined: Mon Feb 27, 2012 6:12 am

Re: Replace [img]-tag?

Post by Jabhi »

I mixed it up with a setting in ACP > Posting > Attachments > Attachment settings > Image category settings [Assigned extension group: Images] > Create thumbnail which must be No, so no thumbnails are created. Set it and create another test post.

That fixed, thank you...
Go phpBB go... Respected : Developers, Supporters.
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Replace [img]-tag?

Post by Oyabun1 »

AmigoJack wrote:... and have been tested in FireFox 3.5.5 only so far.
I've had a look at using prosilver with Firefox 13.0.1, IE 9.0.8, and Chrome 20.0.1, and it seems to work OK with all of them.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
waiheke
Registered User
Posts: 5
Joined: Mon Sep 23, 2013 11:27 am

Re: Replace [img]-tag?

Post by waiheke »

Hi there
I have the same
The entry in the bbcode is 'hsimg'

So open /template/posting_buttons.html (after doing a backup of the page)
Look along the

Code: Select all

var bbtags = new Array
( about line 11) for '[img]','[/img]', and REPLACE with '[hsimg]','[/hsimg]', or whatever new tag your bbcode is

Bulletpoint: the two 'img' become 'hsimg'

Scrtoll down to

Code: Select all

	<!-- IF S_BBCODE_IMG -->
		<input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
	<!-- ENDIF -->
and REPLACE the lines with

Code: Select all

<input class="button2" type="button" title="Highslide Img: [hsimg]link to image[/hsimg]" onclick="bbstyle(46)" value="IMG" name="addbbcode46"></input>
Essentially what you're doing is leaving the img code alone throughout the forum but replacing what happens on the posting page, in the Img tags.

Bulletpoint: Replace the default Img button with a new customised one, same name, different action

"bbstyle(46)" value="IMG" name="addbbcode46" will need editing on your particular forum. Use 'View Source' in your web browser to scroll down and identify what your new 'hsimg' references are.
Locked

Return to “[3.0.x] Support Forum”