vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Private Folders (https://vborg.vbsupport.ru/showthread.php?t=40797)

Boofo 07-07-2002 09:46 PM

Private Folders
 
Can anyone please tell me why the following shows up:

Boofo\'s Babe

when I go to edit folders in the private messaging and insert the following and save it?:

Boofo's Babe

Admin 07-08-2002 05:56 AM

Probably a bug... have you reported it?

Boofo 07-08-2002 06:04 AM

No, I haven't yet because I never noticed it until just a while ago. I thought it might have had something to do with specialcharacters or something like that. I was hoping someone else had run into this. :)

Who do I report it to?

Quote:

Originally posted by FireFly
Probably a bug... have you reported it?

Admin 07-08-2002 06:08 AM

Well it's not a bug, just tried here and it works OK.

Version?

g-force2k2 07-08-2002 06:22 AM

maybe it added the slashes using the addslashes() ? not sure weird to me but i know when im hacking and i forget to addslashes() to certain code and i have apostrophes it generates a db error ;) i guess this is kinda the opposite

g-force2k2

Boofo 07-08-2002 06:27 AM

2.2.5 (with the 2.2.6 3 file fixup). I think the problem is in the following code somewhere:

Code:

if ($bbuserinfo[pmfolders]) {
    $allfolders = split("\n", trim($bbuserinfo[pmfolders]));
    $foldercount = 0;
    while (list($key,$val)=each($allfolders)) {
      $folder = split("\|\|\|", $val);
      $foldercount++;
      $highestnum = $folder[0];

      $folder[folderid]=$folder[0]+1;
      $folder[title]=$folder[1];
eval("\$folderboxeshack .= \"".gettemplate("priv_showfolders_folderbit_hack",1,0)."\";");
      }
  }

or here:

Code:

$highestnum = 0;
  $hiddenfolderboxes="";

  if ($bbuserinfo[pmfolders]) {
    $allfolders = split("\n", trim($bbuserinfo[pmfolders]));
    $foldercount = 0;
    while (list($key,$val)=each($allfolders)) {
      $folder = split("\|\|\|", $val);
      $foldercount++;
      $highestnum = $folder[0];

      $folder[folderid]=$folder[0]+1;
      $folder[title]=$folder[1];
      eval("\$hiddenfolderboxes .= \"".gettemplate("priv_showfolders_folderbit_hidden",1,0)."\";");
    }
  }

  $foldercount=0;
  while ($foldercount<1) {
    $foldercount++;

    $folder[folderid]=$foldercount+$highestnum+1;
    $folder[title]="";
    eval("\$newfolderboxes .= \"".gettemplate("priv_showfolders_folderbit_add",1,0)."\";");
  }
  $hiddenfolderboxes .= "<INPUT TYPE=\"hidden\" name=\"highest\" value=\"".($highestnum+3)."\">";


Boofo 07-11-2002 12:26 AM

Any ideas on how to fix the slash problem in my post above? :)


All times are GMT. The time now is 07:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01096 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete