General discussion

Place for discussing all the general topics

91
1

My Form validation code.
<?php
/**

  • Form Validation
    */
    class Form{
    public $currentValue;
    public $values = array();
    public $errors = array();

    public function __construct(){}

    public function post($key){

     $this->valuse[$key] = trim($_POST[$key]);
     $this->currentValue = $key;
     return $this;
    

    }

    public function isEmpty(){

     if(empty($this->valuse[$this->currentValue])){
         $this->errors[$this->currentValue]['empty'] = "Field must be empty";
     }
     return $this;
    

    }

    public function isCatEmpty(){

     if($this->valuse[$this->currentValue] == 0){
         $this->errors[$this->currentValue]['empty'] = "Field must be empty";
     }
     return $this;
    

    }

    public function length($min=0, $max){

     if (strlen($this->valuse[$this->currentValue]) < $min OR strlen($this->valuse[$this->currentValue]) > $max) {
         $this->errors[$this->currentValue]['length'] = "Should Min ".$min." And Max " .$max. "Characters.";
     }
     return $this;
    

    }

    public function submit(){

     if(empty($this->errors)){
         return true;
     }else{
         return false;
     }
    

    }

}

I don't found this problem.

My Category insert Code is

public function insertCategory(){
if(!($_POST)){
header("Location:".BASE_URL."/Admin/addCategory"smile;
}
$input = $this->load->validation("Form"smile;
$input->post('name'smile
->isEmpty();

$input->post('title'smile
->isEmpty();

    if ($input->submit()) {
        $tablePost     = "category";
        $name         = $input->values['name'];
        $title         = $input->values['title'];

        $data  = array(
        'name'  => $name,
        'title' => $title
        );
    $catModel = $this->load->model("CatModel");
    $result   = $catModel->insertCat($tableCat, $data);

    $mdata = array();
    if ($result == 1) {
        $mdata['msg'] = "Category Added Successfully.";
    } else {
        $mdata['msg'] = "Category Not Added Successfully.";
    }
    $url = BASE_URL."/Admin/categoryList?msg=".urlencode(serialize($mdata));
    header("Location:$url");
    } else {
        $data["postErrors"] = $input->errors;
        $tableCat = "category";
        $this->load->view("admin/header");
        $this->load->view("admin/sidebar");

        $catModel = $this->load->model("CatModel");
        $data['catlist'] = $catModel->catList($tableCat);

        $this->load->view("admin/addcategory", $data);
        $this->load->view("admin/footer");
    }    
}

this is data not inserted.
I don't understand why this problem.
post("name"smile
why post() method value don't work.
this line work not properly.
$name = $input->values['name'];
$title = $input->values['title'];

?>

33
1
Jakub Švec posted Oct 22 '23 at 7:44 pm

Hi,


I have a problem with my codoforum. The first problem, and I didn't find how to remove it here, is the URL address through which my forum works. I have a first problem here, when I click on anything I am redirected to the url odbavovak.eu/domains/odbavovak.eu/index.php?u=/topic/4/test, where it actually repeats twice /domains/odbavovak.eu/... it spoils the address and is most likely related to a third problem, the main one, which limits the functionality of the site. Pretty URL I think is for example odbavovak.eu/topic/4/test. Next problem is if I create an article that has a name with a space or diacritics, I get this error message on the site.
65356d524a5fe


Thank you very much.


135
7

Anyone who has the "users" role is not able to see anything including the homepage. It will just auto-redirect them to there own profile. If they try to make a new topic it says the page is not found. The "Users" role permissions is as follows.
5eba1885bc00b
5eba197e1cba6

If I make a new role and have it copy permissions for "Users" and apply it to a test account, it will allow the test account to view categories and see the make a post. If I just have it set to the "Users" role it can't. I tried setting the user's role to nothing, saving, then setting it back to no change.

Anyone have had this issue and know a fix?

54
1

In the ever-evolving world of digital marketing, search engine optimization (SEO) remains a critical component of online success. For businesses looking to offer comprehensive digital marketing services, partnering with an SEO reseller program can be a smart strategy. These programs allow agencies, web developers, and marketing firms to outsource their SEO services while still providing value to their clients. Here's a closer look at the benefits of participating in an SEO reseller program:


  1. Expand Service Offerings:

By joining an SEO reseller program, digital marketing agencies can expand their service offerings without the need for in-house SEO expertise. This allows them to provide clients with a more comprehensive suite of services.

  1. Access to Expertise:

SEO reseller programs are typically run by experienced SEO professionals. Partnering with such programs means gaining access to their expertise, tools, and best practices.


In summary, an SEO reseller program can be a win-win for both digital marketing agencies and their clients. Agencies can expand their services, provide expert SEO solutions, and enhance client satisfaction, while clients benefit from improved online visibility and marketing effectiveness. When considering an SEO reseller program, it's essential to choose a reputable partner with a track record of delivering results in the ever-competitive world of SEO.


Read More :- www.mindmingles.com/seo-reseller-program/


181
5
WebCrew posted Oct 31 '19 at 1:42 am

@admin

Hi Adesh smile

I'm just wondering how is it possible to activate the blog? Do you use another blog CMS like Post Leaf or is it just a Codoforum forum category turned into a blog? If so, could you please explain to me (and the community) how did you do that?

Thank you very much and best regards from Germany to Ireland smile

Andy

159
2

Hello loyal Codoforum community,


Like you, I'm a very simple user of Codoforum and FreiChat and I think it's great what Codologic has created for us over the years.


Let us give them a little thank you and help to create more awareness for Codoforum, people should know about Codoforum and its awesome features.


Don't be lazy, two minutes of work helps a lot. Just share a few positive words about Codoforum on Twitter or other social networks. You can also share the following image:


5f6f23db196a8


Share it !


share it !


share it !


share it !


At the end of the day, we all benefit from this because more theme and plugin developers can find us.


You can also follow Codologic at Twitter:



Thank you very very much, kind regards,


Andy smile


258
13

Hi,


After installing codoforum and attempting to upload some files, I noticed that regardless of the file size limit set, the files that are around 8MB or above would fail to upload without error message from the forum.


When I attempt to upload these files, after the selecting the files and clicking upload, the green bar will and the checkmark will show up, but the window for file upload will not close and the link to the file won't be present in the textbox.


When I check the attachment directory, the file I tried to upload is not there. The following error shows up when I open the console on the browser.


606cabe4df9fe


Would like to know what could be done to resolve this issue. Thanks.


102
5
DenialDeni posted Jan 23 '22 at 11:24 pm

Hi, I installed FreiChat on a HumHub site. It worked fine until a CroneJobs issue. After that the chat bubble doesn't appeared any more (I assume the problem started after that). I have unistalled and re installed many times the chat module, and even have deleted the site account on the dashboard of FreiChat, and the chat continues without appears.v


91
2

Determining whether Java or Python is better depends on your specific needs. Java offers strong typing, making it robust for large-scale projects and environments where performance is crucial, such as enterprise applications and Android development. It compiles to bytecode, resulting in faster execution.


Python, with its simplicity, readability, and extensive libraries, is excellent for rapid development, data analysis, machine learning, and web development. Its dynamic typing allows for quick prototyping and adaptability.


If you prioritize speed and performance for complex software and have a preference for static typing, Java might be preferable. If you value ease of learning, versatility, and faster development cycles, Python could be the choice.


Ultimately, the "better" language depends on your project's scope, goals, and your familiarity with the language. Many factors, including community support, available tools, and personal preferences, influence the decision. It's often beneficial to consider the specific requirements of your task before deciding which language to use.


147
3
moses3k posted Nov 7 '22 at 5:31 am

Hi everyone, I'm planning to launch a Q&A style forum for my community. Our typical make or buy question started with research which is why I stumbled upon this product & community.


Been reading the but couldn't find exactly what I was looking for. Basically wanna know whether codoforum would offer / support following use cases:


  1. Approved signups: as admin, I want to review and approve all user signups (gated community).
  2. Upvoting: as user, I want to upvote posts. I saw that upvoting replies is possible, but can I upvote a post as well?
  3. Groups: Besides choosing a category for my post - is it possible to create groups?
  4. Social sharing: Is there any feature that allows me to share a specific post via SM, e.g. twitter ?

TIA for all upcoming replies, much appreciated!


185
2
or1k posted Apr 24 '23 at 10:45 am

Hello.
I do:


  1. Download zip of codoforum 5.2.1
  2. Upload to server and unzip
  3. Setting up Nginx. I give to codoforum php-fpm 8.2.
  4. Then i'm install from browser this engine.

In result i got PHP errors.


Deprecated: Creation of dynamic property CODOF\Asset\Stream::$parser is deprecated in /home/site/hub/sys/CODOF/Asset/Stream.php on line 98
Deprecated: Creation of dynamic property CODOF\Plugin::$db is deprecated in /home/site/hub/sys/CODOF/Plugin.php on line 16
Deprecated: Creation of dynamic property CODOF\Smarty\Single::$parent is deprecated in /home/site/hub/sys/CODOF/Smarty/Single.php on line 19
Deprecated: Creation of dynamic property CODOF\User\RememberMe::$db is deprecated in /home/site/hub/sys/CODOF/User/RememberMe.php on line 13
Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in /home/site/hub/sys/CODOF/Format.php on line 26
Deprecated: Creation of dynamic property Controller\forum::$view is deprecated in /home/site/hub/sys/Controller/forum.php on line 383
Deprecated: Creation of dynamic property CODOF\Asset\Stream::$parser is deprecated in /home/site/hub/sys/CODOF/Asset/Stream.php on line 98
Deprecated: Creation of dynamic property CODOF\Asset\Stream::$parser is deprecated in /home/site/hub/sys/CODOF/Asset/Stream.php on line 98
Deprecated: Creation of dynamic property CODOF\Asset\Stream::$prependURL is deprecated in /home/site/hub/sys/CODOF/Asset/Stream.php on line 166
Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /home/site/hub/sys/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719
Deprecated: Creation of dynamic property Smarty_Internal_Template::$compiled is deprecated in /home/site/hub/sys/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 719

Then i tried to give him php 5.6 and 7.4. Errors not gone.
Then i give him back 8.2.
I use CloudFlare with Auto Minify, Brotli and Early Hints.
In my example on my site, Codoforum loose all CSS tamplates.


Link to my site (NO SPAM, NO AD) (It's just for get more info about a problem)
or1k.net/hub


@admin

286
19
blockgaming posted Mar 26 '23 at 5:43 pm

Hello Codoforum community. It's I!


Just kidding. But no, really.


I've noticed a issue with my Codoforum installation of recent with emails.


Some emails are not being pushes threw of recent, or sending to many times.


As an example, a user who has "daily digest" will receive the daily digest around 10-15 times per day.


Or when someone responds to a forum post they have it set to notify them of, it just won't send anything.


2.86k
5.92k
20
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