Discussion in "E107 FURL Support" started by    moggiex    Jun 9, 2007.
Sat Jun 09 2007, 02:01 pm
#1
A kind request for the FURL support for User Journals:

Reason:
This plugin allows users of the site to create thier own 'blogs' and with the www moving towards more community based sites and ideas, having the abilty to have your using blogging is a perfect one!

Plugin Download:
http://ccgi.bugrain.plus.com/bugrain/download.php?view.65

Suggested format:
http://www.afterbuy.co.uk/e107_plugins/userjournals_menu/userjournals.php
to
http://www.afterbuy.co.uk/blog/blog.html

Matt

Sat Jun 09 2007, 05:33 pm
#2
here is what you need to add to make it compatible... in e_module.php where array replacement and patterns ends.. there you have to paste these lines.

//considering array ends at 40

$patterns[41] = '/e107_plugins\/userjournals_menu\/userjournals\.php\?allblogs/';
$replacements[41] = 'blogs-all.html';

$patterns[42] = '/e107_plugins\/userjournals_menu\/userjournals\.php\?allcats/';
$replacements[42] = 'blogs-allcatagories.html';

$patterns[43] = '/e107_plugins\/userjournals_menu\/userjournals\.php\?add/';
$replacements[43] = 'blogs-add.html';

$patterns[44] = '/e107_plugins\/userjournals_menu\/userjournals\.php\?synopsis/';
$replacements[44] = 'blogs-synopsis.html';

$patterns[45] = '/e107_plugins\/userjournals_menu\/userjournals\.php/';
$replacements[45] = 'blogs.html';

$patterns[46] = '/e107_plugins\/userjournals_menu\/userjournals\.php\?blogger\.([0-9]+)\.([0-9]+)/';
$replacements[46] = 'blogger-$1-$2.html';

$patterns[47] = '/e107_plugins\/userjournals_menu\/userjournals\.php\?blogger\.([0-9]+)/';
$replacements[47] = 'blogger-$1.html';

$patterns[48] = '/e107_plugins\/userjournals_menu\/userjournals\.php\?blog\.([0-9]+)/';
$replacements[48] = 'userblog-$1.html';

$patterns[49] = '/e107_plugins\/userjournals_menu\/userjournals\.php\?cat\.([0-9]+)/';
$replacements[49] = 'blogcatagory-$1.html';

same part of the code above has to be added into sitelinks.sc now comes to .htaccess add these lines of code.. at the end of htaccess

RewriteRule blogs.html e107_plugins/userjournals_menu/userjournals.php
RewriteRule blogs-all.html e107_plugins/userjournals_menu/userjournals.php?allblogs RewriteRule blogs-allcatagories.html e107_plugins/userjournals_menu/userjournals.php?allcats
RewriteRule blogs-add.html e107_plugins/userjournals_menu/userjournals.php?add RewriteRule blogs-synopsis.html e107_plugins/userjournals_menu/userjournals.php?synopsis
RewriteRule blogger-([0-9]*)-([0-9]*)\.html e107_plugins/userjournals_menu/userjournals.php?blogger.$1.$2
RewriteRule blogger-([0-9]*)\.html e107_plugins/userjournals_menu/userjournals.php?blogger.$1
RewriteRule userblog-([0-9]*)\.html e107_plugins/userjournals_menu/userjournals.php?blog.$1
RewriteRule blogcatagory-([0-9]*)\.html e107_plugins/userjournals_menu/userjournals.php?cat.$1

test and tell me


[ Edited Wed Jun 13 2007, 06:53 pm ]
Sun Jun 10 2007, 02:15 am
#3
editing now!
Sun Jun 10 2007, 02:21 am
#4
OMG, sweet as:

http://www.afterbuy.co.uk/blogs-all.html

Taking note that the top section of the blog is actually hard coded in, using the left hand menu when logged in works a treat.

Many thanks!!!

Now to try and understand what you've done and do it for some of the other plugins as well!

Matt
Sun Jun 10 2007, 02:49 am
#5
OoO just installed the 'forum thanks plugin' at http://www.e107coders.org/download.php?view.1613 as I noticed you had it running on your site [oh dear, her we go again lol, but I see it exists already], any chance of the code to re-rewroite the URL's for that plugin too?
Sun Jun 10 2007, 07:05 pm
#6
try yourself..
Sun Jun 10 2007, 07:07 pm
#7
and one more thing...
change the code a little bit...
put this part of the code at the end...
$patterns[45] = '/e107_plugins\/userjournals_menu\/userjournals\.php/';
$replacements[45] = 'blogs.html';

at the end means... make the above array element as 49 instead of 45.... see more magic...
Mon Jun 11 2007, 03:52 pm
#8

try yourself..

Rickey



Oh you mean like this?

http://www.afterbuy.co.uk/Counter-Strike-Source-Servers.html

Or

http://www.afterbuy.co.uk/Counter-Strike-Source-Server-Settings-1.html

Or even

http://www.afterbuy.co.uk/Counter-Strike-Source-Server-Players-1.html

Think I got the hang of it now =P

Matt

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am
ArnoldDiant
Fri Apr 26 2024, 03:53 am
RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm