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 01, 2007 5:41 am Reply with quote

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



Joined: Jul 18, 2005
Posts: 397

PostPosted: Wed Aug 01, 2007 7:11 am Reply with quote

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



Joined: Jul 31, 2007
Posts: 22

PostPosted: Wed Aug 01, 2007 9:21 am Reply with quote

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



Joined: Jul 18, 2005
Posts: 397

PostPosted: Wed Aug 01, 2007 10:14 am Reply with quote

Ah yes, I forgot, Montego has added a replacement block for somaire to use the new taps.
 
View user's profile Send private message
rlbs
Newbie
Newbie



Joined: Jul 31, 2007
Posts: 22

PostPosted: Wed Aug 01, 2007 10:41 am Reply with quote

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...]
 
View user's profile Send private message
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 397

PostPosted: Wed Aug 01, 2007 2:59 pm Reply with quote

You shouldn't need to edit anything in the forums. You said in your post that the url's were ending in .html which is correct but perhaps a link to your site might be useful.
 
View user's profile Send private message
rlbs
Newbie
Newbie



Joined: Jul 31, 2007
Posts: 22

PostPosted: Thu Aug 02, 2007 5:14 am Reply with quote

It is not a english site so I thought that it'll be a bit hard for you to help me.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Aug 02, 2007 6:50 pm Reply with quote

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



Joined: Jul 31, 2007
Posts: 22

PostPosted: Fri Aug 03, 2007 3:35 am Reply with quote

Sent it.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Fri Aug 03, 2007 4:58 pm Reply with quote

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



Joined: Jul 31, 2007
Posts: 22

PostPosted: Sat Aug 04, 2007 4:36 am Reply with quote

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



Joined: Jul 31, 2007
Posts: 22

PostPosted: Sat Aug 04, 2007 4:40 am Reply with quote

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:
Code:
@include_once
but it still does not work so I turned it back.
 
View user's profile Send private message
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 397

PostPosted: Sat Aug 04, 2007 9:03 am Reply with quote

Please zip and email me your mainfile.php and I'll fix you right up.
webmasterATcode-authorsDOTcom
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Aug 04, 2007 9:11 am Reply with quote

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



Joined: Jul 31, 2007
Posts: 22

PostPosted: Sun Aug 05, 2007 2:00 am Reply with quote

It works with few modules (like your_account and forums) but now evrey time that there is "&nbsp" in my code- instead of " " it shows ""&nbsp" (you can see it on my site).

What should I do?

my mainfile was sent to 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-bunchlinear-bunch