| Author |
Message |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Wed Aug 01, 2007 5:41 am |
|
when I enter domain.com/forums.html it works great, but when I enter the forums the links are still looks like forums.html........etc.
And a question about Sommaire- I insalled it before and modified it as I wanted. I don't want to do it again, so can you tell me what should I put in the block-Sommaire.php file so the links will be change into shortlinks?
Thank you! |
| |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 311
|
Posted:
Wed Aug 01, 2007 7:11 am |
|
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Wed Aug 01, 2007 9:21 am |
|
| Guardian wrote: |
I presume you have added the directives to the htacces file?
You can change the links for the Sommaire block in the Sommaire admin screen. |
I did added the directives to the htacces file. what should I do?
p.s. If the way to change the sommaire links is through the admin menu, what is acctually the different between the original block and the one that added to the shortlinks download?
Thank you! |
| |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 311
|
Posted:
Wed Aug 01, 2007 10:14 am |
|
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Wed Aug 01, 2007 10:41 am |
|
Well, what did he changed and added?
And what should be the problem with the googletap?
should I edit somthing in the Forums module? [didn't found anything about it in the instruductions...] |
| |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 311
|
Posted:
Wed Aug 01, 2007 2:59 pm |
|
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Thu Aug 02, 2007 5:14 am |
|
It is not a english site so I thought that it'll be a bit hard for you to help me. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 965
|
Posted:
Thu Aug 02, 2007 6:50 pm |
|
It would help. Please do give us a link to your site because I cannot quite follow what the issue is exactly. Thanks. |
_________________ “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 03, 2007 3:35 am |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 965
|
Posted:
Fri Aug 03, 2007 4:58 pm |
|
rlbs,
I checked out your site and it looks like you may not have turned ShortLinks on (see the instructioins related to config.php or if you are using RavenNuke it would be rnconfig.php).
None of your links are being shortened. Your forums.html is only working because you added the shortlinks.htaccess statements into your .htaccess.
Trust me. When set up properly and turned on, this works... you are seeing it on this site in fact. |
| |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Sat Aug 04, 2007 4:36 am |
|
Check out my root/config.php file at the part of the Shortlinks:
| Code: |
/*********************************************************************/
/* TegoNuke(tm) ShortLinks Configuration Options
/*********************************************************************/
$tnsl_bUseShortLinks = TRUE; //Setting this to TRUE will cause RavenNuke(tm) to shorten the URLs in GoogleTap/GTNG fashion.
$tnsl_bAutoTapBlocks = TRUE; //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. |
|
| |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Sat Aug 04, 2007 4:40 am |
|
The problem might be that I could not found the:
| Code: |
if(defined('FORUM_ADMIN')) {
define('INCLUDE_PATH', '../../../');
} elseif(defined('INSIDE_MOD')) {
define('INCLUDE_PATH', '../../');
} else {
define('INCLUDE_PATH', './');
}
@require_once(INCLUDE_PATH."config.php");
@require_once(INCLUDE_PATH."db/db.php");
@require_once(INCLUDE_PATH."includes/sql_layer.php");
@require_once(INCLUDE_PATH."includes/ipban.php");
if (file_exists(INCLUDE_PATH."includes/custom_files/custom_mainfile.php")) {
@include_once(INCLUDE_PATH."includes/custom_files/custom_mainfile.php");
} |
In my mainfile.php
So I located it here:
| Code: |
if ($forum_admin == 1) {
require_once("../../../config.php");
require_once("../../../db/db.php");
} elseif ($inside_mod == 1) {
require_once("../../config.php");
require_once("../../db/db.php");
} else {
require_once("config.php");
require_once("db/db.php");
/* FOLLOWING TWO LINES ARE DEPRECATED BUT ARE HERE FOR OLD MODULES COMPATIBILITY */
/* PLEASE START USING THE NEW SQL ABSTRACTION LAYER. SEE MODULES DOC FOR DETAILS */
require_once("includes/sql_layer.php");
$dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
}
// GT-NExtGEn 0.4/0.5 by Bill Murrin (Audioslaved) http://gt.audioslaved.com (c) 2004
//Modified by montego from http://montegoscripts.com for TegoNuke(tm) ShortLinks
if (isset($tnsl_bUseShortLinks) && $tnsl_bUseShortLinks && file_exists(INCLUDE_PATH.'includes/tegonuke/shortlinks/shortlinks.php')) {
define('TNSL_USE_SHORTLINKS', TRUE);
@include_once(INCLUDE_PATH.'includes/tegonuke/shortlinks/shortlinks.php');
} |
This could be the problem?
Update:
I tried to delete the @ of the:
but it still does not work so I turned it back. |
| |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 311
|
Posted:
Sat Aug 04, 2007 9:03 am |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 965
|
Posted:
Sat Aug 04, 2007 9:11 am |
|
The problem is that you are way behind on patch levels so INCLUDE_PATH is not set. (You should seriously consider getting current on the nuke patches from http://nukeresources.com.)
Try changing the following:
| Code: |
if ($forum_admin == 1) {
require_once("../../../config.php");
require_once("../../../db/db.php");
} elseif ($inside_mod == 1) {
require_once("../../config.php");
require_once("../../db/db.php");
} else {
require_once("config.php");
require_once("db/db.php");
/* FOLLOWING TWO LINES ARE DEPRECATED BUT ARE HERE FOR OLD MODULES COMPATIBILITY */
/* PLEASE START USING THE NEW SQL ABSTRACTION LAYER. SEE MODULES DOC FOR DETAILS */
require_once("includes/sql_layer.php");
$dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
}
|
with:
| Code: |
if ($forum_admin == 1) {
require_once("../../../config.php");
require_once("../../../db/db.php");
define('INCLUDE_PATH', '../../../');
} elseif ($inside_mod == 1) {
require_once("../../config.php");
require_once("../../db/db.php");
define('INCLUDE_PATH', '../../');
} else {
require_once("config.php");
require_once("db/db.php");
define('INCLUDE_PATH', './');
/* FOLLOWING TWO LINES ARE DEPRECATED BUT ARE HERE FOR OLD MODULES COMPATIBILITY */
/* PLEASE START USING THE NEW SQL ABSTRACTION LAYER. SEE MODULES DOC FOR DETAILS */
require_once("includes/sql_layer.php");
$dbi = sql_connect($dbhost, $dbuname, $dbpass, $dbname);
}
|
And then leave the ShortLinks code where you have it. |
| |
|
|
 |
rlbs
Newbie


Joined: Jul 31, 2007
Posts: 22
|
Posted:
Sun Aug 05, 2007 2:00 am |
|
It works with few modules (like your_account and forums) but now evrey time that there is " " in my code- instead of " " it shows "" " (you can see it on my site).
What should I do?
my mainfile was sent to you. |
| |
|
|
 |
|
|