Author Topic: [addon] DREAMBOARD V 2.1  (Read 478686 times)

0 Members and 1 Guest are viewing this topic.

Offline venator

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #165 on: January 14, 2006, 01:20:58 AM »
when i add category, post, etc i have error: Category fields required, etc
PLEASE HELP

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #166 on: January 14, 2006, 07:09:54 AM »
i think the error its on this code
Quote
$boardgories = "

SELECT catid, catname
FROM ".BOARD_CAT_TABLE."

";

$result = $site_db->query($boardgories);

$dboard_cat_row = $site_db->fetch_array($boardgories);

$board_catid = $dboard_cat_row['catid'];

$dreamboard_selection = "

SELECT board_id, board_catid, board_name, board_desc, board_posts, board_topics, board_lastpost_id, board_lastpost_user, board_lastpost_date, board_lastpost_page, board_moderator, board_moderator_id, auth_view
FROM ".BOARD_TABLE."
WHERE board_catid = '".$board_catid."'
LIMIT 1

";

$result = $site_db->query($dreamboard_selection);

$dboard_row = $site_db->fetch_array($result);

$board_id = $dboard_row['board_id'];
$board_catid = $dboard_row['board_catid'];
$board_name = $dboard_row['board_name'];
$board_desc = $dboard_row['board_desc'];
$board_topics = $dboard_row['board_topics'];
$board_posts = $dboard_row['board_posts'];
$board_lastpost_id = $dboard_row['board_lastpost_id'];
$board_lastpost_user = $dboard_row['board_lastpost_user'];
$board_lastpost_date = $dboard_row['board_lastpost_date'];
$board_lastpost_page = $dboard_row['board_lastpost_page'];
$board_moderator = $dboard_row['board_moderator'];
$board_moderator_id = $dboard_row['board_moderator_id'];
$auth_view = $dboard_row['auth_view'];
$newlastpost = "<img src=\"".TEMPLATE_PATH."/board_images/new_last_post.gif\" border=\"0\" alt=\"".$lang['button_lastpost']."\">";


the other line of code isn't giving error  :roll:

Change :

Quote

$boardgories = "

SELECT catid, catname
FROM ".BOARD_CAT_TABLE."

";


into :

Code: [Select]

$boardgories = "

SELECT catid, catname
FROM ".BOARD_CAT_TABLE;


Then, change :

Quote

WHERE board_catid = '".$board_catid."'


into :

Code: [Select]

WHERE board_catid = '$board_catid'


Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #167 on: January 14, 2006, 07:41:42 PM »
error has gone  :D


but still without show the last post topic... on profile  :roll:

Offline venator

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #168 on: January 14, 2006, 07:55:22 PM »
error has gone  :D


but still without show the last post topic... on profile  :roll:

:) yes... this is "half-mod". it work correctly only if in your php.ini register_globals = Off
make file test.php with this:
<?
phpinfo()
?>
if yo have premisson to phpinfo you wiev register_globals  Off on your hosting
you need add like this everywhere in php code uses forms variables $sample_variable = un_htmlspecialchars(trim($HTTP_POST_VARS['sample_variable']));
:(
you need rewrite source but this is not easy..

sorry, my english is bAd :) i'm russian :)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #169 on: January 14, 2006, 09:44:28 PM »
i've check in my php_server_information (plugin here avaliable) and

Quote
Your register_globals option is set to off (which, in order to operate with 4images, is a bad thing). If you do not use any different scripts than 4images, and      does not require this option to be disabled, it would be recommended that you contact your ISP in order to activate this function.

 :|

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #170 on: January 14, 2006, 09:56:21 PM »
error has gone  :D


but still without show the last post topic... on profile  :roll:

