winger wrote:

I understand, but it only let's me select One parent forum. sad And it must already exist, so I must first create (for example) a new forum, and then select it as parent forum...

And??? How can you have a parent forum as a parent forum if that forum doesn't first exist? I'm completely baffled as to what the problem is here.

Using your first example. You create two forums. Accepted and Declined. You then make Staff Apps their parent forum.

You can have as many subforums per parent forum as you want, but only one level deep. You cannot make sub-subforums.

* Set Forums to be displayed (This will *only* show what the administrator has set in the ACP)

That part above. Would that use checkboxes for each forum available?

Also, the boxover thing, is that part of the css stylesheet only? Can't say as I've noticed that in the script.

You mean on all forum titlebars, it'll show, in the last column: Subject, poster, rather than date, time, poster?

quaker wrote:

mattf i was looking at it.. i might be wrong but does that need a new query from the user db tables?

Q

Which bit? big_smile

No idea until I have a look later, but the user tables are already accessed during the db lookup, so adding an extra field or two to the existing lookup shouldn't be a problem.

bingiman wrote:

Thanks MattF,

I would think that it would be better for the stuff to be placed in the user profile, this way a member can set how many items will be displayed on the front page, but the forums to be displayed on the front page would be set by the admin in the ACP. Just my idea...I could be wrong. big_smile

I'll have a peek. big_smile Can you make a list of which configuration options want to be where, i.e: profile or admin sheets. Cheers. smile

Btw, I'll have a few questions on that latest posts/multiple forums/individual forum counts thing later. That thing becomes more of a nightmare each time I think about it. big_smile big_smile

Why not just shift them into an external directory and softlink them, if you only want to maintain one copy of the files? Btw, for security purposes, you should be using http server access controls for protecting those, if you want an extra layer of security.

bingiman wrote:

However, creating config vars would be great. I am assuming that you meant it would be able to be changed in the admin panel, or am I wrong here?

That's correct. smile The $trunc_chars, for example. If that was added to pun_config, it would remove any need for editing of the index.php file manually. Something like o_news_chars = (admin defined integer) in pun_config would be lovely. big_smile

Edit: Btw, I'll get that online/offline bit added sometime over the next day or so.

1,684

(1 replies, posted in PunBB 1.2 discussion)

Which is how it is designed to work. I believe there was a thread on this awhile ago. The post count reflects the number of posts made overall by that user, regardless of deletions. It is quite a good deterrent to users deleting posts to avoid reaching 'post whore' status. big_smile big_smile

sirena wrote:

That update I was planning isn't ready yet. I'm currently bogged down with tweaking the Calendar mod code smile

big_smile big_smile It keeping you busy then? big_smile big_smile

Have you had chance to check that multiple question/answer code in operation yet? It's only had minimal testing here. big_smile I'll get a version of it put together. Do you want me to post it up in this thread?

pkeod wrote:

I was thinking about how to make this mod so that there would be a few random questions.

I think sirena already has a multiple question/answer version of the mod in the pipeline. Might be worthwhile asking her to release it if it's stable?

reviewum.com wrote:

Hmmm... still can't find that merge forums plugin.   I'll do it manually unless someone can point it out in the next 5 hours or so.

Plugins are listed on the main download page, not punres. big_smile big_smile

http://punbb.org/downloads.php

quaker wrote:
<?php echo $is_online = ($cur_post['is_online'] == $cur_post['poster_id']) ? '<strong>'.$lang_topic['Online'].'</strong>' : $lang_topic['Offline']; ?>

Is that a suggestion or alteration? (Can't be arsed checking the code at the 'mo). big_smile Why do I get the feeling this will practically be a full blown mod by the time it's finished. big_smile big_smile

Btw, Bingiman, is this going to be incorporated into Megapun? If so, would creating config vars for the DB be okay, instead of some of the variables that require editing? I assume you'd be able to adapt the installer and admin sheets to cover that occasion?

quaker wrote:

demo link follows: http://nalan.org/8.php can we say final release?

If you're thinking final, use version 4. I've stripped out all the unnecessary single quotes and full stops, and added  's instead of blank spaces. smile Just change the number to 4 on the link to download it.

MattF wrote:

