2 2005-07-02 04:48
Re: WYSYWYG BBCode Editor (35 replies, posted in General discussion)
when people have right to write a html code, there will be a script problem. as I said, the best way you do is make a wysiwyg editor whose html mode is disabled. and when people post by pressing submit button, there should be a code checker which will get rid of harmful and unwanted tags and a parser whose job is changing htm code to bbcode.
or you can change the parser.php so that when we post an article the html code will NOT be changed to bbcode, rather saved as it is. then we only need a code checker, and the time in loading a post to web browser will be reduced.
but I don't think it is useful. because if we only use this kind of forum, we just use a few tags and bbcode does deal with those. further why punbb uses bbcode is because of the security problem. it is not easy to make a html code checker.
finally TinyMCE is not tiny. it's heavy to use, I think.
3 2005-07-01 11:35
Re: WYSYWYG BBCode Editor (35 replies, posted in General discussion)
I think the best way is disable the html mode.
4 2005-06-30 00:19
Re: WYSYWYG BBCode Editor (35 replies, posted in General discussion)
when the wysiwyg mode is changed to html mode widgeditor does change that nasty div code to simple div code, but it does not when html to wysiwyg. so just adding some code will solve this problem.
change the code
widgEditor.prototype.updateWidgInput = function()
{
if (this.wysiwyg)
{
/* Convert spans to semantics in Mozilla */
if (!this.IE)
{
this.convertSPANs(true);
}
this.paragraphise();
this.cleanSource();
}
else
{
this.theInput.value = this.theTextarea.value;
}
return true;
}
to this code
widgEditor.prototype.updateWidgInput = function()
{
if (this.wysiwyg)
{
/* Convert spans to semantics in Mozilla */
if (!this.IE)
{
this.convertSPANs(true);
}
this.paragraphise();
this.cleanSource();
}
else
{
this.theInput.value = this.theTextarea.value;
/* added by Jacobswell {{{ */
this.cleanSource(); /* }}} */
}
return true;
}
but I don't think that will remove other nasty codes at all.
5 2005-03-21 23:46
Re: pun_hash problem in install.php (4 replies, posted in PunBB 1.2 bug reports)
I'm sorry. It's my fault. my php problem and I thought there might be a bug. now I fixed my php problem.
6 2005-03-21 11:31
Topic: pun_hash problem in install.php (4 replies, posted in PunBB 1.2 bug reports)
when punbb is installed, pun_hash function uses one of md5, shal or mhash algorithms. but once installed, we just use only md5 in check_chookie and pun_cookie functions in functions.php.
This will cause a problem, I think, for when a system has shal or mhash installed, then when we install punbb, the install script uses that algorithm, encrypt password and saves into the database. but after installation we cannot access as a admin user for punbb uses only md5.
so, I think it is better use pun_hash also when we make cookie or change the punbb installation script not using any save md5.
7 2005-02-08 03:12
Re: Wiki Document System plugin (37 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I cant test the demo, your forum get
There is no valid language pack '' installed. Plese install a valid one and try again!.
what langpack do you use? I have made only english and korean. and I uploaded english langpack.
8 2005-02-08 03:11
Re: Wiki Document System plugin (37 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Is it possible to search the Wiki content with the normal punBB search.php?
nop. may have to make new one.
9 2005-02-08 03:10
Re: Wiki Document System plugin (37 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Great mod! Thanks Jacobswell! Now I am customising it to be a on-line guide of Bulgaria created by the internauts www.bulgaricus.com/forum/wiki.php
Anyway I have got some problems and questions:
1. How I can change the name of "FrontPage", "PageIndex", etc.? I tried to do it in the database but it didn't worked
2. What is the idea of timeline, macro an plugin?
3. Search is not working for keywords in the tekst.
4. I there any possibility to group the categories separately in the PageIndex?
5. Permissions - is it possible that changes made by users will be first viewed and accepted by the admin/moderators?
1. change the language file ie. en_wiki.php in the lang folder.
2. timeline is showing what happened in history. macro is like short link. but sorry I have no time to make coding.
3. what is "tekst"? you mean "text"? searching text keyword is possible, I think.
4. that's a good idea. but you can arrange pages with categories.
5. yes but as I said I have no time. soorrrrrry.
10 2004-12-29 23:42
Re: The new website (137 replies, posted in News)
Wow Congratulations! New homw town!
11 2004-11-09 11:08
Re: An idea for a news plugin (29 replies, posted in PunBB 1.2 discussion)
I think a front manager is desirable like punbb.org front page. within front manager, you set options about which forum we use for news or how many forums we display for the recent posts or something like... using front template.
12 2004-11-03 05:46
Re: PluginManager for PunBB1.2 (24 replies, posted in PunBB 1.2 discussion)
cool! should be included in version 1.2, I think
13 2004-11-01 14:52
Re: PunBB 1.2 development source (277 replies, posted in PunBB 1.2 discussion)
I've installed punbb 1.2 dev on windows xp apache with sqlite database. everything is ok but when I click "edit" for editing forum php notice message is shown.
Notice: Undefined index: read_forum in c:\web\htdocs\punbb12\admin_forums.php on line 297
Notice: Undefined index: post_replies in c:\web\htdocs\punbb12\admin_forums.php on line 298
Notice: Undefined index: post_topics in c:\web\htdocs\punbb12\admin_forums.php on line 299
Notice: Undefined index: read_forum in c:\web\htdocs\punbb12\admin_forums.php on line 302
Moderators
Notice: Undefined index: read_forum in c:\web\htdocs\punbb12\admin_forums.php on line 297
Notice: Undefined index: post_replies in c:\web\htdocs\punbb12\admin_forums.php on line 298
Notice: Undefined index: post_topics in c:\web\htdocs\punbb12\admin_forums.php on line 299
Notice: Undefined index: read_forum in c:\web\htdocs\punbb12\admin_forums.php on line 302
Guest
Notice: Undefined index: read_forum in c:\web\htdocs\punbb12\admin_forums.php on line 297
Notice: Undefined index: post_replies in c:\web\htdocs\punbb12\admin_forums.php on line 298
Notice: Undefined index: post_topics in c:\web\htdocs\punbb12\admin_forums.php on line 299
Notice: Undefined index: read_forum in c:\web\htdocs\punbb12\admin_forums.php on line 302
and I tried to find the why and I think I found though I haven't tested yet. the following code is the cause. it is in the admin_forums.php 293 line.
$result = $db->query('SELECT g.g_id, g.g_title, g.g_post_replies, g.g_post_topics, fp.read_forum, fp.post_replies, fp.post_topics FROM '.$db->prefix.'groups AS g LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (g.g_id=fp.group_id AND fp.forum_id='.$forum_id.') WHERE g.g_id!='.PUN_ADMIN.' ORDER BY g.g_id') or error('Unable to fetch group forum permission list', __FILE__, __LINE__, $db->error());
it uses fp for forum_perms table but sqlite database class cannot deal "fp.blahblah" column because it is coded that before period only one word should come. in sqlite.php we can find the following code.
function fetch_assoc($query_id = 0)
{
if (!$query_id)
$query_id = $this->query_result;
if ($query_id)
{
$this->row = @sqlite_fetch_array($query_id, SQLITE_ASSOC);
if ($this->row)
{
// Horrible hack to get rid of table names and table aliases from the array keys
while (list($key, $value) = @each($this->row))
{
if ($key{1} == '.')
{
unset($this->row[$key]);
$key = substr($key, 2);
$this->row[$key] = $value;
}
}
++$this->row_num[$query_id];
}
return $this->row;
}
else
return false;
}
and we can say there may be similiar errors because of that problem. anyway mysql is fine. and thaks for greate job.
14 2004-10-25 10:18
Re: extern.php problem (40 replies, posted in PunBB 1.2 troubleshooting)
15 2004-10-09 11:57
Re: Problem with [color] ... (2 replies, posted in PunBB 1.2 bug reports)
I don't think it's a easy thing unless we change each and every block code to html tag.
Rod: just try
[color=yellow]My text is[/color][color=red] RED[/color]
16 2004-10-07 03:06
Re: Apply parser.php on a whole site ? (26 replies, posted in PunBB 1.2 modifications, plugins and integrations)
could you show us the code of config.inc and some php files so that we can find the best solution?
17 2004-10-07 00:06
Re: Apply parser.php on a whole site ? (26 replies, posted in PunBB 1.2 modifications, plugins and integrations)
after finishing htmlcode for example
here comes html code...
</body>
</html>
<?php
$contents = ob_get_contents();
... blah...
18 2004-10-06 23:12
Re: Apply parser.php on a whole site ? (26 replies, posted in PunBB 1.2 modifications, plugins and integrations)
<?php
define('PUN', true);
$pun_root = 'forum/'; // change here
require $pun_root ."include/parser.php";
ob_start();
?>
here comes the html code that you want
<?php
$contents = ob_get_contents();
// apply bbcode
$contents = do_bbcode($contents);
// if you want to apply smilies also
$contents = do_smilies($contents);
print $contents;
?>
i think it's ok with this code.
Edit:
but smilies will have problem because if you check the do_smilies function, you can see the code: src=img/smilies/... blah...
if you want to apply it change it like
$message = preg_replace("#(?<=.\W|\W.|^\W)".preg_quote($smiley_text[$i], '#')."(?=.\W|\W.|\W$)#m", '$1<img src="'.$pun_root.'img/smilies/'.$smiley_img[$i].'" width="15" height="15" alt="'.$smiley_text[$i].'">$2', $message);
and $pun_root should be declared as global in do_smilies function.
Edit:
I think i forgot including functions.php
19 2004-10-06 01:02
Re: highlighting the searched text. (16 replies, posted in Feature requests)
I like that kind of humor! thanks.
20 2004-10-06 00:03
Re: PunBB 1.2 development source (277 replies, posted in PunBB 1.2 discussion)
ah, you're right. thanks!
21 2004-10-05 11:24
Re: highlighting the searched text. (16 replies, posted in Feature requests)
when you want something, it must be paid anyway.
22 2004-10-05 11:17
Re: highlighting the searched text. (16 replies, posted in Feature requests)
I've applied the hilight searching to my wiki document system. just test it here : http://jacobswell.nared.net/punbb/wiki. … SearchPage
as I remember it changes colors as many as you input as terms. but below 6.
And I don't think it's not quite slow
23 2004-10-05 05:39
Re: PunBB 1.2 development source (277 replies, posted in PunBB 1.2 discussion)
Not sure why you wouldn't want guests to see user profiles.
I don't know about the situation of other countries, but in Korea there are so many people who visit websites for collecting email addresses or some personal information. it is because Korea's web industries are so developed, there are so many shopping malls or mailing systems. sooner or later Europe(is it right spelling?) will change like Korea, there are some people who don't want to their email address known to commercial mailers. Actually I get at least 5-6 commercial emails every day for one email ID. so 2-3days later usually I deleted about 30 mails.
24 2004-10-01 05:00
Re: PunBB 1.2 development source (277 replies, posted in PunBB 1.2 discussion)
1. in Admin page / maintenance
If you've added, edited or removed posts manually in the database of if you switched language while there were posts in the database,
I think "in the database, if you" is right.
2. How about having any permission that allows guest(s) see the user's profile?
25 2004-10-01 04:39
Re: PunBB 1.2 development source (277 replies, posted in PunBB 1.2 discussion)
I've just tested search page and it just says "Your search returned no hits." Is it because it is not finished? the author search is working but when I use the keyword search, no results. & I like your plugin API.
EDIT:
hmm. I think the problem is the test forum / test post which is created automatically when punbb is installed. if I post any articles it works except the test post. for example another post is made and has a text like "panel test", and if we search "panel", the listed post is only the recent post even though the test post has the "panel" word. is test post is a ghost post?
EDIT:
interesting. after I edited the test post (I just added "test"), the search page works well. now it includes the test post while searching.