Discussion in "E107 FURL Support" started by    oxus    Apr 24, 2008.
Thu Apr 24 2008, 11:02 am
#1
Hy, I use furl on my site.
I find next problem when I use [newpage] shortcode on a content page:

on the original php is like this:
  • e107_plugins/content/content.php?content.xxx

and nextpage is
  • e107_plugins/content/content.php?content.xxx.1

with furl the next page is like this:
  • http://yoursite.com/contentxxx.html.1


is not woking


[ Edited Fri Apr 25 2008, 09:31 am ]
Thu Apr 24 2008, 02:02 pm
#2
hmm... make these changes in the e_module.php and sitelinks.sc file

//edit number 14 to this.. 
$patterns[14] = '/e107_plugins\/content\/content.php\?content\.([0-9]+)\.([0-9]+)/';
$replacements[14] = 'content$1-p$1.html';

//append this at the end of all pattern and replacement arrays
$patterns[14] = '/e107_plugins\/content\/content.php\?content\.([0-9]+)/';
$replacements[14] = 'content$1.html';


add the following to .htaccess file where content part is written

RewriteRule content([0-9]*)-p([0-9]*)\.html(.*)$ e107_plugins/content/content.php?content.$1.$2 [L]


Please give feedback after youdone this..
Fri Apr 25 2008, 06:11 am
#3
I having some problem to get this to work. Is it possible for you to add this changes int the files and publish the files here on the forum?

Kind regards
mankan
Fri Apr 25 2008, 10:15 am
#4
@Ajay, thank you for your fast support!
I tried your code: is not working.
If I use your code the output is like this: contentxxx-pxxx.html (content232-p232.html) .

For a live example of my problem see this page( BTW: same problem in page.html):
http://subiectiv.com/page47.html

Thank you!


[ Edited Fri Apr 25 2008, 10:16 am ]
Fri Apr 25 2008, 04:17 pm
#5
output is perfect... so it should work.. can you tell me whats the error you are getting?

also do the same with page.php make the changes as you did for content.php
Tue Apr 29 2008, 04:09 pm
#6


output is perfect... so it should work.. can you tell me whats the error you are getting?

Ajay



is not working :
if I get
  • http://mysite.com/contentxxx-p1.html
is ok but if I get
  • http://mysite.com/contentxxx-pxxx.html
is not

in this page , like this:
http://subiectiv.com/page47.html , your code give me a output like this http://subiectiv.com/page47-p47.html and this not work


[ Edited Wed Apr 30 2008, 04:33 am ]
Mon May 05 2008, 10:41 am
#7
I got it to work, i also made all my plugins to work on furl Great plugin. It takes some time to configure... but still it's working. About the content page:

Ajay i found bug in your code

Changes in e_module.php and sitelinks.sc files

// use this instead
$patterns[14] = '/e107_plugins\/content\/content.php\?content\.([0-9]+)\.([0-9]+)/';
$replacements[14] = 'content$1-$2.html';

//append this at the end of all pattern and replacement arrays
$patterns[14] = '/e107_plugins\/content\/content.php\?content\.([0-9]+)/';
$replacements[14] = 'content$1.html';


And .htaccess file:

RewriteRule content([0-9]*)-([0-9]*)\.html(.*)$ e107_plugins/content/content.php?content.$1.$2 [L]


Just tell me if something not working


[ Edited Mon May 05 2008, 10:43 am ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Clydehet
Wed May 01 2024, 06:44 pm
Davidoried
Wed May 01 2024, 06:11 pm
KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am