| Author |
Message |
pezzer1
Newbie


Joined: Nov 26, 2007
Posts: 22
|
Posted:
Fri Nov 30, 2007 12:15 pm |
|
One more thing - there was mention of a download on NSN - I guess it's there, but I can't find it for the life of me... |
| |
|
|
 |
pezzer1
Newbie


Joined: Nov 26, 2007
Posts: 22
|
Posted:
Fri Nov 30, 2007 12:26 pm |
|
I don't guess that code is the problem - I changed the google one to match the other one with the same issue.
I did it again from scratch thinking I did something wrong (I'm still not ruling that out) but I got the same result.
If you want to look at it, it's here
On another note, the link TO the sitemap isn't tapped either - I guess that's related |
| |
|
|
 |
pezzer1
Newbie


Joined: Nov 26, 2007
Posts: 22
|
Posted:
Fri Nov 30, 2007 3:16 pm |
|
Figured it out - It was me doing something wrong. I didn't open and close the file with a < ? p h p > tag...
Sorry for all the posts on that - So I will end with this one. Good work on that tap.  |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Fri Nov 30, 2007 7:11 pm |
|
Too funny... I am only on-line at most 2 times per day during the week and was concerned when I saw all these post.
No worries. I am glad you figured it out. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
pezzer1
Newbie


Joined: Nov 26, 2007
Posts: 22
|
Posted:
Tue Dec 04, 2007 1:12 pm |
|
I've been kind of an overposter lately - Posting before trying to figure it out on my own, but this one I just can't figure out.
I finally got the sitemap taps themselves working, but my links to the sitemap itself won't shorten.
Your sitemap is listed at you.com/sitemap.html
Mine is still mysite.com/modules.php?name=Sitemap
Even when I just type that in, it doesn't list as a valid page.
For the Google sitemap, I don't know exactly what it shortens to, but mine still is mysite.com/modules.php?name=Sitemap&op=Google
What do I mod to get these links to work?
Thanks- |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Tue Dec 04, 2007 8:17 pm |
|
I can only speak to my site since you have not provided a URL where we can see your site...
My site menu is Sommaire, so within my GTB-block-Sommaire.php file, I have the "tap" to take mysite.com/modules.php?name=Sitemap down to mysite.com/sitemap.html. Then, of course, I had to add the corresponding .htaccess line to expand it back out.
I suspect that you might be able to do the same if you are using the standard modules block? Say, in GTB-block-Modules.php?
As for the Google Sitemap, since I have no other link to this on my site, there is no need to "tap" it. So, I just submitted to google this as the link:
modules.php?name=Sitemap&op=Google |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
spasticdonkey
Newbie


Joined: Sep 05, 2007
Posts: 77
|
Posted:
Wed Dec 05, 2007 2:49 pm |
|
Did you make changes to the content/Downloads.php for this googletap?
I noticed on your sitemap that the links went to
download-file-XX.html
yet mine go to view download details which arent translating correctly....
oh ya, and where/how do i get the weblinks addon? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Wed Dec 05, 2007 7:31 pm |
|
| Quote: |
Did you make changes to the content/Downloads.php for this googletap?
I noticed on your sitemap that the links went to
download-file-XX.html |
Keep in mind that I am running NSN GR Downloads on this site, so the links are slightly different.
| Quote: |
| oh ya, and where/how do i get the weblinks addon? |
Not sure what you are referring to here. I use the basic Web Links module. CAn you give me a URL of the page you are asking about?
-------
Also, might be good to provide a link to your web site so I can take a look at the issues you are referring to. Feel free to PM me the link if you do not wish for that to be made public. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Wed Feb 27, 2008 9:12 pm |
|
Ok, my original post of statements works with the NSN GR Downloads module. To make it work with either one, replace what I have above with this:
=== OPEN FILE ===
ShortLinks/GT-Sitemap.php
=== REPLACE WITH ===
| Code: |
$urlin = array(
'"(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&mode=&order=0&thold=0"',
'"(?<!/)modules.php\?name=Forums&file=viewtopict=([0-9]*)"',
'"(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)&mode=&order=0&thold=0"',
'"(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&d_op=viewdownloaddetails&ttitle=([/:\-\'{}()\,\._&a-zA-Z0-9+= ]*)&lid=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&op=getit&lid=([0-9]*)"',
'"(?<!/)modules.php\?name=Surveys&op=results&pollID=([0-9]*)"',
'"(?<!/)modules.php\?name=Encyclopedia&op=content&tid=([0-9]*)"',
'"(?<!/)modules.php\?name=Encyclopedia&op=list_content&eid=([0-9]*)"',
'"(?<!/)modules.php\?name=FAQ&myfaq=yes&id_cat=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&pa=showpage&pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)"'
);
$urlout = array(
'ftopict-\\1.html',
'ftopict-\\1.html',
'article\\1.html',
'article\\1.html',
'downloadview-details-\\2.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'
);
|
Of course, you must replace the like-kind code, not the entire file.
=== OPEN FILE ===
ShortLinks/GT-SitemapGoogle.php
=== REPLACE WITH ===
| Code: |
$urlin = array(
'"modules.php\?name=News&file=article&sid=([0-9]*)&mode=&order=0&thold=0"',
'"modules.php\?name=News"',
'"modules.php\?name=Content&pa=showpage&pid=([0-9]*)"',
'"modules.php\?name=Content"',
'"modules.php\?name=Downloads&d_op=viewdownloaddetails&ttitle=([/:\-\'{}()\,\._&a-zA-Z0-9+= ]*)&lid=([0-9]*)"',
'"modules.php\?name=Downloads&op=getit&lid=([0-9]*)"',
'"modules.php\?name=Downloads"',
'"modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&mode=&order=0&thold=0"',
'"modules.php\?name=Forums"',
'"modules.php\?name=Surveys&op=results&pollID=([0-9]*)"',
'"modules.php\?name=Surveys"',
'"modules.php\?name=Encyclopedia&op=content&tid=([0-9]*)"',
'"modules.php\?name=Encyclopedia&op=list_content&eid=([0-9]*)"',
'"modules.php\?name=Encyclopedia"',
'"modules.php\?name=FAQ&myfaq=yes&id_cat=([0-9]*)"',
'"modules.php\?name=FAQ"',
'"modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)"',
'"modules.php\?name=Web_Links"'
);
$urlout = array(
'article\\1.html',
'news.html',
'content-\\1.html',
'content.html',
'downloadview-details-\\2.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 ===
.htaccess
=== ADD AFTER #Download ===
| Code: |
RewriteRule ^downloadview-(comments|details|editorial)-([0-9]*).html modules.php?name=Downloads&d_op=viewdownload$1&lid=$2 [L]
|
=== DONE ===
Hope this helps someone. |
| |
|
|
 |
stalks
Newbie


Joined: Nov 11, 2008
Posts: 4
|
Posted:
Sat Nov 15, 2008 8:24 am |
|
Hi, I just made the changes oultlined above and I am now getting the following error:
$urlin = array( '"(? Warning: preg_replace() [function.preg-replace]: Empty regular expression in /home/******/public_html/html/includes/tegonuke/shortlinks/shortlinks.php on line 209
Lind 209 is as follows:
$nextGenContent = preg_replace($urlin, $urlout, $nextGenContent);
I'm using:
RavenNuke v2.30.00
NukeSentinel v2.6.01
BBtoNuke (phpBB) v2.0.23
NSN GR Downloads 121
TN_ShortLinks_NSN_GR_Downloads_010202 Patched and Captcha enabled
Any idea as to why this might be happening?
Regards
StalkS |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1360
|
Posted:
Sat Nov 15, 2008 8:34 am |
|
You have made an error in your replacement of the lines. Did you by chance not see this comment here:
| Quote: |
Of course, you must replace the like-kind code, not the entire file.
|
Just wondering if that is it.
In addition, which one is not working? There is the regular HTML site map and then the Google sitemap. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
stalks
Newbie


Joined: Nov 11, 2008
Posts: 4
|
Posted:
Thu Jan 29, 2009 9:39 am |
|
montego,
Apologies for not replying for over two months. For some reason I did not get notified regarding your last response.
To clarify I am using your script from the first page of this post, the one for NSN Downloads. Yet I am still receiving the error previously mentioned.
If delete GT-Sitemap.php the error message disappears and some short link functionality is seen under the Sitemap section. However, Sitemap itself does not list as html nor do the following sections under the sitemap:
- News
- Forums
Polls and Encyclopaedia show with the .html extensions.
Regards
StalkS |
| |
|
|
 |
zacklk
Newbie


Joined: Mar 20, 2010
Posts: 35
|
Posted:
Wed Mar 24, 2010 2:29 pm |
|
i have one problem if i have "[some name]" without site map display the long url. is there anyway to fix this. in my downloads and download block shows this fine. only problem in the site map. |
| |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 387
|
Posted:
Wed Mar 24, 2010 3:11 pm |
|
| zacklk wrote: |
| i have one problem if i have "[some name]" without site map display the long url. is there anyway to fix this. in my downloads and download block shows this fine. only problem in the site map. |
No idea as you'll need to be more specific but from what you have said, it sounds like it's an issue with the sitemap and not with Shortlinks.
The sitemap can only build links with information it has available to it. If your 'some name' is not in a variable that can be accessed by the sitemap tool then it cannot use it.
Does that make any sense? |
| |
|
|
 |
zacklk
Newbie


Joined: Mar 20, 2010
Posts: 35
|
Posted:
Wed Mar 24, 2010 3:26 pm |
|
I mean if i use these characters [ ] and & it gives a long link all others give me the short links in my downloads. only problem if i use those above mention characters.
Ex:
Song Name [Remix]
and
Song Name - Artist name & Other Artist Name |
| |
|
|
 |
|
|