Foros del Web » Programando para Internet » PHP »

Añadir nuevas caracteristicas a un CMS

Estas en el tema de Añadir nuevas caracteristicas a un CMS en el foro de PHP en Foros del Web. Hola. Soy nueva en programación, nunca he tocado código PHP, algunas veces HTML. Hace muy poco tiempo, compré en Codecanyon los siguientes componentes: CMS, (CMS ...
  #1 (permalink)  
Antiguo 31/01/2013, 02:30
Avatar de OlgaHernandezPerez  
Fecha de Ingreso: enero-2013
Mensajes: 3
Antigüedad: 11 años, 2 meses
Puntos: 0
Pregunta Añadir nuevas caracteristicas a un CMS

Hola.
Soy nueva en programación, nunca he tocado código PHP, algunas veces HTML.

Hace muy poco tiempo, compré en Codecanyon los siguientes componentes:
CMS, (CMS Pro m2).
Freelance Manager.
Digital Downloads Pro.

Los 3 sistemas estan hechos por el mismo Programador, la estructura es casi identica.

Lo que yo necesito es añadirle al CMS las funcciones de los otros 2 Componentes.

Pero como he dicho, soy nueva y no se por donde empezar.

Les agradeceria toda la ayuda que me puedan ofrecer.

Un saludo, es un placer formar parte de esta magnifica comunidad.

Olga.
  #2 (permalink)  
Antiguo 31/01/2013, 04:28
 
Fecha de Ingreso: abril-2012
Mensajes: 590
Antigüedad: 12 años
Puntos: 58
Respuesta: Añadir nuevas caracteristicas a un CMS

Lo que pides es muy complicado ya que:
1º que son sistemas de pago y poca gente los tendrá si es que alguien los ha comprado
2º la descripción que das es muy general con eso no te podemos ayudar tienes que concretar más y poner algo de código y tal vez podamos ayudar algo.
3º podrías describirnos un poco para que sirve cada sistema?

Un saludo
  #3 (permalink)  
Antiguo 31/01/2013, 05:15
Avatar de OlgaHernandezPerez  
Fecha de Ingreso: enero-2013
Mensajes: 3
Antigüedad: 11 años, 2 meses
Puntos: 0
Respuesta: Añadir nuevas caracteristicas a un CMS

Cita:
Iniciado por alyciashape Ver Mensaje
Lo que pides es muy complicado ya que:
1º que son sistemas de pago y poca gente los tendrá si es que alguien los ha comprado
2º la descripción que das es muy general con eso no te podemos ayudar tienes que concretar más y poner algo de código y tal vez podamos ayudar algo.
3º podrías describirnos un poco para que sirve cada sistema?

Un saludo
Hola Alycia, gracias por responderme.

El CMS, es este:
http://codecanyon.net/item/cms-pro-m2-content-management-system/140078

Se pueden ver las caracteristicas completas en el enlace anterior.
Es un CMS bastante simple, parecido al Joomla.
Administra articulos, comentarios, plugins, etc.


El Freelance Manager:
http://codecanyon.net/item/freelance-manager/1225423

Diseñado para los Diseñadores Freelance para organizar los Proyectos de los Clientes, gestionar pagos, etc.

El Digital Downloads Pro:
http://codecanyon.net/item/digital-downloads-pro/93374

Sirve para descargas digitales aunque yo lo quiero usar con otro proposito.
-------------------------------------------------------------------------------------------------

La estructura es casi identica:

admin
ajax
assets
cron
gateways
includes
lang
lib // Esta es la Libreria con las clases y funciones de la aplicación.
modules
plugins
theme
uploads

etc....
------------------------------------------------------------------------------------------------------

En la libreria estan las clases y funciones de las aplicaciones.
Lo que yo quiero es añadirle al CMS las funcciones del Freelance manager para hacerlo todo en uno.
  #4 (permalink)  
Antiguo 31/01/2013, 05:31
Avatar de OlgaHernandezPerez  
Fecha de Ingreso: enero-2013
Mensajes: 3
Antigüedad: 11 años, 2 meses
Puntos: 0
Respuesta: Añadir nuevas caracteristicas a un CMS

Imagenes de las Librerias con sus Clases y Funciones:
---------------------------------------------------------------------
Libreria CMS



Libreria Freelance Manager



Libreria Digital Downloads


------------------------------------------------------------

Un ejemplo dentro de "class_core.php": en CMS

Código:
<?php
  /**
   * Core Class
   *
   * @package CMS Pro
   * @author wojoscripts.com
   * @copyright 2010
   * @version $Id: core_class.php, v2.00 2011-04-20 10:12:05 gewa Exp $
   */
  
  if (!defined("_VALID_PHP"))
      die('Direct access to this location is not allowed.');
  
  class Core
  {
      
	  public $msgs = array();
	  public $showMsg;
	  private $sTable = "settings";
	  public $action = null;
	  public $maction = null;
	  public $paction = null;
	  public $do = null;
      public $year = null;
      public $month = null;
      public $day = null;
	  
      private $langdir;
      public $language;
	  public $lang_dir;
	  public $dblang;
	  public $langlist;
	  
	  
      /**
       * Core::__construct()
       * 
       * @return
       */
      public function __construct()
      {
          $this->getSettings();
		  $this->getLanguage();
		  $this->getAction();
		  $this->getModAction();
		  $this->getPlugAction();
		  $this->getDo();
		  
		  ($this->dtz) ? date_default_timezone_set($this->dtz) : date_default_timezone_set('GMT');
		  
          $this->year = (get('year')) ? get('year') : strftime('%Y');
          $this->month = (get('month')) ? get('month') : strftime('%m');
          $this->day = (get('day')) ? get('day') : strftime('%d');
          
          return mktime(0, 0, 0, $this->month, $this->day, $this->year);
      }
      
      /**
       * Core::getSettings()
       *
       * @return
       */
      private function getSettings()
      {
          global $db;
          $sql = "SELECT * FROM " . $this->sTable;
          $row = $db->first($sql);
          
          $this->site_name = cleanOut($row['site_name']);
		  $this->company = cleanOut($row['company']);
          $this->site_url = $row['site_url'];
		  $this->site_email = $row['site_email'];
		  $this->theme = $row['theme'];
		  $this->theme_var = $row['theme_var'];
		  $this->seo = $row['seo'];
		  $this->perpage = $row['perpage'];
		  $this->backup = $row['backup'];
		  $this->thumb_w = $row['thumb_w'];
		  $this->thumb_h = $row['thumb_h'];
		  $this->img_w = $row['img_w'];
		  $this->img_h = $row['img_h'];
		  $this->avatar_w = $row['avatar_w'];
		  $this->avatar_h = $row['avatar_h'];
		  $this->short_date = $row['short_date'];
		  $this->long_date = $row['long_date'];
		  $this->dtz = $row['dtz'];
		  $this->weekstart = $row['weekstart'];
		  $this->lang = $row['lang'];
		  $this->show_lang = $row['show_lang'];
		  $this->lang_dir = $row['langdir'];
		  $this->eucookie = $row['eucookie'];
		  $this->logo = $row['logo'];
		  $this->currency = $row['currency'];
		  $this->cur_symbol = $row['cur_symbol'];
		  $this->offline = $row['offline'];
		  $this->offline_msg = $row['offline_msg'];
		  $this->offline_data = $row['offline_data'];
		  $this->reg_verify = $row['reg_verify'];
		  $this->notify_admin = $row['notify_admin'];
		  $this->auto_verify = $row['auto_verify'];
		  $this->reg_allowed = $row['reg_allowed'];
		  $this->user_limit = $row['user_limit'];
		  $this->flood = $row['flood'];
		  $this->attempt = $row['attempt'];
		  $this->logging = $row['logging'];
		  $this->enablefb = $row['enablefb'];
		  $this->fbapi = $row['fbapi'];
		  $this->fbsecret = $row['fbsecret'];
		  $this->analytics = $row['analytics'];
          $this->metakeys = $row['metakeys'];
          $this->metadesc = $row['metadesc'];
		  $this->mailer = $row['mailer'];
		  $this->smtp_host = $row['smtp_host'];
		  $this->smtp_user = $row['smtp_user'];
		  $this->smtp_pass = $row['smtp_pass'];
		  $this->smtp_port = $row['smtp_port'];
		  $this->is_ssl = $row['is_ssl'];
		  $this->sendmail = $row['sendmail'];
		  
		  $this->version = $row['version'];

      }
etc....
Un ejemplo dentro de "class_core.php": en Freelance Manager

Código:
<?php
  /**
   * Core Class
   *
   * @package Freelance Manager
   * @author wojoscripts.com
   * @copyright 2011
   * @version $Id: core_class.php, v1.00 2011-06-05 10:12:05 gewa Exp $
   */
  
  if (!defined("_VALID_PHP"))
      die('Direct access to this location is not allowed.');

  class Core
  {

      const sTable = "settings";
      public $year = null;
      public $month = null;
      public $day = null;
	  public $language;


      /**
       * Core::__construct()
       * 
       * @return
       */
      function __construct()
      {
          $this->getSettings();
		  $this->getLanguage();

          ($this->dtz) ? date_default_timezone_set($this->dtz) : date_default_timezone_set('GMT');

          $this->year = (get('year')) ? get('year') : strftime('%Y');
          $this->month = (get('month')) ? get('month') : strftime('%m');
          $this->day = (get('day')) ? get('day') : strftime('%d');

          return mktime(0, 0, 0, $this->month, $this->day, $this->year);
      }


      /**
       * Core::getSettings()
       * 
       * @return
       */
      private function getSettings()
      {
          $sql = "SELECT * FROM " . self::sTable;
          $row = Registry::get("Database")->first($sql);

          $this->company = $row->company;
          $this->site_url = $row->site_url;
          $this->site_email = $row->site_email;
          $this->address = $row->address;
          $this->city = $row->city;
          $this->state = $row->state;
          $this->zip = $row->zip;
          $this->phone = $row->phone;
          $this->fax = $row->fax;
          $this->logo = $row->logo;
          $this->short_date = $row->short_date;
          $this->long_date = $row->long_date;
          $this->dtz = $row->dtz;
		  $this->lang  = $row->lang;
		  $this->weekstart  = $row->weekstart;
		  $this->enable_reg = $row->enable_reg;
          $this->enable_tax = $row->enable_tax;
          $this->tax_name = $row->tax_name;
          $this->tax_rate = $row->tax_rate;
		  $this->tax_number = $row->tax_number;
		  $this->enable_offline = $row->enable_offline;
		  $this->offline_info = $row->offline_info;
		  $this->invoice_note = $row->invoice_note;
		  $this->invoice_number = $row->invoice_number;
          $this->enable_uploads = $row->enable_uploads;
          $this->file_types = $row->file_types;
          $this->file_max = $row->file_max;
          $this->perpage = $row->perpage;
          $this->sbackup = $row->sbackup;
          $this->currency = $row->currency;
          $this->cur_symbol = $row->cur_symbol;
		  $this->tsep = $row->tsep;
		  $this->dsep = $row->dsep;
		  $this->invdays = $row->invdays;
          $this->mailer = $row->mailer;
          $this->smtp_host = $row->smtp_host;
          $this->smtp_user = $row->smtp_user;
          $this->smtp_pass = $row->smtp_pass;
          $this->smtp_port = $row->smtp_port;
		  $this->sendmail = $row->sendmail;
		  $this->is_ssl = $row->is_ssl;

          $this->crmv = $row->crmv;

Última edición por OlgaHernandezPerez; 31/01/2013 a las 05:37

Etiquetas: caracteristicas, cms, html, nuevas
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:09.