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
SOLVED Blocks Management - Limiting The Number Of Characters Displayed In A Block
Subject: Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block
Last edited by Guest on Fri 31 Jul, 2009 09:49; edited 3 times in total
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.
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 ]
Last edited by Guest on Fri 31 Jul, 2009 09:49; edited 3 times in total
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 :(
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 :(
Subject: Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block
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 wrote: [View Post]
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. :(
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
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
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. ;)
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. ;)
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.
I appreciate your help.
Just a thought, you could register on my site and I could give you Admin Privileges. If that would help.
Subject: Re: Blocks Management - Limiting The Number Of Characters Displayed In A Block
Highslide JS version is : 4.0.12 from February 2009.
Well that´s what My script tells me.
Quote:
Highslide JS version is : 4.0.12 from February 2009.
Well that´s what My script tells me.
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
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
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. :mryellow:
Edit:
I gave HighSlide a miss, but you can try this one: ;)
You may want to add extra markup, but I'll leave that up to you. :P
If no-one comes up with anything in the next couple of days - I'll have another look at it for you. :mryellow:
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. :P
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.
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.
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.
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.
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.:
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.
<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>
<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.
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.
I have two icy sites and I forgot that I was on the 1.2.0.27c site when I tried the code.
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>
<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.
Page 1 of 2
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.1021s (PHP: 21% SQL: 79%)
SQL queries: 12 - Debug Off - GZIP Enabled