Search Results for 'code'
-
AuthorSearch Results
-
March 28, 2014 at 9:46 am #144263
In reply to: Block User
Robin W
ModeratorIt could with some coding, but this message probably applies to many situations eg not logged in
Try this in your function file
//This function changes oldtext to newtext function rchange_translate_text( $translated_text ) { if ( $translated_text == 'oldtext' ) { $translated_text = 'newtext']; } return $translated_text; } add_filter( 'gettext', 'rchange_translate_text', 20 );where old text is the old text, and new text the new.
If you have more than one of these functions (seem to think I have given you this solution for another part), then just make sure the function name is unique eg this ones called rchange… so next time maybe call it schange… and change it in first and last lines to match.
March 28, 2014 at 9:31 am #144262In reply to: Shotcodes not working
Robin W
Moderatorwhat shortcodes?
what software versions of bbpress, buddypress and wordpress are you running?
what theme?
what plugins are you running?
url of your site?
when do you get 404 – logged in, not logged in?etc.
We would love to help you, but give us a fighting chance of working out what is wrong by giving us some details 🙂
Come back and we’ll do our best to hep you !
March 28, 2014 at 7:56 am #144250In reply to: Get rid of "Private: " text in front of forum Title
cliffrohde
ParticipantI have a better than layman’s grasp of code, but not much better. Have read multiple threads. Is there an easy way to resolve the “Private: Private:” issue? I’d prefer there to be no “private” at all even though the forum is in fact private.
March 28, 2014 at 5:19 am #144247In reply to: Import old users without an email / password
Robin W
ModeratorI imported from an access database (ditto conversion to sql) so know what you’re going through! see https://bbpress.org/forums/topic/documented-import-from-snitz-access-database/ for a blow by blow of how I did this and presume you’re already well into using custom importer https://codex.bbpress.org/import-forums/custom-import/
Now given that you’re going to re-register users, then we only need the topics to be assigned to a user which exists, which then when they re-register you can set up properly.
So for instance if you have a topic with the author name of “fred” – then you need a user fred to exist. This needs to be at ID level.
So in essence you’ll need to import
topic with author ID
User with same IDMinimum info to create a user is (in theory – it may be less) ID, username, email and password.
In my case they mapped from a snitz access forum (via sql) as follows
MEMBER_ID _bbp_user_id
M_NAME user_login
M_PASSWORD _bbp_password
M_EMAIL user_emailSo I would go about it this way.
What we need to end up with is a topics/replies table that has a author ID (number) against each topic/reply.
In a user table, we then need that same ID, together with name, password and email.So first I’d go back to my lotus notes and see if topics has an author ID. If not we’ll need to create one (we’ll do that in a minute).
Then from the topics and replies lists create a set of autor names and (if it has them) ID’s
Create a user table (in my case in excel, but presume you’re familiar with creating in lotus notes) with the following headings
ID NAME PASSWORD EMAIL
If your topics/replies doesn’t have user ID’s then you just need to populate this table with unique ones, I’m pretty sure that you can just start with 1 and increment them – wordpress will assign new ID numbers as they come across starting with the next number that wordpress is not using.
For password, just put anything – and they can all be the same
Emails must be unique in theory, but don’t need to exist so abc@def.com is fine (you’ll be fixing these as they register, so doesn’t matter). But as you’re importing directly into the database, I reckon you could get away with them all being a single fictitious one. But if you have the skills, I’d create them as increments eg abc1@def.com, abc2@def.com just in case
so now you have a user table to import.
If you topics and replies don’t have author ID’s, then now go back to the topics and replies tables and run macro to populate a new column using name against the user table you’ve just created to populate with id.
Now we have topics with ID’s an da user table to import. Just check that column names match the importer, convert it all to sql, and off you go !
March 28, 2014 at 5:12 am #144246In reply to: Kunena converter for bbPress 2.4
Juan
ParticipantFinally I’ve written a small script to migrate kunena attachments to GD bbPress attachments. It is in a very early stage, any help are really wellcome. You must run the script as standalone and only after the kunena migration has been performend using the importer distributed with bbPress.
Now I’d like to write a script to convert kunena BBCode into bbPress HTML because there are some bbcodes not converted.
March 28, 2014 at 4:44 am #144245Topic: Shotcodes not working
in forum Troubleshootingyoshimitsu1234
ParticipantI have added shortcodes to few pages on my site wit both bbpress and buddypress installed but i am getting 404 error on those pages. Is there any way to resolve this issue?
March 28, 2014 at 12:30 am #144240In reply to: Order of Topics
RitaJoC
ParticipantThanks! I didn’t realize my question was answered. So, are you sure adding these codes won’t break the site? Thanks, again.
March 27, 2014 at 7:46 pm #144235In reply to: Getting errors in my log
kvr28
Participantwell, looks like that stopped the errors, but it created another issue, every time you click on a different page in the forums, it just keeps reloading the most recent posts in that forum, it doesn’t happen in most recent topic page with shortcode, the pagination works fine there, any suggestions?
March 27, 2014 at 6:36 pm #144233In reply to: Order of Topics
batmanfan
Participant@Stephen, newbie here. How and Where to add the above code please. Thank you so much.
March 27, 2014 at 3:29 pm #144230In reply to: Change the color of the link
Robin W
ModeratorThis comes from your theme’s main style, in my case
a:link { color : #EEEEEE !important ; }if you want to change this throughout your site, then drop this into your style.css (or amend the current setting)
If you just want it in bbpress
#bbpress-forums .bbp-author-name a:link { color : #EEEEEE !important ; }should work
March 27, 2014 at 3:09 pm #144228In reply to: Forum visibility and readability
Robin W
ModeratorNo, nothing you can do, but I’ve just made an error in my plugin, and I think I have solved the problem above by chance !!
The plugin will let you do this, but you’ll have to wait for the plugin though as it is still in dev – expect a week !
I should be able to get content in as well with luck !
Sorry can’t be sooner, but a lot of code to write properly now I know it works !
and of course no guarantee that I won’t find some major flaw !
March 27, 2014 at 1:48 pm #144223In reply to: Help with "facebook-style" page preview for my blog?
blessedtoes
ParticipantIt was there. I got one response which seemed – I’m not a coder, so I might have misunderstood – but seemed like my question was misunderstood, a redirect to a FB app developer page.
It occurred to me to re-post over there but I don’t want to abuse the forum so decided to try here first. Thanks, Robin (and all).
March 27, 2014 at 1:35 pm #144222Topic: Import old users without an email / password
in forum Installationadressler
ParticipantI’m importing a large subscription forum from a custom-coded Lotus Notes / Domino database (*sigh*) which I converted to MySQL. The posts exported from Lotus include User’s first and last names, but no passwords, or email addresses. These old users won’t be able sign in, but their names should be displayed next to the posts they authored that were imported to the new WP site. I would like all users to re-register for the new site in order to post new topics, etc.
So, is this even possible? Are email addresses/passwords required when importing Users based on the converter /plugins/bbpress/includes/admin/converters/Example.php? I’m really trying to avoid creating an Admin user named “Archived Author” to assign all 35,000 of these old topics/replies to.
Thanks in advance.
March 27, 2014 at 12:59 pm #144219In reply to: Forum visibility and readability
Robin W
Moderatorok, so that two posts I haven’t come back to you on !
I had a dig, and this one is not a two minute answer, and I may not be able to solve it for you.
However, I am working on a plugin for an entirely different use, but it is in the same code/function area, so as I am digging I try to see if I can work a fix for you.
BUT, I may not within time available to me
March 27, 2014 at 12:53 pm #144218In reply to: Change the color of the link
Robin W
Moderatordo you mean no. 8 in the attached?
March 27, 2014 at 12:38 pm #144214In reply to: Forum wont display correctly
Robin W
Moderatorit means that someone has gained access to your site, and put some code into it.
You really need to go through all of these to fully clean up the site and make sure any “backdoors” have been closed:
https://wordpress.org/support/topic/268083#post-1065779
http://ottopress.com/2009/hacked-wordpress-backdoors/
Additional Resources:
http://sitecheck.sucuri.net/scanner/
http://www.unmaskparasites.com/
http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.htmlor you can pay securi to fix it for you – see the link above !
March 27, 2014 at 11:52 am #144211In reply to: Change the color of the link
virusek89
ParticipantHello @Robin Unfortunately, this code only changes the color of header
and I want to change the color of the link which is next to the small avatar in freshness “link with the name of the author”March 27, 2014 at 11:49 am #144210In reply to: Help with "facebook-style" page preview for my blog?
blessedtoes
ParticipantHi (again!) Robin-
Thanks for the reply and for asking.
It is for a blog. I’ve been using iFrames so I get the ad at the top and a goofy window people have to drag around (though I thought it cool), then I came to find out many object.
I’d like to just have code to cap the title and a relevant image, just like posting a URL to FB.
Thanks again,
MatthewMarch 27, 2014 at 8:15 am #144203Topic: view topic prior to submit
in forum Pluginsbatmanfan
ParticipantIs it possible let users view their newly created topic prior to ‘submit’ it live? is there a plugin or a code to add to it? Thanks.
March 27, 2014 at 7:04 am #144201In reply to: Login widget on forums root ?
Robin W
Moderatordo you have a root page as such?
Step 3 method 2
March 27, 2014 at 4:53 am #144193In reply to: Change the color of the link
Robin W
Moderatorput this code into your style.css in your theme
#bbpress-forums li.bbp-header { background: #dc9e5a !important ; }You should select the color you want
March 27, 2014 at 4:28 am #144191In reply to: simple registration
Stephen Edgar
KeymasterYes, bbPress uses the same system as WordPress, how to do that is explained here:
https://codex.wordpress.org/Combating_Comment_Spam#Default_Comment_Spam_Tools
You can and should also enable and use the Akismet plugin.
March 27, 2014 at 3:53 am #144180In reply to: I need to enlarge some font-sizes
Robin W
ModeratorWithout spending time going back through this thread, I presume you have tried all the bits of code above. The fact that they didn’t work for the OP whose site we couldn’t see doesn’t mean they won’t work for you.
If you have done all that, come back with a link and I’ll take a look.
March 27, 2014 at 3:05 am #144179In reply to: Incomplete list of forums
webbud65
ParticipantDésolé, je n’avais pas vu la réponse.
C’est bien ça, le problème est résolu.
Juste une erreur dans le code fourni (_ Ã la place de -).
Le code rectifié :function bbp_increase_forums_per_page( $args = array() ) { $args['posts_per_page'] = get_option( '_bbp_forums_per_page', 150 ); return $args; } add_filter( 'bbp_before_has_forums_parse_args', 'bbp_increase_forums_per_page' );Merci beaucoup !
-
AuthorSearch Results