DarkOne_SSC

+Clients
  • Content count

    14
  • Joined

  • Last visited


About DarkOne_SSC

  • Rank
    core_member_rank_11

DarkOne_SSC's Activity

  1. DarkOne_SSC added a post in a topic: Question on Gallery Images Hook   

    Was able to get the theme stuff straightened out with some help from the author. Only other question I have is in the hookRecentGalleryImages, is there a way to limit or choose how many images are displayed?
  2. DarkOne_SSC added a post in a topic: Question on Gallery Images Hook   

    Hi Everyone
     
     
    I recently enabled this hook on my site and have it on the forum index at the bottom and it is working fine. My only issue is that it doesn't totally match the site style/theme like the forum categories. (See image)
     
     
    http://i1355.photobucket.com/albums/q706/Commander-Cody/SSC-pic_zpsa7246466.png~original
     
     
    How do I fix the title and have the bar be like the rest of teh forum categories?
     
     
     
    Thanks
     
    -D1-
  3. DarkOne_SSC added a post in a topic: Portal   

     
    Hi Michael, that is the way I thought it was setup.
     
    the portal's index.php is at public_html(root) and my forums index.php is in my public_html/ssc directory. The portal and forums are working fine, its only the ip.content pages not working right any more? Would I have to edit the .htaccess or something, I do notice that the portal's index.php is missing a lot compared to the ip.content index.php which I was using. Do I have to revert some IP.Content settings to get ip.content to work right with portal?
  4. DarkOne_SSC added a post in a topic: Portal   

    HI Michael
     
    I recently installed the portal with IPB 3.4.3 and it is outside at the root ( here ), this is working fine. What isn't working for me is my pages, all of my pages don't seem to work anymore after replacing the index.php. Is there some code that needs to be added to this so that ip.content pages that were created work again?
     
    The pages would have all had a url of <website>.com/<page name here>. Forums are located in <website>.com/ssc and everything else on the site seems to work fine but the ip.content pages.
     
    Any ideas where I should look to get these to appear again? If you visit my site there will be a 'more' button in the nav bar that has all the pages in it.
     
     
    Thanks for any assistance on this.
  5. DarkOne_SSC added a post in a topic: Ad Location: Topic View - Before Last Post   

    Also, I have been trying to get custom location to work. I am trying to add a banner to the download portal page.
     
    Here is the code:
     
    {parse js_module="idmportal"} <ul class='topic_buttons'> <if test="indexcanadd:|:$canadd"> <li><a href='{parse url="app=downloads&amp;module=post&amp;section=submit&amp;c={$this->request['catid']}" base="public"}' title='{$this->lang->words['upload_file_alt']}' accesskey='s'>{$this->lang->words['upload_file_alt']}</a></li> <else /> <li class='disabled'><span>{$this->lang->words['noupload_perm_alt']}</span></li> </if> </ul> {parse advertisement="1"} <h1 class='ipsType_pagetitle'>{IPSLib::getAppTitle('downloads')}</h1> <br />  
     
    And in the new advertisement I create I put in the '1' into the custom location and the ad never shows up. If I put the actual banner code here in this template the banner does show up in the right location, just cannot seem to get the custom location code to work properly.
     
    Am I missing something simple here?
  6. DarkOne_SSC added a post in a topic: Ad Location: Topic View - Before Last Post   

    Hi Everyone
     
     
    I have been trying to read the small doc located here:  http://community.invisionpower.com/resources/documentation/index.html/_/documentation/administrator-control-panel/nexus/advertisements-external-access-r784
     
    But I still cannot wrap my head around how to add this option to my drop down window on the IP.Nexus->Promotion->Advertisement admin panel page?
     
    The IP.Nexus Advertisement widget would meet all of my needs if it had this functionality for the forums and just 1-2 spots as well in the Gallery and Download pages. Is there some sort of walkthrough that will help a newbie create a ad location and have it show up in this list?
     
     
    Thanks
     
     
  7. DarkOne_SSC added a post in a topic: GoDaddy and 500 errors   

    Just an update, I moved my site on Friday without too much issue. And the members all say they see vast improvement over responsiveness over GoDaddy. It costs a bit more than shared hosting but as long as I have less headaches it should be worth it in the end.
     
    Since I am pretty new to actually having access to all of a server and I can actually tweak and configure all aspects of php, mysql and apache. Does anyone know of any good guides or tips that are IPS specific that will give the best security and performance. I think I have it fairly secure since I run that security check in the admin and get all green checks, so now its trying to squeeze the best performance I can. I have over 1000+ downloads and 50-60GB of files, so I want to try to eliminate any timeouts and things like that.
     
    Thanks for any assistance, and for those that are still on GoDaddy shared hosting I would really consider moving. I used them for five years and their support was awful. My new host is great and they assist me with everything, i mean real service, I usually have my help within the hour.
  8. DarkOne_SSC added a post in a topic: GoDaddy and 500 errors   

    I am in the midst of moving my host after 5 yrs to a vps and I hope it is an improvement because the cost is more. I do know about the chmod issue because I will set permissions on folders and GoDaddy changes them from time-to-time. Nevermind the fact they always redirect blame on slow performance to something else.
  9. DarkOne_SSC added a post in a topic: GoDaddy and 500 errors   

    Hi Everyone
     
     
    I have shared hosting with GoDaddy and I plan on moving to VPS when I get a little more money, but recently I myself and some members are experiencing 500 errors on occasion. This seems to happen only when posting, the post does complete successfully but user receives the error still. 
     
    Is there anything I can do or check to help with this? I doubt its a resource issue because my server load never goes above 5.0% And on average there is 100 or so people online at any given time. Post count is only around 40k.
     
     
    Thanks for any tips.
     
     
  10. DarkOne_SSC added a post in a topic: Adding sorting to table headers in IP.Content Table   

    On the debug lines, I have tried putting in url to the files as seen in the code or just using ./errors.txt or ./debug.txt since this defaults to cache it should be looking in that directory for them.
     
    On adding your small code lines, this only works if I remove all code and just have 'echo 'hello'; print 'hello';' if I add that code to the beginning or end of the current code nothing displays to the screen at all.
     
     
    I could give you access to my database as well if that would help or a user on IP Board?
  11. DarkOne_SSC added a post in a topic: Adding sorting to table headers in IP.Content Table   

    I changed the extension in the file name to .php with the same result, still a blank page.
     
    http://spacesimcentral.com/gamelisting.php
  12. DarkOne_SSC added a post in a topic: Adding sorting to table headers in IP.Content Table   

    Here is all the code minus my database info:
     
    if ( ! class_exists( 'dbMain' ) ) { require_once( IPS_KERNEL_PATH.'classDb.php' ); require_once( IPS_KERNEL_PATH.'classDb' . ucwords($this->settings['sql_driver']) . '.php' ); } $classname = "db_driver_" . $this->settings['sql_driver']; // sql_driver is specified in conf_global.php $RDB = new $classname; $RDB->obj['sql_database'] = ''; // MySQL Database name $RDB->obj['sql_user'] = ''; // MySQL DB Username $RDB->obj['sql_pass'] = ''; // MySQL DB User Password $RDB->obj['sql_host'] = ''; // Database Host Name $RDB->obj['force_new_connection'] = 1; // You typically want to set this to 1 when establishing a new connection manually to ensure MySQL does not use a cached connection //Debug $RDB->obj['error_log'] = 'http://spacesimcentral.com/forum/cache/errors.txt'; // Path to error log file where errors should be logged to $RDB->obj['use_error_log'] = 1; // If 1, errors are logged to the file previously specified and a generic error is shown on the screen. If 1, the database error is shown on the screen. Defaults to 1 if IN_DEV is off, or 0 if IN_DEV is on. $RDB->obj['debug_log'] = 'http://spacesimcentral.com/forum/cache/debug.txt'; // Path to a log file where debug data should be written $RDB->obj['use_debug_log'] = 1; // If 1, debug data is written to a log file. Not recommended in a production environment - these logs get big quickly. //-------------------------------- // Get a DB connection //-------------------------------- $RDB->connect(); $query = array(); //set your default sorts here, an existing column and a dir $sort = 'GameID'; $order = 'asc'; //set allowed sort fields here $allowed = array('GameID', 'GameTitle', 'Developer', 'Homepage', 'YearReleased', 'Platform', 'Availability', 'Download', 'Purchase' ); //set any dodgy text fields numeric here $numeric = array('YearReleased'); $order = ($this->request['sort_order'] && in_array($this->request['sort_order'], array('desc', 'asc')))?trim($this->request['sort_order']): $order; $order = strtoupper($order); $total_games = 0; if($this->request['sort_field']) { if(in_array($this->request['sort_field'], $allowed) { $sort = trim($this->request['sort_field']); } } //----------------------------------------- // Run queries here against $RDB object, then disconnect //----------------------------------------- // Query database and build table $query['select'] = '*'; $query['from'] = 'GameList'; if(in_array($sort, $numeric) { $query['order'] = $RDB->buildLength($sort).' '.$order.', '.$sort.' '.$order; } else { $query['order'] = $sort.' '.$order; } $RDB->build($query); $usr_qry = $RDB->execute(); $total_games = $RDB->getTotalRows(); // Description table $output = ''; $output .= "<div class='ipsBox'>"; $output .= "<div class='ipsBox_container ipsPad'>"; $output .= "<div class='maintitle'>Space and Scifi Game Listing</div>"; $output .= "<table class='ipb_table'>"; $output .= "<table width='70%'; cellpadding='3'>"; $output .= "<td><br />SpaceSimCentral.com is always looking for new/old game titles that are not already in this listing. You can give us a hand in keeping this list accurate with current games status and of course adding newly found games to this ever growing list of games. Please post something in this <a href='http://spacesimcentral.com/forum/forum/3-ssc-administration/'>forum area</a> or contact the admin to get games added to this list. If possible try to give the following information when posting:<br /><br /> <b>Game Title:</b> <br /> <b>Game Developer:</b> <br /> <b>Game Homepage:</b> <br /> <b>Year Released (say Unknown if not released yet):</b> <br /> <b>Game Platform (supported OS/Hardware):</b> <br /> <b>Game Avilability (Released/Work-In-Progress/Online/Closed/Cancelled):</b> <br /> <b>Game Downloads (HTML Link):</b> <br /><br /><br /><br /> <b>Current Total Game Count:</b> " .$this->lang->formatNumber($total_games). "<br /><br /></td>"; $output .= "</table>"; // Game table and table header $order = strtolower($order); $sort_dir = ($order=='desc')?'asc':'desc'; $output .= "<table width='70% cellpadding='3'>"; $output .= "<tr class='header'>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=GameId'>Game ID</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=GameTitle'>Game Title</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Developer'>Developer</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Homepage'>Homepage</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=YearReleased'>Year Release</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Platform'>Platform</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Availability'>Availability</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Download'>Download</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Purchase'>Purchase</a></th>"; $output .= "</tr>"; // While loop to get next entry and populate the table while($usr_array = $RDB->fetch($usr_qry)) { $output .= "<tr>"; $output .= "<td>".$usr_array['GameID']."</td>"; $output .= "<td>".$usr_array['GameTitle']."</td>"; $output .= "<td>".$usr_array['Developer']."</td>"; $output .= "<td>".$usr_array['Homepage']."</td>"; $output .= "<td>".$usr_array['YearReleased']."</td>"; $output .= "<td>".$usr_array['Platform']."</td>"; $output .= "<td>".$usr_array['Availability']."</td>"; $output .= "<td>".$usr_array['Download']."</td>"; $output .= "<td>".$usr_array['Purchase']."</td>"; $output .= "</tr>"; } $RDB->freeResult($usr_qry); $output .= "</table>"; $output .= "</div>"; $output .= "</div>"; $output .= "</div>"; echo $output; $RDB->disconnect();  
     
  13. DarkOne_SSC added a post in a topic: Adding sorting to table headers in IP.Content Table   

    I don't understand why I am not getting any output to these logs? According to your last post you say that the script will default to look for the log file in the <root>/forum/cache directory. I put these files in this directory and still cannot get them to populate, these files have 666 permissions (R/W) and I have tried to put the path either just file name or ./<filename> in the debug file path fields. Tried using firebug to find the issues and nothing, is there another switch I need turned on for this debug to work when I launch the page ( http://spacesimcentral.com/gamelisting.html )?
     
    Current code that is trying to be run:  (I left out my database login info)
    //Debug $RDB->obj['error_log'] = 'errors.txt'; // Path to error log file where errors should be logged to $RDB->obj['use_error_log'] = 1; // If 1, errors are logged to the file previously specified and a generic error is shown on the screen. If 1, the database error is shown on the screen. Defaults to 1 if IN_DEV is off, or 0 if IN_DEV is on. $RDB->obj['debug_log'] = 'debug.txt'; // Path to a log file where debug data should be written $RDB->obj['use_debug_log'] = 1; // If 1, debug data is written to a log file. Not recommended in a production environment - these logs get big quickly. //-------------------------------- // Get a DB connection //-------------------------------- $RDB->connect(); $query = array(); //set your default sorts here, an existing column and a dir $sort = 'GameID'; $order = 'asc'; //set allowed sort fields here $allowed = array('GameID', 'GameTitle', 'Developer', 'Homepage', 'YearReleased', 'Platform', 'Availability', 'Download', 'Purchase' ); //set any dodgy text fields numeric here $numeric = array('YearReleased'); $order = ($this->request['sort_order'] && in_array($this->request['sort_order'], array('desc', 'asc')))?trim($this->request['sort_order']): $order; $order = strtoupper($order); $total_games = 0; if($this->request['sort_field']) { if(in_array($this->request['sort_field'], $allowed) { $sort = trim($this->request['sort_field']); } } //----------------------------------------- // Run queries here against $RDB object, then disconnect //----------------------------------------- // Query database and build table $query['select'] = '*'; $query['from'] = 'GameList'; if(in_array($sort, $numeric) { $query['order'] = $RDB->buildLength($sort).' '.$order.', '.$sort.' '.$order; } else { $query['order'] = $sort.' '.$order; } $RDB->build($query); $usr_qry = $RDB->execute(); $total_games = $RDB->getTotalRows(); // Description table $output = ''; $output .= "<div class='ipsBox'>"; $output .= "<div class='ipsBox_container ipsPad'>"; $output .= "<div class='maintitle'>Space and Scifi Game Listing</div>"; $output .= "<table class='ipb_table'>"; $output .= "<table width='70%'; cellpadding='3'>"; $output .= "<td><br />SpaceSimCentral.com is always looking for new/old game titles that are not already in this listing. You can give us a hand in keeping this list accurate with current games status and of course adding newly found games to this ever growing list of games. Please post something in this <a href='http://spacesimcentral.com/forum/forum/3-ssc-administration/'>forum area</a> or contact the admin to get games added to this list. If possible try to give the following information when posting:<br /><br /> <b>Game Title:</b> <br /> <b>Game Developer:</b> <br /> <b>Game Homepage:</b> <br /> <b>Year Released (say Unknown if not released yet):</b> <br /> <b>Game Platform (supported OS/Hardware):</b> <br /> <b>Game Avilability (Released/Work-In-Progress/Online/Closed/Cancelled):</b> <br /> <b>Game Downloads (HTML Link):</b> <br /><br /><br /><br /> <b>Current Total Game Count:</b> " .$this->lang->formatNumber($total_games). "<br /><br /></td>"; $output .= "</table>"; // Game table and table header $order = strtolower($order); $sort_dir = ($order=='desc')?'asc':'desc'; $output .= "<table width='70% cellpadding='3'>"; $output .= "<tr class='header'>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=GameId'>Game ID</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=GameTitle'>Game Title</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Developer'>Developer</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Homepage'>Homepage</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=YearReleased'>Year Release</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Platform'>Platform</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Availability'>Availability</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Download'>Download</a></th>"; $output .= "<th><a href='{$base_url}sort_order={$sort_dir}&sort_field=Purchase'>Purchase</a></th>"; $output .= "</tr>"; // While loop to get next entry and populate the table while($usr_array = $RDB->fetch($usr_qry)) { $output .= "<tr>"; $output .= "<td>".$usr_array['GameID']."</td>"; $output .= "<td>".$usr_array['GameTitle']."</td>"; $output .= "<td>".$usr_array['Developer']."</td>"; $output .= "<td>".$usr_array['Homepage']."</td>"; $output .= "<td>".$usr_array['YearReleased']."</td>"; $output .= "<td>".$usr_array['Platform']."</td>"; $output .= "<td>".$usr_array['Availability']."</td>"; $output .= "<td>".$usr_array['Download']."</td>"; $output .= "<td>".$usr_array['Purchase']."</td>"; $output .= "</tr>"; } $RDB->freeResult($usr_qry); $output .= "</table>"; $output .= "</div>"; $output .= "</div>"; $output .= "</div>"; echo $output; $RDB->disconnect();
  14. DarkOne_SSC added a post in a topic: Adding sorting to table headers in IP.Content Table   

    Sorry for not getting back to this sooner, had some issues I needed to straighten out with the 3.4 upgrade.

    Still having some issues with these code examples and I tried to enable the debug options like you asked:
     
    $RDB->obj['error_log']            = 'logs/errors.txt'; $RDB->obj['use_error_log']            = 1; $RDB->obj['debug_log']            = 'logs/debug.txt'; $RDB->obj['use_debug_log']            = 1;

    Nothing ever gets logged to these files, am I using these entries wrong? 'logs' folder is under <root>/forum/logs/... directory.


    The original code without column filtering works fine, its just once the column filtering code is added is when my new page displays nothing and doesn't give me any errors.


    Thank you Marcher for your help thus far.
  15. DarkOne_SSC added a post in a topic: Adding sorting to table headers in IP.Content Table   

    Thank you Marcher for all the help thus far, I made all the changes in the first section of code to be inline with IPB database library, this might be why I was having so much trouble trying to get this working inside IPboard. I started to add your second section of code into the mix, and when I added it all the page was blank. I will look more in the morning for any typos by me.
     
    I noticed that you are using $perPage, I generally wanted to keep all returned data to one page so this isn't needed for my instance. If I removed lines 25, 66-72, 116 and edit 61 would this remove the paging functionality?
     
     
    Currently my code looks like this (I left out the mysql connection section, it works): (current code running here: http://spacesimcentral.com/gamelisting.html )
     
    //-------------------------------- // Get a DB connection //-------------------------------- $RDB->connect(); //----------------------------------------- // Run queries here against $RDB object, then disconnect //----------------------------------------- // Query database and build table $query = array('select' => '*', 'from' => 'GameList'); $RDB->build($query); $usr_qry = $RDB->execute(); $total_games = $RDB->getTotalRows(); // Description table $output = ''; $output .= "<div class='ipsBox'>"; $output .= "<div class='ipsBox_container ipsPad'>"; $output .= "<div class='maintitle'>Space and Scifi Game Listing</div>"; $output .= "<table class='ipb_table'>"; $output .= "<table width='70%'; cellpadding='3'>"; $output .= "<td><br />SpaceSimCentral.com is always looking for new/old game titles that are not already in this listing. You can give us a hand in keeping this list accurate with current games status and of course adding newly found games to this ever growing list of games. Please post something in this <a href='http://spacesimcentral.com/forum/forum/3-ssc-administration/'>forum area</a> or contact the admin to get games added to this list. If possible try to give the following information when posting:<br /><br /> <b>Game Title:</b> <br /> <b>Game Developer:</b> <br /> <b>Game Homepage:</b> <br /> <b>Year Released (say Unknown if not released yet):</b> <br /> <b>Game Platform (supported OS/Hardware):</b> <br /> <b>Game Avilability (Released/Work-In-Progress/Online/Closed/Cancelled):</b> <br /> <b>Game Downloads (HTML Link):</b> <br /><br /><br /><br /> <b>Current Total Game Count:</b> " .$total_games. "<br /><br /></td>"; $output .= "</table>"; // Game table and table header $output .= "<table width='70% cellpadding='3'>"; $output .= "<tr class='header'>"; $output .= "<th>Game ID</th>"; $output .= "<th>Game Title</th>"; $output .= "<th>Developer</th>"; $output .= "<th>Homepage</th>"; $output .= "<th>Year Release</th>"; $output .= "<th>Platform</th>"; $output .= "<th>Availability</th>"; $output .= "<th>Download</th>"; $output .= "<th>Purchase</th>"; $output .= "</tr>"; // While loop to get next entry and populate the table while($usr_array = $RDB->fetch($usr_qry)) { $output .= "<tr>"; $output .= "<td>".$usr_array['GameID']."</td>"; $output .= "<td>".$usr_array['GameTitle']."</td>"; $output .= "<td>".$usr_array['Developer']."</td>"; $output .= "<td>".$usr_array['Homepage']."</td>"; $output .= "<td>".$usr_array['YearReleased']."</td>"; $output .= "<td>".$usr_array['Platform']."</td>"; $output .= "<td>".$usr_array['Availability']."</td>"; $output .= "<td>".$usr_array['Download']."</td>"; $output .= "<td>".$usr_array['Purchase']."</td>"; $output .= "</tr>"; } $RDB->freeResult($usr_qry); $output .= "</table>"; $output .= "</div>"; $output .= "</div>"; $output .= "</div>"; echo $output; $RDB->disconnect();

Status Feed