Codoforum related discussions
Few questions

Hello,

I was wondering if someone could guide me in the right direction, as I am not all that great with php. One thing I was wanting to do is apply the user rank to all links within the forum as a link class via css:

a.moderator {color: #000}

I am currently able to create it for individual users. I tried using {{rname}} from the user profile within the topics file however cannot get it to work.

Is there a way I able to do this? All I need is {{the group function}} so I can apply it to all the files.

Additionally, I was wondering how to do the following:

  1. Use relative time (x days, weeks, months, years) instead of the default time.

  2. If a user edits their post applying "edited" next to the post date in the topic file.

Any help would be great!

Hello, I was wondering if someone could guide me in the right direction, as I am not all that great with php. One thing I was wanting to do is apply the user rank to all links within the forum as a link class via css: > a.moderator {color: #000} I am currently able to create it for individual users. I tried using {{rname}} from the user profile within the topics file however cannot get it to work. Is there a way I able to do this? All I need is {{the group function}} so I can apply it to all the files. Additionally, I was wondering how to do the following: 1. Use relative time (x days, weeks, months, years) instead of the default time. 2. If a user edits their post applying "edited" next to the post date in the topic file. Any help would be great!

Darp

edited Jun 6 '15 at 2:00 am

Hi,

Do you mean, you want to set different colors/styles for different roles of users ?

If yes, it will be difficult in this version.
But, we will provide an easy to style class in the next version.
Can you wait for the next release ?

Use relative time (x days, weeks, months, years) instead of the default time.

Codoforum already uses relative time everywhere.
If you wanted to know how to get relative time for your own application, you can use the following method:

\CODOF\Time::get_pretty_time(UNIX_TIME);

If a user edits their post applying "edited" next to the post date in the topic file

This will require you to add a new column to the topics table which will record the edit time.
We have this in our todo list.

Hi, Do you mean, you want to set different colors/styles for different roles of users ? If yes, it will be difficult in this version. But, we will provide an easy to style class in the next version. Can you wait for the next release ? >Use relative time (x days, weeks, months, years) instead of the default time. Codoforum already uses relative time everywhere. If you wanted to know how to get relative time for your own application, you can use the following method: ``` \CODOF\Time::get_pretty_time(UNIX_TIME); ``` >If a user edits their post applying "edited" next to the post date in the topic file This will require you to add a new column to the topics table which will record the edit time. We have this in our todo list.

Hi,

Do you mean, you want to set different colors/styles for different roles of users ?

If yes, it will be difficult in this version.
But, we will provide an easy to style class in the next version.
Can you wait for the next release ?

Use relative time (x days, weeks, months, years) instead of the default time.

Codoforum already uses relative time everywhere.
If you wanted to know how to get relative time for your own application, you can use the following method:

\CODOF\Time::get_pretty_time(UNIX_TIME);

If a user edits their post applying "edited" next to the post date in the topic file

This will require you to add a new column to the topics table which will record the edit time.
We have this in our todo list.

Thank you, I will wait for the next release. I am just toying with the script.

>Hi, >Do you mean, you want to set different colors/styles for different roles of users ? >If yes, it will be difficult in this version. >But, we will provide an easy to style class in the next version. >Can you wait for the next release ? >>Use relative time (x days, weeks, months, years) instead of the default time. >Codoforum already uses relative time everywhere. >If you wanted to know how to get relative time for your own application, you can use the following method: >``` >\CODOF\Time::get_pretty_time(UNIX_TIME); >``` >>If a user edits their post applying "edited" next to the post date in the topic file >This will require you to add a new column to the topics table which will record the edit time. >We have this in our todo list. Thank you, I will wait for the next release. I am just toying with the script.

Darp

132
2
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft