Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Forums / Cotonti / Patches / Masked Forum Post ID's

#1 2009-03-04 04:38
I built this a while back for sedito and only released the code for it recently, I'm pretty sure it's been done before but I never found anything on it.. EDIT// This feature is now a PLUGIN!

This plugin masks the actual post id, and in exchange, starts each thread off with Post #1. The first reply would be Post #2 and so on.. This works with multiple pages, does not change the link to the post, and very minimal code is used. The code added/changed is as follows: EDIT// This is the new code used inside the plugin.

$idmask = $d + $fp_num;

"FORUMS_POSTS_ROW_IDURL" => "<a id=\"post_".$row['fp_id']."\" href=\"".sed_url('forums', "m=posts&id=".$row['fp_id'])."\">".$idmask."</a>",

For whatever reason, PFS is still not working for me on So here it is, RapidShare yet again. :(
Plugin Version

[color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]

Dit bericht is bewerkt door TwistedGA (2009-03-05 07:04, 13 jaren ago)
#2 2009-03-04 06:07
I think it is good idea. - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
#3 2009-03-04 07:25
Sorry if i'm not misinterpreted, this code is adding post numbers for the topic right?

-twisted (post #1 for this topic)

-esclkm (post #2 for this topic)

#4 2009-03-04 12:11
You got it man, it just changes what's displayed to give a cleaner, more organized look. The link created still links to the post via original method. :)
[color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]
#5 2009-03-04 22:09
Yeah, if it is what it is it has been done already, FORUMS_POSTS_ORDER or something I do not remember.
#6 2009-03-05 02:19
Yea, FORUMS_POSTS_ROW_ORDER does the same thing this does, however its not multipage compatible meaning the count starts back at #1 for each page in the thread. I could alter the code and make it not do that, but it would require core hacking, plus turning it into a link. Doesn't seem like it'd have any benifits over this method.
[color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]
#7 2009-03-05 04:58
You're right, multipage that i did not think before. It's a bug, fixed.

#8 2009-03-05 05:38
Sweet, one less bug ftw. heh

Are you making _ORDER create a link this round or having it just do a number as it does right now? Having it to a link like _IDURL would be better I think.

I can write some code to make the masking selectable by the administrator if you think it would be worth having. Would give me a chance to play with selectables. But then again, some kind of information about how to mask it using the _ORDER instead of _IDURL to do this feature, would be sufficent I think.

Took a little time to throw this together for those not interested in using core hacking. Thanks to oc for pointing out the _ORDER tag, enabling this to be a plugin. :P
Plugin Version

Original Post Updated.
[color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]

Dit bericht is bewerkt door TwistedGA (2009-03-05 07:04, 13 jaren ago)