Page 1 of 2

Right to left postbit

Posted: Sat Jul 26, 2014 7:05 am
by aaronnz220
So with the new 3.1 how does one change the postbit from right to left?

Re: Right to left postbit

Posted: Sat Jul 26, 2014 2:06 pm
by Profo
You can choose:

A style: plosirvel
An extension (Github): Profile Side Switcher

Re: Right to left postbit

Posted: Sat Jul 26, 2014 9:16 pm
by aaronnz220
For the extension where does it go in ext? Usually with the exts it goes like this

ext/name/extention

There's no instructions

Re: Right to left postbit

Posted: Sat Jul 26, 2014 11:08 pm
by bonelifer
From the ext.php file:

namespace tatiana5\profile_side_switcher

So create /ext/tatiana5/profile_side_switcher

Remember case matters.

Re: Right to left postbit

Posted: Sun Jul 27, 2014 8:14 am
by Dr.Death
Some extension have no ext.php (it's not required anymore)

Have a look at the composer.json file:

"name": "vendorname/extensionname",

so you have to put this extension to:

/ext/vendorname/extensionname

Re: Right to left postbit

Posted: Mon Jul 28, 2014 4:23 am
by aaronnz220
Did that but when I go to the extensions manager it doesn't show up.

Re: Right to left postbit

Posted: Mon Jul 28, 2014 5:54 am
by david63
My guess would be that the underscores are causing the problem with it not showing up.

Re: Right to left postbit

Posted: Mon Jul 28, 2014 8:47 am
by bonelifer
The vendor name has to be the same and must obey the ORIGINAL case of the name. ie tatiana5, not Tatiana5.

This is what I used and it worked:

Code: Select all

/ext/tatiana5/profile_side_switcher

Re: Right to left postbit

Posted: Mon Jul 28, 2014 9:26 am
by david63
... but underscores are not allowed in folder/namespace names - so there will always be a possibility of errors due to that.

Re: Right to left postbit

Posted: Mon Jul 28, 2014 1:53 pm
by Lumpy Burgertushie
david63 wrote:... but underscores are not allowed in folder/namespace names - so there will always be a possibility of errors due to that.
not allowed where? in phpbb? certainly that is not true in general for file/folder names. underscores are usually the preferred way to handle what would normally be a space.

spaces are not allowed in file/folder names anywhere but in windows.


robert

Re: Right to left postbit

Posted: Mon Jul 28, 2014 1:54 pm
by bonelifer
Lumpy please be aware we are talking about phpBB 3.1.x, not Olympus.

Re: Right to left postbit

Posted: Mon Jul 28, 2014 1:59 pm
by PayBas
https://wiki.phpbb.com/Developing_Extensions
<vendor> is the author or group of authors of the extension. Note that vendor and extension directory names may ONLY contain numbers and letters. Underscores, dashes, and other characters are NOT permitted. It is perfectly fine to have an extension named iamanextension.

Re: Right to left postbit

Posted: Mon Jul 28, 2014 2:14 pm
by Lumpy Burgertushie
got it, hence why I asked if it was about phpbb ( didn't mention 3.1 but that is what I meant)
sorry for stepping in. I haven't spent any time looking at 3.1 yet.

curious if the underscore is not allowed , why did it work for the poster above?



thanks,
robert

Re: Right to left postbit

Posted: Mon Jul 28, 2014 2:21 pm
by PayBas
Lumpy Burgertushie wrote:curious if the underscore is not allowed , why did it work for the poster above?
His problem is most likely not related to the underscore issue. We just stated it for future reference and the extension author, so that it will be changed (it won't be validated and accepted into the DB if it isn't changed).

Using underscores in extensions tends to mess with the updated template system (such as using namespace paths with INCLUDEJS). Afaik, it shouldn't actually prevent the ext from showing up and being installed (although this might change).

Re: Right to left postbit

Posted: Mon Jul 28, 2014 2:25 pm
by david63
Lumpy Burgertushie wrote:curious if the underscore is not allowed , why did it work for the poster above
From what i have picked up along the way I think that the underscore will work sometimes but there are some sets of circumstances (no idea what) where, when using Symfony, it causes things to "break" therefore safer to not use them.