Codoforum related discussions

Post all your questions and problems related to codoforum here .

211
1
Chillex posted Mar 12 '17 at 11:51 am

i just installed codoforum in a directory of my site (www.clamorcity.com/codoforum) but i cant view my forum categories. anytime i click any of my forum categories, i get the error below:

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/home/chillex/publichtml/codoforum/sites/default/themes/default/templates/forum/category.tpl" on line 157 "<input placeholder="{("Select a date"smile}" class="form-control col-md-3" type="text" id="datetimepicker"/>" unknown function "_" <-- thrown in /home/chillex/public_html/codoforum/sys/Ext/Smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 157

please help me out.
Thanks.

recent by admin  ·  Mar 15 '17 at 5:59 pm
170
2

On my form say i wanted people to not be able to reply to a topic not reply to a topic i did not make ( i am the owner ) how do i do that?
example http://smalldevgames.net16.net/index.php?u=/topic/4/Test%20topic
I know i made it but still, i want to be able to do this for stuff like spammers that got thru the spam filter.

recent by phig330  ·  Mar 6 '17 at 9:09 am
131
1
phig330 posted Feb 20 '17 at 10:18 am

hello !
just a little remaing bug in 3.7 with confirmation mail.
if username contain special caracters, the generated url is invalid.
just have to change line 120 of sys/CODOF/User/Register.php
with this one :

 $confirm_url = RURI . "user/confirm" . "&user=" . urlencode($fields['username']) . "&token=" . $this->token;

to encode field username.

289
6

I use German as forum language (I did a translation for the locale files which I will provide shortly).

I have just realized that special characters like ä, ö, ü, etc. are converted to their respective html entities before being stored in the codo_post table, e.g.

&auml; &ouml; &uuml;

While that is fine for display, it apparently breaks the search when you are searching for a word containing any of those letters.

The same is probably true for all special characters.

These days with utf-8 encoding the conversion into html entities probably isn't necessary.

But if you do it you need to convert the search term as well or you break the search.

I am doing a lot of monkey patching to get this software to work the way I want it to and I have the distinct feeling that all my patches will be overwritten once the next update comes around...

Update: I provided the German translation at https://github.com/evnix/codoforum-translations and issued a pull request. I noticed there is a Spanish translation waiting for its merge since January 15th.

184
4

Hi all,
Thank you first for this great Solution.
I implemented sso login and it worked perfectly, but when I wanted to create 970 categories manually using insert directly in codo-categories table in phpmyadmin it's no more working
I thought it's because it's taking more time to show the page, I changed timeout in client.php but it's not working.

I checked by using the old table of categories with few categories and it's working again.

Just to be sure : when creating categories in database, I just need to edit codo-categories table and permission table ? no more edition ?

Did I miss something when I created categories manually ?

236
2

Category Icon too big and in wrong place.... when you open categories in mobile view or desktop the large icon dominates the screen. Maybe it could be resized and moved to just before the title??

58a31a52d4cf6.jpg
Current Desktop View smile

58a31a73b9c8c.jpg
Current Mobile View smile

58a31a93dfc5c.jpg
Proposed Desktop View (would also be less bandwidth)

58a31ac17982b.jpg
Proposed Mobile View...more more pleasing smile

235
3

If you define roles to manage permission on category/forum, you may have a minor bug when creating new topic : users can select all the categories/forums instead of only having categories where users can create topic.

The solution :

/sys/CODOF/Forum/Category.php
line number 51, change the function

   public function getCategoriesWhereUserCanCreateTopic() {

        $cats = array();
        $user = \CODOF\User\User::get();
        $qry = 'SELECT cat_id, cat_pid, cat_name, cat_alias, no_topics, cat_img, granted'
                . ' FROM ' . PREFIX . 'codo_categories, codo_permissions '
                . ' WHERE permission=\'create new topic\' AND cid=cat_id AND rid=' . $user->rid . ''
                . ' AND EXISTS (SELECT 1 FROM codo_permissions AS p WHERE '
                . '  p.cid=cat_id AND p.rid=' . $user->rid . ' AND permission=\'create new topic\' AND granted=1) '
                . ' ORDER BY cat_order';

        $ans = $this->db->query($qry);

        if ($ans) {

            $cats = $ans->fetchAll(\PDO::FETCH_CLASS);
        }

        $cats = \CODOF\Hook::call('on_get_categories_for_create_topic', $cats);

        return $cats;
    }
recent by admin  ·  Feb 5 '17 at 3:41 pm
417
9
julius posted Jan 13 '16 at 2:08 am

Hi

My forum address is www.f.palathully.com . I already posted so many images , videos and more. But from yesterday onwards I can't post a new topic with image. Without image it is working. The images are uploading to attachment folder. It is in 0777 permission mode. Please test this problem with this login details ...

Login : test
Password : testonly

Thanks

171
7
tehMati posted Jan 3 '17 at 9:59 pm

I've got a new install of codoforum up and running, and I was able to import my old forum without a hitch.

I'm having trouble with notifications. They don't work. When I click on "Notifications", 586c1e8d25d2f.png
It just spins, and never shows the notifications. What information would help troubleshoot this?

CentOS 7
PHP 5.6.29
Codoforum 3.7.2 build 10

Thanks

908
4.41k
22
Sub Categories
Actions
Hide topic messages
Enable infinite scrolling
Previous
Next
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft