Montego Scripts: Forums
 

 

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



Joined: Oct 05, 2006
Posts: 15

PostPosted: Sat Oct 07, 2006 10:39 am Reply with quote

This one is harder. I tried to use the code you provided for backend.php, but it did not work here. Since I do not understand how tapping works, I'm stuck Sad Copy and paste is not enough here Crying or Very sad

_________________
www dot funandsafedriving dot com - My safe driving site 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Oct 07, 2006 11:28 am Reply with quote

I have this one almost 70% complete (100% for the modules that I use here on this site). I will either create a download or post notes here on how to accomplish that tap.

_________________
“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
jakec
Newbie
Newbie



Joined: Nov 16, 2006
Posts: 1

PostPosted: Mon Nov 20, 2006 4:36 pm Reply with quote

Montego, did you manage to get any further with the NukeSEO tap?

I appreciate you're probably pretty busy with RN etc, but just thought I would ask. Very Happy

Jakec
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Tue Nov 21, 2006 12:12 am Reply with quote

Sorry about that folks! Keep getting derailed with life. I hope to get back to it soon. I have some vacation to burn before the end of the year... Smile

_________________
“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
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 397

PostPosted: Tue Nov 21, 2006 6:09 pm Reply with quote

Shucks, I got all excited then when I saw the new post icon flashing under this thread.
 
View user's profile Send private message
Misha
Newbie
Newbie



Joined: Oct 05, 2006
Posts: 15

PostPosted: Tue Nov 21, 2006 7:02 pm Reply with quote

[quote="Guardian"]Shucks, I got all excited then when I saw the new post icon flashing under this thread.[/quote]
me, too Crying or Very sad

_________________
www dot funandsafedriving dot com - My safe driving site 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Nov 23, 2006 12:55 am Reply with quote

Misha / Guardian / Jakec,

Here is Thanksgiving present to you! I have gone back and re-done the ShortLinks for nukeSEO's Sitemap (including the Google Sitemap) and here you go... Smile

=== .htaccess ===

As long as you have the necessary module .htaccess statements, no changes are necessary. For example, if you have the Downloads or Web Links (yes, I said Web Links!) in your sitemap, as long as the .htaccess statements for Downloads and Web Links are there, you are in good shape.

=== CREATE FILE ===

ShortLinks/GT-Sitemap.php

=== WITH THESE URLIN/URLOUT ===

Code:

$urlin = array(
'"(?<!/)modules.php\?name=Forums&amp;file=viewtopic&amp;t=([0-9]*)&amp;mode=&amp;order=0&amp;thold=0"',
'"(?<!/)modules.php\?name=Forums&amp;file=viewtopict=([0-9]*)"',
'"(?<!/)modules.php\?name=News&amp;file=article&amp;sid=([0-9]*)&amp;mode=&amp;order=0&amp;thold=0"',
'"(?<!/)modules.php\?name=News&amp;file=article&amp;sid=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=getit&amp;lid=([0-9]*)"',
'"(?<!/)modules.php\?name=Surveys&amp;op=results&amp;pollID=([0-9]*)"',
'"(?<!/)modules.php\?name=Encyclopedia&amp;op=content&amp;tid=([0-9]*)"',
'"(?<!/)modules.php\?name=Encyclopedia&amp;op=list_content&amp;eid=([0-9]*)"',
'"(?<!/)modules.php\?name=FAQ&amp;myfaq=yes&amp;id_cat=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&amp;pa=showpage&amp;pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Web_Links&amp;l_op=viewlink&amp;cid=([0-9]*)"'
);

$urlout = array(
'ftopict-\\1.html',
'ftopict-\\1.html',
'article\\1.html',
'article\\1.html',
'download-file-\\1.html',
'survey-results-\\1.html',
'encyclopedia-\\1.html',
'encyclopedia-list-\\1.html',
'faq-\\1-.html',
'content-\\1.html',
'link-\\1.html'
);


=== CREATE FILE ===

ShortLinks/GT-SitemapGoogle.php

=== WITH THESE URLIN/URLOUT ===

Code:

$urlin = array(
'"modules.php\?name=News&amp;file=article&amp;sid=([0-9]*)&amp;mode=&amp;order=0&amp;thold=0"',
'"modules.php\?name=News"',
'"modules.php\?name=Content&amp;pa=showpage&amp;pid=([0-9]*)"',
'"modules.php\?name=Content"',
'"modules.php\?name=Downloads&amp;op=getit&amp;lid=([0-9]*)"',
'"modules.php\?name=Downloads"',
'"modules.php\?name=Forums&amp;file=viewtopic&amp;t=([0-9]*)&amp;mode=&amp;order=0&amp;thold=0"',
'"modules.php\?name=Forums"',
'"modules.php\?name=Surveys&amp;op=results&amp;pollID=([0-9]*)"',
'"modules.php\?name=Surveys"',
'"modules.php\?name=Encyclopedia&amp;op=content&amp;tid=([0-9]*)"',
'"modules.php\?name=Encyclopedia&amp;op=list_content&amp;eid=([0-9]*)"',
'"modules.php\?name=Encyclopedia"',
'"modules.php\?name=FAQ&amp;myfaq=yes&amp;id_cat=([0-9]*)"',
'"modules.php\?name=FAQ"',
'"modules.php\?name=Web_Links&amp;l_op=viewlink&amp;cid=([0-9]*)"',
'"modules.php\?name=Web_Links"'
);

