Smartys wrote:

strpos is supposed to return the position of the first occurance of the given string (here, <b>a space</b>).

I replaced the space with an ":", and now it works!
(Oh, and when I try " " it doesn't work, maybe a sort of character problem?)

Eureka.

Are you sure there isn't another method? I'm not convinced that strpos() is the correct way to do this.

Even with the correct order, it doesn't output anything.

It doesn't output anything...

It doesn't work...

I don't think strpos() is the correct way to get what I want.

I want this:
Original Subject: "News: blabla blaah blaah?"
to
Trimmed Subject: "News"
So only the first word, which I can then use to define a class of a div.

I'm using this code to limit the subject to 5 letters (don't ask why wink )

.$subject_truncated = pun_htmlspecialchars(trim(substr($cur_post['subject'], 0, ($max_subject_length=5)))).

But now I want it to display only the first word of the subject-line. Can you help?

7

(95 replies, posted in News)

thegleek wrote:
elbekko wrote:

You need to change it in your database. It's in the config table.

the real easy simple sql command to do that is:

update config set conf_value='1.2.14' where conf_name='o_cur_version';

I tried this in phpMyAdmin, and it worked (the value of the cell is "1.2.12"), but when I look under Statistics in my Administration it still says "1.2.13"...

8

(9 replies, posted in Feature requests)

I'm looking for a basic upload feature.
People should be able to upload files (filetype doesn't matter) in different categories. The main uploader-page would then display the files per category (no fancy-filter function).

9

(9 replies, posted in Feature requests)

If only it would display the uploads in a simple list per category...