By: Mankiy
Date: 2003-06-03
Time: 01:57
|
adding members
shouldnt you add a members thing?
i mean, just so we cna all become a better community :)
(although im already here enuf, and i have asked questions and will keep asking questions...)
jsut a suggestion, it would be easy to do 0_o
(already have it coded if you want any help with it, only b/c im codign a forum myself :P )
|
By: Mankiy
Date: 2003-06-03
Time: 01:57
|
Re: adding members
and adding smilie code :)
|
By: skrol29
Date: 2003-06-03
Time: 02:36
|
Re: adding members
What is O_o ?
May be it is a bit too soon for a member thing.
Let's see if the comunity grows up.
Smarty had a newsgroup at first but it is quite empty now.
May be because Template Engine is something too specific.
Now they have a forum (which requires registration).
By the way, I can tell there is more and more downloads for TBS.
People seem to enjoy it. Most of the compliments I have are about fast development and well working.
Did you noticed that this forum has only 2 pictures?
That choice was for simplicity and special design (a google way maybe).
But smilies could be nice and easy to do. That's a good idea.
There is a bug about the code tags : only lower case works.
I also need a tiny rest because of version 1.80 :) before to upgrade the forum. But any help is welcome :)
|
By: Mankiy
Date: 2003-06-03
Time: 04:21
|
Re: adding members
well, here is the code for the smilie option :)
simple eregi_replace function :)
function smilies($string) {
$m_error = mysql_error();
$result = @mysql_query("SELECT sign,alt,src FROM smilie_storage");
if (!$result) {
echo("ERROR: $m_error");
}
while ( $row = mysql_fetch_array($result) ) {
$sign = $row[sign];
$alt = $row[alt];
$src = $row[src];
$replace = eregi_replace("\$sign", "<img src="$src" width="20" height="20" alt="$alt">", $string);
}
return $replace;
}
|
at least im guessing...
lol, i picked it from my head, too lazy to get it off server :P
but thats jsut about it, then jsut run the msg through that function and so on...
(i think you would know..)
|
By: Skrol29
Date: 2003-06-03
Time: 10:28
|
Re: adding members
Thx,
I've never used regexp yet.
That's a good tip.
|
By: Will Robertson
Date: 2003-06-28
Time: 00:43
|
Re: adding members
Regexp is a wonderful thing :)
|
|
Posting in progress.
Please wait...
|