:) yes... this is "half-mod". it work correctly only if in your php.ini register_globals = Off
make file test.php with this:
<?
phpinfo()
?>
if yo have premisson to phpinfo you wiev register_globals  Off on your hosting
you need add like this everywhere in php code uses forms variables $sample_variable = un_htmlspecialchars(trim($HTTP_POST_VARS['sample_variable']));
:(
you need rewrite source but this is not easy..

sorry, my english is bAd :) i'm russian :)


The alternative solution to that would also be to create an SQL statement with LEFT JOIN between the USERS_TABLE and the BOARD_TABLE. This way, the additional board title name could also be tracked from the showprofile page (it's pretty much like the way the CATEGORIES_TABLE and the IMAGES_TABLE are currently handled. ;)).

Another alternative solution (less recommended though) would be to insert the title name into the USERS_TABLE ' during the same action as the current one when inserting into the BOARD_TABLE '. The thing is, by considering this one, more server ressources could be involved.

Quote

Your register_globals option is set to off (which, in order to operate with 4images, is a bad thing). If you do not use any different scripts than 4images, and      does not require this option to be disabled, it would be recommended that you contact your ISP in order to activate this function.


Good to know you're still using one of my old MOD release. Very practical isn't it ? ;)

In the mean time, thanks for posting this. It does facilitate the task when doing support.

/* Solution */

You should, indeed, ask your web hosting service if the register_globals can be activated. Otherwise, it could be a pain sometimes. ;)

Quote

error has gone  Very Happy


but still without show the last post topic... on profile 


Did you commented back the array line I stated to uncomment yesterday ? ;)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #171 on: January 15, 2006, 01:38:55 AM »
well i've made all updates (code) , i'm kinda lost , but i ill post my code with all updates here  8)

Offline sigma

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • http://cydonian.com
Re: [addon] DREAMBOARD V 2.1
« Reply #172 on: January 18, 2006, 06:19:05 AM »
has anyone else encountered the problem when trying to save changes to the user profile? I get 'Please enter a Signature!' both as a user and in the ACP.

Anyone know of a fix?

Offline Olphi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #173 on: January 18, 2006, 07:47:23 AM »
Yeah, have the same problem!  :cry:    No idea, what to do...

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #174 on: January 18, 2006, 02:38:20 PM »
@sigma and Olphi,

... I got the same massage by editing user profil ...
... and that's my solution ... "additional_user_fields" in profile do not have urgent to be filled out ...
... comment out these code lines in member.php -> Edit Profile ... like these ...
Code: [Select]
/*
  if (!empty($additional_user_fields)) {
    foreach ($additional_user_fields as $key => $val) {
      if (isset($HTTP_POST_VARS[$key]) && intval($val[2]) == 1 && trim($HTTP_POST_VARS[$key]) == "") {
        $error = 1;
        $field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $val[0]), $lang['field_required']);
        $msg .= (($msg != "") ? "<br />" : "").$field_error;
      }
    }
  }
*/

... now you can save the user profile without a "signature" and without a error massage ...
... that's my solution ... maybe there is another ...

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline sigma

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • http://cydonian.com
Re: [addon] DREAMBOARD V 2.1
« Reply #175 on: January 18, 2006, 02:55:45 PM »
Thanks mawenzi, that works just fine :)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #176 on: January 18, 2006, 03:07:36 PM »
I wonder if this uncomment block could affect other routines though ...

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #177 on: January 18, 2006, 03:11:16 PM »
@ TheOracle
... which other routines ... except "Edit Profile -> if (!empty($additional_user_fields)) " ...  :?:
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #178 on: January 18, 2006, 03:37:46 PM »
@ TheOracle
... which other routines ... except "Edit Profile -> if (!empty($additional_user_fields)) " ...  :?:

We'll find out when a user will report unusual activities. ;)

Offline Flatermann

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #179 on: January 19, 2006, 05:14:27 PM »
Wenn i install this mode i get an error

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/web7/html/4images/includes/db_mysql.php on line 92

what wor me
      return ($assoc) ? mysql_fetch_assoc($this->query_id) : mysql_fetch_array($this->query_id);