1 (edited by rjg 2004-08-06 19:40)

Topic: Style Editing System 1.0 by rjg

##
##
##      Mod title:  Style Editing System (SES)
##
##      Mod version:  1.0
##      Works on PunBB:  1.1.5 (Others may work, but are not confirmed)
##      Release date:  2004-08-06
##      Author:  Robert 'rjg' Garcia (rjg@forumpath.com)
##
##      Description:  Web Based Stylesheet Editing System for PunBB
##
##      Affected files:  include/common_admin.php
##
##      Affects DB:  No
##
##      Notes:  Written with one change to the original PunBB-files.
##                 It is important that you set the style directory readable
##                 and writeable by the user or group your web server runs as.
##
##      DISCLAIMER:  Please note that "mods" are not officially supported by
##                          PunBB. Installation of this modification is done at your
##                          own risk. Backup your forum database and any and all
##                          applicable files before proceeding.
##

This mod adds the ability to modify your styles and create new ones through the admin interface.

I am by no means a php whiz, so if you have some suggestions, please let me know!

This mod is available from http://www.forumpath.com/mod/ses.zip

--
Robert
Administrator
NanoCubeForums.com

Re: Style Editing System 1.0 by rjg

nice idea of a mod, got any screenshots?

3

Re: Style Editing System 1.0 by rjg

Frank,

  Nothing complex, it just loads the css file in a textarea for editing or allows you to create new stylesheets or delete existing ones.

  Let me see if I can get a screenshot for you...

--
Robert
Administrator
NanoCubeForums.com

4 (edited by rjg 2004-08-06 20:20)

Re: Style Editing System 1.0 by rjg

Frank,

  I have setup some screenshots and added them to the zip file.  They are also viewable following the links below...

Screen Shot 1
Screen Shot 2

--
Robert
Administrator
NanoCubeForums.com

Re: Style Editing System 1.0 by rjg

ah, quite flexible and clean smile

dl:ing now smile

6

Re: Style Editing System 1.0 by rjg

Thanks, I hope you like it..

--
Robert
Administrator
NanoCubeForums.com

Re: Style Editing System 1.0 by rjg

Great. This will be easy peasy to convert into an admin module for 1.2.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Style Editing System 1.0 by rjg

Rickard wrote:

Great. This will be easy peasy to convert into an admin module for 1.2.

Speaking of 1.2, how is it coming along? Summer is "soon" ending wink

Re: Style Editing System 1.0 by rjg

I know, I know. The markup/CSS changes are pretty much finished. It's just a matter of tweaking now. It looks great! Paul has done some amazing work. There are still quite a few features on the todo list, but I have a feeling it will progress quickly once I get in the zone :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Style Editing System 1.0 by rjg

I like, I like... big_smile

Just wondering, when creating a new stylesheet, does it do all the necessary integration (e.g. icon, etc.)

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

11

Re: Style Editing System 1.0 by rjg

Thanks everyone!

When you create a new stylesheet, it copies Cobalt.css by default since it is the default style for PunBB.  It doesn't take care of the exclamation point icon/image though.

I was lookingn for something I could let my users, or soon to be users modify the stylesheets without having ftp or shell access.

--
Robert
Administrator
NanoCubeForums.com

12

Re: Style Editing System 1.0 by rjg

It's like phpBB,
but i hate make my script directory write permissions.
Good when you converted from phpBB.

If your people come crazy, you will not need to your mind any more.

13

Re: Style Editing System 1.0 by rjg

Zaher,

  You only need to give write permisions to the "style" directory, nothing else..  big_smile

--
Robert
Administrator
NanoCubeForums.com

Re: Style Editing System 1.0 by rjg

Is there any way to modify an existing stylesheet and save it with a new name...  essentially a "save as" function.  Maybe add a "new filename" field to the edit page?

Find what you want...  Where you want it... www.truelocal.com

15

Re: Style Editing System 1.0 by rjg

Cailean,

  I'm sure that could be done.  I will try to get it updated today....  I'll post when the change is made!

--
Robert
Administrator
NanoCubeForums.com

16

Re: Style Editing System 1.0 by rjg

Cailean,

  The change has been made.  Now when you are on the edit page, it gives you the option of changing the filename it gets saved as.  I haven't updated the screenshots yet, and probably won't until monday.

  The zip file is update and can be downloaded HERE

--
Robert
Administrator
NanoCubeForums.com

Re: Style Editing System 1.0 by rjg

way cool rjg!   :thumb's up:

~James
FluxBB - Less is more

18

Re: Style Editing System 1.0 by rjg

Dr. Jeckyl,

  Thanks!  I found it necessary for my needs and figured someone else could use it to..  It is my first contribution to the "Open Source" movement in any way, makes me feel pretty good.. big_smile

--
Robert
Administrator
NanoCubeForums.com

19 (edited by hcgtv 2004-08-08 03:00)

Re: Style Editing System 1.0 by rjg

rjg wrote:

It is my first contribution to the "Open Source" movement in any way, makes me feel pretty good.. :D

Give that man a link to download a copy of Debian :)

20

Re: Style Editing System 1.0 by rjg

hcgtv,

  Are you kidding me?  What do you think I run..  ;-)  I have 4 machines running Woody and Sid, depending on need..  It is also what forumpath.com runs on...   You can't beat Apt, or the ability to upgrade your dist without restarting!

--
Robert
Administrator
NanoCubeForums.com

21

Re: Style Editing System 1.0 by rjg

rjg wrote:

You can't beat Apt, or the ability to upgrade your dist without restarting!

I run a headless server, 2 years running Debian Woody. I have never had the need to put a monitor on the box to recover from a bad kernel upgrade.

Just flawless, apt-get update, apt-get upgrade, the first commands I issue in the morning.

Re: Style Editing System 1.0 by rjg

hcgtv wrote:
rjg wrote:

You can't beat Apt, or the ability to upgrade your dist without restarting!

I run a headless server, 2 years running Debian Woody. I have never had the need to put a monitor on the box to recover from a bad kernel upgrade.

Just flawless, apt-get update, apt-get upgrade, the first commands I issue in the morning.

Someone please speak English (just kidding) big_smile

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

Re: Style Editing System 1.0 by rjg

*cough* Gentoo *cough* Portage *cough* ;D

Re: Style Editing System 1.0 by rjg

*cough* Arch *cough* Pacman *cough* big_smile

25

Re: Style Editing System 1.0 by rjg

cuteseal wrote:

Someone please speak English (just kidding) :D

We speak Toy Story, Sarge will be out next month !!