Forum Replies Created
-
In reply to: PHP Help (Compressing code)
NightGunner5: I’ll test that when I get a chance, thanks!
FinalWebsites: The plugin calls the image a certain name. If the user is “admin” the admin’s avatar will be “avatar.jpg” but could also be “avatar.gif” etc. This code hopefully will reduce the code.
Thanks again!
In reply to: Ubuntu India Forum redesignThat Facebook type bar won’t work in Ie7 or prior since you used position:fixed, instead it gets pushed to the bottom… i think.
<td class="num">
<?php
function gs_get_topic_last_poster_profile_link() {
global $topic;
if ($topic)
return sprintf('<a href="%s">%s</a>', get_user_profile_link($topic->topic_last_poster), get_topic_last_poster($topic->topic_id));
return false;
}
?>
</td>In reply to: Problems with “Forum Is Category” in 1.0 Alpha-6_ck_, I think they mean when making a forum a category (no posts), when starting a new topic it shows up (which i think is fine to index things properly. e.g. you might have to ‘General’ Forums in 2 Categories. Anyway then it takes them to a page stating the topic is closed, since there is no posts allowed there.
With your second question, you could probably edit that out, messing with the theme.
Why don’t you just update to version 1.0.1? Why stay on an unstable version where bugs are expected?
In reply to: Editing bbPress tags in CP like WordPress canYou can use CSS to do this. Simply find the class or id of the tags (view source is the quickest way), probably enclosed in <p> tags, I can’t remember, then edit the style.css file in your theme. Find the class/id and add:
‘text-transform:capitalize;’
More info can be found here: http://www.w3schools.com/Css/pr_text_text-transform.asp
In reply to: Avatar Upload in bbPress 1.0Make sure you have inserted the code.
Refer to the installation notes you should have got with your download.
Maybe this will work:
<a href='<?php bb_uri(); ?>/profile/<?php topic_last_poster(); ?>"><?php topic_last_poster(); ?></a>
Not 100% sure it would work since <?php topic_last_poster(); ?> grabs the display name, not the user name I think. Well there’s a start.
In reply to: Plugin: Avatar UploadIt would be awesome for _ck_ to help out, s/he (sorry) has been fixing bugs before! It’s an awesome plugin by the way, thanks for making it!
In reply to: Avatar Upload in WordPressHey thanks _ck_
I found this snippet of code
<?php global $user_identity;
get_currentuserinfo();
if ($user_identity == ”) {
echo(‘Welcome Guest’);
} else {
echo(‘<img src=”/forum/avatars/’ . strtolower($user_identity) . ‘” alt=”avatar” />’);
}
?>
Which doesn’t cause an error but doesn’t display an image. I don’t think a file type is being declared which results in a 404 and then the alt text is displayed.
I did however come up with this, which is a modded version (to be used on a homepage)
<?php echo(‘<img src=”/forums/avatars/’ . $current_user->user_login . ‘.jpg” />’); ?>
<?php echo(‘<img src=”/forums/avatars/’ . $current_user->user_login . ‘.png” />’); ?>
<?php echo(‘<img src=”/forums/avatars/’ . $current_user->user_login . ‘.gif” />’); ?>
<?php echo(‘<img src=”/forums/avatars/’ . $current_user->user_login . ‘.jpeg” />’); ?>
I’m not sure how to find out the file extension via php so I just created 3 extra lines of code for the 4 types of files the form should accept.
If anyone wants to clean up my code I’d greatly appreciate it, I’m only just learning php (noob ) after playing with CSS and (x)HTML for a while. I know, the code will not be valid.
Thanks again, _ck_ ( I didn’t realize there was 2 help forums for that plugin)
In reply to: CSS not found (but it is there)Hey, thanks for the reply.
I found a fix by placing my theme in the bb-templates folder (I know we’re not supposed to). Even placing the original templates in my-templates folder screwed up. I think it’s a chmod issue.
Thanks anyway though.
In reply to: Whats the deal with avatars and bbPress?Thanks _ck_, nice work with your plugins as well, you’re basically building the other half of bbPress