¿Nuevo usuario?
Puedes registrarte aquí
 
       
Menú principal
 
 Navegación
Buscar
dpForo
dpFAQ
dpManuales
dpDescargas
dpThemes
Noticias por Temas
Recomiéndanos
Enlaces
Créditos
dzStaffStatus
Miembros:  Administradores
No Conectado  el_cuervo  
No Conectado  Dixso  
Miembros:  Colaboradores
No Conectado  AnyKiller  
No Conectado  nestormateo  
No Conectado  docser  
Miembros:  Moderadores
No Conectado  cardiru  
Conectado  javiermisol  
Miembros:  Traductores
No Conectado  gnrx  
Miembros:  Miembros:
Ultimo:  Nuevos Hoy: 6
Ultimo:  Nuevos Ayer: 11
Ultimo:  Total: 71470
Ultimo:  Ultimo:
arok
Miembros:  Conectados
Miembros:  Miembros: 3
Invitados:  Invitados: 59
Total:  Total: 62
Miembros:  Miembros Online
Conectado  javiermisol  
Conectado  matraca  
Conectado  ws_junior  
Sponsor
dp-Tools
 Generador de Menús
 Pop-Up Maker
 Generador de Bloques
 Generador de Módulos
Enlázanos


Texto del enlace:


Otros Banners:



Theme creado por
dev-postnuke.com

 Foro dev-postnuke.com
  Postnuke :: Bloques, módulos, addons ...
  Integracion de Photoshare a las noticias

Bienvenido invitado

Moderado por: el_cuervo, Dixso, AnyKiller, cardiru, javiermisol << Tema anterior   Tema siguiente >>
Imprimir tema
Autor Tema: Integracion de Photoshare a las noticias
ecwpa
Enviado: 15/11/2004 a las 02:11
Posteador de Plata
Posteador de Plata

avatar

Karma: 10 (1 Votos)

Registrado: 10/09/03
Mensajes: 400

Estado: Desconectado
Ultima visita: 13/05/05
He estado leyendo y preguntando en algunos foros , hasta al foro oficial he ido pero no me han respondido, en el photoshare contiene un doc para integracion con otros modulos, pero lo que se puede ver es como hacer que los usuarios puedan enviar las imagenes al mismo tiempo que envian una noticia.


He buscado ese manual en varios idiomas pero nada que lo encuentro, alguien sabe de eso?

Aqui lo que contiene el archivo integration:

