Icy Phoenix


Old Support Topics - Blocks Management - Limiting The Number Of Characters Displayed In A Block



christmanrd [ Thu 30 Jul, 2009 13:26 ]
Post subject: 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 ]
Post subject: 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: [ Show ]


christmanrd [ Fri 31 Jul, 2009 03:04 ]
Post subject: 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 ]
Post subject: Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block
christmanrd wrote: [View Post]
When I clicked on SHOW. The Block did not expand but the words were displayed over the rest of the blocks beneath it.

Dave


So it's transparent?

I've edited the script I posted - So you can have a go at that one.

But to expand the block it would have to be done a different way.


christmanrd [ Fri 31 Jul, 2009 11:48 ]
Post subject: 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 ]
Post subject: 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 ]
Post subject: 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 ]
Post subject: 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)


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 ]
Post subject: 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: 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 ]
Post subject: 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.

Edit:

I gave HighSlide a miss, but you can try this one:

Spoiler: [ Show ]


You may want to add extra markup, but I'll leave that up to you.


Mighty Gorgon [ Mon 10 Aug, 2009 21:20 ]
Post subject: 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 ]
Post subject: 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 ]
Post subject: 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.:

Code: [Hide] [Select]
<div class="spoiler">

<div class="code-header" id="spoilerhdr_NEWS001" style="position: relative;">Show: [ <a href="#" onclick="ShowHide(\'spoiler_NEWS001\', \'spoiler2_NEWS001\', \'\'); ShowHide(\'spoilerhdr_NEWS001\', \'spoilerhdr2_NEWS001\', \'\'); return false;">Show</a> ]</div>

<div class="code-header" id="spoilerhdr2_NEWS001" style="position: relative; display: none;">Spoiler: [ <a href="#" onclick="ShowHide(\'spoiler_NEWS001\', \'spoiler2_NEWS001\', \'\'); ShowHide(\'spoilerhdr_NEWS001\', \'spoilerhdr2_NEWS001\', \'\'); return false;">Hide</a> ]</div>

<div class="spoiler-content" id="spoiler2_NEWS001" style="position: relative; display: none;">YOUR TEXT</div>

</div>


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 ]
Post subject: 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: [Hide] [Select]
Now is the time for all young men

<div class="spoiler">

<div class="code-header" id="spoilerhdr_NEWS001" style="position: relative;">Show: [ <a href="#" onclick="ShowHide(\'spoiler_NEWS001\', \'spoiler2_NEWS001\', \'\'); ShowHide(\'spoilerhdr_NEWS001\', \'spoilerhdr2_NEWS001\', \'\'); return false;">Show</a> ]</div>

<div class="code-header" id="spoilerhdr2_NEWS001" style="position: relative; display: none;">Spoiler: [ <a href="#" onclick="ShowHide(\'spoiler_NEWS001\', \'spoiler2_NEWS001\', \'\'); ShowHide(\'spoilerhdr_NEWS001\', \'spoilerhdr2_NEWS001\', \'\'); return false;">Hide</a> ]</div>

<div class="spoiler-content" id="spoiler2_NEWS001" style="position: relative; display: none;">to come to the aid of their country</div>

</div>



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 ]
Post subject: Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block
Mighty Gorgon wrote: [View Post]


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.


Don´t see anything renamed in your code christmanrd


Lopalong [ Tue 11 Aug, 2009 00:18 ]
Post subject: 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 ]
Post subject: 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 ]
Post subject: Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block
christmanrd wrote: [View Post]

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.


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 Read More...

christmanrd wrote: [View Post]

Basically, I am not focused on that project any longer since, we decided to use a different method of displaying the content.


Fair enough, there's more than one way to skin a Rush Linbaurgh.


christmanrd wrote: [View Post]

thanks for everyone's help. I really appreciate it.


You're welcome.




Powered by Icy Phoenix