Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke
Author Message
thoth
Hangin' Around



Joined: Oct 15, 2006
Posts: 28

PostPosted: Wed Jul 01, 2009 4:09 am Reply with quote

Please help me guys. I was that desperate I offered cash to Montego for this, forgetting what a busy guy he is.

I've installed and got working the new phpbb3 module from nukekorea.net which is awesome.

The links are obviously different from those in the phpbb2 module, and my site has tapped links for those. What I'm wanting to do is tap the new links so that they're the same as the old links. For search engine reasons, and to make sure all the links posted in threads still point to the right posts.

I've had limited success, given that the new links include an f parameter for the forum the post will be going in. My problem seems to be that some of the taps are giving odd results, and I don't know why.

The first four entries I've got are

Code:
'"(?<!/)modules.php\?name=phpBB3&amp;file=viewforum&amp;f=([0-9]*)&amp;start=([0-9]*)"',


'"(?<!/)modules.php\?name=phpBB3&amp;file=viewforum&amp;f=([0-9]*)"',

'"(?<!/)modules.php\?name=phpBB3&amp;file=viewtopic&amp;f=([0-9]*)&amp;t=([0-9]*)"',

'"(?<!/)modules.php\?name=phpBB3&amp;file=viewtopic&amp;f=([0-9]*)&amp;t=([0-9]*)&amp;p=([0-9]*)"',




With the urlout entries as follows..

Code:
'forum-\\1-days0-\\3.html',


'forum-\\1.html',

'ftopict-\\2.html',

'ftopicp-\\2.html#\\2',


The first three links match and work fine the fourth gives a link like this..

ftopicp-154856.html#154856#p15486

I'm having problems with other links too, can anyone help me with these. I can do so much myself, but this regex stuff fries my brain. I've tried putting the big links at the top where they're similar to other links, but nothing seems to work.
 
View user's profile Send private message Visit poster's website
thoth







PostPosted: Wed Jul 01, 2009 4:18 am Reply with quote

Forgot to add the links I'm tapping

a) modules.php?name=phpBB3&file=viewforum&f=1 - View Forum
b) modules.php?name=phpBB3&file=viewforum&f=10&start=35 - View Particular forum second page of topics

(start=70 shows second page etc)

1) modules.php?name=phpBB3&file=viewtopic&f=1&t=20928 - view topic
2) modules.php?name=phpBB3&file=viewtopic&f=1&t=20928&p=233831#p233831 - view last post
3) modules.php?name=phpBB3&file=memberlist&mode=viewprofile&u=4658 - view member profile

4) modules.php?name=phpBB3&file=posting&mode=post&f=10 - New Topic for forum 10 (f=10)

5) modules.php?name=phpBB3&file=viewtopic&f=10&t=19444&start=0 - First page of thread
modules.php?name=phpBB3&file=viewtopic&f=10&t=19444&start=30 - Second Page

I have them working except for 5) and 2) I've actually tapped more than is in this list, but these are the ones I'm stuck on.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Jul 07, 2009 5:27 pm Reply with quote

thoth, I think that you have made progress already on these right?

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
thoth







PostPosted: Fri Jul 10, 2009 11:59 am Reply with quote

I sure have, sorry for the delay in posting. Once I've tested them I'll be posting my shortlinks entry for anyone else wanting it.

Thanks for your help in understanding them Montego Smile
 
montego







PostPosted: Sat Jul 11, 2009 4:15 pm Reply with quote

No problem. Any time. If you need any other assistance, do not hesitate to ask.

Also, if you would not mind, I'd love for you to post the taps in my Only registered users can see links on this board! Get registered or login! forum along with all the other great submissions from community members?

Thanks and regards,
montego
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©