Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,876 through 11,900 (of 32,504 total)
  • Author
    Search Results
  • #146456

    In reply to: CSS Plugin

    Robin W
    Moderator

    @blankstage – not a bad description of what css does. css (cascade style sheets) changes the way the information is displayed – for instance font sizes, colours, where stuff appears, backgrounds. So the core code decides what is displayed, and css how !

    some themes allow you to alter css, some don’t, but you can use a plugin such as ‘simple css’ to add css code without needing to access the backend.

    #146451
    Robin W
    Moderator

    @nirgalo

    Thanks for your comments, I have not been ignoring you, I have been running a training course all today.

    It’s great that you plan to improve an existing plugin, this is exactly what community software is all about, and I really hope that you will share it when done to help others :-).

    I would hasten to add I have nothing to do with bbPress, I just help out on the forum, and have written a few bbPress plugins, so views are my own!

    There’s lots I’d like to see in a core bbPress or as well maintained plugins, but someone has to write the stuff, and as it’s free no-one gets paid to do so. Where there is perceived demand, then hopefully the core guys will add it.

    Read/unread is a popular feature on many forums, I don’t use it on my own as it’s not relevant, but I do take advantage of other forum sites that do, and you could easily argue that it should be core, but then of course it would only be the way that the bbPress guys want it to work, which could be either of the plugins that you don’t like !

    Of course ones person’s standard is another’s stifling of innovation, and that community software can grow organically is both an argument for it, and an annoyance with it πŸ™‚

    Anyway, I would love to see a read/unread plugin along the lines you propose, so if you’re the man to code it, and then share with us, you’ll be very welcome here ! necessity is the mother of invention.


    @blankstage
    – hey thanks for your comments- they cheered me up after a long day !

    #146449
    gianjj
    Participant

    Opss REPLACE the CODE TAG with ‘

    #146448
    gianjj
    Participant

    This script launched in QUERY ANALYZER of MsSQL server will generate a list of SQL to import in MySQL ; remember to select “Result in a File”

    Alla this script will not take effect on your database, but will help you to pre-generate all SQL to move your data….
    TEST IT BEFORE MOVE ALL DATA YOU ARE THE ONLY ONE RESPONSABLE OF YOURS WORK πŸ˜›

    
    
    --------------------------------
    --- Will Generate a List of INSERT INTO query
    --- Formatted for MySQL table: wp_users
    --- JUST ONE MEMEBR
    --------------------------------
    Select TOP 1
    'INSERT INTO ''wp_users''(''ID'', ''user_login'', ''user_pass'', ''user_nickname'', ''user_email'', 
    ''user_url'', ''user_registred'', ''user_activation_key'', ''user_status'', ''display_name'') 
     VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', '''+M_NAME+''', ''REMEMBER_TO_REST_ALL_PASSWORD'', '''+M_NAME+''','''+M_EMAIL+'''
     , '''+M_HOMEPAGE+''', '''+M_NAME+''', '''+
     	substring(M_DATE, 1,4)+  '-' + substring(M_DATE, 5,2)+ '-'+
    	substring(M_DATE, 7,2)+  ' ' + substring(M_DATE, 9,2)+ ':'+ 
    	substring(M_DATE, 11,2)+ ':' + substring(M_DATE, 13,2)
     +''','''',''0'','''+M_NAME+'''
     );'
    from dbo.FORUM_MEMBERS order by MEMBER_ID asc
    
    --------------------------------
    --- Will Generate a List of INSERT INTO query
    --- Formatted for MySQL table: wp_usermeta
    --- JUST ONE MEMEBR
    --------------------------------
    Select TOP 1
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''first_name'', '''+M_FIRSTNAME+''');',
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''last_name'', '''+M_LASTNAME+''');', 
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''nickname'','''+M_NAME+''');',
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''description'', '''');',  
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''rich_editing'', ''true'');',  
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''comment_shortcuts'', ''false'');', 
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''admin_color'', ''fresh'' );', 
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''use_ssl'', ''0'');',  
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''show_admin_bar_front'', ''true'');',  
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''wp_capabilities'', ''a:1:{s:10:"subscriber";b:1;}'');',  
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''wp_user_level'', ''0'');',  
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''dismissed_wp_pointers'', ''wp330_toolbar,wp330_saving_widgets,wp340_choose_image_from_library,wp340_customize_current_theme_link,wp350_media,wp360_revisions,wp360_locks'');',  
    'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''default_password_nag'', ''1'');'  
    from dbo.FORUM_MEMBERS order by MEMBER_ID asc
    
    #146447
    gianjj
    Participant

    Example of DATE formatted with functionaly made for MSSQL Server

    
    ---------------------
    --- 10 TOPIC POST from FORUM_TOPICS
    ---------------------
    SELECT TOP (10) 
    
    	substring(T_LAST_POST, 1,4)+  '-' + substring(T_LAST_POST, 5,2)+ '-'+
    	substring(T_LAST_POST, 7,2)+  ' ' + substring(T_LAST_POST, 9,2)+ ':'+ 
    	substring(T_LAST_POST, 11,2)+ ':' + substring(T_LAST_POST, 13,2)
    	AS T_LAST_POST_FORMATTED, 
    
    	substring(T_DATE, 1,4)+  '-' + substring(T_DATE, 5,2)+ '-'+
    	substring(T_DATE, 7,2)+  ' ' + substring(T_DATE, 9,2)+ ':'+ 
    	substring(T_DATE, 11,2)+ ':' + substring(T_DATE, 13,2)
    	AS T_DATE_FORMATTED,
    	*
    FROM FORUM_TOPICS
    
    ---------------------
    --- 10 TOPIC REPLY from FORUM_REPLY
    ---------------------
    
    SELECT TOP (10) 
    	substring(R_DATE, 1,4)+  '-' + substring(R_DATE, 5,2)+ '-'+
    	substring(R_DATE, 7,2)+  ' ' + substring(R_DATE, 9,2)+ ':'+ 
    	substring(R_DATE, 11,2)+ ':' + substring(R_DATE, 13,2)
    	AS R_DATE_FORMATTED,
    	*
    FROM FORUM_REPLY
    
    ---------------------
    --- 10 USER from FORUM_MEMBERS
    ---------------------
    SELECT TOP (10)  
    	substring(M_DATE, 1,4)+  '-' + substring(M_DATE, 5,2)+ '-'+
    	substring(M_DATE, 7,2)+  ' ' + substring(M_DATE, 9,2)+ ':'+ 
    	substring(M_DATE, 11,2)+ ':' + substring(M_DATE, 13,2)
    	AS M_DATE_FORMATTED,                      
    	*
    FROM FORUM_MEMBERS
    #146443

    In reply to: CSS Plugin

    Brent Brooks
    Participant

    I use a theme and drop in CSS in an ePanel. So far it seems to be working. CSS confuses me but I think it is the code that creates the forum and the makers have made it so when you do it it does not destroy the core of the code – but one can alter it and delete it later and it all returns to normal…

    JBBoY
    Participant

    Thanks a lot for your response πŸ™‚

    I have seen in “Step by step guide to setting up a bbPress forum – Part 1”

    Step by step guide to setting up a bbPress forum – Part 1

    The way I want my forum looks like. Is this screenshot from previous versions and now there isn’t an easy way to do this ? I just want the topics (better last 4 topics of each forum) under the name of the forum wich they belong. The only solution is hardcoding? I don’t know where to start. Which file should I edit to change the forum structure? :S

    Thanks a lot for all.

    #146431
    nirgalo
    Participant

    @robin-w – thanks for pointing out bbPress Mark as read plugin. I have checked it but for the reason mentioned above (not using the same db keys), it is not compatible with bbPress Unread posts plugin. So what I’ll do it make a custom version of bbPress Unread posts plugin whose code is simple and easily fixable and get along with this. Again, the read/unread state of posts really needs to be standardised by bbPress to prevent these incompatibilites between plugins.

    #146426
    nirgalo
    Participant

    Hi, I would like the unread posts for a given user to display distinctively so the user quickly knows what to read. Also I would like threads which have new replies to also display distinctively. Not necessarily through colors, maybe using icons.
    There is a plugin bbPress Unread Posts doing close to what I am looking for, but it is not maintained anymore. Why such a basic feature needs to be done through a plugin and is not part of the bbPress stock features? Any idea of other plugins or custom code I can use?

    #146416
    herowp
    Participant

    Howdy.

    I have a problem with the breadcrumb navigation link. The link to the root forum(which returns a 404 page) is

    http://example.com/forums/forum

    and it should be:

    http://example.com/forums/

    I have no idea what to do, as I only installed the plugin and activated it.

    Can someone help me?
    Kind regards.

    Robin W
    Moderator

    ‘I have some forums that only serves as main forum for sub-forums’

    Try setting them as categories rather than forums – on the edit forum page you will see the option on the right hand side

    ‘It would also be nice if members could comment on a post, but not create new topics.’

    You can create a custom role to do this – see

    Layout and functionality – Examples you can use

    Layout and functionality – Examples you can use

    If you are not very good at code, come back and I will try to help further

    Robin W
    Moderator

    ok, on your breadcrumb issue see

    Layout and functionality – Examples you can use

    On your weird forums page, given that it says “continue reading” I suspect that your theme is treating this as a post, and just giving what it thinks is an ‘excerpt’.

    I’d suggest you next try setting up a page called ‘forums’ and using [bbp-forum-index] to get it to render. ie

    Step by step guide to setting up a bbPress forum – Part 1

    method 2

    If this doesn’t work, then come back

    Cars10
    Participant

    ..and same applies for scripts in line 245 (after code above was inserted)

    Cars10
    Participant

    Temp fix as we don’t know if we get a fix any time soon:

    file: /wp-content/plugins/bbpress/includes/core/template-functions.php
    at 173, INSERT
    		//Temp fix
    		$located = str_replace( "//", "", $located );
    		$located = substr($located, strpos($located, "/"));
    before:
    // Enqueue the style
    #146398

    In reply to: CSS Plugin

    Robin W
    Moderator

    I have thought several times about building a bbPress styling plugin, but not had time yet !

    There’s plenty about styling in the documentation

    Codex

    including a styling crib

    bbPress Styling Crib

    and instructions on how to style

    Step by step guide to setting up a bbPress forum – part 2

    #146396

    Topic: CSS Plugin

    in forum Plugins
    Solidify
    Participant

    My theme comes with an option in the settings to add my own CSS codes. I love it because I’m just starting out and learning a lot about CSS by just putting snippets of code in there and seeing what it does. Of course none of it fazes my forum and that really really sucks because I’ve read a lot of great reviews about bbPress and I’d like to use it on my site.

    Why doesn’t bbPress have the same feature? Is there an up to date plugin I can use, or do I have to create a custom style sheet?

    #146391
    Stephen Edgar
    Keymaster

    Thanks, I’ll add the BBCode [video=youtube_share;$1]$2[/video] as part of the vBulletin importer.

    And yes, let me know how it goes.

    #146388
    jbuesking
    Participant

    Apparently having a few broken attachments lingering from a phpbb3 to Kunena migration several years ago is what is giving me a problem now migrating attachments to bbPress.

    The error I’m seeing in my logs is:

    [15-May-2014 22:32:08 UTC] PHP Warning:  copy(http://www.mydomain.com/media/kunena/attachments/phpbb3/Cabs%201.jpg) [<a href='function.copy'>function.copy</a>]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
     in /home/username/public_html/dev002/kunena-attachments-to-bbpress.php on line 45

    I looked to see if there was a “Kunena fix for broken attachments” script but nothing popped up yet.

    #146386
    MediaSVI
    Participant

    The SoundCloud is BBCode I got from vbulletin.org The youtube is part of VBulletin when it is installed.

    <object height="81" width="100%"><param name="movie" value="http://player.soundcloud.com/player.swf?url=Paste SoundCloud Link Here&g=bb"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=Paste SoundCloud Link Here&g=bb" type="application/x-shockwave-flash" width="100%"></embed></object> <a href="Paste SoundCloud Link Here">Paste SoundCloud Link Here</a>

    I will re import the forum using the file you just made and let you know how it works.

    jeffacubed
    Participant

    I’m having what I ‘hope’ to be a major over-site as far as how bbPress new user registration functions on a WP multisite environment. I’m using bbPress 2.5.3 & WP 3.9.1 with three sub (directory) sub-sites:

    example.com (site1 or the root)
    example.com/site2
    example.com.site3

    I have ‘site2’ & ‘site3’ setup & working 100% with two separate, distinct bbPress forums: site2 = english, while site3 = french. Now the user registration ISSUE:

    When new users try to sign-up for either site2 or site3, say using [bbp-register] the bbPress registration process sends then automatically to the ‘root’ site (site1) at example.com/wp-signup.php – which is very problematic as example.com uses a different theme & content-wise a completely different site than site2 or site3

    I’m not stranger to digging into the php &/or template files – but I’m a bit confused around:

    1. If I’m missing something that’s entirely obvious that immediately resolves the new user registration issue w/ bbPress on multisite

    2. If not ‘1’ – what might be the ‘code-path’ of least resistance to resolve this specific issue

    Any input/ideas/suggestions would be fantastic,

    -Jeff

    #146374
    JBBoY
    Participant

    Hi community,

    My forum in BBpress It’s working properly and It’s awesome! congratulations! nice job guys!!

    But hope you can help me with a little problem. If I access the forums normally styles are ok, but when I show the forums via shortcodes like [bbp-forum-index] then the text fonts are different from what they should be. Is there a way to show the same font using the forum directly from url and with the shortcodes application?

    Thank you in advance for your help and time.

    #146362
    rbbouman
    Participant

    OK, I get it πŸ™‚

    In your opinion, does it make sense to deinstall all plugins instead of deactivating them in order to test this? Or do I have to perform a new fresh install, since code already might have been overwritten and this is probably not undone by deinstalling plugins. I can do both on my local dev.

    #146356
    Stephen Edgar
    Keymaster

    I just checked the difference between the current version included with bbPress and that version you linked above. The version included with bbPress has quite a few enhancements, password support, forum categories, author IP, closed topics, sticky topics and topic tag slugs.

    The difference that you need is the BBCodes:

    // This is what is currently included with bbPress for YouTube:

    
    $vbulletin_markup = preg_replace( '/\[video\=youtube;(.*?)\](.*?)\[\/video\]/', '$2', $vbulletin_markup );
    

    //And this is what we had in that custom linked version:

    
    // Replace '[video=youtube;$1]$2[/video]' with '$2"
    $vbulletin_markup = preg_replace( '/\[video\=youtube;(.*?)\](.*?)\[\/video\]/', '$2', $vbulletin_markup );
    		
    // Replace '[video=youtube_share;$1]$2[/video]' with '$2"
    $vbulletin_markup = preg_replace( '/\[video\=youtube_share;(.*?)\](.*?)\[\/video\]/', '$2', $vbulletin_markup );
    // Replace '[SOUNDCLOUD]$1[/SOUNDCLOUD]' with '$1"
    $vbulletin_markup = preg_replace( '/\[SOUNDCLOUD\](.*?)\[\/SOUNDCLOUD\]/', '$1', $vbulletin_markup );
    

    So the addition of these two BBCodes:

    [video=youtube_share;$1]$2[/video] and [SOUNDCLOUD]$1[/SOUNDCLOUD]

    Do you know if both of these BBCodes are included with all vBulletin versions or are these custom BBCodes you manuallly created in your vBulletin install?

    Either way I just updated that gist with the above BBCode that you should be able to download and test as you did 8 months ago, it has ‘all the things’ above included in it. πŸ™‚

    https://gist.github.com/ntwb/513187363f36b56ec77d

    #146351
    Stephen Edgar
    Keymaster

    For reference the core SQL queries: (Don’t forget the table prefix e.g. wp_)

    Forums:

    
    SELECT 
    symposium_cats.cid AS cid,
    symposium_cats.cat_parent AS cat_parent,
    symposium_cats.title AS title,
    symposium_cats.stub AS stub,
    symposium_cats.cat_desc AS cat_desc,
    symposium_cats.listorder AS listorder 
    FROM wp_symposium_cats AS symposium_cats
    

    Topics

    
    SELECT 
    symposium_topics.tid AS tid,
    symposium_topics.topic_category AS topic_category,
    symposium_topics.topic_owner AS topic_owner,
    symposium_topics.topic_post AS topic_post,
    symposium_topics.topic_subject AS topic_subject,
    symposium_topics.stub AS stub,
    symposium_topics.allow_replies AS allow_replies,
    symposium_topics.topic_sticky AS topic_sticky,
    symposium_topics.topic_started AS topic_started,
    symposium_topics.topic_date AS topic_date 
    FROM wp_symposium_topics AS symposium_topics 
    WHERE symposium_topics.topic_parent = 0
    

    Replies

    
    SELECT 
    symposium_topics.tid AS tid,
    symposium_topics.topic_category AS topic_category,
    symposium_topics.topic_parent AS topic_parent,
    symposium_topics.topic_owner AS topic_owner,
    symposium_topics.topic_post AS topic_post,
    symposium_topics.topic_started AS topic_started 
    FROM wp_symposium_topics AS symposium_topics 
    WHERE symposium_topics.topic_parent != 0 
    
    #146348
    Stephen Edgar
    Keymaster

    Turns out when I said it was late, it was, I downloaded and installed the plugin πŸ˜‰

    Firstly for most forum importers I use a set of categories and forums based on the ‘Nested Set Model’, this gives a great hierarchy layout to test with.
    https://en.wikipedia.org/wiki/Nested_set_model#Example

    First issue (question) is, why the converter doesn’t find forums. Or at least doesn’t convert them.

    For the ‘Forum slug’ you have slug it should be stub

    Does WPS ‘pretty permalinks’ even work? I am guessing that’s what these are?

    Once I changed that the forums imported fine with correct title, desc, parent, order, slug.

    We don’t need to worry about counts as the bbPress repair tools will do this for us

    Categories or Forums I am not sure of, to set a category in WPS I set the Allow new topics? field to no we can use this to decide if the bbPress forum will be a forum or category if this is indeed the intended purpose of this field.

    Cloudup nea52czefrz

    I’ll go take a look at the topics and replies now…

Viewing 25 results - 11,876 through 11,900 (of 32,504 total)
Skip to toolbar