xoops forums

trabis

Core Developer
Posted on: 2008/10/27 22:10
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#1

Defacer 1.0 alpha is released for feature requests

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

red_Slider

Quite a regular
Posted on: 2008/10/27 23:24
red_Slider
red_Slider (Show more)
Quite a regular
Posts: 248
Since: 2006/1/4 1
#2

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!

trabis

Core Developer
Posted on: 2008/10/27 23:36
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#3

Re: Defacer 1.0 alpha is released for feature requests

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.

DarinAllan

Friend of XOOPS
Posted on: 2008/10/28 0:11
DarinAllan
DarinAllan (Show more)
Friend of XOOPS
Posts: 477
Since: 2005/5/18
#4

Re: Defacer 1.0 alpha is released for feature requests

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

;o)

Mamba

Moderator
Posted on: 2008/10/28 0:58
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#5

Re: Defacer 1.0 alpha is released for feature requests

Trabis, You're D'Man!!!

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

trabis

Core Developer
Posted on: 2008/11/2 0:33
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#6

Re: Defacer 1.0 alpha is released for feature requests

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.

FadiB

Just popping in
Posted on: 2008/11/2 1:00
FadiB
FadiB (Show more)
Just popping in
Posts: 31
Since: 2008/8/18
#7

Re: Defacer 1.0 alpha is released for feature requests

Great Job man!

Mamba

Moderator
Posted on: 2008/11/3 23:56
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#8

Re: Defacer 1.0 alpha is released for feature requests

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.10 | Docs | Modules | Bugs

trabis

Core Developer
Posted on: 2008/11/6 13:12
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#9

Re: Defacer 1.0 alpha is released for feature requests

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.

JulioNC

Quite a regular
Posted on: 2008/11/6 14:12
JulioNC
JulioNC (Show more)
Quite a regular
Posts: 239
Since: 2004/10/8
#10

Re: Defacer 1.0 alpha is released for feature requests

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 :)