Codoforum related discussions

Post all your questions and problems related to codoforum here .

102
1

<?php if ( class_exists( 'WOODMART_Auth' ) && ( ( ! empty( $fb_app_id ) && ! empty( $fb_app_secret ) ) || ( ! empty( $goo_app_id ) && ! empty( $goo_app_secret ) ) || ( ! empty( $vk_app_id ) && ! empty( $vk_app_secret ) ) ) ): ?>
<span class="social-login-title"><?php esc_html_e('Or login with', 'woodmart'smile; ?></span>
<div class="woodmart-social-login">
<?php if ( ! empty( $fb_app_id ) && ! empty( $fb_app_secret ) ): ?>
<div class="social-login-btn">
<a href="<?php echo add_query_arg('social_auth', 'facebook', wc_get_page_permalink('myaccount'smile); ?>" class="login-fb-link"><?php esc_html_e( 'Facebook', 'woodmart' ); ?></a>
</div>
<?php endif ?>
<?php if ( ! empty( $goo_app_id ) && ! empty( $goo_app_secret ) ): ?>
<div class="social-login-btn">
<a href="<?php echo add_query_arg('social_auth', 'google', wc_get_page_permalink('myaccount'smile); ?>" class="login-goo-link"><?php esc_html_e( 'Google', 'woodmart' ); ?></a>
</div>
<?php endif ?>
<?php if ( ! empty( $vk_app_id ) && ! empty( $vk_app_secret ) ): ?>
<div class="social-login-btn">
<a href="<?php echo add_query_arg('social_auth', 'vkontakte', wc_get_page_permalink('myaccount'smile); ?>" class="login-vk-link"><?php esc_html_e( 'VKontakte', 'woodmart' ); ?></a>
</div>
<?php endif ?>
</div>
<?php endif ?>

recent by quenquen  ·  Feb 21 '20 at 2:56 pm
40
1
sinanbinol posted Feb 11 '20 at 3:21 pm

Hello,

i have a problem. I upload an image on editor. It's work perfect. I can see on host (it was uploaded). But when i want to view, i take this problem.

Fatal error: Uncaught Error: Call to undefined function Controller\mime_content_type() in

My php version7.3,
I have ssl,
file permissions are correct.

i try everything , i change php version to 5.6 but nothing change.

Please help

5e42c664ba30e

recent by admin  ·  Feb 11 '20 at 9:49 pm
35
1
confuseduser posted Feb 5 '20 at 7:06 pm

Hi,
I have this code in php 5 and whant to adapt for php 7.2
I have tried using foreach instead of While but it returns error sayng "Array to string convertion" in line "$er.= "<b>".$key."</b>: ".$value." after foreach.
Does anybody know how to solve this?
Thank you.

public function getResumen(){
$er="";
$ar = $this->getTrace();
$er.= "<b>Mensaje</b>: ".$this->message."<br/>";
$er.= "<b>Código</b>: ".$this->code."<br/><br/>";
foreach ($ar as $a=>$p){

        //foreach($p as $key => $value){
        while(list($key, $value) = each($p)){ 
            //echo();                
            $er.= "<b>".$key."</b>: ".$value."<br/>";

            ;
        }
    }
    $in="<div style=\"border:1px solid #000000;padding:10px;background:#f6ca6d;\">";
    $in.="<b>Escepsión Resumen</b>:<br/><br/>";
    $in.=$er;
    $in.="</div><br/>";
    return $in;
recent by WebCrew  ·  Feb 5 '20 at 10:11 pm
100
2
teabagdad posted Oct 20 '19 at 2:15 pm

Hey guys. I just logged into my site yolegend.com and like overnight that button on mobile "start a new topic" is wrong the text is crawling off of it (even on codoforums) also on mobile the responsive is bad. So bad.
5dac5db7b9711

Can someone log into my website and help fix it? I do not get notifications when I receive a reply to this article also

recent by fromsly  ·  Dec 18 '19 at 5:14 am
160
5

@admin @adesh

Hello Adesh.

I use an SSL certificate on my domain and together with Codoforum, I unfortunately get the message that the SSL together with CF only works limited - so there are probably files or scripts which are not offered or integrated via SSL or secure enough.

Can it be that the FreiChat server of you does not run on SSL?

If so, here is a tip:

There is a free really good SSL certificate that anyone who has SSH or shell access can easily activate and use for free. The provider is part of the Linux Open Source distribution and calls itself Let's Encrypt - maybe that would be something for you at Codologic?

Here is the link to Lets Encrypt Service:

Kind regards, Andy

recent by quenquen  ·  Dec 14 '19 at 12:11 pm
32
1

Hi,
As a new PHP programer I am testing to insert datas into my database. Every things are showing me that the codes are well. For example I test the connection to my database it's fine:
I am using PHP 7.3.10 on Windows 10
testconnection.php
$conn = new mysqli("localhost", "root", "", "login"smile;

if ($conn->connect_error) {

die("ERROR: Unable to connect: " . $conn->connect_error);

}

echo 'Connected to the database.
';

$result = $conn->query("SELECT * FROM usuario"smile;

echo "Number of rows: $result->num_rows";

$result->close();

$conn->close();

?>

//I receive this message:

Connected to the database.
Number of rows: 2
Inserttodb.php

$link=mysqli_connect("localhost","root",""smile;
mysqli_select_db($link,"phpmysqli"smile;
?>

if(isset($_POST["submit"]))
{

mysqli_query($link,"insert into table1 values('$_POST[t1]','$_POST[t2]'smile"smile;

}

?>

When I insert data ist doesnt show any error. But when I check in phpMysql there is nothing. Ouuuf, I passed days to resolv this. But nothing!!!

recent by WebCrew  ·  Dec 14 '19 at 11:44 am
1.15k
5.08k
23
Sub Categories
Actions
Hide topic messages
Enable infinite scrolling
Previous
12345678 ... 58
Next
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft