Forum Replies Created
-
In reply to: Full Content of Most Recent Post on Front-Page?
Made some changes, but this works:
<?php
$forum_id = 1;
$forum_one_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id ORDER BY topic_time DESC LIMIT 0,10") ?>
<?php foreach($forum_one_topics as $topic) :
?>
<a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><br />
<?php endforeach; ?>
but it doesnt show the typed text only the title of the forum. What to add to also show the typed text (NOT the replies ofcourse)
Many thx
In reply to: Full Content of Most Recent Post on Front-Page?Ow I forgot the forum_id…
K I now have this in frontpage.php:
<?php
$forum_id = 1;
$topics = $bbdb->get_results(“SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id ORDER BY topic_time DESC LIMIT 0,10”) ?>
This takes away the error but doesn’t display anything either..
Greetz The Noob
In reply to: Full Content of Most Recent Post on Front-Page?<?php $topics = $bbdb->get_results(“SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id ORDER BY topic_time DESC LIMIT 0,10”) ?> gives me a 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 ‘ORDER BY topic_time DESC LIMIT 0,10’ at line 1]
SELECT * FROM bb_topics WHERE forum_id = ORDER BY topic_time DESC LIMIT 0,10
In reply to: Full Content of Most Recent Post on Front-Page?Oke and in what file do I put this? And also where do I put the 1? (1 = forum id)
Sorry I am noob
In reply to: Full Content of Most Recent Post on Front-Page?Got it to work, but I see all 35 feeds, where to change that I also only see the last posted topic (and NOT the replies)
Sec, is it possible to only show the last 10 topics (and not the replis on them) from a certain forum? So I only see the last 10 topics from forum with id 1
Thx
In reply to: Full Content of Most Recent Post on Front-Page?I love this, can you explain more detailed (for us noobs) what you did and what you added, changed? Step by step? Can’t get this to work with the small details you gave!
Thx
In reply to: 0.74quote:
That said 0.74 will probably be released late this week or early next.
Well we are almost 2 weeks further in time since this is said, so when can we expect the new release? I mean, it’s all done right? And what is new in it? Template choosing like in wp?
In reply to: Plugin: Post NotificationThis should be standard. I know they think rss is enough, but getting rss is kinda pc restricted. If I am on a different pc, i cannot get my rss feeds, like i can get my mail (gmail). I need to install a rss programm first etc, so notification by mail is still a must!
Good plugin!
In reply to: Google AdsenseI like this, but I want my adds to show AFTER each first post.
So like:
Post: Hi I need help bla bla
google adsence
First reply: do like this bla bla
Sec reply: or like bla bla
Etc
How to do that?
And is there also a page to maintain your adsence? Like how many click etc in the admin area?
Greetz
In reply to: different bbpress install, 1 user dbAh ok well let’s theorise a bit now. Let’s say I have 100 subfolders with each a bbpress install, all using the same user db. This would work great but if bbpress has an update, I have to install that one 101 times (+1 = the main install). Kinda a lot of work so I wondered if the following is possible (with some hacking or plugin):
All users have their own id right? Well let’s say Jack is a member of forum 1 and he wants his own forum. Jacks id is 123456789 (just an excample). Is it possible to let the keymaster (and ONLY the keymaster) give Jack his own forum? The keymaster will go to Jacks profile and sees a new line in his profile called: Give this user his own forum. When checked, Jack will be admin ow his own forum (so an admin, and not a key master).
How does this work? Well when you type in: http://www.something.com/bbpress/index.php you get the standard index of the bbpress forum. If you type: http://www.something.com/bbpress/index.php?123456789 (Jacks ID), you will see the standard index of Jacks forum, which Jack controls as an admin. Posts made in this forum, are stored in the normal db, but with id: 123456789. This way we can filter all posts etc by this id for each forum. The main forum (forum 1) will ofcourse NOT show Jacks posts. The only modification to the db will be to add id to it, I think…. See this as an bbpress MU
This way I have just 1 install of bbpress needed and is easy to maintain, and I can still give others a forum too! Well in theory that is…
In reply to: different bbpress install, 1 user dbAh oke nice, perhaps it can be changed in the next release so that a banned user is only banned on the forum banned from? I mean an admin is also admin on 1 forum…
And registrating on forum 2 will go alright? No conflicts? The new user will be added in bb_users and not in b2_users?
Going to play around with this, thanks for the info!
Null
ow one more question:
To make it so that when a user is logged in to one forum, that user is also logged into the other, you will probably have to add the following line to both config.php files:
Does this mean that when I look who is online at forum 1, I also see user X (who is online at forum 2) as online at forum 1? Don’t want that…
In reply to: Plugin: Simple OnlinelistGreat plugin, if you made this one AJAXED it would be even greater!
PS: it just tells who was online over the past 5 minutes. This is not true, it only shows te persons currently online, which is good!
Would be nice to add total guests too
Greetz