| Author |
Message |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1293
|
Posted:
Sun Aug 05, 2007 9:54 am |
|
Please turn ShortLinks OFF long enough for me to capture your home page HTML again. I have taken a copy of the HTML with ShortLinks ON, but I need to see what nuke was generating prior to shortlinks. Let me know when you have switched it off and then I'll take another look.
BTW, I have unblocked you. Just for your information, it is not good practice to try and post an entire script like you tried to do anyways (regardless of Sentinel). It is much better to provide a link to where we can download the file (e.g., give it a .txt extension) or we can PM you our email address (which you did send to me).
I received your mainfile.php in the mail and will review it this morning. |
_________________ “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:
Mon Aug 06, 2007 3:44 am |
|
Now my config looks like that:
| Code: |
$tnsl_bUseShortLinks = FALSE; //Setting this to TRUE will cause RavenNuke(tm) to shorten the URLs in GoogleTap/GTNG fashion.
$tnsl_bAutoTapBlocks = FALSE; //Setting this to TRUE will cause RavenNuke(tm) to shorten the URLs automatically for block files.
$tnsl_bAutoTapLinks = FALSE; //Setting this to TRUE will cause RavenNuke(tm) to search for additional untapped links and attempt to shorten them - could slow down your site
$tnsl_bDebugShortLinks = FALSE; //Setting this to TRUE will cause the ShortLinks function to display debugging information. |
You can visit my site.
BTW, Maybe the problem is not in mainfile.php?
Waiting for your answers, and Thank you so far, you are great!  |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1293
|
Posted:
Mon Aug 06, 2007 8:17 am |
|
Ok, I have captured your HTML and have reviewed it. With ShortLinks OFF, what I am seeing is the incorrect use of in your site code. That is a HTML entity and it needs to have a semi-colon ( ";" ) on the end of it.
Your site is producing an invalid HTML entity. You can turn ShortLinks back on and then track down the block, module, etc. that is causing this and fix the code.
It looks to me like you have the issue with your scrolling text at the top, the block on the upper left of the page and also in your footer message possibly.
If you fix those, everything will work as it should. |
_________________ “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:
Mon Aug 06, 2007 9:36 am |
|
You were right!
Wow, what a stupid mistake...
Just one last question and then I'll leave you alone-
As you can see- on the links down my logo and on the menu on the right (Sommaire), few of the links are still modules.php and just when I enter them it changes. If I exit the site and enter again- it happens again. What should I do?
Thank you so much! you are the best  |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1293
|
Posted:
Mon Aug 06, 2007 9:40 am |
|
Unfortunately I must leave for work, but I'll take a look at what you are talking about later tonight or early tomorrow morning.
Regards,
montego |
| |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Tue Aug 07, 2007 4:51 am |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1293
|
Posted:
Tue Aug 07, 2007 7:50 am |
|
Oh, I see. Have you a GT-Sommaire.php script in ShortLinks? You can get it here:
http://montegoscripts.com/downloads-cat17.html
Regards |
_________________ “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:
Tue Aug 07, 2007 8:40 am |
|
Yeah, but in the header, under the logo there is still few links in the old "template".
P.S. In the User_Info block I had few problems because it shows the newest user as:
"http://domain.com/html/userinfo-.htmlusername"
For now I'm going to delete the lines "'userinfo-\\1.html'," etc from the GTB-block-User_Info.php file. you got a better sugestion? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1293
|
Posted:
Tue Aug 07, 2007 9:18 am |
|
I am not understanding what you mean by "Old 'template'". I can see that you have now since added the GT-Sommaire.php file in ShortLinks as most of your links are shortened just fine within that block.
With regards to your User Info block, which block are you using and which version of PHP-Nuke? |
| |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Tue Aug 07, 2007 9:44 am |
|
ver. 7.0.
I use the User_Info block that came with the system.
As you can see there is a word in the block that look's like רועי, When I click on it the link is:
"http://domain.com/html/userinfo-.htmlרועי"
About the "old templates":
Under the logo there are links to the PM module and to the Reviews module which looks like reviews.html etc.
I can change it by myself in the theme.php file, and I will, But the links to the forums modules and to the account module were changed so I wonder why the other links did not.
Thank You. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1293
|
Posted:
Tue Aug 07, 2007 10:01 am |
|
| rlbs wrote: |
ver. 7.0.
I use the User_Info block that came with the system.
As you can see there is a word in the block that look's like רועי, When I click on it the link is:
"http://domain.com/html/userinfo-.htmlרועי" |
Regarding the above, this is a bit more complex. I am now thinking that ShortLinks may not be appropriate for certain character sets. I am not 100% certain how to fix this. The problem is with this line here:
| Code: |
| '"(?<!/)modules.php\?name=Your_Account&op=userinfo&username=([a-zA-Z0-9_-]*)"', |
You could try changing it to:
| Code: |
| '"(?<!/)modules.php\?name=Your_Account&op=userinfo&username=([[:alnum:]]*)"', |
You will also have to add another line to your .htaccess right after "#Your Account" like this:
| Code: |
RewriteRule ^userinfo-([[:alnum:]]*).html modules.php?name=Your_Account&op=userinfo&username=$1 [L]
|
The above is untested, so not sure about it...
| rlbs wrote: |
About the "old templates":
Under the logo there are links to the PM module and to the Reviews module which looks like reviews.html etc.
I can change it by myself in the theme.php file, and I will, But the links to the forums modules and to the account module were changed so I wonder why the other links did not. |
Regarding the above, you can simply add the appropriate code to GTZ-PageTap.php rather than having to change your theme.php script. This is one of the improvements that I made to the original GT code. |
| |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Tue Aug 07, 2007 10:44 am |
|
About the first solution- I does not work.
I tried to add to the line:
| Code: |
| '"(?<!/)modules.php\?name=Your_Account&op=userinfo&username=([a-zA-Z0-9_-]*)"', |
the first and the last letter in my language and now the page is shown as:
| Quote: |
| http://domain.com/userinfo-רועי.html |
Which is great, but the explorer cannot open the page. I get 404 error.
My idea is to make the link as userinfo-user's-ID but I have no idea how to do it. Can you help?
As for the second solution- it's works, thank you.
I think I start to understand how this system works..
BTW, I just added the coppermine module into the ShortLinks, but just the mainpage. Before I start working on adding the other pages, did anyone else already did it? |
Last edited by rlbs on Thu Aug 16, 2007 11:39 am; edited 1 time in total |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Tue Aug 07, 2007 11:37 am |
|
Just foung an error- in the journal module the link "create an account" links to account-new.html_user. Can't find where to fix it.
Just for you to know to fix it in the next realese of the ShortLinks  |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1293
|
Posted:
Tue Aug 07, 2007 10:10 pm |
|
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!  |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1293
|
Posted:
Tue Aug 07, 2007 10:17 pm |
|
The fix for the Journal module issue is here:
=== OPEN ===
ShortLinks/GT-Journal.php
=== FIND ===
| Code: |
| '"(?<!/)modules.php\?name=Your_Account&op=([a-z]*)"', |
=== CHANGE TO ===
| Code: |
| '"(?<!/)modules.php\?name=Your_Account&op=([a-z_]*)"', |
|
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
|
|