Show Categories
337
3

I have applied the following code applied to script:
if(!isset($_SESSION['SESS_MEMBER_ID']))
{
$ses = $_SESSION['SESS_MEMBER_ID']; //tell freichat the userid of the current user

setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -> freichat code
}

I have put my code so but it is giving me the error :( Could not authenticate user . Please verify your edited copy-paste code and make any required changes.

Even if i hard code it to

$ses = 1; //tell freichat the userid of the current user

setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -> freichat code
}
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){

if(is_file("/home/priva134/public_html/chat/hardcode.php")){

require "/home/priva134/public_html/chat/hardcode.php";

$temp_id = $ses . $uid;

return md5($temp_id);
.
.
.

}

return 0;
}
}

I still get the same error.

In order to verify that $_SESSION['SESS_MEMBER_ID'] has the member id in it. I printed it in my website using echo $_SESSION['SESS_MEMBER_ID'];
It gave the member id i.e. 1 as the output.

I dont know why this is giving me such error.

recent by oldjack  ·  Jan 16 '15 at 1:35 am
72
1
Ajay posted Jan 8 '15 at 9:10 pm

I have two types of users, the user type is saved in session
in hardcode.php i have set the user table deatails as follows

/ Custom driver /
if($_SESSION['user_type']=='shop'smile
{
$usertable='shop'; //specifies the name of the table in which your user information is stored.
$row_username='name'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='usr_id'; //specifies the name of the field in which the user's id is stored (usually id or userid)
}
else
{
$usertable='users'; //specifies the name of the table in which your user information is stored.
$row_username='fullname'; //specifies the name of the field in which the user's name/display name is stored.
$row_userid='id'; //specifies the name of the field in which the user's id is stored (usually id or userid)
}

but custom.php always takes the else option always

i tried to customize the custom.php but there i cant get the session variable

Help me please....

recent by avinash  ·  Jan 14 '15 at 3:04 pm
171
1
Stefan15ist posted Jan 11 '15 at 7:30 pm

So i was testing my smtp server, and I selected forgot password on my administrator account e-mail, it said smtp failed, but not just that now when I try to login with the right info i cant login, is that a bug?, i changed my password in the mysql database but that doesn't seem to do anything, where do i find the administrator password what file saves it?

recent by avinash  ·  Jan 14 '15 at 2:51 pm
414
4
Stefan15ist posted Jan 10 '15 at 9:28 pm

I just downloaded the site files, and when i started to install it said to me

Uh oh, a problem occured!| 

Please make following files/folders writable
sites/default/config.php
sites/default/assets/img/attachments/
sites/default/assets/img/cats/
sites/default/assets/img/cats/icons/
sites/default/assets/img/profiles/
sites/default/assets/img/profiles/icons/
sites/default/assets/img/smileys/
cache/

I don't understand any of this stuff but I think it has to do with htaccess, this is what i have in it:

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  Options +Indexes
  RewriteEngine on

  # if your app is in a subfolder
  #RewriteBase /my_app/ 

  # test string is a valid files
  RewriteCond %{SCRIPT_FILENAME} !-f
  # test string is a valid directory
  RewriteCond %{SCRIPT_FILENAME} !-d

  RewriteRule ^(.*)$   index.php?u=/$1    [NC,L,QSA]
  # with QSA flag (query string append),
  # forces the rewrite engine to append a query string part of the
  # substitution string to the existing string, instead of replacing it.
</IfModule>

AddType text/css .less
AddType image/svg+xml svg svgz
AddEncoding gzip svgz

<IfModule mod_deflate.c>
  <FilesMatch ".(js|css|html|php|txt)$">
    SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>

How do i fix this?

recent by avinash  ·  Jan 14 '15 at 2:48 pm
265
7
Gursimar posted Jan 4 '15 at 10:54 pm

Hello,

I recently installed Codoforum and it working and all,but when i try to create a new post, it just doesn't work.. no error message just stays on the loading page.

For example:
Title: Hello
MessageHellloooooo

It works, but if i use longer text, it doesn't work, just keeps loading.
When i try to do it on my localserver, it works, no issues, but online, on the server just doesn't work?

Some help pls!?

Thank You!

Edit: I can't use like bold/italics ect, if i hit enter without them it doesn't work, if i like hit space so it automatically goes to the next line it works... HELP PLS?

recent by avinash  ·  Jan 14 '15 at 2:41 pm
121
2
KopjeKoffie posted Jan 10 '15 at 7:02 pm

After the import from phpbb3, the counter for the topics table is not correct. This means that I have to edit the value. At the moment no_posts is only updated with a +1 value when a new reply is made. This means that it is not calculated and I need to do this manually.

On my code below the error is You have an error in your SQL syntax;
Can you please let me know what's wrong with my statement?

UPDATE  `codo_topics` SET `no_posts` = (SELECT COUNT(`post_id`) FROM  `codo_posts` WHERE `codo_posts`.`topic_id` = `codo_topics`.`topic_id`)

Thank you so much.

2.3k
2
Freddie posted Jan 10 '15 at 6:41 pm

Hello CodoLogic, is it possible to change the language of the forum? This is by far the best forum software I have found, and the design looks great! smile

But is there a way to translate the forum as of right now, without going through the database and all the files?

Regards
Freddie

recent by Freddie  ·  Jan 10 '15 at 10:01 pm
83
0
guruken posted Jan 9 '15 at 8:39 am

I have changed the picture for my user profile. Now picture is not showing.

The site expect this picture at url

http://spilnota.club/sites/default/assets/img/profiles/icons/54aeac57dee12brand.png

But actually this picture is by url

http://spilnota.club/sites/default/assets/img/profiles/54aeac57dee12brand.png
87
0
TheDude69s posted Jan 8 '15 at 11:04 pm

Hello, I have just installed the forum, everything is great, until i try to post. if i use no spaces i can post as much as i want...but if i want to use spaces in my posts they will get stuck in pending.

any idea what could be causing this? I kinda like spaces.

134
0

some users have registered and the problem is that they are coming up as unverified Users. And then are also set to blocked.. How would i go about unblocking them.. because atm they can read the topics but not reply to them.

also is it posible to perhaps disable the Email virification and use a ReCaptcha instread at registering and logging in?

another think i have noticed is the buttons for facebook, google + and twitter do not work, could i get assistance on this.

thank you
-scooby.

ElectricMoon.xyz

recent by Gerry  ·  Jan 8 '15 at 10:08 pm
248
4
Sophie posted Jan 5 '15 at 4:59 pm

Hello,
i have installed Freichat in my SMF Forum and it works fine.
But now i want that only Friends can Chat wiht his Friends.

I have tryed to Change the Funktion ( get_users ) in SMF2.php, but in dosen't work.

What i have to du, to integrate the Friendlist from a user to Freichat?

Thanks for Help.

recent by Sophie  ·  Jan 8 '15 at 11:15 am
182
2
Gary Dean posted Jan 6 '15 at 8:38 am

54ab9e3f3b91f.png
How can i make a stand-alone page using internal codoforum php functions for things like informational pages related to the forum?

For instance, if i click on "Docs" and an item, is there a way i can make a page using Blocks?

I can't see any obvious way to do this.

Any comments appreciated.

recent by Gary Dean  ·  Jan 8 '15 at 2:23 am
163
2
KopjeKoffie posted Jan 5 '15 at 9:21 pm

Hi,

When a user wants to try to register, this error occurs:

Warning: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/customers/b/9/0/domain/httpd.www:/customers/b/9/0/domain/httpd.private:/customers/b/9/0/domain/tmp:/customers/domain/domain:/var/www/diagnostics:/usr/share/php) in /customers/b/9/0/domain/httpd.www/sys/CODOF/Pass.php on line 55 Warning: Cannot modify header information - headers already sent by (output started at /customers/b/9/0/domain/httpd.www/sys/CODOF/Pass.php:55) in /customers/b/9/0/domain/httpd.www/sys/Controller/user.php on line 236

I can see in the database that the user is created, and a confirmation email is sent to the user, which is great!
How can I get rid of the error message?

Thanks!

Categories
Actions
Hide topic messages
Enable infinite scrolling
All posts under this topic will be deleted ?
Previous
Next
With selected deselect topics
Pending draft ... Click to resume editing
Discard draft