Search Results for 'code'
-
AuthorSearch Results
-
December 11, 2006 at 11:41 am #1087
Topic: Plugin Request: Forum Categories..
in forum Pluginsspencerp
MemberWas wondering if someone wouldn’t mind making up a plugin for Forum Catagory (blocks)..? Like phpBB has..
Example:
General (forum cat block 1) >
–Latest news (forum under general cat)
–General Discussions (forum under general cat)
–Site Feedback (forum under general cat)
Website Design (forum cat block 2) >
–HTML Basics (forum under website design cat)
–PHP Coding (forum under website design cat)
–CSS (forum under website design cat)
Is anyone up for doing this maybe? I think it would be nice to have this option though, rather then having ALL the forums listed under ONE Section only..
spencerp
December 11, 2006 at 11:01 am #52256In reply to: Plugin – Private Messages
spencerp
Memberardentfrost, you’re awesome! Thanks so much for getting that fixed for me!
spencerp
December 11, 2006 at 10:17 am #52170In reply to: get_topic_author() but how to get it’s profile link?
Null
MemberClose but still not there. I had to add get_ infront of it in order to work. Now this works AS LONG AS you have no replies on your topic. I wanted to get the authors profile link and not all authors of every reply….
I am making a list of posts on the front page that looks like this:
Topic title – author – postst – last reply by
To get the authors name i use: get_topic_author() this works and if i use:
<?php printf(__('<a href="%2$s">%3$s</a>'), get_user_profile_link($topic->topic_last_poster), get_topic_author()) ?>
it works and I get the authors profile link. But as soon as I get a reply, it will show the profile link of the last poster and not the author (while the author name stays correct).Things like:
get_user_profile_link($topic->topic_author), get_topic_author()
doesn’t work.So the author is the topic starter, not the last topic poster
Null
December 11, 2006 at 10:09 am #52413In reply to: Found an error in the layout already. Have a look.
spudnutsncoffee
MemberActually the h2 is the first place I went.
I changed
.topictitle{
font-size: 26px;
font-weight: normal;
display: inline;
}
to
.topictitle h2{
font-size: 26px;
font-weight: normal;
display: inline; width:50%; min-width:300px;
}
This sort of fixed it, but then I lost control of the size for h2.
Using the above code, the title fits, but the size of it was shrunk down too much. Adjusting the size back up didn’t resolve the issue. No matter what size I chose, the font for the title remained the same. This was a puzzling development. Anyone know why this would happen?
December 11, 2006 at 9:28 am #52254In reply to: Plugin – Private Messages
spencerp
MemberHmm, first time I downloaded it, I was in Firefox, I just went there in IE6 this time, downloaded .73a, deleted the original PM files, uploaded fresh ones.. Still the same thing..
To see what I mean, maybe try registering on my board quick, and then try PM-ing Trent here?
http://spencerp.net/forums/message?user=4
spencerp
/Again, all those other problems which were mentioned above, are gone, it’s just that database error showing yet..
Yeppers, I uncommented out for the Post Count thingy..
I also did a hard clear of cache too. CTRL + F5
December 11, 2006 at 9:28 am #52253In reply to: Plugin – Private Messages
ardentfrost
MemberAlso remember that you can go to postmsg.php and uncomment the lines for post count and/or avatar if you have those plugins I made installed
December 11, 2006 at 9:18 am #52252In reply to: Plugin – Private Messages
spencerp
Memberare you integrated spencer?
Yuppers!
(Sorry, forgot to add that in here..)
Oh, ok. I will do that, and try again!
I’ll report back here real soon..
spencerp
December 11, 2006 at 9:02 am #52250In reply to: Plugin – Private Messages
spencerp
MemberYES! Thank you so much fixing this.
Everything seems to be fixed, however, I’m still getting this database error message above the forum header..
When in a thread, and clicking the “PM This User” link, it spits out this database error message:
bbPress database error: [Table ‘mydatabase_name.bb_users’ doesn’t exist] SELECT * FROM bb_users WHERE ID = 2
I’ve tried both versions of the plugin, redownloaded the original one, and then tried the .73a one.. same error message..
spencerp
December 11, 2006 at 7:37 am #50841In reply to: Error for tags.php
bakedlogdotcom
Member==================SOLUTION====================
wow yes thank you I was having the same problem off of a fresh install. “browse tags” wouldn’t work.
Added to .htaccess:
AddType x-mapp-php5 .php
Thank You!
==================SOLUTION====================
December 11, 2006 at 5:01 am #52249In reply to: Plugin – Private Messages
ardentfrost
MemberYeah, thanks for helping me work through those few problems Trent (esp with your legacy version of php
).
WP Integration support is a big update for .73a, as well as the double header/footer fix.
So, download away BBPress users!
December 11, 2006 at 12:14 am #52169In reply to: get_topic_author() but how to get it’s profile link?
Trent Adams
MemberThis works on front-page.php:
<a href="<?php user_profile_link($topic->topic_last_poster) ?>"><?php topic_last_poster(); ?></a>
Trent
December 10, 2006 at 9:55 pm #52168In reply to: get_topic_author() but how to get it’s profile link?
Null
MemberThis doesn’t work cause $userid isn’t defined (i want to put this in front-page.php)
Got this:
<?php printf(__('%1$s - <a href="%2$s">%3$s</a>'), get_topic_time(), get_user_profile_link($userid), get_topic_author()) ?>
All is in a for each loop, i get the author but no link to his profile
December 10, 2006 at 9:21 am #52323In reply to: A phpBB to bbPress database converter
spencerp
MemberIMHO, the best thing to do first is, make sure you’ve imported the phpBB stuff, into a fresh bbpress install, that doesn’t have the integration with WordPress.. then, integrate it with WordPress..
As is now, *some* people are still having problems with the bbpress+wordpress integratation deal.. again, IMHO.. I would just play it safe, by doing the phpBB (import) to a normal bbpress install first.. then go from there.. ?
Trent, what do you think?
spencerp
December 10, 2006 at 6:20 am #52322In reply to: A phpBB to bbPress database converter
rablake
MemberI’ve got my bbpress install (just a simple thing to test with) integrated into my WordPress database. I’d like to be able to import selectively for testing but no screw everything up — is that possible? I note that the script calls for importing into a FRESH NEW bbpress install.
December 10, 2006 at 3:07 am #52242In reply to: Plugin – Private Messages
spencerp
MemberAlright, I had first tried those TWO files you had sent me in the email, and those didn’t work. But, checked this thread and downloaded the PM_Trent_version, and everything seems to be working just fine!
However, when clicking on the “PM This User” link, under someone else’s name, other then me.. I get taken to the send this user a PM page, without errors.. but!
I’m getting the header image showing at bottom of page with this message under it “You can’t look at this message! It doesn’t belong to you!” (I know you’re not supposed to send one to yourself, but.. just wondering why that header would still be down there though, if it’s being sent to someone else..?
)
And this happens, (for example) when clicking on “PM This User” link under Trent’s name in a thread he replied in:
http://spencerp.net/forums/topic/2?replies=4#post-23
Go to there, those that have joined my forums can try it once.. and see what I’m talking about. Maybe there’s an extra header call, that we could maybe skip having or something..?
Other then that, Trent’s PM version seems to be working just fine! Thanks Trent!
spencerp
December 10, 2006 at 1:24 am #52071In reply to: Simply doesn’t work
bakedlogdotcom
MemberI am having the same problem.. I have followed the FAQ Permalinks and still cannot get it to work.
I have set $bb->mod_rewrite = true;
I have tried writting my .htaccess with:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
Options +MultiViews
</IfModule>
I have also tried what was outputed from the “bb-admin/rewrite-rules.php”:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^forum/([0-9]+)/page/([0-9]+)$ /forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([0-9]+)$ /forum.php?id=$1 [L,QSA]
RewriteRule ^topic/([0-9]+)/page/([0-9]+)$ /topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([0-9]+)$ /topic.php?id=$1 [L,QSA]
RewriteRule ^tags/(.+)/page/([0-9]+)$ /tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/(.+)/?$ /tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ /tags.php [L,QSA]
RewriteRule ^profile/([0-9]+)/page/([0-9]+)$ /profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([0-9]+)/([a-z]+)$ /profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([0-9]+)/([a-z]+)/page/([0-9]+)$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([0-9]+)$ /profile.php?id=$1 [L,QSA]
RewriteRule ^view/([a-z-]+)/page/([0-9]+)$ /view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([a-z-]+)$ /view.php?view=$1 [L,QSA]
RewriteRule ^rss/$ /rss.php [L,QSA]
RewriteRule ^rss/forum/([0-9]+)$ /rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/topic/([0-9]+)$ /rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([a-z]+)$ /rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([0-9]+)$ /rss.php?profile=$1 [L,QSA]
</IfModule>
In either case I get a 404 error so i set $bb->mod_rewrite = false; until I can get this resolved.
December 9, 2006 at 8:49 pm #50146In reply to: Adjust Size of Hot Tags
Trent Adams
MemberYou want all the tags the same size? That is what the second code you have means. I guess it doesn’t like having tags all the same size. For reference, check out:
https://bbpress.org/forums/topic/67?replies=5#post-295
Trent
December 9, 2006 at 8:02 pm #52240In reply to: Plugin – Private Messages
Trent Adams
MemberOk…I fixed the other errors (still waiting for Ardenfrost to see if they will work or if there is a better way), but I can’t get rid of the following error when I post or reply:
bbPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '19:54:11' at line 1]
SELECT * FROM bb_privatemessages WHERE id_sender = 14 AND created_on = 2006-12-09 19:54:11
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/bb-includes/db.php:147) in /var/www/html/forum/bb-includes/pluggable.php on line 160
The error is generated from the following code in the plugin itself:
function pm_new_message( $id_receiver, $id_sender, $pmtitle, $message ){
global $bbdb, $bb_table_prefix;
$created_on = bb_current_time('mysql');
$bbdb->query("INSERT INTO ".$bb_table_prefix."privatemessages
(id_sender, id_receiver, pmtitle, message, created_on)
VALUES
('$id_sender', '$id_receiver', '$pmtitle', '$message','$created_on')");
$rmess = $bbdb->get_row("SELECT * FROM ".$bb_table_prefix."privatemessages WHERE id_sender = $id_sender AND created_on = $created_on");
return $rmess->pm_id;
}
I would ask anyone that might have an idea for me here to let me know. It doesn’t have a problem with the bb_current_time for posting normally, so I can’t understand why it doesn’t like the timestamp on this one. I have mySQL 4.1.21.
Anyone?
December 9, 2006 at 3:07 pm #52378In reply to: Plugin: Forums Moderators
spencerp
MemberOh sweet!! I’ll have to check this one out then, probably after I get that Private Message plugin working.. lol!
spencerp
December 9, 2006 at 1:23 pm #52239In reply to: Plugin – Private Messages
spencerp
MemberHahaha, no wonder you weren’t saying anything on Gtalk lmao. And yah, I didn’t get an email yet, so it must be that 40 minute deal again hahaha. Alright man, I look for your email then..
spencerp
December 9, 2006 at 11:20 am #52237In reply to: Plugin – Private Messages
spencerp
MemberUPDATE: I’m getting the same errors as Trent had mentioned above sigh. The “solution” you posted above, didn’t seem to correct anything, but.. I could have done it wrong though..
If you want too, maybe join my board, and check em out..
Also, when in a thread, and clicking the “PM This User” link, it spits out this database error message “
bbPress database error: [Table ‘mydatabase_name.bb_users’ doesn’t exist]
SELECT * FROM bb_users WHERE ID = 1
Any thoughts on this.. by the way, my board is basically setup like Trent’s board..
spencerp
December 9, 2006 at 10:26 am #52236In reply to: Plugin – Private Messages
spencerp
MemberI haven’t tested this yet, but I just downloaded it now, and will be willing to try that “solution” there ardentfrost..
I’ll report back with any “problems”, or what not..
spencerp
December 9, 2006 at 9:50 am #52235In reply to: Plugin – Private Messages
ardentfrost
Membertry to split the lines. do this:
$user = bb_get_user( $pmmessage->id_sender);
$userlogin = $user->user_login;
Don’t know if that’ll work or not, but it’s worth a try. Let me know, I’ll make the change to the release if it does.
But I’m out of town til Sunday. So when I get back, I’ll see about it.
December 9, 2006 at 12:00 am #52233In reply to: Plugin – Private Messages
Trent Adams
MemberSo far……
I noticed that there are some places where bb_users are called and for some of us that use wp_users, we will get some errors. I found this in message.php so far.
When I sent my first message, I got this error:
bbPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '23:45:07' at line 1]
SELECT * FROM bb_privatemessages WHERE id_sender = 14 AND created_on = 2006-12-08 23:45:07
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/forum/bb-includes/db.php:147) in /var/www/html/forum/bb-includes/pluggable.php on line 160
I found an error in /my-templates/postmsg.php on line 8:
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /var/www/html/forum/my-templates/postmsg.php on line 8
Still working on those right now……
Trent
December 8, 2006 at 11:08 pm #52231In reply to: Plugin – Private Messages
spencerp
MemberWOW! Awesome, thank you so much ardentfrost! I’ll download it soon, and add it to my forums then.
spencerp
-
AuthorSearch Results