Search Results for 'code'
-
AuthorSearch Results
-
August 13, 2009 at 10:17 am #31486
Topic: Norwegian langaugepack?
in forum InstallationMarius-
MemberDoes that exist? The language-list is kind of a sad sight, but i see no “No” there. Any Norwegian users here?
Without it, I’m gonna have to open every single php file and translate
August 13, 2009 at 10:12 am #77985In reply to: Can I remove features from BBCODE BUTTONS?
Marius-
MemberHEEEEEEEEEEEEEEEEEEEEEEEEEEELLLLLLLL……..
Not to shout but HEEEEEEEEEEEEEEEEELLLLL
I sat up all night removing code completely, and it’s this easy? Just two slashes? Poor bastards couldn’t write that in the fucking readme file.
–
It’s not that easy, when removing the “Code” button this way, I get the following error:
Parse error: syntax error, unexpected ‘<‘ in /home/michael/public_html/forum/bb-plugins/bbcode-buttons/BBcode-buttons.php on line 29
August 13, 2009 at 6:23 am #76906In reply to: Replacing "You must log in to post" with login form
neilogic
MemberI did have the same problem but in different context where I never wanted to dive into the code because the theme I was making was to be used by someone else and thus I just wanted the person place it and activate it and it should worked rather then him diving into the code and replacing the files.
In the end what I did was , as BBPRESS 1.0+ supports the use of functions.php in theme files . so i just copied the function from the function.bb-template.php and changed the funciton name a bit and then replaced it in theme files.
Example : like “You must login to post.” is in post_form function in function.bb-template.php file. I copied the function to functions.php in my bbpress template. renamed the function from post_form -> post_form_edited and made the replacements I wanted and then in my theme files where ever it was using the old function of post_form() i replaced it with my new edited function post_form_edited().
like in your functions.php after you copy the post_form function and change it to post_form_edited you can find the line “__(‘You must log in to post.’),” and change it to anything you want. And use the new function in your theme. Like this you won’t have problems upgrading the bbpress installation too in future.
then I dived in the theme files and replaced all the post_form() with post_form_edited() and voila it worked. But in my case I knew what I was using like the plugins and stuff and thus i tested it with everything first.
I hope this helps you out . Some of the stuff I told above has been applied to the postform in http://forum.ubuntu-in.info.
August 13, 2009 at 5:37 am #25049Topic: Replacing "You must log in to post" with login form
in forum Themesrichcon
MemberIs there any way to replace that “You must log in to post.” text that appears to non-logged-in visitors with a more friendly login / registration form?
I’m a pretty skilled PHP coder and theme author, but from looking through the bbpress source that line seems to be hard-coded? I’m hesitant to start mucking with bbpress’s core files themselves (makes upgrading a pain), so is there any way to change that with a plugin?
Thanks!
August 13, 2009 at 4:55 am #77984In reply to: Can I remove features from BBCODE BUTTONS?
_ck_
ParticipantSimply put two slashes in front of any code you want to disable.
ie.
// BBcodeButtons.push(new BBcodeButton('ed_ol','OL','-
','
// BBcodeButtons.push(new BBcodeButton('ed_li','LI','[*]','[/*]','l','','list item'));";August 12, 2009 at 8:48 pm #77983In reply to: Can I remove features from BBCODE BUTTONS?
Marius-
MemberUgh, talking to myself here. There is a bug with the Link function which fucks up IE, I suppose everyone has stopped caring now.
August 12, 2009 at 8:32 pm #77982In reply to: Can I remove features from BBCODE BUTTONS?
Marius-
MemberAlright can someone help me remove some features from this?
I want to remove List, Unordered List, Close, Center, ORdered list, Code, URL, Strike through:
<?php
/*
Plugin Name: BBcode Buttons Toolbar
Plugin URI: https://bbpress.org/plugins/topic/114
Description: Automatically adds an easy access button toolbar above the post textarea to allow quick tags in BBcode. This is an enhanced replacement for the Comment Quicktags plugin. No template editing required.
Author: _ck_
Author URI: http://bbShowcase.org
Version: 0.0.9
License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/
Donate: http://bbshowcase.org/donate/
*/
add_action('post_form','bbcode_buttons',11);
add_action('edit_form','bbcode_buttons',11);
add_action('bbcode_buttons','bbcode_buttons');
function bbcode_buttons() {
$tags = bb_allowed_tags();
echo "<scr"."ipt type='text/javascript' defer='defer'>
function BBcodeButtons_init() {
BBcodeButtons.push(new BBcodeButton('ed_bold','Fet','','','b','font-weight:bold;','Fete bokstaver'));
BBcodeButtons.push(new BBcodeButton('ed_italic','Kursiv','','','i','padding-right:7px;font-style:italic;','Kursive bokstaver'));
BBcodeButtons.push(new BBcodeButton('ed_under','U','','','u','text-decoration:underline;','underline'));
BBcodeButtons.push(new BBcodeButton('ed_strike','S','','','s','text-decoration:line-through;','strike through'));
BBcodeButtons.push(new BBcodeButton('ed_link','URL','','[/url]','a','text-decoration:underline;','make a link'));
BBcodeButtons.push(new BBcodeButton('ed_block','“Sitat”','','q','padding:0 1px 1px 1px;','Siter tekst'));";Quote:','
if (isset($tags['img'])) {echo "BBcodeButtons.push(new BBcodeButton('ed_img','Bilde','[img]','[/img]','m',-1));";}
echo "BBcodeButtons.push(new BBcodeButton('ed_ul','UL','-
','
BBcodeButtons.push(new BBcodeButton('ed_ol','OL','-
','
BBcodeButtons.push(new BBcodeButton('ed_li','LI','[*]','[/*]','l','','list item'));";
if (isset($tags['center'])) {echo "BBcodeButtons.push(new BBcodeButton('ed_center','center','','','c','','center'));";}
echo "BBcodeButtons.push(new BBcodeButton('ed_code','CODE','','p','line-height:160%;font-size:80%;letter-spacing:1px;font-family:anadale,serif;','unformatted / code'));Code:','
BBcodeButtons.push(new BBcodeButton('ed_close','close','','','c',' ','auto-close any tags you left open'));
}</scr"."ipt>
<scr"."ipt src='" .bb_get_option('uri').trim(str_replace(array(trim(BBPATH,"/\"),".php","\"),array("",".js","/"),__FILE__),"/\")."?0.0.9' type='text/javascript' defer='defer'></scr"."ipt>";
}
?>August 12, 2009 at 5:29 pm #77981In reply to: Can I remove features from BBCODE BUTTONS?
Marius-
MemberThis plugin is no good. You have to press each button twice? One for quote-start, one for quote-end. You can’t mark up text and wrap it in tags. This is not logical
August 12, 2009 at 4:37 pm #77980In reply to: Can I remove features from BBCODE BUTTONS?
Marius-
MemberJust tried deleting BBCode because I found that BBcode Lite made it work. But then the buttons disappeared.
Does BBCode Lite require the normal BBCode Buttons plugin to work?
August 12, 2009 at 3:03 pm #77994In reply to: Limit width of images in ALLOW IMAGES plugin?
Ipstenu (Mika Epstein)
ModeratorTry CSS instead
Set the max-width for post.imgto what you want, and possible make it overflow: hidden as well.August 12, 2009 at 2:41 pm #77979In reply to: Can I remove features from BBCODE BUTTONS?
Marius-
MemberYou know what, this plugin doesn’t work at all for me.
–
edit: Just tried out BBCode Lite, and that works.
Can you limit the width of an image, so it doesn’t exceed the forum?
August 12, 2009 at 2:27 pm #31481Topic: Can I remove features from BBCODE BUTTONS?
in forum PluginsMarius-
MemberI just installed it, and it’s great, but for me, it has too many features.
Can I remove some of them? I mainly want to keep Bold, Italic, Quote and Link. Not the other stuff.
There’s no settings panel for it in Admin.
August 12, 2009 at 1:32 pm #77947In reply to: WordPress / BB Press Issue with logging in users
Sam Bauers
ParticipantMake sure you update the settings in the bbPress Integration plugin as well and then copy the new code it produces into wp-config.php
August 12, 2009 at 1:29 pm #77973In reply to: Can I use the forum as a page in WordPress?
Marius-
MemberThats too complicated for me. I’m not an expert coder at all.
I barely manage to change colors and sizes in the CSS. Just moving the search-bar is a several hour project for me lol.
I was hoping there was an easy way out, just to make the forum load in the normal page-window, like a normal post would have. Give it the value of a post or something. But recreating a brand new template, and all that stuff, is way too hard for me.
August 12, 2009 at 1:13 pm #77972In reply to: Can I use the forum as a page in WordPress?
buddha-trance
MemberWhen I edited the Kakumei files, I recreated a sidebar to match the look of the blog with the forum tags and other stuff (blog latest posts, etc.), but without the widgets. The look still matches the blog, though the content of the sidebar is different. Whatever you have as text widgets in the blog you can always hard code in the forum sidebar.
The “sidebar” is in front-page.php, under
<div id=”hottags” role=”main”>
hard code any sidebar content there, then match the css in the stylesheet. You can even float the div to the right, rather than the left, depending on your blog’s theme.
August 12, 2009 at 12:05 pm #68924In reply to: WPMU integration
ovizii
Participanttha code snippet by clarko seems to do the trick even with bbpress 1.0.1 and wpmu 2.8.4
August 12, 2009 at 10:51 am #59126zvoort
MemberGreat, tnx!
August 12, 2009 at 4:05 am #77958In reply to: WordPressMU + BBPress Theme
Archie Webmaker
ParticipantSorry, Everything is running fine. “the page not found” was simply because of the wordpress custom code in the title. I just type in title name and it run fine.
August 11, 2009 at 11:54 pm #77967In reply to: Can I use the forum as a page in WordPress?
Ipstenu (Mika Epstein)
ModeratorThis is just a custom theme.
You could do it by making either a page with a redirect to the forum, or just a link to the forum in the header, and then theme your forums to look like your site.
All the cool kids do it
August 11, 2009 at 7:32 pm #77906In reply to: Custom text for password mail message
Olaf Lederer
Participant
no one here with some advice on how to fix that?
this kind of feature is important for every forum owner
August 11, 2009 at 4:46 pm #75839In reply to: Display the Author of a topic
srydzinski
MemberI’m a little confused by this solution. where does this code need to go?
August 11, 2009 at 3:59 pm #76675In reply to: Navigation not working only for Page 1
_ck_
ParticipantIf this appears in your
front-page.php, then you have bbPress 1.0.x and you have a bug<?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>The same bug was in some rare cases of 0.9
and I programmed around it in
topics-per-pageI doubt it will work properly on 1.0 but you can try installing the plugin, remove the above line and replace it with
<div class="nav"><?php front_page_pages(); ?></div>August 11, 2009 at 10:49 am #76792Gautam
MemberThanks
August 10, 2009 at 7:29 pm #69747In reply to: phpbb3 -> bbpress converter
unholyfruitbat
Membercloo, were there any errors during your conversion?
I was going to attempt 3.0.4 > bbpress 1.0.2 until I saw this
August 10, 2009 at 6:12 pm #77866In reply to: Login does not work after successfull install?
Ipstenu (Mika Epstein)
ModeratorI’m sorry
That is the ONLY time I’ve seen that error. I mean, you can’t login, so clearly you have no plugins activated to be causing that.
-
AuthorSearch Results