Goodbye $phpEx

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.

Re: Goodbye $phpEx

Postby igorw » 05 Jun 2008, 15:07

Any text editor nowdays allows recursive redectory searching and replacing. And i am pretty sure that meik (not miek) is not using dreamweaver for his coding. I would have also suggested that he used a commandline tool, as craig noted.

harmlessgoat22 wrote:You could also still use the shorthand:
Code: Select all
append_sid('includes/functions.'); 

Just like including a language file, you can put folders in there.

You would however not link to the includes folder, and neither would you put a dot at the end. Geez, i rewrote my reply three times until i had understood what you're trying to say. :D
User avatar
igorw
Past Contributor
Past Contributor
 
Posts: 2321
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Goodbye $phpEx

Postby Masterhand » 05 Jun 2008, 23:50

Well, this is sorta a nice change. There won't be any more $phpEx typos, and no confusing with variables, I once [somehow :? ] defined $phpEx as the amount of user points... But anyways, this is an intresting change. I wonder how the MOD developers feel.
~-If at first you don't succeed, hide all evidence that you tried-~
User avatar
Masterhand
New member
New member
 
Posts: 12
Joined: 05 Jun 2008, 23:42
Location: The 145,721th dimenson
Real name: Austin

Re: Goodbye $phpEx

Postby harmlessgoat22 » 06 Jun 2008, 00:29

Theres going to be a lot of MOD updating :P
Image
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
harmlessgoat22
Supporter
Supporter
 
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David

Re: Goodbye $phpEx

Postby Masterhand » 06 Jun 2008, 00:54

harmlessgoat22 wrote:Theres going to be a lot of MOD updating :P


Yup, all of my scripts use it :P. I might even get a head start and start to revise them to 3.1 standards when the first stable public release comes out.
~-If at first you don't succeed, hide all evidence that you tried-~
User avatar
Masterhand
New member
New member
 
Posts: 12
Joined: 05 Jun 2008, 23:42
Location: The 145,721th dimenson
Real name: Austin

Re: Goodbye $phpEx

Postby harmlessgoat22 » 06 Jun 2008, 02:08

I would, but then if I add anything to the MOD, i have to change it twice...so...I'll just wait until 3.2 is released.
Image
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
harmlessgoat22
Supporter
Supporter
 
Posts: 316
Joined: 18 Sep 2007, 14:35
Real name: David

Re: Goodbye $phpEx

Postby igorw » 06 Jun 2008, 08:45

I would probably wait until RC1 is out. a) Less adjustment work. b) Maybe somebody makes some scripts that will take away a bit of the work :D.
User avatar
igorw
Past Contributor
Past Contributor
 
Posts: 2321
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Goodbye $phpEx

Postby barrycarlyon » 06 Jun 2008, 09:55

Ut oh, someone mentioned Dreamweaver, (starts hunting with rifle)

We all know real coders do not use Dreamwearer.

That is all.
User avatar
barrycarlyon
New member
New member
 
Posts: 12
Joined: 15 Jul 2007, 01:48
Location: Leeds UK
Real name: Barry Carlyon

Re: Goodbye $phpEx

Postby igorw » 06 Jun 2008, 10:19

It can in fact be pretty powerful if you know how to use it. A good coder should also be able to do something in dreamweaver.
User avatar
igorw
Past Contributor
Past Contributor
 
Posts: 2321
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Goodbye $phpEx

Postby barrycarlyon » 06 Jun 2008, 10:35

Notepad or edit pad pro, or notepad++ just not dreamweaver.
User avatar
barrycarlyon
New member
New member
 
Posts: 12
Joined: 15 Jul 2007, 01:48
Location: Leeds UK
Real name: Barry Carlyon

Re: Goodbye $phpEx

Postby momentum » 06 Jun 2008, 12:01

Although I share your dislike for Dreamweaver, once you manage to turn off all the crappy things it can do to HTML it can be quite powerful. Unfortunately it's aimed at web "artists" who really don't want to know the tech side (read: they're ignorant) and really don't care how much bloat their sites carry.

Craig.
User avatar
momentum
New member
New member
 
Posts: 37
Joined: 28 Feb 2008, 04:54
Location: Melbourne, Australia
Real name: Craig

Re: Goodbye $phpEx

Postby barrycarlyon » 06 Jun 2008, 12:36

Agreed!
User avatar
barrycarlyon
New member
New member
 
Posts: 12
Joined: 15 Jul 2007, 01:48
Location: Leeds UK
Real name: Barry Carlyon

Re: Goodbye $phpEx

Postby igorw » 06 Jun 2008, 14:41

Sorry to interupt you guys, but this topic is really not about text editors.
User avatar
igorw
Past Contributor
Past Contributor
 
Posts: 2321
Joined: 01 Jun 2006, 20:48
Real name: Igor

Re: Goodbye $phpEx

Postby Mighty Gorgon » 21 Jul 2008, 14:18

I love this change.

I also did something similar in a modded phpBB 2 by also assigning page names to a constant.

I.E.:
Code: Select all
define(PAGE_INDEX, 'index.' . $phpEx);


By assigning these for each main page and by editing all the callback to the files, I was able to name all the files as I wish without having to change all the code everytime.

As you said the most important thing is that CONSTANTS are more secure, and you do not need to declare them as GLOBAL when you need to recall within functions or classes.

Thanks for the info.
Luca
User avatar
Mighty Gorgon
New member
New member
 
Posts: 44
Joined: 25 Jul 2007, 12:34
Location: Italy
Real name: Luca

Re: Goodbye $phpEx

Postby Obsidian » 22 Jul 2008, 01:23

In my opinion, phpBB3 needs a page based constant by default, especially if a styler wants to make an 'activetab' wannabe tab system in the overall header, so that tab X is highlighted when on page X, or if a MOD author puts some queries into the common code but have it hardcoded not to run when in the UCP, ACP, etc. to cut down on loads of edits to many different files.
User avatar
Obsidian
Supporter
Supporter
 
Posts: 867
Joined: 13 May 2008, 15:20
Real name: Damian

Re: Goodbye $phpEx

Postby igorw » 26 Jul 2008, 13:47

There is the {SCRIPT_NAME} template variable you can use for that. :)
User avatar
igorw
Past Contributor
Past Contributor
 
Posts: 2321
Joined: 01 Jun 2006, 20:48
Real name: Igor

PreviousNext

Return to phpBB Development discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron