Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
rlbs
Newbie
Newbie



Joined: Jul 31, 2007
Posts: 22

PostPosted: Wed Aug 08, 2007 6:30 am Reply with quote

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! Laughing

Very Happy Very Happy Very Happy
Well, journal module is like blogs module except I do not need to translate and install it Cool

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!
 
View user's profile Send private message
rlbs
Newbie
Newbie



Joined: Jul 31, 2007
Posts: 22

PostPosted: Wed Aug 08, 2007 6:46 am Reply with quote

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:
Code:
_
somewhere in here:
Code:
RewriteRule ^userinfo-([[:alnum:]]*).html modules.php?name=Your_Account&op=userinfo&username=$1 [L]


But where?
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1294

PostPosted: Wed Aug 08, 2007 8:24 am Reply with quote

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.
 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1294

PostPosted: Wed Aug 08, 2007 8:27 am Reply with quote

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:
Code:
_
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.
 
View user's profile Send private message Visit poster's website
rlbs
Newbie
Newbie



Joined: Jul 31, 2007
Posts: 22

PostPosted: Wed Aug 08, 2007 9:17 am Reply with quote

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:(
 
View user's profile Send private message
rlbs
Newbie
Newbie



Joined: Jul 31, 2007
Posts: 22

PostPosted: Wed Aug 08, 2007 9:25 am Reply with quote

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!
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1294

PostPosted: Wed Aug 08, 2007 8:37 pm Reply with quote

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.
 
View user's profile Send private message Visit poster's website
rlbs
Newbie
Newbie



Joined: Jul 31, 2007
Posts: 22

PostPosted: Thu Aug 09, 2007 3:31 am Reply with quote

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.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1294

PostPosted: Thu Aug 09, 2007 8:15 am Reply with quote

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&amp;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 
View user's profile Send private message Visit poster's website
rlbs
Newbie
Newbie



Joined: Jul 31, 2007
Posts: 22

PostPosted: Thu Aug 09, 2007 2:51 pm Reply with quote

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.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1294

PostPosted: Thu Aug 09, 2007 5:27 pm Reply with quote

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 
View user's profile Send private message Visit poster's website
rlbs
Newbie
Newbie



Joined: Jul 31, 2007
Posts: 22

PostPosted: Fri Aug 10, 2007 2:46 am Reply with quote

I see.
Thank you!
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunch
linear-bunch