Montego Scripts: Forums
 

 

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



Joined: Nov 26, 2007
Posts: 22

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

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



Joined: Nov 26, 2007
Posts: 22

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

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



Joined: Nov 26, 2007
Posts: 22

PostPosted: Fri Nov 30, 2007 3:16 pm Reply with quote

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. Wink
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1393

PostPosted: Fri Nov 30, 2007 7:11 pm Reply with quote

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. Laughing

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



Joined: Nov 26, 2007
Posts: 22

PostPosted: Tue Dec 04, 2007 1:12 pm Reply with quote

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-
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1393

PostPosted: Tue Dec 04, 2007 8:17 pm Reply with quote

I can only speak to my site since you have not provided a URL where we can see your site... Wink

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



Joined: Sep 05, 2007
Posts: 77

PostPosted: Wed Dec 05, 2007 2:49 pm Reply with 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

yet mine go to view download details which arent translating correctly.... Sad

oh ya, and where/how do i get the weblinks addon?
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1393

PostPosted: Wed Dec 05, 2007 7:31 pm Reply with quote

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.
 
View user's profile Send private message Visit poster's website
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1393

PostPosted: Wed Feb 27, 2008 9:12 pm Reply with quote

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&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;d_op=viewdownloaddetails&amp;ttitle=([/:\-\'{}()\,\._&a-zA-Z0-9+= ]*)&amp;lid=([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',
'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&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;d_op=viewdownloaddetails&amp;ttitle=([/:\-\'{}()\,\._&a-zA-Z0-9+= ]*)&amp;lid=([0-9]*)"',
'"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',
'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.
 
View user's profile Send private message Visit poster's website
stalks
Newbie
Newbie



Joined: Nov 11, 2008
Posts: 4

PostPosted: Sat Nov 15, 2008 8:24 am Reply with quote

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
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1393

PostPosted: Sat Nov 15, 2008 8:34 am Reply with quote

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



Joined: Nov 11, 2008
Posts: 4

PostPosted: Thu Jan 29, 2009 9:39 am Reply with quote

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



Joined: Mar 20, 2010
Posts: 35

PostPosted: Wed Mar 24, 2010 2:29 pm Reply with quote

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



Joined: Jul 18, 2005
Posts: 401

PostPosted: Wed Mar 24, 2010 3:11 pm Reply with quote

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



Joined: Mar 20, 2010
Posts: 35

PostPosted: Wed Mar 24, 2010 3:26 pm Reply with quote

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
 
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 ©