Info
- 65 posts
- 14 voices
- Started 5 years ago by pfdebate
- Latest reply from uwemekpenyong
- This topic is resolved
Updated to Desmond But Theme Not Working
-
- Posted 5 years ago #
I upgraded to Desmond and I am trying to use the default them (Kakumei) and the theme is not being applied. The theme thumbnail file does not display in the admin panel eitehr.
Thanks!
UPDATED BY MODERATOR:
The solution to this problem can be found farther down the page:
http://bbpress.org/forums/topic/700#post-4254 -
- Posted 5 years ago #
Maybe clear your browser cache because I can see the default theme on your forums perfectly.
Trent
-
- Posted 5 years ago #
I'm seeing an un-styled version of the forums.. using Firefox here..
http://forums.pfdebate.com/bb-templates/kakumei/Did you upload files right? Chmod the folders and files right..? Delete all the old originals, and then upload new?
spencerp
-
- Posted 5 years ago #
It is unstyled when I view it in Firefox 2 and IE7. I have cleared the browser cache.
I saved the config file, deleted everything, and copied up the new files. The folders are all set at 755.
-
- Posted 5 years ago #
Viewing source I noticed this:
http:/forums.pfdebate.com/bb-templates/kakumei/style.cssYou're missing the second: / in the beginning of the URL:
http://forums.pfdebate.com/bb-templates/kakumei/style.cssCheck the config.php file would be my guess..
spencerp
-
- Posted 5 years ago #
Good work tracking that down!
<link rel="stylesheet" href="http:/forums.pfdebate.com/bb-templates/kakumei/style.css" type="text/css" />What really is strange for me is safari on Mac OS X shows the page correctly anyways. What a smart browser.
Why that link is like that and the rest of the content is showing up right is strange though.
Trent
-
- Posted 5 years ago #
I see what you are talking about when I view the source, but there are two slashes in the URL in the config.php file.
-
- Posted 5 years ago #
[Takes a bow to the audience]... Thank you! Thank you! No really you shouldn't! Haha.. nah, just kidding lol. =P
I guess I'm just used to doing that stuff on the WP.org forums, I bring that awesomeness over here.. seems to work well I think.. ;) :)
spencerp
-
- Posted 5 years ago #
I am wondering if this is an error in TRAC. Seems to be related this this ticket that has a patch and plugin to fix it:
http://trac.bbpress.org/ticket/575
Trent
-
- Posted 5 years ago #
Hmm, how about the .htaccess file? I'm trying to figure out where there's a missing one, if it's not in the config.php file.. then I'm not really sure.. =/
spencerp
-
- Posted 5 years ago #
Save this file as patch-to-URL.php and upload to /my-plugins/ directory:
<?php function fix_bb_path_to_url( $url ) { return preg_replace( '|:/([^/])|', '://', $url ); } add_filter( 'bb_path_to_url', 'fix_bb_path_to_url', 1, -1 ); ?>Trent
-
- Posted 5 years ago #
Ah.. Okay, I'm sure Trent's reply contains the right answer .. ;) :)
spencerp
-
- Posted 5 years ago #
That worked. Thanks for the help!
I am up way passed my bedtime. I should not attempt software updates just before bedtime.
Thanks!
Bob -
- Posted 5 years ago #
Awesome! Glad to hear it's working now! :)
I should not attempt software updates just before bedtime.
LOL! I know how that is..
spencerp
-
- Posted 5 years ago #
So, let me add a new wrinkle - I've just installed Desmond, and the default theme works just fine. I've tried uploading a couple of other themes to the my-templates directory but all I'm getting are blank screenshots next to the word by in the Presentation menu. Heck, I've even applied the plugin solution that Trent supplied, still without any success. Any ideas on why these templates aren't showing up?
-
- Posted 5 years ago #
Let me understand this. The blank screenshot issue is because you have to take a screenshot of your template and add it to your theme folder. Double check the name of the default theme, but I think it works if you create a screenshot and call it screenshot.png.
As for the by and name of the template, that is derived from the information at the top of your style.css. If you edit file in your theme directory, it will show up. If you don't have a style.css in your theme and are using the default theme's style.css, download it as is, change the information at the top and upload it to your theme directory.
I think that is all the troubles you are having at first glance.
Trent
-
- Posted 5 years ago #
Yeah, I just figured out that the problem originated from bad header information in the stylesheets. Once I fixed that, both templates showed up just fine.
-
- Posted 5 years ago #
Good to hear!
Trent
-
- Posted 5 years ago #
<link rel="stylesheet" href="http://chezmauricekusadasi.com\yeni\forum/bb-templates/kakumei/style.css" type="text/css" />Could it be the reason that i see my site unstyled on Firefox2 ? You can see the slashes arent arranged in order. Some of them head to left and some of them right ?
-
- Posted 5 years ago #
Yes, that's the reason your site is unstyled when vieweing in FF. If you check with IE, you will see that the stylesheet is found. Are they typed like ( \ ) that in the config.php or is this an issue with bbPress?
-
- Posted 5 years ago #
Hello chrishajer,
I'm definitely seeing the (\) error when I look at the source.
I have installed the latest xampp, wordpress and bbpress locally for testing purposes. My config is as follows:
$bb->wp_table_prefix = 'wp_';
$bb->wp_home = 'http://localhost';
$bb->wp_siteurl = 'http://localhost';
I really don't think I should be getting this error, so must I configure something else? Any help would be greatly appreciated. Thank you. -
- Posted 5 years ago #
The relevant section that would affect those slashes, in the config, is this part:
// If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.
// Adjust the domain and path to suit your actual URL.
// Just the domain name; no directories or path. There should be no trailing slash here.
$bb->domain = 'http://my-cool-forums.example.com'; // Example: 'http://bbpress.example.com'
// There should be both a leading and trailing slash here. '/' is fine if the site is in root.
$bb->path = '/'; // Example: '/forums/'What do your slashes look like there?
-
- Posted 5 years ago #
This may be relevant too:
http://bbpress.org/forums/topic/730?replies=8 -
- Posted 5 years ago #
This fix is what chrishajer is referencing. The ticket is gone, but the fix is still there:
http://trac.bbpress.org/attachment/ticket/575/path-to-url.2.php
Trent
-
- Posted 5 years ago #
I have created a directory named "my-plugins" in the bbpress root directory and put the file named "path-to-url.2.php" into that directory. I think i have to activate that plug-in but i dont know how to do it ? Could you please help me...
Note: I checked config file and other files like it, there seems to be no problem with the slashes...
Thanks for your help...
-
- Posted 5 years ago #
You don't have to activate plugins - you will have to do that with a later release, though (scheduled for version 1.0?)
Maybe you can copy us what your slashes are?
-
- Posted 5 years ago #
There is no activation required. Any .php file in the my-plugins folder will just work.
So says Trent (and I believe him):
http://bbpress.org/forums/topic/714?replies=9#post-4462 -
- Posted 5 years ago #
Ok thanks...
I installed that plug in for the wrong headed slashes but it is still same.
I cant see my site styled on FF2...<link rel="stylesheet" href="http://chezmauricekusadasi.com\yeni\forum/bb-templates/kakumei/style.css" type="text/css" />
-
- Posted 5 years ago #
I think this problem is about my server, i mean the software that my server use. Because i couldnt see any mistake in the config file, but i have realized something, if i could find BBPATH, the codes which create this variable, i would be able to fix the problem...
Thanks
-
- Posted 5 years ago #
Kirkk: that is what the plugin is supposed to do, I think: turn the slashes around. When you pasted the code into that file, did it have line numbers? You should use the plain text version here:
http://trac.bbpress.org/attachment/ticket/575/path-to-url.2.php
Is the my-plugins directory readable (0755 permissions) and the file is readable by the webserver (0644 permissions at least)?
Also, I don't know the answer to this question, but should it have the .2. in the file name, or should the file be named path-to-url.php? I don't know if the filename matters at all. I know there was a version one without the 2 in the filename.
Keep plugging away. You'll get it.