https://www.icyphoenix.com/viewtopic.php?f=35&t=6204 ----------------------------------- christmanrd Thu 30 Jul, 2009 13:26 Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- I have a block named, "XYZ". It shows on the homepage in the center column. The, "XYZ" block has approximately 3000 characters being displayed. I do not want all of the characters to be displayed all of the time so, can I limit the number of characters that are displayed in the block like I can do in the NEWS Block? Please look at the signature block for ICY Phoenix info and link to the site. Thank you, David ----------------------------------- Lopalong Fri 31 Jul, 2009 02:35 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- Try this. Save the script below as blair.html and open it in your bowser so that you can see what it does etc. Then try to apply the js and markup to your html block. [spoiler][code linenumbers=false]

We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights that among these are Life, Liberty and the pursuit of Happiness. We insist on political leaders of integrity who will stand on principles and abide by the Constitution that our forefathers set forth. Compelled to establish no alliances with one political party we will strive to locate representatives who respect the belief of their fellow citizens and represent the will of the People. It is our unending resolve to bring back the philosophy of the power of the People and limitation of the government. We will pursue the removal of any elected official who fails to honor their oath to support, defend, and bear true faith and allegiance to the Constitution of the United States.

Click Show & Hide [/code][/spoiler] ----------------------------------- christmanrd Fri 31 Jul, 2009 03:04 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- Slick, very slick. I copied and pasted it in to a html as suggested by using DW CS3 and it was NICE. I then copied it to the specific Block and hit SUBMIT. Then heading over to Home to look at the results. I even had a smile on my face. It looked great. When I clicked on SHOW. The Block did not expand but the words were displayed over the rest of the blocks beneath it. Dave :( ----------------------------------- Lopalong Fri 31 Jul, 2009 03:54 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- [quote user="christmanrd" post="42144"]When I clicked on SHOW. The Block did not expand but the words were displayed over the rest of the blocks beneath it. Dave :([/quote] So it's transparent? :( I've edited the script I posted - So you can have a go at that one. :P But to expand the block it would have to be done a different way. :( ----------------------------------- christmanrd Fri 31 Jul, 2009 11:48 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- I appreciate your help. I tried the edited script and as you said, it still does not expand. Any other ideas? What I have done is change from HTML to BBCODE and used the Spoiler tag. For now it works and can be seen at the site. Dave ----------------------------------- Lopalong Fri 31 Jul, 2009 12:55 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- Sorry it's not what you wanted. :( IPv1.3 uses highslide, and from memory Highslide (default) includes expanders for various applications, but I don't know what Highslide javascript has actually been added to IP, as I don't have it installed. (Yet) If you download highslide and check out the syntax for the various apps, you may find something useful there. Else you could google for javascript expanders and see if there's something you could simply add to the script. I don't really know what's best for you without installing IP 1.3, grabbing your text, and having a play. But installing IPv1.3 is not something I really want to do at this stage. So hopefully, someone else will come along and add their 2c worth to resolve what you trying to achieve. ;) ----------------------------------- christmanrd Fri 31 Jul, 2009 13:03 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- Again, I appreciate your help. Just a thought, you could register on my site and I could give you Admin Privileges. If that would help. ----------------------------------- spydie Fri 31 Jul, 2009 13:37 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- [quote]IPv1.3 uses highslide, and from memory Highslide (default) includes expanders for various applications, but I don't know what Highslide javascript has actually been added to IP, as I don't have it installed. (Yet) [/quote] Highslide JS version is : 4.0.12 from February 2009. Well that´s what My script tells me. ----------------------------------- christmanrd Fri 31 Jul, 2009 16:44 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- Spydie, Thanks for the info. I did a google search and went to: [url=http://highslide.com]Highslide where I downloaded their Highslide Editor. But, my problem is, I DO NOT KNOW WHAT I AM DOING. Again, Thanks, David ----------------------------------- Lopalong Fri 31 Jul, 2009 23:06 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- Re the Admin offer - I'll have to knock that back I'm afraid. ;) If no-one comes up with anything in the next couple of days - I'll have another look at it for you. :mryellow: [b]Edit:[/b] I gave HighSlide a miss, but you can try this one: ;) [spoiler][code linenumbers=false]

We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights that among these are Life, Liberty and the pursuit of Happiness. We insist on political leaders of integrity who will stand on principles and abide by the Constitution that our forefathers set forth. Compelled to establish no alliances with one political party we will strive to locate representatives who respect the belief of their fellow citizens and represent the will of the People. It is our unending resolve to bring back the philosophy of the power of the People and limitation of the government. We will pursue the removal of any elected official who fails to honor their oath to support, defend, and bear true faith and allegiance to the Constitution of the United States.



[/code][/spoiler] You may want to add extra markup, but I'll leave that up to you. :P ----------------------------------- Mighty Gorgon Mon 10 Aug, 2009 21:20 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- You can use the same CODE used for spoiler (if I understand correctly what you need). Everything is already included in Icy Phoenix and you just need to add the proper markup. If you need I can tell how to do. ----------------------------------- christmanrd Mon 10 Aug, 2009 21:33 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- Thanks Mighty Gorgon! The issue had to be resolved and since it could not be, I had to use another method of displaying the content that was needed. Icy Phoenix Rocks! Thank you Sir. ----------------------------------- Mighty Gorgon Mon 10 Aug, 2009 21:54 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- I didn't understand if you need it or note... anyway try this HTML code inserted in a brand new block.: [codeblock]
Show: [ Show ]
[/codeblock] Please remember that you have to replace NEWS001 with a random code for each block you will create... since it is an ID you don't have to have duplicates. Let me know if it is ok for you. ----------------------------------- christmanrd Mon 10 Aug, 2009 22:15 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- One question. Is that suppose to work with 1.2.0.27c? I just tried it on a 1.2.0.27c site and it does not show when I click on it. [code linenumbers=false]Now is the time for all young men
Show: [ Show ]
[/code] I have two icy sites and I forgot that I was on the 1.2.0.27c site when I tried the code. ----------------------------------- spydie Mon 10 Aug, 2009 22:52 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- [quote user="Mighty Gorgon" post="42640"] Please remember that you have to replace NEWS001 with a random code for each block you will create... since it is an ID you don't have to have duplicates. Let me know if it is ok for you.[/quote] Don´t see anything renamed in your code christmanrd ----------------------------------- Lopalong Tue 11 Aug, 2009 00:18 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- I couldn't get it to work either, mouseover "show" indicates the target as http//etc/index.php ? :( @ christmanrd Did you actually try this one I posted ? http://www.icyphoenix.com/viewtopic.php?p=42182#p42182 ----------------------------------- christmanrd Tue 11 Aug, 2009 12:24 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- You are correct, I did not change any code. However, that is not exactly what I was looking for. I was hoping not to have to use the Spoiler Box or the Show box. Instead, I just wanted something like read more... without the boxes being displayed like they are with the Spoiler or the Show tags. Basically, I am not focused on that project any longer since, we decided to use a different method of displaying the content. thanks for everyone's help. I really appreciate it. ----------------------------------- Lopalong Tue 11 Aug, 2009 13:13 Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block ----------------------------------- [quote user="christmanrd" post="42686"] However, that is not exactly what I was looking for. I was hoping not to have to use the Spoiler Box or the Show box. Instead, I just wanted something like [b]read more...[/b] without the boxes being displayed like they are with the Spoiler or the Show tags.[/quote] That's exactly what I did for you with my second alternative, (If you had tried it) all you needed to do was change "Expand / Collapse" to [b]Read More...[/b] [quote user="christmanrd" post="42686"] Basically, I am not focused on that project any longer since, we decided to use a different method of displaying the content.[/quote] Fair enough, there's more than one way to skin a Rush Linbaurgh. :) [quote user="christmanrd" post="42686"] thanks for everyone's help. I really appreciate it.[/quote] You're welcome. ;)