1,376

(105 replies, posted in General discussion)

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. big_smile big_smile

1,377

(105 replies, posted in General discussion)

No rush then. big_smile big_smile

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. big_smile big_smile

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. smile

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.

And the error printed in the log is?

1,381

(124 replies, posted in News)

pedrotuga wrote:

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. big_smile big_smile If the need ever arose, that is. big_smile

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.

You need to ask your host to compile PHP with the jpeg libraries.

1,384

(105 replies, posted in General discussion)

Scrub that question. Just thought to check the db table docs for the answer. big_smile

1,385

(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. smile I'll keep you updated on the outcome/progress. Thanks again Smarty's for all your help with this. smile

1,386

(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

(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. big_smile Without the faintest idea how the thing works overall, it's a bit hard to work around it. big_smile

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

(105 replies, posted in General discussion)

Db work is a bugger ain't it. big_smile 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

(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. big_smile big_smile

1,391

(105 replies, posted in General discussion)

bingiman wrote:

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), big_smile 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

(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']))
bingiman wrote:

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. big_smile Glad they got there okay. smile

1,393

(105 replies, posted in General discussion)

bingiman wrote:

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. big_smile Post your index.php. Btw, did you get my second e-mail okay?

1,394

(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

(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

(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. smile

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>

Far as I know, h-card is just another variant of the likes of v-card.

Full info is here:

http://microformats.org/

1,399

(124 replies, posted in News)

pedrotuga wrote:

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.

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:

http://www.feedicons.com/