With regards to specifics, I honestly couldn't say at the moment. However, the way it works seems weird. It could be more adaptable than it is. (As I mentioned however, that is just a fleeting glance impression). I am going to have a bash at it. I'm just waiting until the penny drops regarding what may be the simplest and most useful way to do it. It'll pop into my head at some point.
1,377 2007-10-29 19:24
Re: Sub Forum Mod and index (105 replies, posted in General discussion)
No rush then.
Not done anything as of yet. Just trying to figure if there's an easier way to do the whole thing. From the quick look I had at the code for this mod, it seems to work in an excessively convoluted manner. That doesn't mean there is an easier way though.
1,378 2007-10-29 17:51
Re: Automatic Image Upload with Thumbnails (154 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Is there nothing mentioned previously in this thread or over on the punres thread about this? If not, best to wait for Koos to have a peek in. Tried looking at that uploadimg.php script, but it's awkward to see what follows where, so Koos himself would be best to advise on this problem. I do seem to vaguely remember this being asked before, though, so it may be worthwhile searching the threads for this mod.
1,379 2007-10-29 17:20
Re: Automatic Image Upload with Thumbnails (154 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Have you made any alterations to the uploadimg.php file at all?
There's a syntax error in it somewhere. Try uploading it again to make sure it hasn't become corrupted, and if that doesn't work, post the file.
1,380 2007-10-29 16:43
Re: Automatic Image Upload with Thumbnails (154 replies, posted in PunBB 1.2 modifications, plugins and integrations)
And the error printed in the log is?
1,381 2007-10-29 15:24
Re: An update (124 replies, posted in News)
I think the only possible concern, not likely to happen at all IMO though, is the consequences to comunity support, which is basically THE support punbb has.
All other concerns don't appear valid to me. Dunno, just my 2 cents.YAY! a gossip thread! bah...
No concern. Create a fork, migrate the community. If the need ever arose, that is.
1,382 2007-10-29 15:22
Re: what's most popular comment method for small business? (11 replies, posted in General discussion)
Bit hard to answer on such a vague outline. What one classes as a comment system maybe completely different to someone elses perception of a comment system.
1,383 2007-10-29 14:11
Re: Automatic Image Upload with Thumbnails (154 replies, posted in PunBB 1.2 modifications, plugins and integrations)
You need to ask your host to compile PHP with the jpeg libraries.
1,384 2007-10-29 00:19
Re: Sub Forum Mod and index (105 replies, posted in General discussion)
Scrub that question. Just thought to check the db table docs for the answer.
1,385 2007-10-29 00:17
Re: Double posts and online users (38 replies, posted in PunBB 1.2 bug reports)
Just to keep this updated, the new code has been inplace for a few days, and the doppelganger effect hasn't reared it's head as of yet. I'll keep you updated on the outcome/progress. Thanks again Smarty's for all your help with this.
1,386 2007-10-29 00:12
Re: Sub Forum Mod and index (105 replies, posted in General discussion)
Just one last quick question, if I may. Each post id is totally unique? I assume the post id is incremented by one for each post made across the board, and that the topic id is totally irrelevant to the post id?
Cheers,
Matt
1,387 2007-10-28 20:30
Re: Sub Forum Mod and index (105 replies, posted in General discussion)
Have you got the link for that mod? Seem to remember I once looked at it, but there's cartloads of changes to make to the files, isn't there? I might have a peek at it again. Without the faintest idea how the thing works overall, it's a bit hard to work around it.
1,388 2007-10-28 20:18
Re: Custom links (6 replies, posted in PunBB 1.2 modifications, plugins and integrations)
In parser.php, where the url's are parsed, adding some check in there that creates the link dependent upon a forum uri/link uri check. For example, check the link uri against the $pun_config['o_base_url'] for a match, and create the link accordingly.
1,389 2007-10-28 20:14
Re: Sub Forum Mod and index (105 replies, posted in General discussion)
Db work is a bugger ain't it. How does that mark as read mod work? Does it have an extra db column/table or something? What does that function in it do?
1,390 2007-10-28 18:27
Re: Sub Forum Mod and index (105 replies, posted in General discussion)
I've no idea how this mark as read mod works, but judging by that code above that you say works, I would think that this would have the same effect in index.php:
Change this line:
if ($cur_forum['fid'] == $sub_forums[0] && !$pun_user['is_guest'] && $sub_forums[5] > $pun_user['last_visit'])
To:
if ($cur_forum['fid'] == $sub_forums[0] && !$pun_user['is_guest'] && $sub_forums[5] > $pun_user['last_post'])
This is merely a highly tenuous theory, however.
1,391 2007-10-28 18:21
Re: Sub Forum Mod and index (105 replies, posted in General discussion)
the code below seems to work. However, the problem seems to also reside on the index as well (for sub-forums) only. It still shows up as new.
if (!$pun_user['is_guest'] && $cur_subforum['f.id'] > $pun_user['f.last_post'])
Just been looking, (god, I hate the db side of things), and that should work without the f. bits. That f. looks like it's just a separator/locator used during the query build, so to speak.
1,392 2007-10-28 17:22
Re: Sub Forum Mod and index (105 replies, posted in General discussion)
Change this line:
if (!$pun_user['is_guest'] && forum_is_new($cur_forum['fid'], $cur_forum['last_post']))
to:
if (!$pun_user['is_guest'] && forum_is_new($cur_forum['fid'], $cur_forum['f.last_post']))
I just got them because they ended up in my junk mail inbox.
I had an idea the second one might do due to the inline content. Glad they got there okay.
1,393 2007-10-28 17:07
Re: Sub Forum Mod and index (105 replies, posted in General discussion)
the code below seems to work. However, the problem seems to also reside on the index as well (for sub-forums) only. It still shows up as new.
if (!$pun_user['is_guest'] && $cur_subforum['f.id'] > $pun_user['f.last_post'])
One down, one to go. Post your index.php. Btw, did you get my second e-mail okay?
1,394 2007-10-28 16:46
Re: Sub Forum Mod and index (105 replies, posted in General discussion)
Is this viewforum.php file using that line from your code above?
$subforum_result = $db->query('SELECT f.forum_desc, f.forum_name, f.id, f.last_post, f.last_post_id, f.last_poster, f.moderators, f.num_posts, f.num_topics, f.redirect_url, p.poster_id AS last_poster_id FROM '.$db->prefix.'forums AS f LEFT JOIN '.$db->prefix.'posts AS p ON (p.id=f.last_post_id) WHERE parent_forum_id='.$id.' ORDER BY disp_position') or error('Unable to fetch sub forum info',__FILE__,__LINE__,$db->error());
If so, try changing id and last_post to f.id and f.last_post:
if (!$pun_user['is_guest'] && forum_is_new($cur_subforum['f.id'], $cur_subforum['f.last_post']))
1,395 2007-10-28 16:11
Re: Sub Forum Mod and index (105 replies, posted in General discussion)
Try this:
if (!$pun_user['is_guest'] && forum_is_new($cur_subforum['id'], $cur_subforum['last_post']))
1,396 2007-10-27 21:57
Re: @ Quaker: Contact form with captcha (19 replies, posted in General discussion)
Just as an update, have updated that file above as there was a tag missing from this line:
<b>The following information has been submitted to the forum admin:</b>
The trailing </b> had been omitted. Sorted now.
1,397 2007-10-26 19:53
Re: Simple Antispambot-code Mod v0.8 (39 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Just as an update for the <label> bit, the code in register.php needs to be:
<div class="inform">
<fieldset>
<legend>Spambot prevention question</legend>
<div class="infldset">
<label>
<b>Question:</b> <?php echo $_SESSION['question']; ?><br/>
<b>Hint:</b> <?php echo $_SESSION['hint']; ?><br/>
<input type="text" name="spamcode" size="10" maxlength="10"/>
<br/></label>
</div>
</fieldset>
</div>
1,398 2007-10-26 19:31
Re: Support for Microformats - hCard and MicroID? (3 replies, posted in PunBB 1.2 discussion)
Far as I know, h-card is just another variant of the likes of v-card.
Full info is here:
1,399 2007-10-26 00:03
Re: An update (124 replies, posted in News)
On the other hand, i haven't really understood why did the company needed to buy the copyright in order to do whatever they want to do.
Most likely so that they can offer some service and use the PunBB name in advertising or marketing bumph without having to specifically get the authors permission, and risk possibly having that authorisation recinded at some future point in time. If they own the copyright, (so to speak), they can use it to their hearts content in their literature.
1,400 2007-10-25 18:12
Re: Do you think PunBB 1.3 looks beautiful? (20 replies, posted in PunBB 1.2 discussion)
Regarding feed icons, and not 1.3, just thought I'd pop this link up incase anyone wants the standard feed icons for future projects: