PHP Code tags

Where we keep all the boring tidbits about the PHPDN site, the news, and what not.

Moderator: General Moderators

Re: PHP Code tags

Postby Weirdan » Sun Jan 13, 2008 11:43 am

Syntax: [ Download ] [ Hide ]
 
function something() {};
 

:
Image

:evil:
User avatar
Weirdan
Moderator
 
Posts: 5888
Joined: Mon Nov 03, 2003 7:13 pm
Location: Odessa, Ukraine

Re: PHP Code tags

Postby RobertGonzalez » Sun Jan 13, 2008 12:15 pm

The plugin we are using is very specific to proSilver from what I understand. I think the priority was on getting the tags to parse first with the CSS tweaks coming later. I also know that the CSS was being worked on for subSilver and that the proSilver tweaks had not yet been implemented.
User avatar
RobertGonzalez
Site Administrator
 
Posts: 14291
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: PHP Code tags

Postby Kieran Huggins » Sun Jan 13, 2008 12:32 pm

Wow - I've forced a refresh several times and still no joy :-(

FF on Gutsy.
User avatar
Kieran Huggins
DevNet Master
 
Posts: 3635
Joined: Wed Dec 06, 2006 5:14 pm
Location: Toronto, Canada

Re: PHP Code tags

Postby RobertGonzalez » Sun Jan 13, 2008 1:01 pm

In subSilver or proSilver?
User avatar
RobertGonzalez
Site Administrator
 
Posts: 14291
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: PHP Code tags

Postby Kieran Huggins » Sun Jan 13, 2008 1:13 pm

proSilver
User avatar
Kieran Huggins
DevNet Master
 
Posts: 3635
Joined: Wed Dec 06, 2006 5:14 pm
Location: Toronto, Canada

Re: PHP Code tags

Postby Weirdan » Sun Jan 13, 2008 2:53 pm

Kieran Huggins wrote:proSilver

proSilver has not been tweaked from what I see (though 'Collapse / Turn line numbers off / Select all' links started working)
User avatar
Weirdan
Moderator
 
Posts: 5888
Joined: Mon Nov 03, 2003 7:13 pm
Location: Odessa, Ukraine

Re: PHP Code tags

Postby Chris Corbyn » Sun Jan 13, 2008 4:52 pm

Because I'm not a forum admin I've been unable to edit the templates in proslver (editting the files doesn't change anything -- it's go do be done in the admin panel's editor!).

It will be fixed today ;)
User avatar
Chris Corbyn
Breakbeat Nuttzer
 
Posts: 13098
Joined: Wed Mar 24, 2004 8:57 am
Location: Melbourne, Australia

Re: PHP Code tags

Postby Chris Corbyn » Mon Jan 14, 2008 3:56 am

For anyone using the proSilver theme, you may have noticed that the code blocks have been looking screwy. If you log out and back in again you should see everything as normal now (phpBB caches styles in the session I think).
User avatar
Chris Corbyn
Breakbeat Nuttzer
 
Posts: 13098
Joined: Wed Mar 24, 2004 8:57 am
Location: Melbourne, Australia

Re: PHP Code tags

Postby Kieran Huggins » Mon Jan 14, 2008 4:35 am

Chris Corbyn wrote:phpBB caches styles in the session I think.

THAT was the ticket - thanks Chris!!

Why is BBCode off now?
User avatar
Kieran Huggins
DevNet Master
 
Posts: 3635
Joined: Wed Dec 06, 2006 5:14 pm
Location: Toronto, Canada

Re: PHP Code tags

Postby JayBird » Mon Jan 14, 2008 4:39 am

Kieran Huggins wrote:Why is BBCode off now?


You had the "Disable BBCode" checkbox selected.
User avatar
JayBird
Admin
 
Posts: 4522
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK

Re: PHP Code tags

Postby matthijs » Mon Jan 14, 2008 4:37 pm

The new php code tags are horrible. The functionality is nice, but the code is very, very hard to look at. Bad font, distracting line-numbers and background horizontal bands. Too little contrast in colors. Using subsilver by the way. Am I the only one?
matthijs
DevNet Master
 
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Re: PHP Code tags

Postby Chris Corbyn » Mon Jan 14, 2008 6:13 pm

matthijs wrote:The new php code tags are horrible. The functionality is nice, but the code is very, very hard to look at. Bad font, distracting line-numbers and background horizontal bands. Too little contrast in colors. Using subsilver by the way. Am I the only one?


The colors are the default geshi ones. We fixed that up last time we installed a GeSHi mod ;) We'll do it again here. There are lots of things going on to get this new forum up, running and stable so just bear with us :)

The font size is going to be improved and the line numbers will be hacked to be off by default.
User avatar
Chris Corbyn
Breakbeat Nuttzer
 
Posts: 13098
Joined: Wed Mar 24, 2004 8:57 am
Location: Melbourne, Australia

Re: PHP Code tags

Postby matthijs » Tue Jan 15, 2008 12:53 am

Ok, good to hear that. I was just afraid that it would stay like that.

My suggestions: (if not superfluous):
- bigger font-size
- the old colors (green etc)
- other font-family (don't know what it used to be?)
- ditch the row background colors, doesn't add anything, only distracts

p.s. all the hard work you mods do on the new forum is appreciated
matthijs
DevNet Master
 
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Re: PHP Code tags

Postby Kieran Huggins » Tue Jan 15, 2008 4:18 am

I, for one, love the new code boxes (boxen?) I vote to keep them. The zebra striping is actually quite useful, IMO.

Maybe it will grow on the others? Change is often like that.
User avatar
Kieran Huggins
DevNet Master
 
Posts: 3635
Joined: Wed Dec 06, 2006 5:14 pm
Location: Toronto, Canada

Re: PHP Code tags

Postby VladSun » Tue Jan 15, 2008 5:29 am

Honestly, I dislike the scroll bars in the code blocks - first, I can't see the whole code and second, it makes me angry when I want to scroll the page with the mouse wheel.
User avatar
VladSun
DevNet Master
 
Posts: 4294
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

PreviousNext

Return to Site News

Who is online

Users browsing this forum: No registered users and 3 guests