You have a single lookup, (a variation of Connors code as I couldn't get his snippet to work, but that may be a pgsql thing, so let me know if it works okay with mysql)

Just as an addendum to that bit, muppet boy here has just twigged that the code Connorhd posted on the other thread was for the miniportal mod. So, that is Connor's query adaptation adapted for this index mod. big_smile Cheers Connor. smile

If there's anything else you think of, just build the list up in this thread. Can't say when I'll have chance to get round to attempting the other additions, but I'll have a diddle when I can. smile No promises that I'll be able to manage 'em though. big_smile big_smile

I take it that was what you wanted then? big_smile big_smile

Delete that second array line. It's doing nowt. I was going to have a quick go at the forum/post count thing, but couldn't get the brain in gear on it yet, so gave up. big_smile

You mean like this?

http://outgoing.bauchan.org/unix/multi-index3.php.txt

Glad to hear that sql query is okay. Cheers. smile For the ordering, I believe that's how it's working. Sql ain't my forte. big_smile I'll see if I can figure that out.

Now that I can understand Bingiman. big_smile I'll have a diddle at some of those features over the next few days when I've chance. For now, I've altered the last one slightly:

http://outgoing.bauchan.org/unix/multi-index2.php.txt

You have a single lookup, (a variation of Connors code as I couldn't get his snippet to work, but that may be a pgsql thing, so let me know if it works okay with mysql), which pulls the latest X amount of topics from all designated forums, specified in the script by:

$forumids = array(1,2);

Just use the same comma separation for any further forums you want to add. For example:

$forumids = array(1,2,3,4,5);

There is no per forum limit at the moment.


Changed the $newsdisplay variable to:

$master_limit

Just seemed more relevant if the other changes are doable. big_smile big_smile


Have got rid of the | - - | if the topic isn't truncated.



Let me know if the sql query works on mysql. smile

Just on the offchance, check your main.tpl:

include/template/main.tpl

and see if there's anything before the <

bingiman wrote:

Well, considering that I am not a coder I really could not answer your complexed questions MattF. All I was trying to do was to get the index to display 5, 10, 15 posts. I don't know how many it will pull from each forum. Is it possible for it to pull a set amount from a variable like the $newsdisplay for example. So something like:

$newsid = array();
$newsid[] = '1, 2posts';
$newsid[] = '4, 3 posts';

etc...

Please do not crucify me. I really am lost with all this coding and to give specifics as to how it can all be done is way beyond me and this is why I am asking for the help. If it can't be done, then I accept that.

Not trying to crucify you, just to get a specific answer on how exactly you want it to behave. big_smile big_smile

Anything is possible, (within reason), big_smile but the description of how you want it to behave is still vague. It can pull as few or many posts onto the index page as you wish, but you have to decide *which posts* you want on the index page. For example, do you only want the latest posts from the forums overall? Do you, for example, want the last two posts from each forum until X limit is reached? If more forums are designated than total topics allowed, do you want topics total or per forum totals to override one or the other? Honestly, I'm not intending to sound tardy, and apologies if I do, but I still can't visualise exactly what your exact preference is for its behaviour.

Getting it to stick to an overall total is no problem whatsoever. The bit that's vague is exactly how you want it to discriminate on which topics/posts it shows within that total. smile I'll have a go at getting it doing what you want when I have chance, but the more specific you can be, the better. With that example you gave above, would you want specific totals per forum with no overall total, or an overall total that would override forum totals if it was exceeded, or vice-versa?

soonotes wrote:

lol MattF

If you're going to rewrite it you may want to have the query check for read permissions also.

Don't you start too. big_smile big_smile big_smile

Connorhd wrote:

Well it might make sense, but i don't think it was intended, and its actually more efficient to do one query and order it using that (a similar query using an array of ids is here http://punbb.org/forums/viewtopic.php?pid=96967#p96967)

The question, though, was simply, can items be displayed from more than one forum. That is a very misinterpretable question. big_smile Btw, totally agree on the lookup/query bit. This only started out as helping on the truncation feature, however, not a full rewrite. big_smile big_smile

bingiman wrote:

It is workable and does what it is intended to do. The problem that I am having is what I explained above. When I set a second forum it displays more than the set items on the page. I want it to be able to display 5 items regardless of the amount of forums being displayed on the main page. Hope you understand what I am trying to say.

Right, so five subjects in total, irrelevant of how many forums your pulling from? How would you then decide what to display if you had six forums in the array? How many posts to display from each forum? The absolute latest posts overall to be displayed, irrelevant of which forum they're in? That's why I'm asking. That is an extremely vague answer you've given.