1
Franki
Re: Manage User's Group Membership from Edit User
  • 2006/4/8 3:59

  • Franki

  • Just popping in

  • Posts: 8

  • Since: 2004/10/18


thanks Tailzehhhh.

Anyone else having this problem?

I can't even find the function that create/add the new user (to the database) through the admin area...



2
Franki
Re: Manage User's Group Membership from Edit User
  • 2006/4/6 12:31

  • Franki

  • Just popping in

  • Posts: 8

  • Since: 2004/10/18


I know I'm digging this up from the grave, but I think I found a bug but i cannot figure out to fix it (and this seems to be the only related thread I've found after many hours of searching). I hope a guru here can help:

[version 2.0.13.2]

When the Admin logs in and uses "Add User" (under Edit/Delete Users), even if a different group(s) is selected by the admin through this process, this new user is NEVER ADDED to the group(s) selected - the only group the new user is added to is "Registered" (groupid = 2). Even if the Registered group is not selected, new user is added to this group anyway.

I've tried looking through the codes, but am only a newbie. Please help!



3
Franki
Re: Agenda-x Date format - How do I change?
  • 2005/1/12 6:34

  • Franki

  • Just popping in

  • Posts: 8

  • Since: 2004/10/18


It uses the _SHORTDATESTRING definition in /xoops/language/english/global.php - so unless you want to hack the agenda-x codes, make sure yours is defined (in the above file) using any of the 3 letters and forward slash, e.g j/n/Y, n/j/Y, etc...

[ it won't work if you do not use those 3 letters separated by forward slash (j, n or Y)]



4
Franki
Re:[img] String Replacement in Mylinks
  • 2004/10/25 12:14

  • Franki

  • Just popping in

  • Posts: 8

  • Since: 2004/10/18


Thanks file2mail! Much appreciated.

(I spent about 45 minutes searching the forums before posting, but came up with nothing)



Edit: anyone using this, you also need to remove the "&" if your image path have them. (I can follow examples, but need the start pointers ;)

$patterns[] = "/[img align=(['"]?)(left|center|right)\1]([^"()&'<>]*)[/img]/sU";
$patterns[] = "/[img]([^"()'<>]*)[/img]/sU";
$patterns[] = "/[img align=(['"]?)(left|center|right)\1 id=(['"
]?)([0-9]*)\3]([^"()'<>]*)[/img]/sU";
$patterns[] = "/[img id=(['"]?)([0-9]*)\1]([^"()'<>]*)[/img]/sU";


Cheers.



5
Franki
Re:[img] String Replacement in Mylinks
  • 2004/10/18 9:46

  • Franki

  • Just popping in

  • Posts: 8

  • Since: 2004/10/18


I see. Thanks.

The only code I found in /class/module.textsanitizer.php relating to images are:
$patterns[] = "/[img align=(['"]?)(left|center|right)\1]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img align=(['"]?)(left|center|right)\1 id=(['"
]?)([0-9]*)\3]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img id=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/img]/sU";
if (
$allowimage != 1) {
    
$replacements[] = '<a href="\3" target="_blank">\3</a>';
    
$replacements[] = '<a href="\1" target="_blank">\1</a>';
    
$replacements[] = '<a href="'.XOOPS_URL.'/image.php?id=\4" target="_blank">\4</a>';
    
$replacements[] = '<a href="'.XOOPS_URL.'/image.php?id=\2" target="_blank">\3</a>';
} else {
    
$replacements[] = '<img src="\3" align="\2" alt="" />';
    
$replacements[] = '<img src="\1" alt="" />';
    
$replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\4" align="\2" alt="\4" />';
    
$replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\2" alt="\3" />';


Based on the above, XOOPS should just substitute the code, as I cannot find where the file extension were being "limited" (eg. gif, jpg, png) - does this exist at all (I don't think it's $allowimage)?

(Also, the last couple of lines relate to images servered by xoops, but are in similar to the format I'm having trouble with... )

Anyone else with any ideas as to why/how?



6
Franki
Re:[img] String Replacement in Mylinks
  • 2004/10/18 9:29

  • Franki

  • Just popping in

  • Posts: 8

  • Since: 2004/10/18


Thanks Herko,

So this is true even though the variable is stored in mylinks_text table as "[img]<URL>/image.php?a=1&b=2&image=1[/img]", XOOPS then transforms it to <img src="..."> so the browser could call the image for display (rather than XOOPS executing the link)?



7
Franki
[img] String Replacement in Mylinks
  • 2004/10/18 9:01

  • Franki

  • Just popping in

  • Posts: 8

  • Since: 2004/10/18


I'm trying to locate the codes that responsible for replacing/substituting the [img] code in Mylinks' Link Description to <img...>, but cannot seem to find it anywhere.

I'm trying to debug as to why an image link (inserted into Mylinks' Link Description) works and the other doesn't:

WORKS (direct link to image): 
   [
img]<URL>/image.gif[/img]
     -> 
MyLinks returns: <img src="<URL>/image.gif">

WORKS (this server does the URL rewriting): 
   [
img]<URL>/a/b/c/[/img]
     -> 
MyLinks returns: <img src="<URL>/a/b/c/">

DOES NOT WORK (this server uses script to interact with
database 
and then redirect to actual location of image):
   [
img]<URL>/image.php?a=1&b=2&image=1[/img]
     -> 
MyLinks returns: [img]<URL>/image.php?a=1&b=2&image=1[/img]


Does any one know where it is or can help with this scenario? (I've tried searching but cannot find any reference)

Cheers




TopTop



Login

Who's Online

188 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 188


more...

Donat-O-Meter

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

Latest GitHub Commits