Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 6,551 through 6,575 (of 6,773 total)
  • Author
    Search Results
  • #56562
    Atsutane
    Member

    Glad it work for you. For some reason i notice the default plugin setup not work on some server. Fix the problem already.

    #52644
    wittmania
    Member

    OK, to answer the “where do I put the code question (0.8.1)…

    In functions.php, find the get_profile_info_keys() function, which should be on or around line 1761. In the line that starts with array('user_email'..., add the following code before the last “)” in the line. Note the comma.

    , 'sig' => array(0, __('Signature'))

    This will add the signature field to the profile edit page, enabling users to input their own signatures.

    Next, we need to add the code to display the signatures in their posts. In post.php, find this line (for me it was line 17):

    <div class="post"><?php post_text(); ?></div>

    BEFORE the closing div tag, add the following:

    <?php /*Is the signature field blank?*/
    if (get_sig( get_post_author_id() ) != "") { ?>
    <div class="signature"><?php post_sig(); ?></div>
    <?php } ?>

    (NOTE: Make sure the existing closing div tag still follows the code above.)

    This checks to see if a signature exists, and if it does it adds a nested div with the signature class stylization applied to it, and the content of the signature field is placed inside this div.

    Finally, add the following to your style sheet:

    .signature {
    border-top: 1px dotted #ccc;
    margin: 5px 0 0;
    padding: 5px 0 0;
    }

    If you are using the default theme, this will style the signature div exactly like the poststuff div that follows it.

    Please note that (at this time) signatures are text-only. You may want to let your users know by adding a note in the functions.php array declaration. Something like 'Signature (text only)' would do the trick.

    I don’t know if it’s possible, but it would be nice if this plugin would be modified so that it can display images, links, and so on in the signature. Does anyone know how to do that?

    Thanks!

    #56496
    Trent Adams
    Member

    Daddo,

    You have the following error on your forum right now:

    Fatal error: Cannot redeclare is_tag() (previously declared in /home/.mardi/driftk27/driftkikker.com/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior.php:117) in /home/.mardi/driftk27/forum.driftkikker.com/bb-includes/template-functions.php on line 251

    My suggestion would be to get the cookies and logins working with the default template and then break it with tring to include WP content like the UTW plugin ;)

    Trent

    Sam Bauers
    Participant

    By default, the alphanumeric code is an md5 hash of the bb_table_prefix that is set in config.php

    For default installs this effectively makes the cookie names:

    'bb_user_' . md5('bb_')

    'bb_pass_' . md5('bb_')

    You can override the name of the cookie by setting values for the following somewhere in config.php:

    $bb->usercookie = 'my_great_user_cookie_name'

    $bb->passcookie = 'my_great_pass_cookie_name'

    Then provided that your website is in the same domain as your forum, you should have no trouble reading these cookies using your own code.

    #56388

    In reply to: Syntax questions

    lonemadmax
    Member

    fel64’s assumption is correct. You can see the definition of _e() and __() in bb-includes/l10n.php:

    // Return a translated string.

    function __($text, $domain = 'default') {

    // Echo a translated string.

    function _e($text, $domain = 'default') {

    #56371

    In reply to: Plugin: bbMenu 1.1

    Null
    Member

    Well most izi way:

    Wait for the next release, it will have custom tabs adding feature.

    Hard way:

    Using phpmyadmin you can add into the menu table:

    DEFAULT, 'Excample tab', 'inactive', 'pagename.php', 'front-page', 0

    Well ‘front-page’ is more complicated to add it should be changed to something else and added as a plugin (i know this sounds weird), so let it in and see what happens….

    About the pm issue, i am not familair with it what does it do? Can you show me? If it is a page that is added then this is possible INCLUDING that the tab stays active…

    problem that could happen is for non logged in visitors, they will see the tab too

    #1670

    Topic: Syntax questions

    in forum Themes
    wittmania
    Member

    A couple of questions about what syntax to use, especially on template pages:

    1. I see that a lot of people use _e('string...') instead of echo('string...'). Is this just a bbpress/wordpress thing or is this generally acceptable php coding?

    2. In front-page.php of kakumei (and many other places), I see people using this shorthand echo where normal text would work just fine. For instance, in the hottags div, it is:

    <h2><?php _e('Hot Tags'): ?></h2>

    Why would you have PHP echo that when you could just have it as plain ol’ text in the first place? Am I missing something?

    I realize neither of these is of any earth-shaking importance, but I would like to know so I can keep my code modifications in line with the default syntax that is used throughout. Thanks!

    #56368

    In reply to: Plugin: bbMenu 1.1

    Null
    Member

    Darn that error again, there must be something wrong with that insert part when a table is created.

    Check with phpmyadmin if the table bb_menu is created. If not do so manually (this is not tested, but it contains the stuff needed in the table):

    "CREATE TABLE$bbdb->menu` (

    item_id INT(3) NOT NULL AUTO_INCREMENT,

    item varchar(50) NOT NULL default ”,

    set varchar(50) NOT NULL default ”,

    page varchar(50) NOT NULL default ”,

    location varchar(50) NOT NULL default ”,

    order int(9) NOT NULL default ‘0’,

    PRIMARY KEY (item_id)

    );`

    Then you will have to fill it (again not tested, but it contains what needed):

    "INSERT INTO$bbdb->menu` VALUES

    (DEFAULT, ‘Forums’, ‘active’, ‘index.php’, ‘front-page’, 0),

    (DEFAULT, ‘Search’, ‘active’, ‘search.php’, ‘search-page’, 1),

    (DEFAULT, ‘Statistics’, ‘inactive’, ‘statistics.php’, ‘stats-page’, 0);”`

    When sucesfully created this table, things should work…

    #1667
    davetropeano
    Member

    I recently did my first bbpress install on localhost and it went miserably. I used the latest download from today.

    Checking on this forum I had the same path seperator issues and stylesheet issues others had, etc.

    My $bb->domain and $bb->path were fine. The fresh install just didn’t work properly under xampp and then again a retry on easyPHP.

    This is the solution and findings I found:

    1. The first issue is because in config.php and bb-load.php dirname(__FILE__) is used to get the base path for BBPATH. This is not a good thing on localhost Windows based installs.

    2. There are a number of attempted workarounds to this that I’ve read about in this forum. All of them that I saw didn’t work. Focusing on the issue with the stylesheet href not being correct I noticed that there was logic in the bb_get_active_theme_folder() function.

    By default, the installer does NOT create an option entry ‘bb_active_theme’ in the database table topicmeta. The code logic doesn’t make the correct uri.

    To fix this, do an install and then add a database field bb_active_theme in the topicmeta table.

    For example, I set mine to:

    http://localhost/dev/bbpress/

    Playing regular expression games to change x: and in general is not worth it. This seemed to be simple and worked right out of the box.

    #50826

    In reply to: Avatars

    cweb
    Member

    It works for me, just had to change your variable name $usermail because it’s supposed to be $email – so the code looks like this:

    function get_avatar() {

    global $bbdb;

    $id = get_post_author_id();

    $user = bb_get_user( $id );

    $email = $user->user_email;

    $default = "http://eastcoastwahines.com/images/gravatar.gif"; // Put your default avatar link

    $size = 40;

    $grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($email)."&default=".urlencode($default)."&size=".$size;

    echo "<img src="$grav_url" alt="Gravatar" width="$size" height="$size" />";

    }

    #52203
    thegunman
    Member

    I’m sorry but it just doesn’t work with 8.0 or 8.1 when I select that theme its the default theme all messed up. Is there something else that needs to be enabled on the server? because wordpress and all other software I’ve intalled on this server works fine. Maybe its an incompatability with php5?

    #56283

    In reply to: config.php

    chrishajer
    Participant

    Sorry, I do not. WordPress is like this too with no provision AFAIK for a non-standard port.

    But, I was looking at bb-includes/db.php just now and the mysql_connect function is being used. That function can user dbservername.com:port by default according to this page: http://www.php.net/function.mysql-connect

    So, in theory, this should work:

    define('BBDB_HOST', 'blabla.bla.pl:3305');

    Did you try that and it does not work?

    #56237

    In reply to: No ajax on replies

    Null
    Member

    They used to be ajaxed… or was that wordpress?? well ajexing this would be great to have as default!!

    Any bbpress programmer who wants to comment this?

    Also editing could be made ajaxed… :D

    #56252
    wittmania
    Member

    I had the same epiphany as you did when I learned that bbpress existed.

    Here’s what I did:

    1. I looked at the currently registered users in WP (I only had a few) and noted their numeric ID numbers. I then went over to my phpbb database to see which users they would conflict with (i.e. which ones had the same unique numeric ID number).

    2. I used a phpbb mod which allowed me to go into these users’ profiles and change their ID (not their name) to a number that would not conflict with the WP users, or any other user in the DB.

    At this time, phpbb.com is having trouble with their mod downloads, so I just uploaded the mod file to my own server. You can view the complete mod here:

    http://www.wittmania.com/change-user-id-mod.txt

    It takes about 10 minutes total to make all of the changes. Basically, what it does is add a field to the user’s profile when viewed by an administrator. In this field you can change their ID number to whatever you want it to be.

    So, once the mod has been implemented, go through and change the ID number for whichever users conflict with your existing WP users.

    3. Once you have gotten rid of all user ID conflicts, download Jaime GÓMEZ OBREGÓN’s incredible phpbb to bbpress importer, which can be found here:

    http://www.iteisa.com/phpbb2bbpress/

    You will need to edit the file so that it reflects your DB permissions for both the phpbb and the bbpress databases. Also, if you are running a WP integrated installation (as you obviously are), you will need to change the prefixes for a couple of tables further down in the code.

    Change lines 172 and 173 from:

    $bbpress_tables['users'] = DB_BBPRESS_TABLEPREFIX . 'users';
    $bbpress_tables['usermeta'] = DB_BBPRESS_TABLEPREFIX . 'usermeta';

    -to-

    $bbpress_tables['users'] = 'wp_users';
    $bbpress_tables['usermeta'] = 'wp_usermeta';

    Note: be sure that you use the actual WP table prefix if it is something different than wp_. This change will make the importer put the users into your existing wp_ tables instead of in new bb_ tables, which would defeat the whole point of your import.

    Once you have modified the file, upload it and navigate your browser to it. It should run automatically, importing all of your phpbb info into your bbpress installation.

    4. At this point my memory gets a little fuzzy. In either WP or BBP (or both?), the imported users did not have a role assigned to them. Make sure you check to see what role they are assigned and that it is what you want it to be.

    Of course, before you do anything you should backup your existing WP database, and probably your phpbb database as well just in case. Then, scrap the bbpress tables that you have in the current (broken) installation so the importer has a blank canvas to work with.

    You will also need to install the bbpress integration plugin in WP, which can be found here:

    https://wordpress.org/extend/plugins/bbpress-integration/#post-34

    This plugin will assign the default WP new subscriber role to users who register through bbpress. However, on my blog/forum I changed things around a bit so registrations for both WP and BBP are handled through the WP registration screen. I don’t know why, but I’m just more comfortable with it that way.

    I’m sure as time goes by more plugins from both sides will be developed which will allow for even tighter integration between WP and BBP.

    Good luck!

    #56235

    In reply to: No ajax on replies

    fel64
    Member

    I think this is default. I’d personally love a plugin that ajaxified posts or, even better, it being in by default but not yet.

    #55876

    In reply to: links to forums broken

    bedbugger
    Participant

    HI Trent,

    Thanks for the replies. I tried the default theme and replacing forum.php. They did not work. THEN I found that there was a “forum” folder inside the forum directory, containing a “bb-admin” file. I have no idea where it came from (maybe I was sloppy with Transmit?) but it looks like a serious case of user error.

    Anyway, up and running once again :-)

    Thanks!

    #54987
    yooakim
    Member

    I have the same trouble. Also running with Apache2 & PHP5 on Windows Server 2003.

    With version 0.8.1 I am not able to choose the Kakumei theme. Because the theme path is set to a local path in the server:

    E:\Sites\markusfagervall.se\forums/bb-templates/kakumei/

    Thinking that this may be because of bad config values in the database I tried this:

    http://xxxxxx/forums/bb-admin/themes.php?theme=/forums/bb-templates/kakumei/

    And I am asked if I am sure I want to switch themes… I answer Yes and then I get the “Theme not found. Default theme applied.” again.

    Any ideas?

    Cheers,

    Joakim

    #56150
    Arlo
    Member

    Re-reading the baptiste thread, I see that commenting out add_filter('pre_post', 'bb_filter_kses', 50); in default-filters does the trick. It solves all my problems at once!

    I guess bbpress needs to do better conflict checking againt wp when wp is included.

    #55910

    In reply to: Add New – issue

    stasi
    Member

    Thanks for your replys.. i’v checked to post-form.php, and it is present in the “crystal” theme.

    I tried to switch back to the default theme, and suddenly it worked! Then I switched back to crystal theme at overwrited the original theme files (perhaps i’v done something with the files before).. but no, it still dosen’t work as it should :(

    #55875

    In reply to: links to forums broken

    Trent Adams
    Member

    Bedbugger, kannued found out that an upgraded apache server caused the permalinks problem for them and the default theme worked with permalinks turned off. Could you test that for me?

    Trent

    #56034

    In reply to: Tags not found

    Trent Adams
    Member

    If you have errors on line 13 of topic.php, it will be referencing the old ‘support’ functions that were removed in this version. Compare the topic.php of the new default template versus your template and you will be able to see what shouldn’t be there (on line 13). I might be able to dig out what to get rid of, but it will be because it is calling a funciton that no longer exists.

    Trent

    #56033

    In reply to: Tags not found

    Trent Adams
    Member

    Another thing, in your theme, do you only have the ‘changed’ files relative to your theme? That has to be the case! All files that you have in your theme directory that are “not” critital to your theme should be deleted so it can use the default theme of the install! Could you also list what files you have in your theme directory. Then we might be able to narrow down what is causing the problem for you….

    Trent

    #56032

    In reply to: Tags not found

    kannued
    Participant

    It works in default, not in my theme. Fatal error on line 13 of topic.php

    #56031

    In reply to: Tags not found

    Trent Adams
    Member

    Not for plugins no, it is just /my-plugins/. So it works in the default theme, just not your theme? Is that correct? If that is the case, let me know.

    Trent

    #56028

    In reply to: Tags not found

    kannued
    Participant

    In the default, everything is fine.

Viewing 25 results - 6,551 through 6,575 (of 6,773 total)
Skip to toolbar