1
trabis
Defacer 1.0 alpha is released for feature requests
  • 2008/10/27 22:10

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


What is Defacer Module (v1.0 alpha) ?
======================

With this XOOPS module, your can change themes, metadata

and permissions for any given page.




Requirements
====================

Works in XOOPS 2.3.x, XOOPS 2.0.18,

Others cms versions were not tested.

Tested with php5 and php4.




How to install Defacer
====================

Copy defacer folder into the /modules directory of your

website.
Then log in to your site as administrator, go to System

Admin > Modules, look for the defacer
icon in the list of uninstalled modules and click in the install icon.
Follow the directions in the screen.


ATENTION, You have to add a line in header.php and

footer.php at the root of your instalation

In yoursite/header.php paste the line

@include_once XOOPS_ROOT_PATH .

'/modules/defacer/include/beforeheader.php';

right after

defined("XOOPS_ROOT_PATH") or die( 'XOOPS root path not

defined' );

In yoursite/footer.php paste the line

@include_once XOOPS_ROOT_PATH .

'/modules/defacer/include/beforefooter.php';

right after

defined("XOOPS_ROOT_PATH") or die( 'XOOPS root path not

defined' );




Tips
=======
When creating pages you can use '*' symbol in the url field

to match any url.

You should use relative paths
If you select news module your path will be related to

yoursite/module/news/
You should add for example
index.php and not modules/news/index.php

System module is relative to root
You can select system module and enter this url to cover

all userinfo pages:
userinfo.php*



Limitations
========

The block for change themes is deactivated when using

Defacer. I will have to get a work around that.



---------------------

Download it at http://code.google.com/p/xuups/downloads/list

2
red_Slider
Re: Defacer 1.0 alpha is released for feature requests

Seems that we don't have to look at specific template (skin) for some pages ... will test it as soon as possible!

3
trabis
Re: Defacer 1.0 alpha is released for feature requests
  • 2008/10/27 23:36

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Basically this module will bring some page awareness into xoops.
If you want to block access to admin userinfo you can do it.
If some module has poor control of page access permissions you can use defacer to bring some.
If you are a theme designer you can create demo pages for your themes. You can for example create an article about your theme and have that theme aplied on that paged!
Meta data, Sitename, Pagetitle, Slogan can also be set per page/module giving a better control on how your pages display on search engines.

This are the included features on this alpha version but if you can think on anything else that could benefit from this page awareness let me know.

4
DarinAllan
Re: Defacer 1.0 alpha is released for feature requests

This sounds really interesting, will give it a try soon, thanks trabis

;o)

5
Mamba
Re: Defacer 1.0 alpha is released for feature requests
  • 2008/10/28 0:58

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Trabis, You're D'Man!!!

Sounds very exciting!!!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

6
trabis
Re: Defacer 1.0 alpha is released for feature requests
  • 2008/11/2 0:33

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Thanks to all that replied. I would really like to know about bugs you have found and feature requests. It kind of work this way for me, no feedback, no motivation, no development. I have not touched module since last week. Thanks.

7
FadiB
Re: Defacer 1.0 alpha is released for feature requests
  • 2008/11/2 1:00

  • FadiB

  • Just popping in

  • Posts: 31

  • Since: 2008/8/18


Great Job man!

8
Mamba
Re: Defacer 1.0 alpha is released for feature requests
  • 2008/11/3 23:56

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I've installed and am still testing it. So far no problems.

I love the idea of switching the themes, based on the particular page or module.

I would be interesting to see the same for blocks as well, e.g. to be able to highlight a particular block if the user is a certain page. If doable, you could also make it work with your MyTabs module, so we could control the look of individual blocks in a Tab.

I don't know if the above would too much of an overkill, and I don't know how much resource-intensive would it be - after all, we don't want to slow XOOPS.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

9
trabis
Re: Defacer 1.0 alpha is released for feature requests
  • 2008/11/6 13:12

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

Mamba wrote:
I don't know if the above would too much of an overkill, and I don't know how much resource-intensive would it be - after all, we don't want to slow XOOPS.


http://aciddrop.com/php-speedy/

I´m adding it to defacer, it compresses css, javascript, strip whitespaces, Handle gzip and it will Make XOOPS a Lot faster.
I´m testing this at xuups.com with great success, I´m only having troubles with mysearch module that uses ajax but the compressed javascript works fine with mytabs, online block, etc. At this time I have disable that compression there but Css and page compression is fully working. I have measured the page size and load speed and it seems to take it to half! Requests made do the server also decrease around 20%. Looking forward to test this in a very intensive traffic site.

As for the blocks Mamba, I will have to take a better look. Thanks for your request.


10
JulioNC
Re: Defacer 1.0 alpha is released for feature requests
  • 2008/11/6 14:12

  • JulioNC

  • Quite a regular

  • Posts: 239

  • Since: 2004/10/8


Hello, thank you for your nice module.
Reality- sounds good. I will test it!

As for the Data compression methods that you said.
I use JsMin PHP port [1]. Maybe we can modify the $xoTheme->addStylesheet() and $xoTheme->addScript() functions to use the data compression methods into XOOPS, as a new feature for 2.3.2

What do you think?

[1] http://code.google.com/p/jsmin-php/

Edit:
Interesting, PHP Speedy use JsMin PHP Port :)

Login

Who's Online

331 user(s) are online (196 user(s) are browsing Support Forums)


Members: 0


Guests: 331


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits