No problem here either. I think we were just throwing ideas around.
2,727 2004-02-17 16:03
Re: New posts in topics. (31 replies, posted in Feature requests)
I have just realised I'm a moron (don't all applaud at once). You don't need a list of unread posts, you just need a list of posts that have been read during a particular visit which starts off as blank and gets added to everytime a post is read. To be marked as unread/new a post would have to not only be newer than the last visit time but also NOT appear in the list of posts read during that visit. Since the list of posts read during a particular visit is unlikely to be more than a few dozen even on a large forum it could be done through the database or an array. When a member leaves the list of read posts is simply reset to nothing. The fact that there are hundreds or thousands of unread posts since somebody's last visit won't make a blind bit of difference because it is only read posts that are being listed. I think this is the idea FrankH had only it took me till now to realise it.
2,728 2004-02-17 13:58
Re: New posts in topics. (31 replies, posted in Feature requests)
It's difficult to think of a decent solution because it seems that somewhere there has to be a list of what topics a particular user has not read and everytime the user reads a topic the list has to be updated. I can't see that it could possibly be implemented through the database. If a user has not visited for serveral months the list could be thousands of posts long.
The only thing I can think of is that when a user logs in a txt/dat file is created listing topic id's of posts since last visit. Everytime a topic is read the list is rewritten minus the recently read post. When the user leaves the file is deleted.
2,729 2004-02-17 13:38
Re: New posts in topics. (31 replies, posted in Feature requests)
I would have thought this would be something very difficult to implement. The reason being that, as far as I can tell, PunBB is totally indifferent as to whether a topic has been read; it is only concerned with whether or not the topic is dated after the users last visit. To distinguish whether a particular user has read a particular topic would seem to require a whole raft full of new code/tables/fields.
Having the time of last visit updated during a visit would cause the opposite problem. Imagine there are 10 new topics since last visit. You read one topic and then the timestamp is updated. The result is it would now appear that there were no new topics since last visit. That would be a lot worse than the current situation.
2,730 2004-02-17 12:09
Re: Embed forum in website (9 replies, posted in PunBB 1.2 discussion)
@Paul:
Yes, there is: if you're not administering it yourself
Ok so you might some site identification e.g. the site logo and colour scheme. What I was getting at is you don't need to have it wedged in the middle column of a three column layout.
2,732 2004-02-17 11:41
Re: Ping: Paul (16 replies, posted in General discussion)
Ah, the world of the developer. Sleep is just an obstacle on the path to success.
Could this explain Skipton Towns last result?
2,733 2004-02-17 11:14
Re: Embed forum in website (9 replies, posted in PunBB 1.2 discussion)
You can cheat. Take one of your sites pages, remove the middle content and replace it with the relevant parts of main.tpl. You will also have to tinker with the head and body to include the relevant bits from main.tpl. Now rename the page main.tpl and put it in the include/template folder. Finally copy the relevant parts of your sites style sheet to whichever PunBB style sheet you will be using (or vice versa). You may have to rename some items in the stylesheet to remove conflicts.
A final wrinke which I have started to use is to put the admin interface on a different template largely because it is more sensitive to restrictions on the amount of space available to it and there is no good reason why the admin interface has look like the rest of your site.
2,734 2004-02-17 03:08
Re: Ping: Paul (16 replies, posted in General discussion)
My pleasure. Glad it was what you were looking for.
2,735 2004-02-16 12:50
Re: XtraCAD (35 replies, posted in PunBB 1.2 show off)
Files can be obtained here
2,736 2004-02-15 21:32
Re: XtraCAD (35 replies, posted in PunBB 1.2 show off)
Great Work. I have acres of webspace lying around on a commercial host. If you want me to up the files just email them to me and I will post the link back here.
2,737 2004-02-15 01:55
Re: Let's improve PunBB mod installation/building! (17 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Making it easier to add admin interface "modules" is already on the todo list for 1.2. It will only be a matter of putting a file in a specific directory and it will pop up in the admin interface.
Any chance of vertical navigation. The current horizontal menu could get rather messy with say a dozen items on it.
Rewriting PunBB so that it allows "plug-ins" a la Firefox is a massive undertaking. It's also very un-PunBB:ish. If it is not absolutely clear why, I refer to the about page. It is simply not where I want to go with PunBB. Also, writing "modular code" in PHP that is short, fast and pretty is virtually impossible. Well, as far as I know anyway.
Good. I would rather see a simple portal system build around PunBB with modules being developed for the portal. They would essentially be standalone scripts which simply utilised PunBB's membership and other database tables and, where appropriate, included PunBB files. I am not at all convinced that such things as file uploading, image galleries and even private messaging need to be embedded in a bbs sytems, they simply need to work with it. One thing I would like to see though is an idiot proof (and I speak as an highly trained idiot) way of utilising PunBB's membership system outside of PunBB.
My own view, for what its worth, is that I would like to see Rickards efforts directed to making PunBB as perfect as it possibly can be within the original design parameters. There is also the question of reputation to consider. If PunBB carries on as it is now with each new version being a refinement of the previous version then eventually it will become the automatic first choice for anybody looking for a fast, light, reliable and easily customized board. If it keeps chopping and changing it will never establish itself. Thats not to say that nothing new should be added but the additions should be improvements and enhancements to the existing functionaility and not new features. As usual I have slipped slightly off topic, but maybe thats because I have yet to see a mod which I actually had any use for.
2,738 2004-02-12 02:15
Re: Punbb Photo Albums (20 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Ok, well, it was a try...
Not according to Yoda
2,739 2004-02-11 02:27
Re: Extern Problems (18 replies, posted in PunBB 1.2 troubleshooting)
It's OK Louis. I got it. Nobody told me that there were problems passing parameters/arguments using a local address. I have now made a new version of extern.php which is externlocal.php which includes a function called show_pun. To use it locally I can just do this
include('../punbb/externlocal.php');
show_pun('active',12);
show_pun('new', 5);
show_pun('online');
show_pun('stats');
The only benefits of doing it this way is that local addresses can be used and if you want to show several bits of information from PunBB you only have to include the file once. If you only want to show active topics then Rickards PunBB.org code would seem to be neater.
Note to self. File can be simplified; why would anybody want to use an RSS feed on the same site that houses the forum.
JohnS. This could be the neatest solution for you. I will post the file as soon as I have finished tinkering.
2,740 2004-02-10 23:31
Re: Extern Problems (18 replies, posted in PunBB 1.2 troubleshooting)
Oh, My God!
So. What do I do? Keep using @include?
Either that or forget extern and use the code Rickard posted. I will give that a shot and seen what happens. I will let you know. Of course, you could use SSI in the form of the examples given.
One final thing I am going to try is to make a modified version of extern that does not require parameters. The idea it to turn the relevant parts of extern into functions which can be called using parameters after it has been included using a local address. That way it would be possible to include active topics and newest topics etc on the same page with only one include, I think.
[EDIT] Rant deleted. I get it
2,741 2004-02-10 12:47
Re: New Firebird Release (19 replies, posted in General discussion)
Why it is renamed?
Firebird is also the name of the open source version of Interbase and they used the name first. The situation was getting a bit confusing.
2,742 2004-02-10 03:36
Topic: New Firebird Release (19 replies, posted in General discussion)
For those interested in such things, Mozilla Firebird has been renamed Firefox. A new version 0.8 has been released.
2,743 2004-02-10 03:29
Re: Extern Problems (18 replies, posted in PunBB 1.2 troubleshooting)
Wonderful. Thanks for that.
while (braindead)
{
pester_rickard();
}
2,744 2004-02-10 01:18
Re: Extern Problems (18 replies, posted in PunBB 1.2 troubleshooting)
In that case, could you refresh my memory on how you are showing recent posts on your front page. Are you using extern.php? Could you show the code if it's not too much trouble.
2,745 2004-02-10 00:10
Re: Extern Problems (18 replies, posted in PunBB 1.2 troubleshooting)
In that case no, nothing in phpinfo refers to the Zend Optimizer.
2,746 2004-02-09 21:44
Re: XtraCAD (35 replies, posted in PunBB 1.2 show off)
John, try using @include with the full url.
2,747 2004-02-09 21:39
Re: Extern Problems (18 replies, posted in PunBB 1.2 troubleshooting)
I am not sure, phpinfo says something about zend extension and shows this
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
Is that what you mean. I can use extern perfectly provided I use the url rather than a relative (or absolute) address. Strangely, I did get it working once with a relative address by using require instead of include.
JohnS I think has a slightly different problem because he has trouble even with url's.
EDIT
Read the article you referred to. using @include resolves the problems when using a url but it doesn't help with relative addressing and I don't really want to have to use a url to include a local file.
2,748 2004-02-09 20:54
Topic: Extern Problems (18 replies, posted in PunBB 1.2 troubleshooting)
I and at least one other have been having difficulties with extern.php.
1. Could somebody explain why problems might arise when trying to include extern.php using a relative path rather than a url. The idea is to duplicate what the punbb site does on the front page with recent posts
2. Is there any reason why it should be a problem including extern.php inside a file which is itself an include in another file. Here is what JohnS posted specific to his problem
The right hand column on my site is an include (xtc_right_bar.php).
Within this I've placed another include calling forum/extern.php
I get a list of topics displayed but with the following error message
above them...
Warning: main(): stream does not support seeking
in /includes/xtc_right_bar.php on line 44
Should I be calling the full url of extern.php or just its relative path or is
the problem with having an include within an include?
Any help appreciated
2,749 2004-02-09 20:47
Re: XtraCAD (35 replies, posted in PunBB 1.2 show off)
Paul wrote:I always use the full url which invariably puts things right.
I've tried the full url but still get same error
I think I will start a new topic "Need help with extern.php" because I am interested in getting some answers as well.
EDIT
New topic started Extern Problems in Troubleshooting Forum
2,750 2004-02-09 19:48
Re: XtraCAD (35 replies, posted in PunBB 1.2 show off)
I have have also had difficulties getting a relative path to work so I always use the full url which invariably puts things right.