Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,301 through 21,325 (of 32,524 total)
  • Author
    Search Results
  • #88161

    In reply to: New Topic

    Rich Pedley
    Member

    not possible.

    But you could wrap the call to it in a <span> or similar and then add the class to that.

    #88283
    zaerl
    Participant

    Hi. Unfortunately the links obtained from the “#” in Kakumei theme (or similar) are just anchor links. This is due to the fact that they are generated with post_anchor_link() (file: bb-templates/kakumei/post.php:11).

    With “just anchor links” I mean that they are anchors (#post-number) of the current page. They aren’t permalinks. All that links became invalid once you change the “items per page” (and/or other values) from the bbPress admin panel.

    All you can do with the links that users have posted is to parse them and change them accordingly to the new server settings but this can (and will) be a long, tedious, hard and prone to errors work.

    I have written a plugin called “zaerl Post Permalink” that solved this problem. My plugin export a function that generate this link:

    1) http://www.domain.com/the_bbpress_path/post/post_number

    2) http://www.domain.com/the_bbpress_path/?post=post_number

    The (1) is preferred if mod_rewrite is used. These links are permanent and do adapt on the fly to the actual settings of the server. I use my function in various places of the template and post.php is one of these.

    I can share my work with you if you want. Email me za AT zaerl.com.

    p.s. keep in mind that the plugin isn’t retroactive.

    #88017
    Kasparas
    Participant
    cnc
    Member

    Recently I got this mesg who drives me crazy..

    Warning: Visiting this site may harm your computer!

    I don’t know what happened to my blog and forums.. I think all was secure and safe in my site.. I have talked to my hosting company they clean it.. but the problem is still there..

    http://www.car-n-car.com (wordpress)

    http://www.car-n-car.com/forums (bbpress)

    It’s really disturbing me… how can I fix it?

    is there any wordpress or bbpress authenticated plugin who defend my site from suspicious codes, and hackers attacks..

    please guide me to remove this bloody mesg…. otherwise my site will useless :(

    help me again…

    Regards,

    cNc

    #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

    Navin
    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.

Viewing 25 results - 21,301 through 21,325 (of 32,524 total)
Skip to toolbar