21
trabis
Re: @Trabis: Defacer
  • 2009/8/21 17:48

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


OK, I guess it is fixed now.

Somehow your XOOPS_URL uses www but www is never used in the url.(Strange)

My checks were supposing that the url always contain XOOPS_URL in it.

I'll update defacer with the fix.

Thanks!

22
tzvook
Re: @Trabis: Defacer
  • 2009/8/21 18:19

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


This one is Weird !!!
I thought I am to blame

23
trabis
Re: @Trabis: Defacer
  • 2009/8/21 18:39

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

tzvook wrote:
This one is Weird !!!
I thought I am to blame

There is no such thing as 'User bugs'
Blame is always on code!
Please review the module admin because I made some changes in the titles and I add a page for meta.

24
tzvook
Re: @Trabis: Defacer
  • 2009/8/21 18:55

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Quote:

trabis wrote:
Please review the module admin because I made some changes in the titles and I add a page for meta.


Defacer Footer is there at last, but theme & meta are not working

25
tzvook
Re: @Trabis: Defacer
  • 2009/8/21 19:08

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


IS working, sorry
This time it was me
10x T ... much much appreciate

Great Module !!!

26
rgauci
Re: @Trabis: Defacer
  • 2009/8/21 21:49

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


followed this forum re defacer but cannot seem to make it work.
Could tzvook explain how he managed to go around this.

I also need this badly!!:(

27
tzvook
Re: @Trabis: Defacer
  • 2009/8/21 22:37

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


@ rgauci
I guess Trabis will release a new version of defacer, so you better wait for it ...

T ?

28
trabis
Re: @Trabis: Defacer
  • 2009/8/21 23:11

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Follow instructions in readme file.
Edit include/functions.php and replace with piece of code:
function defacer_getpageinfo() {
    global 
$xoops$xoopsUser$xoopsModule$xoopsConfig;

    
$fullurl "http://" $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
    
$url ltrim($_SERVER["REQUEST_URI"], '/');


Follow the white rabit.

29
trabis
Re: @Trabis: Defacer
  • 2009/8/23 21:24

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


http://www.xuups.com/defacer_beta_2.rar

I rewrote most of it because code was looking old.
There is and extra config in preferences in case you got troubles with XOOPS_URL not matching the uri.

There were some logic changes.
Imagine this scenario:
page1 * - change theme, no more settings
page2 article.php* - change meta, no more settings
page3 article.php?id=3 - change permission, no more settings

Old result when hitting article.php?id=3
change permission - page 3 by closest match
default meta - because it is not set for page 3
default theme - because it is not set for page 3

New result when hitting article.php?id=3
change permission - page 3 by closest match with settings
change meta - page 2 by closest match with settings
change theme - page 1 by closest match with settings

Help test it please.



30
tzvook
Re: @Trabis: Defacer
  • 2009/8/24 15:54

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


Hi T
just got out from the protector punishment (bad !! bad !!)
will test soon ...

Login

Username:
Password:

Lost Password? Register now!

Who's Online

66 user(s) are online (38 user(s) are browsing Support Forums)


Members: 0


Guests: 66


more...

Donat-O-Meter

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

Latest GitHub Commits