General discussion

Place for discussing all the general topics

170
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


86
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
56
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
110
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
241
2

Uyarı: session_start(): Oturum nesnesinin kodu çözülemedi. Oturum 93. satırda C:\xampp\htdocs\forum\sys\CODOF\Util.php dosyasında yok edildi


Ayrıştırma hatası: sözdizimi hatası, beklenmeyen simge "*", 2. satırda C:\xampp\htdocs\forum\cache\HB\compiled\57397fb48242849719080522fa095531.php içindeki dosyanın sonu bekleniyor


recent by erpod  ·  Aug 16 '21 at 1:54 pm
104
2
PenPencilMedia posted Jul 13 '21 at 5:53 pm

Changes did not reflect after change in index.php


<?php
date_default_timezone_set('Asia/Calcutta');

// Site Name & Title VISNI SERVICES
define('SITE_NAME','VISNI SERVICES');
define('SITE_TITLE','VISNI SERVICES');
// Site Path ...
define('SITE_PATH',$_SERVER['DOCUMENT_ROOT'].'/visni');
define('ADMIN_PATH',SITE_PATH.'/admin');
define('CSS_PATH',SITE_PATH.'/css');
define('PHP_PATH',SITE_PATH.'/php');
define('JS_PATH',SITE_PATH.'/js');
define('IMAGES_PATH',SITE_PATH.'/images');
define('INC_PATH',SITE_PATH.'/inc');
define('LIB_PATH',SITE_PATH.'/lib');


// Site URL's ...

define('ADMIN_URL',SITE_URL.'/admin');
define('CSS_URL',SITE_URL.'/css');
define('FONT_URL',SITE_URL.'/fonts');
define('PHP_URL',SITE_URL.'/php');
define('JS_URL',SITE_URL.'/js');
define('IMAGES_URL',SITE_URL.'/images');
define('INC_URL',SITE_URL.'/inc');
define('LIB_URL',SITE_URL.'/lib');
//echo JS_URL;


// Database Connections Do not Modify Below....
define('DB_HOST','localhost');
define('DB_USER','root');
define('DB_PWD','');
define('DB_NAME','');
define('DB_TYPE','');
?>

recent by WebCrew  ·  Jul 16 '21 at 1:47 pm
159
2
closed
PatrickSmit posted Jan 18 '20 at 6:22 pm

Hello...
At the moment I'm very frustrated by the lack of documentation in codoforum. Out of the box I had the struggle of getting freichat to work and by accident I found out there was a bug in one of the installer files which just doesn't seem to get rectified (If I would distribute software I would take these errors out! So they're not in there on download for new adapters).
Now I'm completely stuck on the uni_login... I managed to get google to work but thats it. And to be honest I don't have the time energy and willpower to go through the process of debugging and searching endlessly for a solution... THESE ARE out of the box plugins. There is no guide or anything anything about this except for google. All documentation or posts I can find are either incomplete or simply wrong. When there is an answer from codoforum they assume you now every file by heart and are in their head or something. To get the point is there anywhere a guide to implement facebook and twitter login. The problem with facebook is that it goes to the facebook page asks me to login and then simply return to the login page on the forum like nothing ha happened. I tried everything with redirect url's and I can't get it to work! With twitter again the normal install procedure is just wrong if I put the callback URL into twitter it says that queries are not allowed. This is a copy and a paste from YOUR documentation. Is there anything else I can try or should I just wipe the domains I put this on and switch to Vanilla or something where I can find how to implement stuff? (Again out of the box not 8 hours+ of googling and tearing my hair out)? Thanks in advance


recent by Nenzeea  ·  May 4 '21 at 9:51 pm
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