Código
  1. INTEGRATING PHOTOSHARE WITH OTHER MODULES
  2. =========================================
  3.  
  4. In order to use Photoshare's image selector from other modules you must do the
  5. following:
  6.  
  7. 1) Make sure the "photoshare/pnjavascript/findimage.js" JavaScript file is
  8.    included in the web page from which the image selector is opened. This
  9.    script supplies a function named "photoshareFindImage" which opens the image
  10.    selector window when called.
  11.  
  12.    Example:
  13.  
  14.      <script type="text/javascript"
  15.              src="modules/photoshare/pnjavascript/findimage.js"></script>
  16.  
  17.  
  18. 2) Specify an HTML "ID" attribute on the input element that Photoshare should
  19.    paste the image tag or URL into. This actual ID is up to you. The input
  20.    element may either be a text input or a textarea element (even works with
  21.    htmlArea! - see www.interactivetools.com).
  22.  
  23.    Examples:
  24.  
  25.      <textarea id="articleTextarea"></textarea>
  26.  
  27.      <input type="text" id="imageURL"/>
  28.  
  29.  
  30. 3) Add a button (or other clickable element) with an "onClick" handler that
  31.    calls photoshareFindImage(inputID, selectorURL). The "inputID" parameter
  32.    holds the ID of the input from step (2). The selector URL holds the URL to
  33.    Photoshare's image selector window. You can get this URL from PHP/PostNuke
  34.    by calling:
  35.  
  36.      pnModUrl('photoshare','user','findimage',
  37.               array('url' => 'relative', 'html' => 'img'));
  38.  
  39.    The "url" and "html" arguments specifies how the image selector should paste
  40.    the result back into the external input. if "url" is "relative" then only
  41.    the relative part of the image URL is pasted - otherwise the full absolute
  42.    path is used. if "html" is "img" then a complete IMG tag with SRC set to the
  43.    URL is pasted, otherwise only the URL is pasted.
  44.  
  45.    You also need to get Photoshare's thumbnail size using:
  46.  
  47.      $photoshareThumbnailSize = pnModGetVar('photoshare', 'thumbnailsize');
  48.  
  49.    Examples:
  50.  
  51.      <input type="button" value="Insert Image"
  52.             onClick="photoshareFindImage('articleTextarea',
  53.                                          'http://...&url=relative&html=img',
  54.                                          $photoshareThumbnailSize)">
  55.  
  56. 4) Make sure to include the following on the pages that contains images:
  57.  
  58.     <script type="text/javascript" src="modules/photoshare/pnjavascript/showimage.js"></script>
  59.  
  60.    This ensure Photoshare's popup windows works.
  61.  
  62.  
  63. EXAMPLE OF HACKED POSTNUKE SUBMIT-NEWS
  64. --------------------------------------
  65. The following pieces can be substituted into /Submit_News/index.php in order
  66. to use Photoshare's image selector in PostNuke's "submit news". This is not
  67. an exact description, so you will have to fiddle around a bit yourself or see
  68. if it has been made available for download on www.elfisk.dk:
  69.  
  70. Line 103-116:
  71.  
  72.     echo "<script type=\"text/javascript\" src=\"modules/photoshare/pnjavascript/findimage.js\"></script>\n";
  73.  
  74.     $photoshareFindImageURL = pnModUrl('photoshare','user','findimage',
  75.                                        array('url' => 'relative', 'html' => 'img'));
  76.     $photoshareThumbnailSize = pnModGetVar('photoshare', 'thumbnailsize');
  77.  
  78.     echo "<br><br><b>"._ARTICLETEXT."</b> "
  79.         ."("._HTMLISFINE.")<br>"
  80.         ."<textarea cols=\"50\" rows=\"12\" name=\"storytext\" id=\"articleTextarea\"></textarea> "._REQUIRED."<br>"
  81.         ."<input type=\"button\" value=\"Insert Image\" "
  82.         . "onClick=\"photoshareFindImage('articleTextarea','$photoshareFindImageURL')\">"
  83.         ."<br><br><b>"._EXTENDEDTEXT."</b>"
  84.         ."<br><textarea cols=\"50\" rows=\"12\" name=\"bodytext\" id=\"bodyTextarea\"></textarea><br>"
  85.         ."<input type=\"button\" value=\"Insert Image\" "
  86.         ."onClick=\"photoshareFindImage('bodyTextarea','$photoshareFindImageURL','$photoshareThumbnailSize')\">"
  87.         ."<br><br>\n";
  88.  
  89.  
  90. Line 246-259:
  91.  
  92.     echo "<script type=\"text/javascript\" src=\"modules/photoshare/pnjavascript/findimage.js\"></script>\n";
  93.  
  94.     $photoshareFindImageURL = pnModUrl('photoshare','user','findimage',
  95.                                        array('url' => 'relative', 'html' => 'img'));
  96.     $photoshareThumbnailSize = pnModGetVar('photoshare', 'thumbnailsize');
  97.  
  98.     echo "<br><br><b>"._ARTICLETEXT."</b> "
  99.         ."("._HTMLISFINE.")<br>"
  100.         ."<textarea cols=\"50\" rows=\"12\" name=\"storytext\" id=\"articleTextarea\">" . pnVarPrepHTMLDisplay($storytext) . "</textarea> "._REQUIRED."<br>"
  101.         ."<input type=\"button\" value=\"Insert Image\" "
  102.         . "onClick=\"photoshareFindImage('articleTextarea','$photoshareFindImageURL')\">"
  103.         ."<br><br><b>"._EXTENDEDTEXT."</b>"
  104.         ."<br><textarea cols=\"50\" rows=\"12\" name=\"bodytext\" id=\"bodyTextarea\">" . pnVarPrepHTMLDisplay($bodytext) . "</textarea><br>"
  105.         ."<input type=\"button\" value=\"Insert Image\" "
  106.         ."onClick=\"photoshareFindImage('bodyTextarea','$photoshareFindImageURL','$photoshareThumbnailSize')\">"
  107.         ."<br><br>\n";


No estoy seguro que funcione perfecto en postnuke 0.75 :S
ecwpa Enviar MP WwW






Powered by pnForum Version 2.6

Inicio  |  dpFaq  |  dpManuales  |  dpDescargas  |  dpThemes  |  Contacta

Web site powered by PostNuke MySQL PHP Postnuke Spain PHP RSSPixel Add to Technorati Favorites

Todos los logos y marcas registradas en este sitio son propiedad de sus respectivos dueños. Los comentarios son propiedad de sus autores, el resto es de este sitio Web (c) 2003, que fue creado con PostNuke, un sistema portal Web escrito en PHP. PostNuke es Software Libre liberado bajo la licencia GNU/GPL.

Dev-CMS.com :: Amplía tus horizontes.

HOSPEDAJE Y DOMINIOS -- Tu Hosting
Alojamiento Web --- Registro de Dominios