Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,276 through 21,300 (of 32,495 total)
  • Author
    Search Results
  • #34260
    mikkelsen
    Member

    Hello,

    I have a website with WordPress as the mainsite and vBulletin as a forum. After doing lots of research on bbPress, I quickly understood that bbPress is far superior for my needs and would fit extremly well :)

    I do however have one problem, and that is that I have lots of users and posts that I can’t loose. I’d like to transfer my users login info as well as all the posts and threads.

    Are there any scripts for converting a vBulletin database to a bbPress database?

    Thanks for all help.

    #88160

    In reply to: New Topic

    gerikg
    Member

    how about adding a class to new topic?

    a class="button" href="?new=1" id="new-topic-button"

    #85090
    ChristopherM
    Member

    The following lines are probably missing in the danish .po-file (these are in Swedish, you have to change them to Danish):

    #: bb-includes/functions.bb-core.php:385
    #, php-format
    msgid "%d year"
    msgid_plural "%d years"
    msgstr[0] "%d år"
    msgstr[1] "%d år"

    #: bb-includes/functions.bb-core.php:386
    #, php-format
    msgid "%d month"
    msgid_plural "%d months"
    msgstr[0] "%d månad"
    msgstr[1] "%d månader"

    #: bb-includes/functions.bb-core.php:387
    #, php-format
    msgid "%d week"
    msgid_plural "%d weeks"
    msgstr[0] "%d vecka"
    msgstr[1] "%d veckor"

    #: bb-includes/functions.bb-core.php:388
    #, php-format
    msgid "%d day"
    msgid_plural "%d days"
    msgstr[0] "%d dag"
    msgstr[1] "%d dagar"

    #: bb-includes/functions.bb-core.php:389
    #, php-format
    msgid "%d hour"
    msgid_plural "%d hours"
    msgstr[0] "%d timme"
    msgstr[1] "%d timmar"

    #: bb-includes/functions.bb-core.php:390
    #, php-format
    msgid "%d minute"
    msgid_plural "%d minutes"
    msgstr[0] "%d minut"
    msgstr[1] "%d minuter"

    #: bb-includes/functions.bb-core.php:391
    #, php-format
    msgid "%d second"
    msgid_plural "%d seconds"
    msgstr[0] "%d sekund"
    msgstr[1] "%d sekunder"

    #87740
    Cyndy Otty
    Participant

    Very nice redesign! Does make one feel that there is life here and things happening. :)

    #68599
    Xevo
    Participant

    Interesting theme, thanks for the update clockworker. :)

    #88271
    Abhid
    Member

    So far i have succeeded by making magento session available in bbPress and adding user of current magento session to bbPress usess db table and logging in that user.

    But while trying by approach mentioned in first post i placed the code containing bbPress fiunction calls in php files nothing seems to happen but after placing same code in phtml files i could see some error conditions happening on bbPress side.

    The error generated are as :

    a:5:{i:0;s:180:”Strict Notice: is_a(): Deprecated

    ________________________________________

    a:5:{i:0;s:215:”Warning: include(WPError.php) [function.include]: failed to open stream: No such file or directory in C:wampwwwsvn_awe_homecodemagento-1.4.0.0libVarienAutoload.php on line 93″;i:1;s:4511:”#0 C:wampwwwsvn_awe_homecodemagento-1.4.0.0libVarienAutoload.php(93): mageCoreErrorHandler(2, ‘include(WPErro…’, ‘C:wampwwwsvn…’, 93, Array)

    _________________________________________

    a:5:{i:0;s:241:”Strict Notice: Non-static method WP_Pass::hash_password() should not be called statically, assuming $this from incompatible context

    __________________________________________

    a:5:{i:0;s:202:”Strict Notice: Non-static method WP_Pass::generate_password() should not be called statically

    _____________________________________

    To remove above mentioned errors do i need to modify bbPress code base or there is something else that can be done?

    Or am i going totally wrong way?

    Can some body help in getting right approach towards such intergration?

    Thanks

    #70521

    In reply to: Members can add tags

    danblogro
    Member

    This is the solution:

    1 – Find topic-tags.php file, in your template folder.

    2 – In topic-tags.php file, find this line:

    <?php tag_form(); ?>

    3 – Above this line, add the following code:

    <?php if ( !bb_current_user_can( 'manage_tags' ) ) {return false;} ?>

    I hope it is not wrong, I made this change for me and now works …

    [EDIT by chrishajer – there is no bbcode here]

    #88276

    In reply to: Email change

    Kasparas
    Participant

    Thanks for answer. My second mail already in system :) thats why it wont change.

    #88264

    In reply to: Dropbox uses bbPress !

    hpguru
    Member

    Veri nice forum here. :)

    #84573

    In reply to: bbPress mobile version

    Xevo
    Participant

    See my edit. :)

    #88245

    @zaerl

    Thanks again for your help.

    I am fairly familiar with transferring files, but I guess this is beyond me. I looked over the install instructions again I couldn’t find anything relating to this.

    I think I’ll just leave the URL as domain.com/bbpress. This isn’t for a business so no one will care what it says!

    I may try the name change again before I make the board public! Why not make it even more complicated for myself? :-)

    #84572

    In reply to: bbPress mobile version

    chandersbs
    Member

    Well, if i look at the list of supported mobile browsers, i don’t think it does.

    $small_browsers = array(
    '2.0 MMP'
    ,'240x320'
    ,'AvantGo'
    ,'BlackBerry'
    ,'Blazer'
    ,'Cellphone'
    ,'Danger'
    ,'DoCoMo'
    ,'Elaine/3.0'
    ,'EudoraWeb'
    ,'hiptop'
    ,'IEMobile'
    ,'KYOCERA/WX310K'
    ,'LG/U990'
    ,'MIDP-2.0'
    ,'MMEF20'
    ,'MOT-V'
    ,'NetFront'
    ,'Newt'
    ,'Nintendo Wii'
    ,'Nitro' // Nintendo DS
    ,'Nokia'
    ,'Opera Mini'
    ,'Palm'
    ,'Playstation Portable'
    ,'portalmmm'
    ,'Proxinet'
    ,'ProxiNet'
    ,'SHARP-TQ-GX10'
    ,'Small'
    ,'SonyEricsson'
    ,'Symbian OS'
    ,'SymbianOS'
    ,'TS21i-10'
    ,'UP.Browser'
    ,'UP.Link'
    ,'Windows CE'
    ,'WinWAP'

    #88250

    Why don’t you just hardcode the HTML and point it towards the form handler that you want to process it?

    Dynamically getting wordpress and bbPress to play nice together via deep integration can be a bit of a pain especially if you try and make one do the work of the other.

    #34247

    Topic: Search help

    in forum Troubleshooting
    Rich Pedley
    Member

    Having tracked code through I ended up in class.bb-query.php

    if ( $search ) {

    if ( $_post ) {

    $s_value = esc_attr( $q_post_text );

    $s_name = 'post_text';

    $s_id = 'post-text';

    } else {

    $s_value = esc_attr( $q_search );

    $s_name = $s_id = 'search';

    }

    $r .= "t<div><label for="$s_id">" . __('Search term') . "</label>n";

    $r .= "tt<div><input name='$s_name' id='$s_id' type='text' class='text-input' value='$s_value' /></div>n";

    $r .= "t</div>nn";

    }

    Now this is affecting a second search, by changing search to post-text, and the result of a second search is always zero results.

    Can anyone explain why, and is there an easy way to change this, or should I just code my own search form?

    #88237

    In reply to: How do you write this?

    chrishajer
    Participant

    Specifically about this though, and what’s wrong with it:

    <?php require( .$bb_pixpoint_url. '/1.html' );

    1. The . before the $bb_ and after the url means “concatenate” or “put together”. So you are putting together nothing, then the variable, then the 1.html. I don’t think it would work, since there is nothing to add to the beginning of the variable. Would probably give a syntax error

    2. It’s not really a URL it’s a file system path. So, it’s poorly named.

    3. I didn’t try it, but I think it would work otherwise, if you define the variable somewhere first.

    #88236

    In reply to: How do you write this?

    chrishajer
    Participant

    I think I would do it like this:

    <?php require( "$gerikg_pixopoint_path/chunk1.html" ); ?>

    Then define $gerikg_pixopoint_path = '/homepages/32/d84982904/htdocs/example/wp-content/plugins/pixopoint-theme-integrator/';

    If you define $gerikg_pixopoint_path in bb-config.php, I think you need to do a global $gerikg_pixopoint_path wherever you want to use the variable. There has to be a better way of doing it. [EDIT]

    #88235

    In reply to: How do you write this?

    gerikg
    Member

    @kevinjohngallagher with deep integration all I need to do is edit the bbpress theme but with ryan’s plugin I need to edit both WP and bbP themes. The good thing about his plugin that it reduces the load on bbPress. It’s hard to make things automatic because every theme is made differently without a universal structure, it would be nice though.

    @chrishajer <?php require( .$bb_pixpoint_url. '/1.html' ); ?> is that how you write it?

    #84569

    In reply to: bbPress mobile version

    BerryReview
    Participant

    Okay so I have realized I do not have the expertise to turn this into a plugin but I can offer some direction and the code I am currently using as the plugin at

    http://www.berryreview.com/forums/index.php?ak_action=accept_mobile

    The full source of the plugin I hacked can be found at this link along with instructions

    http://www.berryreview.com/forums/topic/berryreview-bbpress-forums-mobile-plugin-please-ask-questions-here

    Please post questions at that link since there is no way to get notified of replies in the BBPress forums and I don’t have the time to keep checking if there are new questions.

    If you just want to download the plugin check it out at

    http://www.berryreview.com/forums/Downloads/br-mobile.php.txt

    But you will need to read the instructions to get it to work

    Sorry I cannot be more help. Really limited on time.

    #34243
    MayurSomani
    Member

    Hi,

    I am using geshi library in wordpress for syntax highlighting. This is implemented using a plugin (code colorer).

    Geshi library is also used on my bbpress forum (bbpress is not integrated with wp).

    I am using sql query to show latest bbpress posts on wp homepage. The issue is that I have to include bb-load.php to run the query, which causes the error that geshi is already included (since wp included it in header).

    How to resolve this issue?

    One option is to use wp conditionals so that geshi is not loaded when its is_home()

    Another way is to use RSS parsing instead of db query to show the forum posts on wp home.

    For some reason, I don’t want to use either of them at this time.

    So, how can I “unload” geshi.php from wp/bbp on my wp home?

    Any ideas are appreciated.

    Thanks for reading.

    #88234

    In reply to: How do you write this?

    <br />
    <?php<br />
    //Put this in someplace obvious<br />
    // like the config file<br />
    global $path_needed_for_ryans_plugin = "/path/to/stuff/"</p>
    <p>?><br />
    <?php<br />
    global $path_needed_for_ryans_plugin;<br />
    require_once( $path_needed_for_ryans_plugin .'1.html' );<br />
    ?><br />

    Infact you’re probably better off doing in it with a “define” but I’ve not used Ryan’s plugin and didn’t want to presume.

    Long term though, this should be something the plugin handles itself. After all the point of a plugin, especially one that is meant to make it easier to sort out themes without having to edit them, is ot not edit the themes :) It’s still a great first step though.

    #88233

    In reply to: How do you write this?

    chrishajer
    Participant

    No, it doesn’t make sense to me. Maybe someone else will follow. Or maybe I need more coffee.

    Maybe instead of xxxx, since the xxxx is the piece that changes, you define that in a file that is included by all files already (maybe bb-config.php or something that pixopoint includes) and then use the variable everywhere. Similar to how $bb_table_prefix is done:

    $bb_pixopoint_url = 'www.examplexxxx.com';

    Then use $bb_pixpoint_url in the different locations in the bbPress theme.

    #88232

    In reply to: How do you write this?

    gerikg
    Member

    I’m trying to see if I can create a theme via pixopoint that works for everyone. It requires you to put

    <?php require( 'xxxx/1.html' ); ?>, <?php require( 'xxxx/2.html' ); ?>, <?php require( 'xxxx/3.html' ); ?>, etc. in different locations of the bbPress theme.

    The xxxx changes with every server. Instead of finding and replacing all instances of the codes. I wanted to create another file that you can put in the path and it will fill all the xxxx.

    Does that make sense?

    #88248
    pagal
    Participant

    I’ve tried to load bbpress into wp config via

    if ( !defined(‘BBDB_NAME’) )

    require_once(ABSPATH.’bbpress/bb-load.php’);

    then I call <?php login_form(); ?> into wp template where i want to show it…

    it works fine.. but there is a problem…

    when i open my wp-admin … all colors and buttons has gone..just wp structure still there..

    look at this screenshot

    http://img687.imageshack.us/img687/7772/wpadmin.jpg

    when I remove this code

    if ( !defined(‘BBDB_NAME’) )

    require_once(ABSPATH.’bbpress/bb-load.php’);

    then admin works fine… but i need this code to show bbpress login/registration into wp..

    please guide me where I am wrong…

    Thanks

    #88242
    zaerl
    Participant

    If it’s a fresh install do this:

    1) Unzip the bbPress zip file

    2) Change the newly created folder name from “bbpress” to “community”

    3) Browse to /community and install bbPress

    Keep in mind that if you have already installed bbPress on /bbpress you can’t simply rename the folder. If you want to rename it follow these steps:

    1) Go to bb-admin/options-general.php and change the bbPress URL to the new one

    2) If you have custom permalinks open the .htaccess file (on the forum root folder) and change the RewriteBase directive to RewriteBase /community/

    3) Rename the folder

    #68598
    KateS30
    Member

    thank you clockworker also thanks to suzkaw (Eric)

    :)

Viewing 25 results - 21,276 through 21,300 (of 32,495 total)
Skip to toolbar