dadada

Members
  • Content count

    18
  • Joined

  • Last visited

Community Reputation

0 Neutral

About dadada

  • Birthday 03/06/1987

Profile Information

  • Real Name
    .
  • Gender
    Male
  1. Thanks Jim ! I just saw the screenshots of mysqldumper and that looks perfect. I'm gonna check this out. That's really a great job ! Awesome ! Thanks in advance for your message !!!
  2. Hello Jan, I've tested this class: http://www.phpclasses.org/package/4017-PHP-Backup-large-MySQL-databases-into-multiple-files.html That's not a good solution. That has a problem with null and empty inputs ''. But like "idea" really it's very good. I didn't find the new version or documentation for XT-Dump. Because there is no site of the creator : http://dreaxteam.free.fr/ now. I also found a bug (and maybe in osC v2.3.1.- I didn't check) in your addon with my mysql partitions (partition option of mysql). Thanks.
  3. Hello Jack, I just want to give a small idea for this addon. -Sitemap for Reviews. -Sitemap for Images. -Support for multilanguaged websites: <n:language>en</n:language> Thanks.
  4. Hello Jan, That's really really a great addon for osCommerce. Thanks for your time, idea and your perfect effort. I have some questions: -Do you think to update this addon for osCommerce v2.3.x (ereg_replace, template_top.php , template_bottom.php etc...)? -Do you think to develop the script as AutoBackup Script with some available options like: ***AutoBackup DB ( 1-24 hourly, daily, weekly, monthly) ***Delete backup archives [older than specified days] ***Restore base from last backup archive [matching specified regexp] ***Create back up archives [from specified table(s)]\n\n". [table1 table2...]\n". -Including BigDump and XT-Dump(I can't find) updates. I will need to use this addon with some extra options. I think to start to develop but, I can't find XT-Dump on the Web. Thanks.
  5. Hello Jack, I post some updates for Article Manager. Please check. The message that I sent: " I've updated, fixed some codes for rc2.2. I don't recommend to use "article-submit.php" page. Becase there is no filter for file type or file size. Anyone can upload a file to attack using file remote injection method. My ideas for this contribution: -admin can be available to add private authors (with email, password ...) -private author can be available to login with own information (that given by admin) to write article. -in admin side will be an option to approve articles of authors. That addon is good, but needs more development. " I also want to tell you about "language" configuration in admin side. There are missing changes of your addons (article manager + header tags seo + links manager) for "admin/languages.php" file. -admin/languages.php -- case 'insert': -- case 'deleteconfirm': Another idea for "article manager" : + HTML5 tags. http://html5doctor.com/the-article-element/ Thanks for your support.
  6. Hi Robert, I have an idea for seo images. I'm trying to convert the module template as my module requirements. But I can't understand , what I do wrongly. Here is my changes: <?php /** * * ULTIMATE Seo Urls 5 PRO ( version 1.1 ) * * * @package USU5_PRO * @license http://www.opensource.org/licenses/gpl-2.0.php GNU Public License * @link http://www.fwrmedia.co.uk * @copyright Copyright 2008-2009 FWR Media * @copyright Portions Copyright 2005 ( rewrite uri concept ) Bobby Easland * @author Robert Fisher, FWR Media, http://www.fwrmedia.co.uk * @lastdev $Author:: Rob $: Author of last commit * @lastmod $Date:: 2010-12-21 22:45:02 +0000 (Tue, 21 Dec 2010) $: Date of last commit * @version $Rev:: 196 $: Revision of last commit * @Id $Id:: Usu_Template.php 196 2010-12-21 22:45:02Z Rob $: Full Details */ /** * Page module for xxx * * @package USU5_PRO */ class Image_Info_Page_Module extends aPage_Modules { private static $_singleton = null; /** * Array of _GET key dependencies for this page * - marker is the seo url replacement for the dependent _GET key ( e.g. -c- replaces cPath ) * - query is the query used to extract the link text from the database * - to_replace is an array of texts that are to be replace with real values in the query * @example protected $dependencies = array( 'cPath' => array( 'marker' => '-c-', * @var array $dependencies */ protected $dependencies = array( 'image_id' => array( 'marker' => '-im-', // like -p- or -c- etc 'query' => "SELECT products_image FROM :TABLE_PRODUCTS WHERE products_id=':image_id' LIMIT 1", 'to_replace' => array( ':TABLE_PRODUCTS', ':image_id' ) ) ); // TABLE_XXX and xxx_id must match the line above /** * The current dependency key extracted from the incoming parameters * * @var string $key - dependency key */ protected $key = null; /** * extracts the key => value pairs from the querystring in order to build a unique cache name for the loaded page * * @var array $cache_name_builder */ // protected $cache_name_builder = array( 'image_id' => 1 ); // xxx = _GET key ( e.g. cPath ), you may want to add "page" if there are paging functions protected $cache_name_builder = array( 'image_id' => 1 ); // xxx = _GET key ( e.g. cPath ), you may want to add "page" if there are paging functions /** * Class constructor * @access private */ private function __construct() { } // end constructor /** * Returns a singleton instance of this object * * @access public * @return Article_Info_Page_Module */ public static function i() { if ( !self::$_singleton instanceof self ) { self::$_singleton = new self; } return self::$_singleton; } // end method /** * Retrieve the dependencies array for this page module * * @access public * @return array $dependencies */ public function retrieveDependencies() { return $this->dependencies; } /** * Acquire an array of single or multiple link texts from the query * this will be cached for later retrieval. * * @see Usu_Main::query() * @uses trim() * * @access protected * @return array array of link test */ protected function acquireLinkText() { $result = Usu_Main::i()->query( $this->query ); $text_array = tep_db_fetch_array( $result ); tep_db_free_result( $result ); if ( false === $text_array ) { return false; } $final_text_array = array(); foreach ( $text_array as $key => $text ) { if ( tep_not_null( trim( $text ) ) ) { $final_text_array[$key] = $text; } } // We will cache this result return $final_text_array; } /** * The main method of this class that receives input needed to build a link * then finally returns a fully built seo link if it has not previousluy returned false. * * @see Usu_Main::getVar() * @see Usu_Main::setVar() * @see aPage_Modules::stripPathToLastNumber() * @see aPage_Modules::setQuery() * @see aPage_Modules::unsetProperties() * @see aPage_Modules::getDependencyKey() * @see aPage_Modules::setAllParams() * @see aPage_Modules::validRequest() * @see aPage_Modules::returnFinalLink() * @param string $page - valid osCommerce page name * @param string $parameters - querystring parameters * @param bool $add_session_id - true / false * @param string $connection - NONSSL / SSL * @param array $extract - array of _GET keys to remove from the querystring or bool false to do nothing * @uses trigger_error() * @throws - triggers an error of type E_USER_WARNING for an incorrect or inexistant dependency key * @access public * @return bool false - forces the system to return the standard osCommerce link wrapper * @return string - fully built seo url */ public function buildLink( $page, $parameters, $add_session_id, $connection ) { $extract = array( 'image_id' ); // xxx = _GET key ( e.g. cPath ) $this->setAllParams( $page, $parameters, $add_session_id, $connection, $extrac ); if ( false === $this->validRequest() ) { $this->unsetProperties(); return false; } $this->key = $this->getDependencyKey(); // Switch statement where the correct query and query marker replacements to use are selected via the _GET key detected switch ( true ) { case $this->key == 'image_id': // xxx = _GET key ( e.g. cPath ) // This array contains replacements for the to_replace array ( see the $dependencies array ) $this->setQuery( array( TABLE_PRODUCTS, $this->stripPathToLastNumber( $this->keys_index[$this->key] ) ) ); break; default: trigger_error( __CLASS__ . '::' . __FUNCTION__ . ' Incorrect or inexistant dependency key.', E_USER_WARNING ); break; } // end switch $link_text = $this->acquireLinkText(); // If the query returned false then we return nothing and set $page_not_found to true forcing a 404 page Usu_Main::i()->setVar( 'page_not_found', false ); if ( false === $link_text ) { Usu_Main::i()->setVar( 'page_not_found', true ); $this->unsetProperties(); return; } // Return a fully built seo url return $this->returnFinalLink( Usu_Main::i() ->getVar( 'uri_modules', USU5_URLS_TYPE ) ->createLinkString( $this->page, Usu_Main::i() ->getVar( 'uri_modules', USU5_URLS_TYPE ) ->separateUriText( $this->linktext( $link_text ) ), $this->dependencies[$this->key]['marker'], $this->keys_index[$this->key] ) ); } // end method } // end class and .htaccess changes + RewriteRule ^([a-z0-9-/]+)-im-([0-9]+).gif$ image_info.php [NC,L,QSA] And here is my image_info.php <?php require('includes/application_top.php'); $products_id = (int)$_GET['image_id']; $products_image_query = tep_db_query("select products_image from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); $products_image = tep_db_fetch_array($products_image_query); $myImage = imagecreatefromgif(DIR_WS_IMAGES . $products_image['products_image']); header("Content-type: image/gif"); imagegif($myImage); imagedestroy($myImage); ?> That works without seo urls. But doesn't work when the seo option is enable. I know my module is not ready, it's under development right now. But I think the url is wrong: "belovedgif-im-20.html" why the url is not "beloved-im-20.gif" ???? I've checked some files into folder "uri_modules/" path_rewrite.php osc_experiement.php etc... and every file has a filter for .html file extension. There is no support for other file extension (for example: image file types). ============================================================================================================== When I change the line into .htaccess as RewriteRule ^([a-z0-9-/]+)-im-([0-9]+).html$ image_info.php [NC,L,QSA] that shows: in the product_info.php (http://127.0.0.1/catalog/image_info.php?image_id=24 ??? ) <a href="http://127.0.0.1/catalog/image_info.php?image_id=24" target="_blank"><img src="http://127.0.0.1/catalog/image_info.php?image_id=24" border="0" alt="Disciples: Sacred Lands" title=" Disciples: Sacred Lands " width="100" height="80" hspace="5" vspace="5"><br>Click to enlarge</a> And when I click the link "http://127.0.0.1/catalog/image_info.php?image_id=24", that redirects to http://127.0.0.1/catalog/interactivedisciplesgif-im-24.html (that displays the image and losts "_" , "/" and ".gif" ) + Just a small suggestion: Maybe you can add some options to create sitemaps for reviews, articles, pages, links, specials, manufacturers, images (good idea for products, who has multiple images, and google images) . Thanks a lot.
  7. Hello Harald, For a long time I follow the studies about OSCOMv3.0. As I read the OSCOMv3.0 will be very succesful. It will be good for oSCOM v3.0 web programmers as well. We will be able to code more on PHP5 standarts. I have a great idea. Since we are having new page for OSC we should layout addons better.Moduls are very important. There are some missing items that I realise. 1-The moduls that are going to be for OSCOMv3.0 should be local separately. Shouldn't be as Target v2.2 v2.1 v3.0 . For this version I mean for OSCOM v3.0 there should be an other platform. 2-Modul explanations or titles that are on other languages shouldn't be.(spanish,french,turkish,russian,chinese etc...) First all of them should be in english, then translate should be add. 3-There are many similar moduls for same action.In some parts there are 7-8 addons just for one action. Some people don't search if there is an addon and add an addon. 4-The previous point is very important. Important addons should be taken on different platform before it becomes addon trash. The best addons must be taken and others must be delete. 5-There must be more people who controlling addons.Some of them asks questions and most of them makes flood. And some of them don't update just install the same packages.Disordered installations are too much. 6-There must be more options on modul options. SEO, Security vs... 7-Simple changes shouldn't add as an addon.It is not sensible to make an addon from 2 lines of HTML codes. 8-For the person who creates addons there should be add an "edit addon" feature. The first person who creates the addons should be able to makes updates, explanations and title changes. I think addons deserve to be more coordinate.
  8. I've tested the PRO version. I can't see any bug right now. I think, this module will be most popular module of all of OSC-modules. On the other side; I think the current link must be as : http://www.sitename.com it's a correct 301 redirection. in the pro version main link as (www or without www) sitename.com/index.php. At this point, here is the lines of 301 redirect : ================================================================================================== #BOF: 301 redirect by faaliyet RewriteCond %{HTTP_HOST} ^site.com [NC] RewriteCond %{REQUEST_URI} ^/catalog/ RewriteRule ^(.*)$ http://www.site.com/catalog/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.php$ http://www.site.com/catalog/$1 [R=301,L] #EOF: 301 redirect by faaliyet ================================================================================================== and for users, who have no catalog path. ================================================================================================== #BOF: 301 redirect by faaliyet RewriteCond %{HTTP_HOST} ^site.com [NC] RewriteRule ^(.*)$ http://www.site.com/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.php$ http://www.site.com/$1 [R=301,L] #EOF: 301 redirect by faaliyet ================================================================================================== PS: "Many Thanks" to Robert aka FWR Media for him incredible projects. Seyhun Cavus (faaliyet)