Search Results for 'code'
-
AuthorSearch Results
-
October 26, 2006 at 1:03 pm #50635
In reply to: Suggestions for profile.php
Nola1974
ParticipantChanges I made:
example: http://overnights.org/profile/2
style.css
#userinfo { margin: 10px 0 5px; width:45%; float:left;}
#userinfo dt { font-weight: bold; }
#userinfo dd { margin: 0 0 5px; }
#useractivity { margin: 10px 0 5px; width:45%; float:right;}
#useractivity dt { font-weight: bold; }
#useractivity dd { margin: 0 0 5px; }
profile.php
<?php bb_profile_data(); ?>
<div id="useractivity">
<h3><?php _e('User Activity') ?></h3>
<dt><?php _e('Recent Replies'); ?></dt>
<?php if ( $posts ) : ?>
<?php foreach ($posts as $bb_post) : $topic = get_topic( $bb_post->topic_id ) ?>
<dd><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> <?php if ( $user->ID == $bb_current_user->ID ) _e('You last replied'); else _e('User last replied'); ?>: <?php bb_post_time(); ?> ago.
<?php
if ( strtotime(bb_get_post_time()) < strtotime(get_topic_time()) ) {
echo ' <span class="freshness">'. __('Most recent reply: ');
topic_time();
echo ' ago.</span>';
} else {
echo ' <span class="freshness">'. __('No replies since.') .'</span>';
}
?>
</dd>
<?php endforeach; ?>
<?php else : if ( $page ) : ?>
<?php _e('No more replies.') ?>
<?php else : ?>
<?php _e('No replies yet.') ?>
<?php endif; endif; ?>
<dt><?php _e('Threads Started') ?></dt>
<?php if ( $threads ) : ?>
<?php foreach ($threads as $topic) : ?>
<dd><a href="<?php topic_link(); ?>"><?php topic_title();
?></a> <?php printf(__('Started %s ago'), get_topic_start_time()) ?>
<?php
if ( strtotime(get_topic_start_time()) < strtotime(get_topic_time()) ) {
echo '<span class="freshness"> '. __('Most recent reply: ');
topic_time();
echo ' ago.</span>';
} else {
echo '<span class="freshness"> '. __('No replies.') .'</span>';
}
?>
</dd>
<?php endforeach; ?>
</div>
October 26, 2006 at 11:13 am #50494In reply to: post count – 1
Nola1974
ParticipantNo, I see what he means. Saying “1 post” is redundant.. if there wasn’t one post in that topic, the topic wouldn’t exist.
It should say “REPLIES” and list the number of posts in the topic, minus 1 (the original post.)
How we do that, I have no idea.. I’m still trying to find a list of template tags and attributes.
October 26, 2006 at 6:52 am #50616In reply to: deleting users
Nola1974
Participantbtw, my installation is at http://overnights.org – come log on while I figure this out.. overnighters, unite!
October 26, 2006 at 6:26 am #50559In reply to: Cannot login, Hide forum
AphelionZ
ParticipantThe quickest way to hide the forums is to simply delete the elements from the UI in the templates. Do you edit HTML or know somebody that does?
Just use <!– and –> to comment out the registration link, or comment out the php that renders it
You can also use an .htaccess file to make your forums directory password protected with a master user:pass.
If this is over your head, like i said, ask somebody. ask me!
The login problem seems to be troubling a lot of people, including myself.
October 26, 2006 at 3:47 am #50552In reply to: how to change a background, colors, CSS, …….?
bpartch
MemberHello
There is apparently some issue with the install or something as it is not getting your .css file. If you try to visit the .css url you get an internal server error:
http://n22.awardspace.com/forums/bb-templates/style.css
I am not sure what the easiest way is to fix this but I would uninstall and reinstall it again making sure all the stuff in the config.php file is accurate.
Someone else may have a easier solution.
Hope this helps.
October 25, 2006 at 10:29 pm #49417In reply to: Importing from phpBB
RedSkunk
MemberPlease! You’ll have to be patient.. we are lucky we got this phpBB to bbpress importer this quickly.. jeesh! I’m sure brunotorre will probably make up more import scripts then..
If not brunotorre, then someone else I’m sure.. We’ll just have to be patient here.. Just my 2 cents …
I was able to use his script to bring over all of my users, just by modifying the table names that it was calling for from phpBB. But his code got more complicated, especially for the posts.. For someone who has a firm grasp on php, it wasn’t as much to ask as it might seem.. But I ended up bringing over the info by hand via PHPMyAdmin… Nearly everything, minus the dates of posts since PunBB put that info on a different table altogether.
But yeah, I’m not faulting brunotorre for not getting to my issue immediately. The demand for PunBB->BBPress is prolly going to always be small. Kudos for brunotorre’s work, def!
October 25, 2006 at 6:37 pm #49677In reply to: Ultimate BBpress Guide
edwinkort
MemberGreat, thanks. Although I’m still having problems installing this
Parse error: syntax error, unexpected T_VARIABLE in /home/bookieb/public_html/bbpress/config.php on line 46
Line 46 (and further):
$bb->wp_table_prefix = ‘wp_’; // ‘wp_’; // WordPress table prefix.
$bb->wp_home = ‘www.bookieboy.co.uk’; // WordPress – Options->General: Blog address (URL) // No trailing slash
$bb->wp_siteurl = ‘www.bookieboy.co.uk’; // WordPress – Options->General: WordPress address (URL) // No trailing slash
October 25, 2006 at 6:27 pm #50070In reply to: Google Analytics Plugin
mozey
Membernice work
October 25, 2006 at 1:38 pm #50507In reply to: Tags looks very big
jammed
MemberOkay. Thanks for the link.
October 25, 2006 at 1:00 pm #49745In reply to: Keep bbPress Light
ranrar
Memberwhy not do as wordpress does? just copy a script/code into a folder and then activate the plug-in and then folow the install instructions acorting too the plug-in readme about tags? and so on?
then you can easly can deside yourself witch you need this plug-in ore not just like wordpress.
October 25, 2006 at 10:58 am #49766In reply to: Plugin Requests
Nola1974
ParticipantI would like a plugin with a imageshack/fapomatic upload form.
October 25, 2006 at 7:42 am #775Topic: next release ideas
in forum Requests & Feedbackmistainu
Member#1. have a smoother “intuitive” integration between wordpress and bbpress?
#2. plugins and theme options pages in control panel *doh*
#3. in the bbpress control panel, have a link that says “over to wordpress” and vice versa; that would require bbpress and wordpress to “recognize” each other’s presence on the website. a result of suggestion #1
#4. search function? etc
that’s all i can muster… otherwise it’s awesome.
October 25, 2006 at 7:10 am #50470In reply to: bbPress works alone, integration failed.
mistainu
Membernevermind, i figured out what went wrong:
near the bottom…
// Use the following line *only* if you will be loading WordPress everytime you load bbPress.
//define('WP_BB', true);
so i removed the //
define('WP_BB', true);
and that’s what caused the problem… now that i replaced the // back, integration works fine. but i have a question?
what was that line even supposed to do? i thought load everytime means i can callup the wordpress functions in the bbpress template? or something to that extent? someone please clarify?
October 25, 2006 at 3:32 am #49416In reply to: Importing from phpBB
spencerp
MemberWhat about importing from PunBB?
*sigh*
Please! You’ll have to be patient.. we are lucky we got this phpBB to bbpress importer this quickly.. jeesh! I’m sure brunotorre will probably make up more import scripts then..
If not brunotorre, then someone else I’m sure.. We’ll just have to be patient here.. Just my 2 cents …
spencerp
October 25, 2006 at 1:42 am #50480In reply to: another type of login problem
AphelionZ
ParticipantDid not work, I put a print statement in the userspace.php, printing “This code is being executed.” and it showed up, but does not solve the whitespace problem.
October 25, 2006 at 12:21 am #49764In reply to: Plugin Requests
ear1grey
MemberThx Philip – Naturally I was hoping to avoid the XML round-trip, but I’ll swallow that little overhead-pill for now!
October 25, 2006 at 12:02 am #49779In reply to: Permalinks?
Jaxia
MemberAhhh, my bad. I thought that is what ”pretty’ permalinks did. Something to look forward to
(BTW, xdforum uses mod rewrite rules to make it work. It’s a wordpress forum plugin. Nifty, but I guess it depends on which features are more important to the end user right now
)
October 24, 2006 at 10:54 pm #50477In reply to: another type of login problem
AphelionZ
ParticipantI copied this code into a file called userspace.php and then copied that file into the my-plugins folder. Is there anything else I need to do?
Professor Stigious is also the keymaster. Is this super problematic?
btw thank you for your fast response!
October 24, 2006 at 9:11 pm #50353In reply to: Cannot select DB.
Michael Adams (mdawaffe)
MemberThe domain should be
http://localhost
and the path should be/~myusername/bbpress/
but that shouldn’t stop the database connection.Do you know if you have PHP’s mysqli extension loaded (as opposed to the normal mysql)? If you do, try copying bb-includes/db.php to bb-includes/db-mysqli.php to overwrite that later file (it seems to be out of date).
Please let me knw if that helps or not.
October 24, 2006 at 8:18 pm #49776In reply to: Permalinks?
Jaxia
MemberI must be missing something. I tried the +Multi thing, and I kept getting an error about no input file. So, I copied the code into my .htaccess file and put it in the right directory, but my links still look like this:
http://www.youknowyouwanna.net/forums/forum/1
How can I get it to use the names of the forums, and the titles of the threads? Thanks!
October 24, 2006 at 6:36 pm #49415In reply to: Importing from phpBB
marky
MemberMy mistake; you’re absolutely right — it only displays deleted posts.
October 24, 2006 at 5:05 pm #49413In reply to: Importing from phpBB
brunotorres
MemberMarky, just after posting here I realized I forgot to convert the bbcodes. I’ll try to make it shortly.
About the announcements and sticky, I’ll give a look too.
But I still don’t have a clue why posts don’t appear on the admin. If you or anyone know why, please let me know.
October 24, 2006 at 4:30 pm #50330In reply to: Using RSS Feeds
Michael Adams (mdawaffe)
MemberI believe there are several plugins for WordPress (and even a sidebar widget) that pull content from RSS feeds.
I’d use the widget since I don’t know the names of the plugins off the top of my head. I’m sure Google does, though
October 23, 2006 at 11:02 pm #49410In reply to: Importing from phpBB
marky
MemberOK, I gave the script a shot and it imported everything very nicely!
The only snag is that the bbCodes weren’t stripped or converted in the process, so many of the posts end up looking like gibberish. Also, sticky threads and announcements weren’t converted as such, although that’s less of an issue.
I certainly hope there’s enough demand for this script to justify adding these features. Otherwise, nice job!
October 23, 2006 at 7:38 pm #50405In reply to: Creating live URLs
larmir
MemberGot it!
Didn’t use back ticks – just straight code and it works fine.
Don’t know how I missed this.
-
AuthorSearch Results