Announcement

Collapse
No announcement yet.

Code questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Guest's Avatar
    Guest replied
    Originally posted by paddysplace
    My mistake. Nice eyes Brad

    I got a whole lot more questions coming your guys' way.

    Like, what is the use of badwords.php? I was hoping to see some interesting stuff but instead saw a list of regular, ordinary words (dissapointed )

    Regards,
    Patrick
    badwords.php is checked when posts are indexed, it blocks common words from begin inserted into the search index so it dosent grow larger then it has to.

    With mysql 4 you no longer need a search index (if you use full text searching) but it is still used to support mysql 3 systems.

    Leave a comment:


  • paddysplace
    replied
    My mistake. Nice eyes Brad

    I got a whole lot more questions coming your guys' way.

    Like, what is the use of badwords.php? I was hoping to see some interesting stuff but instead saw a list of regular, ordinary words (dissapointed )

    Regards,
    Patrick

    Leave a comment:


  • Guest's Avatar
    Guest replied
    That is a help doc located in that file. In both blocks php is turned off and the file is printing raw html to the browser. The frist block is a example of how you would set up config.php

    work if you're already in <?php ?> tags?
    php was turned off earlier in the file here:

    PHP Code:
    // ###################### Start help #######################
    if ($action=="help") {
    ?>
    <p><b>Instructions for limiting view/prune access to the admin log.</b></p> 

    Leave a comment:


  • paddysplace
    started a topic Code questions

    Code questions

    Hey, I am looking thru vB2.3.3 files and am having a lot of code questions so I'd figure i'll start a thread and maybe people can answer them as I find them.

    In adminlog.php:

    // type of database running
    // (only mysql is supported at the moment)
    $dbservertype="mysql";

    // hostname or ip of server
    $servername="localhost";

    // username and password to log onto db server
    $dbusername="yourusername";
    $dbpassword="yourpassword";

    // name of database
    $dbname="yourforum";

    // technical email address - any error messages will be emailed here
    $technicalemail = "[email protected]";

    // use persistant connections to the database
    // 0 = don't use
    // 1 = use
    $usepconnect = 0;

    $canviewadminlog = "<?php echo $bbuserinfo[userid]; ?>";
    $canpruneadminlog = "<?php echo $bbuserinfo[userid]; ?>";

    ?>
    Why is there a duplicate of the config file near the bottom of the file? and how does the whole
    $canviewadminlog = "<?php echo $bbuserinfo[userid]; ?>";
    $canpruneadminlog = "<?php echo $bbuserinfo[userid]; ?>";
    work if you're already in <?php ?> tags?

    Regards,
    Patrick
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X