RSS 2.0
Browse posts:
Unanswered |
Mark all read
| Author | Message | ||||
|---|---|---|---|---|---|
|
viewsource Nucleus Newbie Joined: 18 Feb 2006 Posts: 6 |
darn school-work! thanks ketsugi, it's good to hear about the plugin! for now, i've put my Nucleus experimentatin on hold. After playing around w/ it for a while, i decided i really like it. I have experience w/ b2ev and WP's, and as anyone who's tried them would likely testify, Nucleus is indeed most unique. What i want to do w/ this particular 'blog is to log my web app development notes-- nothing specific, and in no specific order-- heck, i guess that's largely the point of a web log-- the ability to let it do the categorization for you! so, the reason i've been concerned about the "Fancy URL's" is that i was thinking that this blog may turn out to be a useful "pocket dictionary" kind of reference for others who might be looking for quick little bits of code / scripts, etc to solve any of a number of particular development tasks. i don't know how considerable a difference there is to having the default URL vs the "tagged" or "Fancy" Url's, but whatever will make it more likely to show up as something potentially helpful for anyone else-- that's what will make me most happy. haha-- it's probably quite a fantastic thought to imagine someone might actually stumble upon one of MY log entries and find it to be useful, but i guess ya never know. _________________ CSS Beginner? Try my brief overview: Using CSS for Styling HTML Documents |
||||
|
|
|||||
|
wmmyg Nucleus Newbie Joined: 09 Feb 2006 Posts: 10 Location: Scotland |
Oh, good point! Here's my .htaccess RewriteEngine On RewriteRule ^member/(.*) index.php?arr=member/$1 RewriteRule ^item/(.*) index.php?arr=item/$1 RewriteRule ^category/(.*) index.php?arr=category/$1 RewriteRule ^blog/(.*) index.php?arr=blog/$1 RewriteRule ^archive/(.*) index.php?arr=archive/$1 RewriteRule ^archives/(.*) index.php?arr=archives/$1 --- also index.php <?php $requestvars = $_GET["arr"]; $request_arr = explode("/", $requestvars); if ($request_arr[0] == "item") { $_GET["itemid"] = $request_arr[1]; $firsti = 2; } elseif ($request_arr[0] == "member") { $_GET["memberid"] = $request_arr[1]; $firsti = 2; } elseif ($request_arr[0] == "category") { $_GET["catid"] = $request_arr[1]; $firsti = 2; } elseif ($request_arr[0] == "blog") { $_GET["blogid"] = $request_arr[1]; $firsti = 2; } elseif ($request_arr[0] == "archive") { $_GET["blogid"] = $request_arr[1]; $_GET["archive"] = $request_arr[2]; $firsti = 3; } elseif ($request_arr[0] == "archives") { $_GET["archivelist"] = $request_arr[1]; $firsti = 2; } $xflag = true; for ($i = $firsti; $i < count($request_arr); $i++) { if ($xflag == true) { $j = $i + 1; $_GET[$request_arr[$i]] = $request_arr[$j]; $xflag = false; } elseif ($xflag == false) { $xflag = true; } } // This file will generate and return the main page of the site $CONF = array(); $CONF['Self'] = 'http://www.iwp.net'; include('./config.php'); selector(); ?> ---- Thanks in advance Legolas.... William _________________ William: http://www.iwp.net |
||||
|
|
|||||
|
Legolas Nucleus Guru ![]() Joined: 31 Jan 2004 Posts: 813 Location: Woerden, Nederland |
Ok, how about making .htaccess this way:
and you articles.php something like:
does that work? |
||||
|
|
|||||
|
wmmyg Nucleus Newbie Joined: 09 Feb 2006 Posts: 10 Location: Scotland |
Nope...same result, no entries show for the archive... But, I am beginning to suspect the problem is not with fancyurls and must be somewhere else. After all, I am not getting a 'page not found' error or something that would indicate that the rewrite was going to the wrong place. It is showing my the correct text 'This is the archive for February 2006'., but just not showing any entries. I think I'll switch off fancyurls for a while, till I am sure my site is behaving right with mutiple blogs, then try fancyurls on again at a later date. Many thanks for your help... Regards, William _________________ William: http://www.iwp.net |
||||
|
|
|||||
|
Legolas Nucleus Guru ![]() Joined: 31 Jan 2004 Posts: 813 Location: Woerden, Nederland |
take a look: http://www.iwp.net/articles/archive/1/2006-02 and http://www.iwp.net/archive/1/2006-02 |
||||
|
|
|||||
|
wmmyg Nucleus Newbie Joined: 09 Feb 2006 Posts: 10 Location: Scotland |
Thanks, there correct items are showing now so nearly there... Only thing is that with fancyurls switched on in Global Settings, the fancyurls only appear as links in my first blog, but not on any other one. All the blogs are currently using the same skin, so its not a skin issue. links from my main blog are like this: http://www.iwp.net/archive/1/2006-02 Links from my articles blog are like this: http://www.iwp.net/articles.php?blogid=2&archive=2006-02 The links go to the correct items, categories, archive etc., but for anything other than the first blog they are not fancy... I realise that this is not a problem caused by the fancyurl plugin, but any help would be much appreciated. Cheers, William _________________ William: http://www.iwp.net |
||||
|
|
|||||
|
Legolas Nucleus Guru ![]() Joined: 31 Jan 2004 Posts: 813 Location: Woerden, Nederland |
to activate this in the blog settings change the url so that it is http://www.iwp.net/articles/ and turn on fancy urls |
||||
|
|
|||||
|
0wn4g3 Nucleus Fan Joined: 05 May 2006 Posts: 25 |
Would you care to elaborate on which template you edited to find that piece of code? I too am experiencing this issue with the ALL CATEGORIES link. |
||||
|
|
|||||
|
ketsugi Nucleus Professional ![]() Joined: 14 Jan 2005 Posts: 801 Location: Singapore |
I'm having a problem getting categories to work... I have this code in my c.php file (which is what the .htaccess calls for a category link)
But as you can see from this link, it doesn't work. I've verified (using that commented-out line) that the $catid variable is set properly. I'm pretty sure I've come across this problem before, and I'm also pretty sure someone posted a solution to this, but I can't remember what that solution is. I've tried setting $blogid, but that only results in Nucleus thinking it's a search page (because of $query). _________________ The Panegyrist
|
||||
|
|
|||||
|
Legolas Nucleus Guru ![]() Joined: 31 Jan 2004 Posts: 813 Location: Woerden, Nederland |
First I'd like to warn you, because here you've created a big MySQL injection problem. Since the category selection uses the default blog here you may want to see if that is the right blog and you should alter your query's WHERE clause to only look for that blog. |
||||
|
|
|||||
|
All times are GMT + 1 Hour
You cannot post new topics in this forum |
|||||