1 mhico008 Oct 06, 2008 15:28
3 mhico008 Oct 06, 2008 16:36
ok thnx thnx but i think i made it. I just change the url option to cat/=blog 123....
Thnx anyways ^^
4 mhico008 Oct 07, 2008 13:38
BUMP!!! can i open this thread again. I still have problems with this. If anyone is interested in helping please post in here then i will put the full details about my problem. Thank you.
5 slamp Oct 07, 2008 14:40
@mhico008: first describe your problem, then we will try to help you. And please edit thread's title.
6 mhico008 Oct 07, 2008 15:09
Ok Ok. I will also put the problem in my next post. Please wait .
7 mhico008 Oct 07, 2008 15:12
Ok here is my site.
http://www.animedepot.site50.net/
Kindly visit it first. Whenever i choose this option as my category url.
Use extra-path: category pathE-g: http://www.animedepot.site50.net/cat/subcat/
This happens, try to click any of my categories. I always lands on error lander.
8 yabba Oct 07, 2008 15:15
Admin > blog settings > [blog name] > urls > select everything that mentions "use ID's" and deselect anything that says "use extra path"
¥
9 mhico008 Oct 07, 2008 15:25
yeah if i use that it is working but as you can see i like that every time someone go to www.animedepot.site50.net he will be redirected in www.animedepot.site50.net/home/ (the homepage). I can do it in my cpanel in my server. I use this method when i am still using 2.4.1 but when i upgraded i can't use this anymore.
If i redirected www.animedepot.site50.net to www.animedepot.site50.net/?=16/ which is the option you are saying i will get this error.
try going to my site again so that you will see the error
10 sam2kb Oct 07, 2008 15:54
Delete your htaccess redirects and put this code at the very top of the http://www.animedepot.site50.net/index.php
<?php header('Location:http://www.animedepot.site50.net/home/', 302); ?>
11 mhico008 Oct 07, 2008 15:58
where will I delete the htaccess redirects? and where will i put the code?
12 mhico008 Oct 07, 2008 16:23
Ok i did it but unfortunately I still have the problem.
As i said earlier sam i can't choose the option /cat/subcat in the category url. Because i will be land in an error lander saying that rhe url does not exist.
13 sam2kb Oct 07, 2008 16:43
The code I posted above has nothing to do with your error. You said that you want to redirect visitors from A to B and this is what that code does.
Try this to redirect visitors directly to selected category
<?php header('Location:http://www.animedepot.site50.net/?cat=18', 302); ?>
14 mhico008 Oct 07, 2008 16:47
i already did that but it still has error. Ok i will put it again and please try to visit again my blog.
And also try to send feedback. I also got errors in there.
15 yabba Oct 07, 2008 17:01
mhico008 wrote:
If i redirected www.animedepot.site50.net to www.animedepot.site50.net/?=16/ which is the option you are saying i will get this error.
I never mentioned redirects, I mentioned changing the url settings in b2evo admin ;)
¥
16 mhico008 Oct 07, 2008 17:05
Yes i know ^_^. That's working perfectly fine. But i really want the www.animedepot.site50.net/?cat=16 become my default page.
17 yabba Oct 07, 2008 17:09
That's the first time you've mentioned that in the whole of this post
¥
18 mhico008 Oct 07, 2008 17:12
aahh ok ok sorry about that. Anyways what will i do? And if i try to click the "send feedback" in any of my post i will also have an error. If you want you can try to click it too.
19 mhico008 Oct 07, 2008 17:24
Ok i will sleeping for the moment so i will remove the php code first that redirects so that every body can see my blog. But if you want to help me and want to see my problem, please click send feedbacks in any of my post in my blog, and the problem i get is also the problem i get whenever i want www.animedepot.site50.net/?cat=16 my default page.
Anyways here is my blog.
20 sam2kb Oct 07, 2008 17:38
Admin > blog settings > [blog name] > urls > select everything that mentions "use ID's" and deselect anything that says "use extra path"
¥
21 sam2kb Oct 07, 2008 17:46
Try this hack, to display category #16 on your home page
Edit the following code in inc/_blog_main.inc.php around the line 445
// Trigger plugin event:
// fp> TODO: please doc with example of what this can be used for
$Plugins->trigger_event( 'BeforeBlogDisplay', array('skin'=>$skin) );
switch( $GLOBALS['ReqPath'] )
{
case '/':
case '/?':
case '/#':
case '/index.php':
case '/index.php/':
case '/index.php/?':
case '/index.php/#':
$cat = 16;
break;
}
22 mhico008 Oct 08, 2008 04:05
ok i will try that. ANyways how about the feed back problem?
23 mhico008 Oct 08, 2008 04:11
hhmm. well the http://www.animedepot.site50.net/?cat=16 became my default page. But the problem now is every time i click on any category i always land in http://www.animedepot.site50.net/?cat=16
24 sam2kb Oct 08, 2008 04:42
To fix feedbacks you must fix post links first. You didn't change all URLs to use params instead of extra-path.
Go to Blog settings > URLs and change all links to use IDs or params
I'll take a look at that "switch" hack tomorrow.
25 mhico008 Oct 08, 2008 12:40
ok ok. Anyways about the code you gave me. When i used it I always redirected on the same url even i click any of the categories.
A link to your site would help....