jme574 Posted October 24, 2004 Posted October 24, 2004 How can i add an option to add attactments to post on my bb? I notice at the bottom of this page there is an option and on some of the other boards i visit there is an option too, but when i or anyone else post at my board (www.fullefx.net/forums) there is no option to add attachments. thanks, Quote
TCH-Thomas Posted October 24, 2004 Posted October 24, 2004 I had a look in my phpbb and it doesnt look like there is an option for attachements in phpbb. Quote
TCH-Thomas Posted October 24, 2004 Posted October 24, 2004 I did a little search and it looks loke this is what you are looking for: http://www.phpbbhacks.com/viewhack.php?id=251 Quote
jme574 Posted October 24, 2004 Author Posted October 24, 2004 Ok thanks for the help - just looked at the file that tells how to install and it looks like that kind of work is out of my league. thanks again Quote
TCH-Thomas Posted October 24, 2004 Posted October 24, 2004 Just let us know if you run in to any problems. There is usually someone who might know the answer. Quote
TCH-Dick Posted October 24, 2004 Posted October 24, 2004 Adding the attachment mod isnt that hard, just make sure and save a backup of any files that need to be edited. Quote
jme574 Posted November 3, 2004 Author Posted November 3, 2004 Ok now that i have downloaded the hack to add the add attactment feature - i opened it and read the directions. Here is my problem You are to star out by: STEP NUMBER I: Uploading all new Files # # Copy/Upload all files to their respective Location (the directory structure is in the folder root) However i can't find a folder called root or has root in the file name. I have looked all through my file manager and went to the phpMyadmin link and looked all through there. Can anyone tell me where i might find the "root" folder? Quote
TCH-Bruce Posted November 3, 2004 Posted November 3, 2004 The folder root is your forum's main folder. Quote
jme574 Posted November 3, 2004 Author Posted November 3, 2004 cpanel/file manager/public_html/forums? i have looked in there and all the files associated with it and still can't find anything about root folder - are there hidden files that i need to make unhidden? Quote
TCH-Bruce Posted November 4, 2004 Posted November 4, 2004 There is no folder called "root". If your forum is in a folder called "forums" that is what your root folder is. Quote
TCH-Dick Posted November 4, 2004 Posted November 4, 2004 the 'root directory' is the lowest possible directory in a filesystem Quote
jme574 Posted November 5, 2004 Author Posted November 5, 2004 Ok - getting a little further now - i dl'ed the hack and extracted the zip files to a folder on my desktop - i then uploaded all the files in that folder via ftp to my forums folder in my file manager. Now i am at this point. Now we want to create the tables, therefore we run mod_table_inst.php (http://www.yoursite.com/phpBB2/install/mod_table_inst.php) Please be sure to enter the correct URL, the mod_table_inst.php file has to be placed within the install folder. Contact me at the board if you have questions or problems. here's my problem - how do you run that file - when i click on it - it opens an "open with" box. that is when i click on that file from the folder on my desktop - if i go to the file manager in my control panel, i don't get a "run" option there are serveral options the closest one being show file. Quote
TCH-Dick Posted November 5, 2004 Posted November 5, 2004 if www.totallymobiledjs.com is the site you are seting this up on and www.totallymobiledjs.com/forums is where your forums are then www.totallymobiledjs.com/forums/install/mod_table_inst.php is where you would go to run the dbase table install script. Quote
jme574 Posted November 5, 2004 Author Posted November 5, 2004 It site is actully fullefx.net so i went to this address http://www.fullefx.net/forums/install/mod_table_inst.php and i get a 404 not found error. Maybe i missed a step somewhere, but i backtracked and don't see what i missed, i will try again. Quote
jme574 Posted November 5, 2004 Author Posted November 5, 2004 ok - found 2 things when i went back through the file structure. Not sure if it is wrong or right. First: copy attach_mod/root/images/icon_clip.gif to images/icon_clip.gif copy attach_mod/root/images/icon_disk.gif to images/icon_disk.gif copy attach_mod/root/images/icon_disk_gray.gif to images/icon_disk_gray.gif the images folder is not in root folder they are here: copy attach_mod/images/icon_clip.gif to images/icon_clip.gif copy attach_mod/images/icon_disk.gif to images/icon_disk.gif copy attach_mod/images/icon_disk_gray.gif to images/icon_disk_gray.gif Second: STEP NUMBER II: Installing the Attachment Mod (Database) # # Upload these Files, they are only needed for installation: # # attach_mod/root/install/mod_table_inst.php -> install/mod_table_inst.php # # Upload the Schema Files in ASCII Mode (This is the Layout and Data for your Database): # (Maybe you have to create the install folder if it does not exist) # # for mysql: # attach_mod/root/install/schemas/attach_mysql_schema.sql -> install/schemas/attach_mysql_schema.sql # attach_mod/root/install/schemas/attach_mysql_basic.sql -> install/schemas/attach_mysql_basic.sql # # for mssql: # attach_mod/root/install/schemas/attach_mssql_schema.sql -> install/schemas/attach_mssql_schema.sql # attach_mod/root/install/schemas/attach_mssql_basic.sql -> install/schemas/attach_mssql_basic.sql # # for postgresql: # attach_mod/root/install/schemas/attach_postgres_schema.sql -> install/schemas/attach_postgres_schema.sql # attach_mod/root/install/schemas/attach_postgres_basic.sql -> install/schemas/attach_postgres_basic.sql Should all of those have been uploaded? I have all six of them in the file manager. Or should only the (mysql) two be there? If those are right how i have them then i am not sure where the problem is. Quote
jme574 Posted November 5, 2004 Author Posted November 5, 2004 not sure if this helps find the problem or not but i came across this in my file manager: sql_query($sql_query[$i])) ) { $errored = true; $error = $db->sql_error(); echo " -> FAILED ---> " . $error['message'] . "\n\n"; } else { echo " -> COMPLETED\n\n"; } } if ($errored) { return (FALSE); } else { return (TRUE); } } // // Here we go // include($phpbb_root_path.'includes/sql_parse.'.$phpEx); $available_dbms = array( "mysql" => array( "SCHEMA" => "attach_mysql", "DELIM" => ";", "DELIM_BASIC" => ";", "COMMENTS" => "remove_remarks" ), "mysql4" => array( "SCHEMA" => "attach_mysql", "DELIM" => ";", "DELIM_BASIC" => ";", "COMMENTS" => "remove_remarks" ), "mssql" => array( "SCHEMA" => "attach_mssql", "DELIM" => "GO", "DELIM_BASIC" => ";", "COMMENTS" => "remove_comments" ), "mssql-odbc" => array( "SCHEMA" => "attach_mssql", "DELIM" => "GO", "DELIM_BASIC" => ";", "COMMENTS" => "remove_comments" ), "postgres" => array( "LABEL" => "PostgreSQL 7.x", "SCHEMA" => "attach_postgres", "DELIM" => ";", "DELIM_BASIC" => ";", "COMMENTS" => "remove_comments" ) ); $dbms_schema = 'schemas/' . $available_dbms[$dbms]['SCHEMA'] . '_schema.sql'; $dbms_basic = 'schemas/' . $available_dbms[$dbms]['SCHEMA'] . '_basic.sql'; $remove_remarks = $available_dbms[$dbms]['COMMENTS'];; $delimiter = $available_dbms[$dbms]['DELIM']; $delimiter_basic = $available_dbms[$dbms]['DELIM_BASIC']; if ( !($fp = @fopen($dbms_schema, 'r')) ) { message_die(GENERAL_MESSAGE, "Can't open " . $dbms_schema); } fclose($fp); if ( !($fp = @fopen($dbms_basic, 'r')) ) { message_die(GENERAL_MESSAGE, "Can't open " . $dbms_basic); } fclose($fp); ?> Installing Attachment Mod Version 2.3.9 PLEASE UPLOAD THE CORRECT DATABASE SCHEMA FILES...If you have done so, run the Installer again."); } $sql_query = $remove_remarks($sql_query); $sql_query = split_sql_file($sql_query, $delimiter); $sql_count = count($sql_query); // // from update_to_rc3.php // echo "\n"; echo "\n"; for($i = 0; $i < $sql_count; $i++) { echo "Running :: " . $sql_query[$i]; flush(); if ( !($result = $db->sql_query($sql_query[$i])) ) { $errored = true; $error = $db->sql_error(); echo " -> FAILED ---> " . $error['message'] . "\n\n"; } else { echo " -> COMPLETED\n\n"; } } // // process basic informations // $sql_query = @fread(@fopen($dbms_basic, 'r'), @filesize($dbms_basic)); $sql_query = preg_replace('/phpbb_/', $table_prefix, $sql_query); if ( (strstr($sql_query, 'attach_config')) && (strstr($sql_query, 'attach_desc')) ) { die("PLEASE UPLOAD THE CORRECT DATABASE SCHEMA FILES...If you have done so, run the Installer again."); } $sql_query = $remove_remarks($sql_query); $sql_query = split_sql_file($sql_query, $delimiter_basic); $sql_count = count($sql_query); for($i = 0; $i < $sql_count; $i++) { echo "Running :: " . $sql_query[$i]; flush(); if ( !($result = $db->sql_query($sql_query[$i])) ) { $errored = true; $error = $db->sql_error(); echo " -> FAILED ---> " . $error['message'] . "\n\n"; } else { echo " -> COMPLETED\n\n"; } } $message = ""; if ( $errored ) { $message .= "Some queries failed. Please contact me via email, pm, at the board or whatever, so we can solve your problems...To Undo the changes to your database please execute mod_table_uninst.php."; } else { $message .= "Attachment Mod Tables generated successfully. To Undo the changes to your database please execute mod_table_uninst.php."; } echo "\n\nCOMPLETE!\n"; echo $message . ""; echo "NOW DELETE THIS FILE\n"; echo ""; echo ""; ?> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.