Customizing SMF > Tips and Tricks

Detecting Multiple Accounts

<< < (3/8) > >>

[Unknown]:
Then perhaps tmp_table_size is larger than the available space in the /tmp partition.  Check "df".

-[Unknown]

rojamaia:

i believe that this one is going to be useful.  however, i can't really understand how i would edit the database info as you have posted.   can you post an example?

mine is now like this:


--- Code: ---// Database name
$accounts_db_name="smf";

// Database tables
$db_message_table="smf_messages";
$db_member_table="smf_members";

// Make sure table name includes database name
$db_message_table="`$accounts_db_name`.`$db_message_table`";
$db_member_table="`$accounts_db_name`.`$db_member_table`";

require('http://catbalogan.com/discussion/SSI.php');

--- End code ---

my database name is "smf"
i'm not sure how to the rest, although i know that my member and messages tables are simply "smf_members" and "smf_messages"

Mike Bobbitt:
I've re-jigged the script a bit so it's easier to configure. Sounds like all you should have to do is update the system path to SSI.php. It can't be a URL, it has to be a filesystem path, such as /var/www/html/forums/SSI.php or /home/malinaobenny/www/forums/SSI.php.


Cheers
Mike

rojamaia:

i already configured it as:

/malinaobenny/discussion/SSI.php


then i ran the PHP, but all i got is a blank white page

Mike Bobbitt:
That looks like it's not a complete path, check your Settings.php and use the value found in $boarddir as the directory. (Just append /SSI.php to that.)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version