Show Categories
4k
40
sticky
WebCrew posted Aug 30 '19 at 1:03 am

Hallo Community


because there is no dark theme (style) for Codoforum I created one for myself and I share the result now with the Codo community.


I am not a professional webdesign artist or developer. It is one of my hobbies and even if I love webdesign and already created a lot of projects, I`m sure the theme is far from perfect but it is ready to use.


If You like it or download it give me a thumbs up or leave a comment.


Oh and by the way you are all very very welcome at:


a community for creative people and their hobbies.


https://prattle.space a free Twitter alternative!
I try to update the theme from time to time and maybe I will integrate some new features too.


Here is the download link - PLEASE dont forget to give me a STAR rating at GitHub thanks mates:


https://github.com/WebCrew/WebCrew_codarko


Kind Regards, Andy


5d6866b05ef1a


recent by WebCrew  ·  Sep 28 '22 at 4:55 am
16
0
iain posted Jan 16 at 11:13 am

Does anyone have experience of setting up Codoforum to use Azure AD B2C for single sign-on? I have tried using the Single sign on and Azure Ad plugins but was unable to get them working.


99
5
John Wick posted Oct 23 '22 at 10:14 pm

Admin > Spam Control > ReCaptcha > Enable recaptcha? > Yes


//Codoforum v.5.1. (php 7.2, mysql 5.7)


Use Google's No CAPTCHA reCAPTCHA v2, but if user doesn't fill in Captcha and just click Submit, the next fatal error is shown.smile


63563b4d3564f


Fatal error: Uncaught Error: Call to a member function isSuccess() on null in C:\OSPanel\domains\test.loc\sys\CODOF\User\Register.php:234 Stack trace: #0 C:\OSPanel\domains\test.loc\sys\Controller\user.php(312): CODOF\User\Register->get_errors() #1 C:\OSPanel\domains\test.loc\routes.php(642): Controller\user->register(true) #2 [internal function]: {closure}() #3 C:\OSPanel\domains\test.loc\sys\CODOF\Router\Router.php(91): call_user_func_array(Object(Closure), Array) #4 C:\OSPanel\domains\test.loc\sys\CODOF\Router\Router.php(56): CODOF\Router\Router::_dispatch(Object(FastRoute\Dispatcher\GroupCountBased)) #5 C:\OSPanel\domains\test.loc\routes.php(892): CODOF\Router\Router::dispatch() #6 C:\OSPanel\domains\test.loc\index.php(22): require('C:\OSPanel\doma...' ) #7 {main} thrown in C:\OSPanel\domains\test.loc\sys\CODOF\User\Register.php on line 234


Need help




Also I need to add any kind of Honeypot to Register page. Who can share working code?smile


109
12
John Wick posted Oct 19 '22 at 2:15 pm

I can create a new Topic and add a poll, it works fine.


But when I try to add Poll for already existing my Topic I can't do it. Nothing happens.


So how to fix it when "edit" or how to disable adding a Poll when user want to edit a post?


Thnxsmile smile


recent by John Wick  ·  Dec 1 '22 at 8:47 am
37
0
WebCrew posted Nov 8 '22 at 6:33 pm

Hallo Community and hallo @admin

today I have setup a new instance of Codoforum at my shared hosting.


I created a topic with a poll and I was running into the following error message:



Warning: Attempt to read property "num_votes" on array in /sys/CODOF/Forum/Poll.php on line 156



I did one vote at the poll and instead of showing the correct percentage it still shows 0% on both possible poll answers. It would be great if you can help to fix it.


My System Setup:


  • I use https:// with Lets Encrypt
  • MySQL Version 5.7
  • PHP Version 8.1
  • opcache is enable
  • max_execution_time is 300
  • max_input_time also 300
  • post_max_size 256M
  • system is running on Plesk
  • Chrome Browsers Ads Blocker is off

Kind regards, WebCrew smile


67
2
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!


recent by moses3k  ·  Nov 8 '22 at 1:21 am
51
4

Anyone have same issue? My forum is being under attacked by bots. They register new accounts for every hour. I have Google reCapcha2 enable and even tried some JavaScript/Ajax to prevent but still got new bot accounts registered.


I checked my web access log and all of the bot request weren't from normal browser, hence they weren't prevented by JavaScript/Ajax. You can check my register link, you can't register it if you don't provide a correct answer. But the bots can pass it smile


I believe this codologic forum is being under attacked also, see these users.


https://codologic.com/forum/index.php?u=/user/profile/17305
https://codologic.com/forum/index.php?u=/user/profile/17304
https://codologic.com/forum/index.php?u=/user/profile/17303
https://codologic.com/forum/index.php?u=/user/profile/17302
https://codologic.com/forum/index.php?u=/user/profile/17301


recent by nguoianphu  ·  Nov 7 '22 at 5:07 am
49
4
John Wick posted Oct 24 '22 at 7:55 am

For Example if we use page



or some others, we have that code after Submit button


<button id='req_pass' class='codo_btn codo_btn_primary'>{_t('E-mail reset token')}</button>
<img id="codo_sending_mail" style="display: none" src="{$smarty.const.CURR_THEME}img/ajax-loader.gif" />

So the goal is to add "codo_sending_mail" for Register page, because waiting on this page takes the maximum time.


What I do?


First add the code after Submit button
<img id="codo_sending_mail" style="display: none" src="{$smarty.const.CURR_THEME}img/ajax-loader.gif" />
to ....\sites\default\themes\default\templates\user\register.tpl


Then edit some code to ....\sites\default\assets\js\user\register.js


$('#codo_register').on('click', function() {

if (error_exists(register.errors)) {
$('#reg_username').focus();
return false;
} else {
$('#codo_sending_mail').show();
$(this).submit();
}
});

But the logic is not what we need, as loading button appears on first click at Submit button.


So return to page ...\sites\default\themes\default\templates\user\register.tpl


and add this code to each Input


onclick="$('#codo_sending_mail').hide();"

635636d8215e6


I do not like this solution, you understand why, help to implement this function beautifully. Thanks


recent by admin  ·  Nov 6 '22 at 11:46 am
20
1
squiddy posted Nov 2 '22 at 2:30 pm

Hello,


I was wondering if I could host a CodoForum site locally using XAMPP, can I then upload the site to Github pages?


Thanks!
~ Squiddy


(Sorry for re-posting this question twice)


recent by nguoianphu  ·  Nov 3 '22 at 9:25 am
39
0
bondikho posted Nov 1 '22 at 10:30 pm

Hello I have my code that scrapes the whole html of a page. But I need to scrape ONLY specific DIV class


Can someone help me


I would like to scrape this class HTML span3 height-325


this is my code


<?php

header("Content-Type: text/plain"); // We choose to display the content as plain text

$ch = curl_init("www.trade-ideas.com/ticky/ticky.html?symbol=amzn");
curl_setopt($ch, CURLOPT_HEADER, 0);
$response = curl_exec($ch); // Running the request

if (curl_error($ch)) {
echo curl_error($ch); // Displaying possible errors from the request
} else {
echo $response; // Displaying the content of the response
}

curl_close($ch);
?>

48
2

Hallo Community and - Codologic,


over the past few months I've ventured into another PHP project with lots of tutorials and examples - for someone like me who had next to no PHP knowledge, this was a tough one.
A friend then helped me to correct the last mistakes and now everything works as it should and the online theme editor, style editor and file manager is ready. The code could certainly be written nicer and more logical, but at least my editor works now.



You can easily integrate this into any CMS or forum script or even edit your HTML homepage with it.



If you are interested - try it out and if you want, please give me a STAR for my work on GitHub - thank you very much.


Here You go:



Slowly, very slowly, I'm learning and getting better with PHP bit by bit - it's fun to learn.


Kind regards, WebCrew smile


recent by WebCrew  ·  Oct 25 '22 at 12:17 pm
31
2
John Wick posted Oct 14 '22 at 8:57 pm

Hi all,


Dear @admin @WebCrew

Time from time I've got similar errors.


I'm using php 7.2, mysql 5.7 and codoforum v.5.1


When I try to reply or just open a category page:


Fatal error: Uncaught Error: Function name must be a string in C:\OSPanel\domains\cfc.local\sys\CODOF\HB\Render.php:143 Stack trace: #0 C:\OSPanel\domains\cfc.local\sys\Controller\forum.php(489): CODOF\HB\Render::tpl('forum/topic', Array) #1 C:\OSPanel\domains\cfc.local\routes.php(506): Controller\forum->topic(40, 1) #2 [internal function]: {closure}(40, 'ocp-and-cdi-whi...') #3 C:\OSPanel\domains\cfc.local\sys\CODOF\Router\Router.php(91): call_user_func_array(Object(Closure), Array) #4 C:\OSPanel\domains\cfc.local\sys\CODOF\Router\Router.php(56): CODOF\Router\Router::_dispatch(Object(FastRoute\Dispatcher\GroupCountBased)) #5 C:\OSPanel\domains\cfc.local\routes.php(892): CODOF\Router\Router::dispatch() #6 C:\OSPanel\domains\cfc.local\index.php(22): require('C:\OSPanel\doma...') #7 {main} thrown in C:\OSPanel\domains\cfc.local\sys\CODOF\HB\Render.php on line 143

or


Fatal error: Uncaught Error: Function name must be a string in C:\OSPanel\domains\cfc.local\sys\CODOF\HB\Render.php:143 Stack trace: #0 C:\OSPanel\domains\cfc.local\sys\Controller\forum.php(263): CODOF\HB\Render::tpl('forum/category', Array) #1 C:\OSPanel\domains\cfc.local\routes.php(483): Controller\forum->category('nft', 1) #2 [internal function]: {closure}('nft') #3 C:\OSPanel\domains\cfc.local\sys\CODOF\Router\Router.php(91): call_user_func_array(Object(Closure), Array) #4 C:\OSPanel\domains\cfc.local\sys\CODOF\Router\Router.php(56): CODOF\Router\Router::_dispatch(Object(FastRoute\Dispatcher\GroupCountBased)) #5 C:\OSPanel\domains\cfc.local\routes.php(892): CODOF\Router\Router::dispatch() #6 C:\OSPanel\domains\cfc.local\index.php(22): require('C:\OSPanel\doma...') #7 {main} thrown in C:\OSPanel\domains\cfc.local\sys\CODOF\HB\Render.php on line 143

PS. After reload page everything is ok and I see my reply to public.smile


What does that mean?smile


recent by djonwick  ·  Oct 15 '22 at 12:01 pm
33
2

I just try to update old forum from V.4.9.4 to V.5.2.1 it shows the update in admin dashboard but it always say i have latest version install when i click to update:
6344824e08b0f




1.0> Checking for latest version
1.1> Connecting to server: codoforum.com ...
####: Initiating cURL request
1.3> Response:
Raw: 4.9.4|codoforum.v.4.9.4.patch.zip|8b334fe843117e3e5c8c3d856dbb858d
Latest version is 4.9.4
File to be downloaded to cache dir: codoforum.v.4.9.4.patch.zip
You are using the latest version :)

Can i force update in a way or run it manually in the filesystem?


recent by admin  ·  Oct 11 '22 at 8:31 am
63
7

When I try to access the forum in my VM, the below error is shown at every webpage I attempt to enter.


Fatal error: Uncaught PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/codoforum/sys/vendor/illuminate/database/Illuminate/Database/Connectors/Connector.php:47 Stack trace: #0 /var/www/codoforum/sys/vendor/illuminate/database/Illuminate/Database/Connectors/Connector.php(47): PDO->__construct() #1 /var/www/codoforum/sys/vendor/illuminate/database/Illuminate/Database/Connectors/MySqlConnector.php(20): Illuminate\Database\Connectors\Connector->createConnection() #2 /var/www/codoforum/sys/vendor/illuminate/database/Illuminate/Database/Connectors/ConnectionFactory.php(57): Illuminate\Database\Connectors\MySqlConnector->connect() #3 /var/www/codoforum/sys/vendor/illuminate/database/Illuminate/Database/Connectors/ConnectionFactory.php(46): Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection() #4 /var/www/codoforum/sys/vendor/illuminate/database/Illuminate/Database/DatabaseManager.php(176): Illuminate\Database\Connectors\Connectio in /var/www/codoforum/sys/vendor/illuminate/database/Illuminate/Database/Connectors/Connector.php on line 47

I haven't made any changes to the forum prior to getting this error and I am not sure what may be causing this issue.


recent by WebCrew  ·  Sep 25 '22 at 1:54 am
Categories
Actions
Hide topic messages
Enable infinite scrolling
All posts under this topic will be deleted ?
Previous
1234 ... 142
Next
With selected deselect topics
Pending draft ... Click to resume editing
Discard draft