collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 1042
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: Imagenes aleatorias  (Read 6437 times)

0 Members and 1 Guest are viewing this topic.

Offline falco

  • Jr. Member
  • **
  • Posts: 55
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Imagenes aleatorias
« on: April 15, 2010, 12:02:50 PM »
Hola por fin me he decidido y he instalado en mi foro el SP y como me gusta añadirle cosas nuevas habia pensado que si alguien sabe de algun script o de algun mod que te ayude a que las imagenes que tengo subidas se vean de alguna manera de forma aleatoria en un bloque del portal.-

Gracias por adelantadas.

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #1 on: April 15, 2010, 08:47:04 PM »
depende de en que lugar hayas subido las imagenes y como las hayas subido, tambien depende si usaste algun mod como aeva media  o simplemente las subiste a una carpeta, si no das detalles no puedo ayudarte.

Offline falco

  • Jr. Member
  • **
  • Posts: 55
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #2 on: April 18, 2010, 04:50:33 AM »
He subido el mod Smf Gallery que antes usaba con TinyPortal solo que necesito el script que llame a esas imagenes para que se vean de forma aleatoria en uno de los bloques.

El mod automaticamente te crea una carpeta llamada Images en el ftp y ahi estan guardadas todas pero que script necesito.

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #3 on: April 18, 2010, 08:21:40 PM »
el bloque de sp llamado galeria   ya hace esa funcion puede mostrar las ultimas imagenes de tu galeria o x imagenes al azar, ya lo has probado?

Offline falco

  • Jr. Member
  • **
  • Posts: 55
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #4 on: April 19, 2010, 05:50:22 AM »
Si lo he probado y lo estoy utilizando pero con Tinyportal tenia un script que aqui ahora no me vale donde las imagenes aleatorias por ejemplo corrian de derecha a izquierda seguidas unas detras de otras,asi que queria algo un poco mas diferente pero sino se puede que le vamos hacer.

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #5 on: April 19, 2010, 10:48:49 AM »
serviría de mucha ayuda si pusieras aqui ese script

Offline falco

  • Jr. Member
  • **
  • Posts: 55
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #6 on: April 20, 2010, 03:06:30 AM »
Este era uno de los scripts que te he comentado y que funciona en Tinyportal haciendo que las imagenes vayan cambiando aleatoriamente y en movimiento.-

Code: [Select]
global $scripturl, $db_prefix, $modSettings, $boardurl;

echo '<div align="center"><marquee scrollamount="1" scrolldelay="100" direction="left" loop="true" width="100%" onmouseover=\'this.stop()\'onmouseout=\'this.start()\'>';

if(empty($modSettings['gallery_url']))
{
     $modSettings['gallery_url'] = $boardurl . '/gallery/';
}

$request = db_query("SELECT thumbfilename, ID_PICTURE, title, ID_MEMBER FROM {$db_prefix}gallery_pic GROUP BY thumbfilename ORDER BY RAND() LIMIT 20" , __FILE__,__LINE__);

while ($row = mysql_fetch_assoc($request))
{
     $request_name = db_query("SELECT memberName FROM {$db_prefix}members WHERE ID_MEMBER LIKE '{$row['ID_MEMBER']}'", __FILE__, __LINE__);
     $row_name = mysql_fetch_assoc($request_name);

     $alt_text = $row['title'] . " by " . $row_name['memberName'];

     echo ' <a href="', $scripturl, '?action=gallery;sa=view;id=', $row['ID_PICTURE'], '"><img alt="' , $alt_text , '" src="',  $modSettings['gallery_url'] . $row['thumbfilename'] ,'" /></a>';

     mysql_free_result($request_name);
}
     
echo '</marquee></div>';

mysql_free_result($request);

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #7 on: April 20, 2010, 10:55:22 AM »
no veo ningun problema, el script puede funcionar perfectamente en un bloque de php, el movimiento es solo un marquee  y el script solo sirve para 1.1.11 no servirá en la version 2.0

Offline falco

  • Jr. Member
  • **
  • Posts: 55
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #8 on: April 21, 2010, 04:14:52 AM »
Es decir que el script funciona perfectamente pero no tirara en la version 2.0 porque es incompatible,pues es una pena porque era muy bueno y las imagenes aparte de ser aleatorias estaban tambien en movimiento.

Offline 130860

  • Super Handsome Language Coordinator
  • Board Moderators
  • *
  • Posts: 1769
  • Gender: Male
  • You and I are not the same class of pirate!
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #9 on: April 21, 2010, 10:45:34 AM »
ya te dije que el movimiento es un simple marquee  puedes facilmente abrir tu archivo  PortalBlocks.php   buscar la funcion del bloque de galeria y agregarle el marquee.



nunca mencionaste que version de smf usas,   y debiste de haber puesto el script desde el principio.

Offline falco

  • Jr. Member
  • **
  • Posts: 55
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #10 on: April 23, 2010, 06:36:38 AM »
ya te dije que el movimiento es un simple marquee  puedes facilmente abrir tu archivo  PortalBlocks.php   buscar la funcion del bloque de galeria y agregarle el marquee.



nunca mencionaste que version de smf usas,   y debiste de haber puesto el script desde el principio.
Hola gracias de nuevo pero me puedes decir como se hace eso que soy un completo ignorante en este tema y no se como hay que hacerlo.

Que es el marquee y como lo modifico?.
« Last Edit: April 23, 2010, 06:53:22 AM by falco »

Offline shadow_dweller

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #11 on: April 25, 2010, 02:35:57 PM »
hola que tal amigo eso lo puedes acer asi por ejemplo

colocas la direcion de la imagen
asi
<img src="http://la imagen que tu quieres.la extencion que puede ser jpj,png o gif"border=0>

y luego le colocas el marquee

asi
</marquee><img src="http://la imagen que tu quieres.la extencion que puede ser jpj y png"border=0></marquee>

o quieres algo como esto asi como mi web www.animeteam.tk si es asi aqui ya esta postiado y buscalo como bloque en la parte superior

Offline Edson

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Imagenes aleatorias
« Reply #12 on: July 24, 2010, 06:29:20 PM »
no carga tu web