See More Text
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe exactly what it is you want.
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe exactly what it is you want.
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
- Jaymie1989
- BBCoder II
- Posts: 8
- Joined: 16 Apr 2010, 01:55
See More Text
Hey All,
Im after a BBCode that when a long piece of text is written it will hide some of the text and have a text like See more to read the rest of what is written.
Im not to sure how to explain it.
Example:
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah (see more)<Is a link to see the rest.
So something like a script for it.
Im after a BBCode that when a long piece of text is written it will hide some of the text and have a text like See more to read the rest of what is written.
Im not to sure how to explain it.
Example:
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah (see more)<Is a link to see the rest.
So something like a script for it.
Re: See More Text
Almost forgot on this one...
This should do the job:
This should do the job:
Code: Select all
[shorten]{TEXT}[/shorten]
Code: Select all
<script type="text/javascript">
var t="{TEXT}"
var ts=t.substring(0,25)+'...'
document.write('<div>'+ts+'<a href="" onmousedown="this.parentNode.innerHTML=t">Show</a></div>')
</script>
- Steve
- BBCoder VI
- Posts: 848
- Joined: 05 Mar 2010, 01:10
- BBCodes: 2000
- Favourite BBCode: p**n tube
- Favourite MOD: Non of Stokers
Re: See More Text
Doesnt work displays no text at all in the post when you use the [shorten][/shorten] bbcode tags.Needs some work
Re: See More Text
It works for me like it should be...
It should display at least some text.
I'm now working on making able multiple tags in a single post...
It should display at least some text.
I'm now working on making able multiple tags in a single post...
Re: See More Text
Coming!!!Steve© » 11 Jul 2010, 20:47 wrote:Demo?
Really, I just tested it as pure HTML, not as BBCode...
Re: See More Text
Here:http://kuky.99k.org/forums/viewtopic.ph ... 94#testing
It works! Only for single use...
Also a BBCode of mine I'll post here...
It works! Only for single use...
Also a BBCode of mine I'll post here...
Re: See More Text
It is there.Steve© » 11 Jul 2010, 21:45 wrote:............ and the new bbcode for show more text?
I give up on version that can be used multiple times in a same page...