| Author |
Message |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Wed Aug 08, 2007 6:30 am |
|
| montego wrote: |
I am not sure what to do about the User Info block. You could change the Your_Account module code to accept the use of a user_id instead of name, but that requires customization. If you are up to the task, it sounds like a reasonable idea. The different character set you are using is messing this up and I do not know how to correct for you.
Regarding Coppermine, I have been Googling for about 20 minutes now and I still have not found a "tap" for this. So, you might be on your own with creating it.
Thank you for letting me know about the Journal module issue. I will add to the fix-list. You might be the only one who ever uses that module!  |
Well, journal module is like blogs module except I do not need to translate and install it
Do you know how do I get the user ID? (as $1 is the user name).
So I'll fix the User_Info problem.
Thank's! |
| |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Wed Aug 08, 2007 6:46 am |
|
Well, I changed the first line in the User Info of the Shortlinks to "modules.php?name=Your_Account&op=userinfo&username=רועי"
(deleted the amp etc).
It should be OK but now the link is:
account-userinfo.html&username=THE_USERS_NAME
I guess I need to add a:
somewhere in here:
| Code: |
| RewriteRule ^userinfo-([[:alnum:]]*).html modules.php?name=Your_Account&op=userinfo&username=$1 [L] |
But where? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Wed Aug 08, 2007 8:24 am |
|
| rlbs wrote: |
Do you know how do I get the user ID? (as $1 is the user name). So I'll fix the User_Info problem.
|
This change, I am afraid, is not within ShortLinks. You have to actually change Your Account code to do this because if you look at the unshortened link, there is no user id on it.
Therefore, if you are not up to changing core PHP-Nuke Your Account code, you had better just not shorten that one link and just live with that. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Wed Aug 08, 2007 8:27 am |
|
| rlbs wrote: |
Well, I changed the first line in the User Info of the Shortlinks to "modules.php?name=Your_Account&op=userinfo&username=רועי"
(deleted the amp etc).
It should be OK but now the link is:
account-userinfo.html&username=THE_USERS_NAME
I guess I need to add a:
somewhere in here:
| Code: |
| RewriteRule ^userinfo-([[:alnum:]]*).html modules.php?name=Your_Account&op=userinfo&username=$1 [L] |
But where? |
First of all, not sure getting rid of the "amp" is going to work. But, you can certainly try it.
To add the underscore character, it would look like this:
| Code: |
| RewriteRule ^userinfo-([[:alnum:]_]*).html |
Don't forget to make the same change in your GTB file. |
| |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Wed Aug 08, 2007 9:17 am |
|
No I deleted the lines
| Code: |
// '"(?<!/)modules.php\?name=Your_Account&op=userinfo&username=([a-zA-Z0-9א-ת_-]*)"',
// 'userinfo-\\1.html', |
But the site is not updating:( |
| |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Wed Aug 08, 2007 9:25 am |
|
By the way- the problem that I found in the journals is evreywhere- I just visited the Survry module and there is a problen with the signing up link in there too! |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Wed Aug 08, 2007 8:37 pm |
|
| rlbs wrote: |
| But the site is not updating:( |
I am sorry, but I do not understand what you mean by this.
By the way, please open up GTZ-PageTap.php and tell me if you see this exact line in the $urlin:
'"(?<!/)modules.php\?name=Your_Account(?!&)"',
Thanks. |
| |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Thu Aug 09, 2007 3:31 am |
|
| montego wrote: |
| rlbs wrote: |
| But the site is not updating:( |
I am sorry, but I do not understand what you mean by this.
By the way, please open up GTZ-PageTap.php and tell me if you see this exact line in the $urlin:
'"(?<!/)modules.php\?name=Your_Account(?!&)"',
Thanks. |
Yes.
And by updated I mean that I deleted the links from the User Block ShortLinks file but the newest user link is still shorted. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Thu Aug 09, 2007 8:15 am |
|
Ok. I see.
I have looked further and you may have to comment these two lines out of GT-News.php also. Here is the $urlin line that I am talking about:
| Code: |
'"(?<!/)modules.php\?name=Your_Account&op=([a-z_]*)"',
|
I am thinking this might fix the User Info block for your home page, but then you will also need to see which other modules causes you issues and comment it out there as well. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Thu Aug 09, 2007 2:51 pm |
|
It solved except the link of registering is again long.
I tried to add the link to the block and News module files and add the .htaccsess:
| Code: |
| RewriteRule ^account-new-user.html account-new_user.html [L] |
But it does not work.
BTW, I can't understand why doesn't it works. I mean, in the long address the explorer opens addresses with other languages. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Thu Aug 09, 2007 5:27 pm |
|
To be honest, I would just live with the longer link. I keep saying that this is a character set issue and I don't know how to solve it completely. Would you agree that most of your other links are shortened to your satisfaction? These few remaining links have no value in being shortened anyways from a SEO perspective. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Fri Aug 10, 2007 2:46 am |
|
|
|
 |
|
|