Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 5,951 through 5,975 (of 6,788 total)
  • Author
    Search Results
  • #4513
    TechGnome
    Member

    I’m not sure if this is a rant, a request for help, or a general gripe.

    I want to replace the default front page with something else. I’m building a website for an online radio station, and when visitors first hit the site, I want them to see current info, like what’s playing, what’s up next, and the last few that played. From there, there would also be a “Listener Forums” link that would take them to another page that would be the forums’ front page.

    Trying to be smart about it, I took index.php from the root, copied it, and renamed it “forums.php”. Then I went into the template, copied front-page.php and renamed the copy “station.php”. So far, so good. Then things went wrong from there.

    Back at the root, I opened the index.php and changed it to call station.php instead of front-page.php. I then went to my website, and made sure that index.php was still working, which it was. Again, so far, so good. At this point station.php and front-page.php are exactly the same, as are index.php and station.php, with the one exception. But I should still get the exact same thing from both index.php and forums.php (or so I thought). When I visited the forums.php of my site…. I noticed it was….. off… and not a little, the layout as a whole was jacked with very little in the wrong place.

    Careful scrutiny of the source for both pages led me to find out that on the forums.php version, I was missing the ID off of my body tag. Eh? I finally found the location in the bbPress file that returns the body id…. and sure enough…. because my “file” doesn’t fit into the list… I’m not getting a body id…. well, this isn’t very flexible. My first thought was to create my own version and include it in my functions file…. but that’s hardly a solution.

    So, am I stuck? Do I need to consider something else? How do I get around this? I’ve got other files I will be adding to my site like this… so this is just the first of several times this is going to happen to me. I’m just glad that I didn’t fully finish the plugin I was working on. I would hate to have wasted my time on something that I can’t use.

    annoyed and frustrated,

    -tg

    #70582
    Trent Adams
    Member

    Compare the functions from the default theme and the theme you are trying to integrate. It is hard to say what you changed that caused you issues. It is pretty much guessing without knowing what you changed.

    #70578
    Buca
    Member

    I was able to successfully able to add a new topic with the default theme. I do have access to the database, though I’m not sure what to look for or where to begin.

    #70576
    chrishajer
    Participant

    Looks like creating a new topic results in the error message, but replying to an existing topic works fine. I tried to create a new topic and got the error, but I was able to reply to the existing topic.

    I also registered at the forum, not the blog, even though there was no register link there.

    Have you tried this with the default theme? Maybe something with the theme integration is causing the problem.

    #70566

    In reply to: installation help

    chrishajer
    Participant

    If you put in username, password and database name, it sound like the only thing missing is the host name, which is localhost by default, but maybe you need to set a different host name.

    This setting is hidden during installation by a link called something like “Show advanced database settings.” When you click that you will see two additional fields: host name and table prefix. My guess is that you need to set the host name.

    What host name does the host tell you the database resides on, what are their instructions?

    #4493

    Hello,

    Finally was able to get the Forum installed – like it so far. :) However, with my blog http://www.itshaunted.com members are contributors and each has an extended role; however, When members sign-up Forum FIRST his/her membership is considered a role: NONE for the blog. How can I change the role in the forum to match the assigned role in the blog? Simply meaning, you sign up via blog FIRST your role is a contributor; however, if you sign up Forum FIRST your default assigned role is NONE.

    Thanks in advance.

    #69126
    suzkaw
    Member

    I would say it must be related to your setup. Either browser or hosting because I am unable to duplicate this and if the default doesn’t work then something has to be going on.

    #70410
    Sam Bauers
    Participant

    I don’t recall if this is in the stable version 0.9, but in 1.0 on the default themes when you click on the “freshness” column in the topic lists you go to the last post (on the last page).

    #69969
    chrishajer
    Participant

    _ck_

    Sorry, that didn’t work. More errors this time. It’s making GoDaddy look worse and worse.

    Warning: fopen(D:Hosting123456htmlgodaddytesttest.txt) [function.fopen]: failed to open stream: Permission denied in D:Hosting123456htmlgodaddytestdefault.php on line 9

    Warning: fclose(): supplied argument is not a valid stream resource in D:Hosting123456htmlgodaddytestdefault.php on line 9

    Warning: chmod() [function.chmod]: No such file or directory in D:Hosting123456htmlgodaddytestdefault.php on line 9

    Warning: touch() [function.touch]: Unable to create file D:Hosting123456htmlgodaddytesttest.txt because Permission denied in D:Hosting123456htmlgodaddytestdefault.php on line 11

    0.00039196014404297 seconds

    #70176
    chrishajer
    Participant

    Not sure what mediatemple is (hosting?) but basically the connection details you supplied for the database are incorrect. You usually need four things to connect to the database:

    database name

    database user

    database password

    database host

    In a lot of cases if the first 3 are correct, it’s the 4th one that throws you. I think depending on the version you’re installing (what version is that?) the database host is not shown by default so you don’t enter it, it’s hidden by something like “Show advanced database settings” or similar. When you click that, you see the database host and the table prefix can be changed.

    Is it possible your database is hosted on another server and you need to enter a host name here?

    #69964
    chrishajer
    Participant

    _ck_

    I needed to change the /test.txt to \test.txt, but even once that was done, I get this error (prior to this, the filename and path were not right):

    Warning: file_put_contents(D:Hosting123456htmlgodaddytesttest.txt) [function.file-put-contents]: failed to open stream: Permission denied in D:Hosting123456htmlgodaddytestdefault.php on line 9

    Warning: touch() [function.touch]: Unable to create file D:Hosting123456htmlgodaddytesttest.txt because Permission denied in D:Hosting123456htmlgodaddytestdefault.php on line 11

    0.00028681755065918 seconds

    #67553
    _ck_
    Participant

    I am changing the behavior to be more intuitive.

    If they have highlighted text, it will create a link for them by just asking for the link.

    If there is no highlighted text, it will first ask for the link, then it will ask for the text for the link.

    Replace this function by with it’s one new line in BBcode-Buttons.js

    function edInsertLink(i, defaultValue) {
    if (!defaultValue) {defaultValue = 'http://';}
    if (!edCheckOpenTags(i)) {
    var URL = prompt('Enter the URL' ,defaultValue);
    if (URL) {BBcodeButtons.tagStart = ''; edInsertTag(i);}
    if (edCheckOpenTags(i)) {var myValue = prompt('Enter the text for the link', ''); edInsertContent(myValue); edInsertTag(i);}
    }
    else {edInsertTag(i);}
    }

    Or download 0.0.8 shortly.

    #70428
    flashpunk
    Member

    Negative – changing the theme to the default theme doesn’t fix it :(

    #70427

    It may be your theme. Try using the default theme.

    #70424

    In reply to: change text.

    chrishajer
    Participant

    In the front-page.php file in your template folder, you can do this:

    Change:

    <th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>

    to:

    <th><?php _e('Topic'); ?> — <?php new_topic('Add New ---->'); ?></th>

    Where Add New —-> is what you want displayed instead of the default.

    #4459

    I’ve noticed when you click on a topic with multiple pages in these forums, it still takes you to page one….is this the default for bbPress? If so, is there a way to change it so the user is always taken to whatever the last page is? (ie. if the topic has three pages, the link from the forum takes the user to page three).

    #69124
    suzkaw
    Member

    If it still doesn’t work I think you can delete that file totally from the inove directory as it will revert to the default template.

    #69945
    Sam Bauers
    Participant

    Just a note, the load options trick only applies to 0.9 it is default behaviour in 1.0

    #70191
    chrishajer
    Participant

    I’ve been working with Brad to help resolve this. We’ve finally made some progress.

    1. We needed to use the iis_fix plugin from _ck_. Otherwise, any page other than the first page just gets stuck in a reloading loop. Installing this plugin, as an autoload plugin or manually activated plugin, takes care of that problem.

    2. When the index.php file is renamed to default.php, the site works fine. When it’s left named index.php, the forum comes up as a 404 error for the front page of the forum only. You can access other pages directly, by adding to the URL. But if you try to load http://www.beardownarizona.com/forums/ or http://www.beardownarizona.com/forums/index.php you get a 404 error. If you rename index.php to default.php, http://www.beardownarizona.com/forums/ loads the front page of the forum just fine.

    GoDaddy serves the DirectoryIndex file in this order:

    http://help.godaddy.com/article/61

    So renaming index.php to default.php (or even leaving index.php there and just copying it to a file called default.php) works just fine.

    I also found, with the plugin installed, and this line commented out in index.php, that index.php works fine, and the forums will also load fine when accessed at http://www.beardownarizona.com/forums/ .

    /* bb_repermalink(); */

    So long as that function is not called in the index.php, index.php works just fine on this server.

    So, here are the questions:

    1. will bbPress work OK without an index.php and just a default.php being the DirectoryIndex file? (it seems to be fine)

    2. can the bb_repermalink(); line be commented out in index.php if the site is not using permalinks? Would commenting it out affect anything else negatively?

    3. What does that function do that would cause the index.php file to come up as a 404 when it’s clearly there? It’s almost like it’s trying to load index.php, index.php says “rewrite the URL to {something else}” then it fails to find index.php.

    Any thoughts? Thanks.

    #69122
    suzkaw
    Member

    @Umit Namli – I didn’t touch the rss feed file. So I am not sure what would be causing that. Can you try uploading an original rss2.php and see if that sorts it out? Or possibly reverting to the default theme and then testing again?

    #69997
    iservers
    Member

    I see. So the preferred solution is to route anyone who wishes to use SMTP with bbPress, and is not happy with the default PHP behaviour, to use the SMTP plugin. Fair enough.

    There is another solution for Windows SMTP systems for those who control PHP; live with setting ‘sendmail_from’ server-wide in php.ini. This overrides the value passed to the mail() function ‘From:’ header argument for use with the SMTP ‘MAIL FROM:’ command (where the problem lies), but retains that value for use with the mail message body ‘From:’ header (where a complete textual name may be used).

    BTW, the reason that the (SMTP) MTA on Windows rejects the email address is not due to the MTA, but due to PHP on Windows:

    http://www.php.net/manual/en/function.mail.php

    A long-standing discussion is here:

    http://bugs.php.net/bug.php?id=28038

    The current value for the PHP mail() function ‘From:’ header (“User name” <uname@domain.com>”) is an RFC2822 compliant format suitable for parsing by a library (like PHP mail()) which *should* generate separate strings for SMTP (the ‘MAIL FROM:’ command, which must be RFC2821 compliant) and the message body (the ‘From:’ header field which can be RFC2822 compliant). RFC2821 format (user@domain.com or <user@domain.com>) differs from RFC2822 format. PHP mail() on Windows does not do this translation.

    #70203
    chrishajer
    Participant

    The default install has a single topic (“Your first topic — First Post. Woot!”) that is tagged bbPress. If you deleted that but the tag persists, you might need to go into the admin and Manage > Recount /bb-admin/site.php. There is one checkbox there that says “DELETE tags with no topics. Only functions if the above checked.” Try that.

    #69996
    Sam Bauers
    Participant

    PHP mail() only uses SMTP when PHP has been directed to use an MTA by default like in your case. There are plenty of situations where this isn’t the case, like on a lot of shared hosting services. In these cases the only way to send mail is to programmatically connect to an SMTP server. This is possible in 1.0-alpha versions using the plugin that chrishajer pointed out.

    I wish it was as easy as changing that one line, believe me. Also, if your MTA is not accepting that very standard form of email address then it is really a config issue at the MTA. There is no reason it should be rejecting an RFC compliant email address like that one.

    #69242

    In reply to: New installation

    chrishajer
    Participant

    How do you ensure? Well, you can look at your wp-config.php and see what the table prefix is there. If you didn’t change it, it’s wp_. bbPress uses bb_ by default. If you don’t change either of them, they will go properly into separate tables in the same database.

    There is something simple going wrong with the connection details. It really is as simple as the username, database name, password and host. I think they call the host “advanced database settings” in the installation. If you click that, I think it unhides the table prefix setting and the host setting. I always have to change the host in my installations, so to me that’s not an advanced setting. WordPress recently changed the terminology of that (it used to say something like “99% chance you won’t need to change this”) to something like “get these details from your host.” Maybe you just need to enter the host setting and you are not seeing where to do that.

    I’m guessing it’s the host setting you’re not entering, since it’s not visible on the installation screen. If it’s different that localhost in your wp-config.php, my guess is that’s the problem. You need to set that for bbPress.

    #4414
    Sam Bauers
    Participant

    A first attempt at getting WordPress 2.7 and bbPress 1.0 to play nice again is now in trunk [1862].

    I’m specifically talking about “deep” integration, i.e. when you include WordPress inside bbPress to gain access to WordPress’ functions.

    This will need a lot of testing, so please post any issues you have on the relevant Trac ticket, #972 (which will stay open until some more testing has occurred).

    I recommend using the following code at the top of your bbPress bb-config.php file to include WordPress inside bbPress:

    if ( !defined( 'ABSPATH' ) ) {
    include_once( '/Full/Path/To/wp-load.php' );
    }

    Note that this includes “wp-load.php” not “wp-config.php” or “wp-blog-header.php”. This avoids running WordPress’ template loader which presumably isn’t needed inside bbPress. Some implementations may want it though, so if you find you need it then give it a go and let us know how that goes.

    Also note that all filters and actions set in WordPress whether default or added by plugins or themes are cleared out completely. That means that plugins and themes installed in WordPress cannot add filters or actions to bbPress at all. This may have some implications I’m not aware of yet.

    Go nuts!

Viewing 25 results - 5,951 through 5,975 (of 6,788 total)
Skip to toolbar