phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

a small fix that could save styling support forums forever

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.1/Ascreaus followed by 3.2/Arsia.

agree?

Agree
1
33%
Disagree
2
67%
 
Total votes: 3

a small fix that could save styling support forums forever

Postby Rallix » Wed May 16, 2012 1:57 am

please consider the following:
at the moment, the way in which we add new links to the UI is a terrible case a duplicate code, and because of the specificity of the styles, MOD authors can't edit for ALL of them, so here's my suggestion:
1. We make an sql table, prefix_nav, with columns
icon (url for image, if any)
name(as in {L_MONKEY} not just 'monkey')
url (as in {U_MONKEY})
active (if the link should be available)
order(where it shows up)
id(the PRIMARY KEY, of course.)
2.
We make block variables for all of this, in a loop called navlinks or something
3. Style creators include it with
<!-- BEGIN navlinks -->
<markup foo="bar"><a href="{navlinks.URL}">{navlinks.NAME}</a></markup>
<!-- END navlinks -->


this is only a rough idea, permissions are not implemented here, but that what topics are for
Rallix
Registered User
 
Posts: 15
Joined: Wed May 16, 2012 1:48 am

Re: a small fix that could save styling support forums forev

Postby brunoais » Sun May 20, 2012 8:06 am

I didn't understand your suggestion.
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Re: a small fix that could save styling support forums forev

Postby ecwpa » Mon May 21, 2012 5:25 am

I'm not sure but I thin Rallix want's to have some kind of panel on ACP in which admins can create variables (url links?) that can be easily used on themes.
Sorry for my bad english, still improving.
ecwpa
Registered User
 
Posts: 169
Joined: Mon Jan 24, 2005 2:10 am

Re: a small fix that could save styling support forums forev

Postby Dragosvr92 » Mon May 21, 2012 12:46 pm

Like.. extra pages ?
Previous username: TheKiller
Avatar on Memberlist 1.0.3
User avatar
Dragosvr92
Registered User
 
Posts: 358
Joined: Tue May 31, 2011 12:08 pm
Location: Romania

Re: a small fix that could save styling support forums forev

Postby Erik Frèrejean » Mon May 21, 2012 5:43 pm

phpBB 3.1 will get a template event that will allow MODs to add navigation options through an event. No need for such a work around with additional ACP pages/database tables.
Available on .com
Support Toolkit developer
User avatar
Erik Frèrejean
Registered User
 
Posts: 207
Joined: Thu Oct 25, 2007 2:25 pm
Location: surfnet

Re: a small fix that could save styling support forums forev

Postby Rallix » Fri Jun 08, 2012 9:52 pm

thanks erik, it's something that's a;ways gotten to me
working on a phpBB wiki mod and looking for a partner, PM me if interested
(I'm looking for someone with lots of experience involving BBcode, MODX, and permissions construction)
Rallix
Registered User
 
Posts: 15
Joined: Wed May 16, 2012 1:48 am


Return to [3.x] Discussion

Who is online

Users browsing this forum: No registered users and 13 guests