https://www.icyphoenix.com/viewtopic.php?f=2&t=9793 ----------------------------------- Cristianita Sat 21 Oct, 2017 19:55 [SOLVED]A Script Doesn't Work In A Parent Block ----------------------------------- Hi, God bless you! I'm trying to set a parent block showing some random topics. This script is working in my previous forum, but was not in this forum. This is the script: [code linenumbers=false][/code] I have other scripts and they do work very well. I don't know what is the problem in this particular script. Could you help me to find out why this script doesn't work? You can see this parent block in my forum. ----------------------------------- Informpro Tue 24 Oct, 2017 15:42 Re: A Script Doesn't Work In A Parent Block ----------------------------------- Hi, Is there some place we can look at it installed? Also, maybe you could use the Random Topic feature from Icy Phoenix ? ----------------------------------- Cristianita Tue 24 Oct, 2017 19:25 Re: A Script Doesn't Work In A Parent Block ----------------------------------- [quote] Is there some place we can look at it installed?[/quote] Yes, this is in my forum: [img]http://easycaptures.com/fs/uploaded/1197/0026533835.jpg[/img] [quote] Also, maybe you could use the Random Topic feature from Icy Phoenix ? [/quote]Well, I don't think so, because I want to show just some topics of different forums, not all of them... This parent block allows only the topics of one forum to show off. Besides, the JavaScript shows an image too: [img]http://easycaptures.com/fs/uploaded/1197/5580917886.jpg[/img] You can see this script in my previous forum: [spoiler]https://www.plantandoeternidad.com/[/spoiler] ----------------------------------- Informpro Wed 25 Oct, 2017 11:13 Re: A Script Doesn't Work In A Parent Block ----------------------------------- I think the parent block allows for several different forums, if you separate by ID, but I'd need to check. ----------------------------------- Cristianita Wed 25 Oct, 2017 19:02 Re: A Script Doesn't Work In A Parent Block ----------------------------------- [quote user="Informpro" post="61429"]I think the parent block allows for several different forums, if you separate by ID[/quote]I feel sorry because I'm not getting what you tell me or what you mean :cry: I will wait for your checking :oops: ----------------------------------- Mighty Gorgon Sat 04 Nov, 2017 10:26 Re: A Script Doesn't Work In A Parent Block ----------------------------------- Hi [user]11561[/user], you can use the "Random Topic Block", when you create it as a new "Parent Block" you can select which forums the topics will be pulled from. A value of 0 in the forum ID will pull from all forums, while if you manually select the forums id where to pick the topics from you'll be fine. Forum ID can be seen when you hover the mouse over forums links or when you are in viewforum/viewtopic mode in the url in the part the [c]f=XXX[/c] where XXX is the forum ID you need to replace. For example: Noticias y Actualizaciones -> http://elcaminocorrecto.com.mx/noticias-y-actualizaciones-vf7.html -> forum id = 7 Peticiones de Oración -> http://elcaminocorrecto.com.mx/peticiones-de-oracion-vf11.html -> forum id = 11 Suppose you want to pull topics from these two forums, you just need to set [c]Forum IDs[/c] field to: [b]7,11[/b] Remember that Parent Block settings are in the second step when you first add (or edit) a Parent Block. ----------------------------------- Cristianita Sun 05 Nov, 2017 05:46 Re: A Script Doesn't Work In A Parent Block ----------------------------------- [quote user="Mighty Gorgon" post="61450"]Hi [user]11561[/user], you can use the "Random Topic Block", when you create it as a new "Parent Block" you can select which forums the topics will be pulled from. A value of 0 in the forum ID will pull from all forums, while if you manually select the forums id where to pick the topics from you'll be fine. Forum ID can be seen when you hover the mouse over forums links or when you are in viewforum/viewtopic mode in the url in the part the [c]f=XXX[/c] where XXX is the forum ID you need to replace. For example: Noticias y Actualizaciones -> http://elcaminocorrecto.com.mx/noticias-y-actualizaciones-vf7.html -> forum id = 7 Peticiones de Oración -> http://elcaminocorrecto.com.mx/peticiones-de-oracion-vf11.html -> forum id = 11 Suppose you want to pull topics from these two forums, you just need to set [c]Forum IDs[/c] field to: [b]7,11[/b] Remember that Parent Block settings are in the second step when you first add (or edit) a Parent Block.[/quote] I think the Random Topic Block is not really that I need, for two reasons: [list][*]The JavaScript wich doesn't work shows a mini image.[*]The topics that I want to show in this Parent Block are from different forums, but not all the topic of these forums, just specifics topics.[/list] :shock: ----------------------------------- Mighty Gorgon Sun 05 Nov, 2017 17:59 Re: A Script Doesn't Work In A Parent Block ----------------------------------- Icy Phoenix currently doesn't support displaying images for topics, it is something I have started coding a couple of times and never finished. So far there is nothing automated to do what you need. You can use the Random Pic block from album, but then the picture is not linked to any topic automatically. ----------------------------------- Cristianita Sun 05 Nov, 2017 18:12 Re: A Script Doesn't Work In A Parent Block ----------------------------------- [quote user="Mighty Gorgon" post="61478"]Icy Phoenix currently doesn't support displaying images for topics, it is something I have started coding a couple of times and never finished. So far there is nothing automated to do what you need. You can use the Random Pic block from album, but then the picture is not linked to any topic automatically.[/quote]I understand it... But this JavaScript does show mini image, because I add its link for that. I add the topic link also. [spoiler][code linenumbers=false][/code][/spoiler]I just want to know why this code doesn't work... ----------------------------------- Mighty Gorgon Sun 05 Nov, 2017 18:50 Re: A Script Doesn't Work In A Parent Block ----------------------------------- [quote user="Cristianita" post="61481"]I understand it... But this JavaScript does show mini image, because I add its link for that. I add the topic link also. ... I just want to know why this code doesn't work...[/quote] What you request, is custom support, not related to Icy Phoenix :P Just because I had few minutes... I have fixed it, but this is still an AWFUL code! Try this on a new HTML block... [codeblock]
[/codeblock] ----------------------------------- Cristianita Sun 05 Nov, 2017 20:07 Re: A Script Doesn't Work In A Parent Block ----------------------------------- [quote]What you request, is custom support, not related to Icy Phoenix [/quote] :cry: Yes, I know... But I didn't know why this code is working in my previous forum, but not here in IcyPhoenix Forum... [quote]Just because I had few minutes... I have fixed it[/quote]I truly appreciate very much your effort!! [quote]but this is still an AWFUL code![/quote]Really??? I don't understand it, this code is working very well in the other forum. I only copied and pasted the code in the parent block... Well, not all the code, because I had to bring the topics from the other forum, and changed the links. But that was all. Whatever, the code is working now, and I insist: you are a genius and a very kind man, [user]2[/user] Thank you very much! [img]http://elcaminocorrecto.com.mx/images/smiles/gracias.gif[/img] ¡Shalom! [img]http://elcaminocorrecto.com.mx/images/smiles/hola.gif[/img]