See More Text

Support for PhpBB3 BBCodes. Post here to get help with any BBCode related issue here
There is no support here! Only Read Access!
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!
Locked
User avatar
Jaymie1989
BBCoder II
BBCoder II
Posts: 8
Joined: 16 Apr 2010, 01:55

See More Text

Post by Jaymie1989 »

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.
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: See More Text

Post by KukY13 »

I'll do it.
I'll post again when I write the code.
Image
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: See More Text

Post by KukY13 »

Almost forgot on this one...
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>
Image
User avatar
Steve
BBCoder VI
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

Post by Steve »

Doesnt work displays no text at all in the post when you use the [shorten][/shorten] bbcode tags.Needs some work ;)
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: See More Text

Post by KukY13 »

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...
Image
User avatar
Steve
BBCoder VI
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

Post by Steve »

Demo?
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: See More Text

Post by KukY13 »

Coming!!!
Really, I just tested it as pure HTML, not as BBCode... :oops:
Image
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: See More Text

Post by KukY13 »

Here:http://kuky.99k.org/forums/viewtopic.ph ... 94#testing
It works! Only for single use... :roll:
Also a BBCode of mine I'll post here...
Image
User avatar
Steve
BBCoder VI
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

Post by Steve »

............ and the new bbcode for show more text?
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: See More Text

Post by KukY13 »

Steve© » 11 Jul 2010, 21:45 wrote:............ and the new bbcode for show more text?
It is there.

I give up on version that can be used multiple times in a same page... :coffee:
Image
Locked