$urlout = array(
'article\\1.html',
'news.html',
'content-\\1.html',
'content.html',
'download-file-\\1.html',
'downloads.html',
'ftopict-\\1.html',
'forums.html',
'survey-results-\\1.html',
'surveys.html',
'encyclopedia-\\1.html',
'encyclopedia-list-\\1.html',
'encyclopedia.html',
'faq-\\1-.html',
'faq.html',
'link-\\1.html',
'links.html'
);


=== OPEN FILE ===

modules/Sitemap/index.php

=== FIND CODE ====

Code:

switch ($op){
  case 'Google':
    header('Content-Type:text/xml');


=== REPLACE WITH ===

Code:

switch ($op){
  case 'Google':
    //Added by montego from http://montegoscripts.com for TegoNuke(tm) ShortLinks
    global $tnsl_bUseShortLinks, $tnsl_bAutoTapBlocks, $tnsl_bDebugShortLinks, $tnsl_sGTFilePath;
    if (defined('TNSL_USE_SHORTLINKS')) {
        $_REQUEST['name'] = 'SitemapGoogle';
        $GLOBALS['tnsl_asGTFilePath'] = tnsl_fPageTapStart();
    }
    //Done add
    header('Content-Type:text/xml');


=== FIND CODE ===

Code:

    echo "\n</urlset>";
    break;


=== REPLACE WITH ===

Code:

    echo "\n</urlset>";
    //Added by montego from http://montegoscripts.com for TegoNuke(tm) ShortLinks
    if (defined('TNSL_USE_SHORTLINKS')) {
        tnsl_fPageTapFinish();
    }
    //Done add
    break;



=== YOU ARE DONE!!! ===

Enjoy, and Happy Thanksgiving!

Edited on 9-May-2007 by montego - updated the GT statements based on what I have running on this site here.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins

Last edited by montego on Thu May 10, 2007 12:02 am; edited 1 time in total 
View user's profile Send private message Visit poster's website
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 397

PostPosted: Thu Nov 23, 2006 4:12 am Reply with quote

Awsome - Happy Thanks Giving!!!!
Thank you very much!!!!!
I'll get this set up ready so as soon as the NSN GR Downloads is available I'm good to go woohoo.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Nov 23, 2006 10:09 am Reply with quote

It's already ready my friend. Wink Check out the new download gift...

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins

Last edited by montego on Sat Nov 25, 2006 11:14 pm; edited 1 time in total 
View user's profile Send private message Visit poster's website
Misha
Newbie
Newbie



Joined: Oct 05, 2006
Posts: 15

PostPosted: Sat Nov 25, 2006 3:19 pm Reply with quote

It works like a charm! Very Happy
Thanks a million, montego! Smile

_________________
www dot funandsafedriving dot com - My safe driving site 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Nov 25, 2006 11:17 pm Reply with quote

You are most welcome. Just glad that I already had it installed here. Just made it fairly quick and easy to get it into a download.

_________________
“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
kguske
Community Giant



Joined: Dec 11, 2005
Posts: 32

PostPosted: Wed May 09, 2007 11:39 pm Reply with quote

OK - I'm coming around on short links...Smile I'll explain the details after I complete the research and analysis, but I'd like to test the tapped sitemap. I couldn't find a download - is the code above current?

_________________
nukeSEO.com - PHPNuke SEO search engine optimization and other professional tools for PHP-Nuke 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu May 10, 2007 12:03 am Reply with quote

Kguske, I have just updated the GT statements based upon what I am using here on this site. Not sure why I had to change them, but I would take these as the latest. (See above.)

_________________
“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
kguske
Community Giant



Joined: Dec 11, 2005
Posts: 32

PostPosted: Thu May 10, 2007 12:10 am Reply with quote

Thanks. Several concurrent projects, and I'll be traveling next week, but as soon as I complete the analysis, I'll follow up with you. Cheers!

_________________
nukeSEO.com - PHPNuke SEO search engine optimization and other professional tools for PHP-Nuke 
View user's profile Send private message
pezzer1
Newbie
Newbie



Joined: Nov 26, 2007
Posts: 22

PostPosted: Fri Nov 30, 2007 12:09 pm Reply with quote

This seems like the latest information on this topic even though it's from May of 2007...

To continue from this topic...

I noticed my Sitemap isn't tapped as yours is, so I put it this tap as listed in this thread...

I think I did it correctly, but my sitemap page is now broken - I get the following text at the top of the page.
$urlin = array( '"(?Sitemap ©

I'm not very good with PHP, so I have no clue what's wrong. One thing I noticed is the two files, GT-Sitemap.php and GT-SitemapGoogle are formatted differently, the first starts like this...

Code:
$urlin = array(
'"(?<!/)modules.php\?name=


The Google one starts like this...
Code:
$urlin = array(
'"modules.php\?name=


Identical except for the ( ? < ! / ) - Is this by design or is the Google one missing an important string?
 
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-bunchlinear-bunch