Ratchet
06-24-2005, 01:53 PM
Hey guys,
I need a bit of help trying to create a "Read More" type thing for our sites news page. What I would like to do, ideally, is have our news guys be able to mark off a block of text that won't show on the front news page but will show on the "Comments" page (ie: the actual forum).
I sort of have this working using simple CSS which essentially replaces custom [readmore] tags with <span class="readmore"> that is defined in our CSS stylesheet as display:none on the front page and display:block in the forum. The problem there, of course, is that it still increases the download size of the front page.
Basically, I guess what I want is something that would strip out the text between the [readmore] tags on the fly. If I can get something that would also count the characters before it strips them out, so that I can have [ Read More (3212 bytes) ] then that would be cool too, but certainly not required.
Boiled down, I guess what I need help with is a regex to detect [readmore] VBCode tags :)
I need a bit of help trying to create a "Read More" type thing for our sites news page. What I would like to do, ideally, is have our news guys be able to mark off a block of text that won't show on the front news page but will show on the "Comments" page (ie: the actual forum).
I sort of have this working using simple CSS which essentially replaces custom [readmore] tags with <span class="readmore"> that is defined in our CSS stylesheet as display:none on the front page and display:block in the forum. The problem there, of course, is that it still increases the download size of the front page.
Basically, I guess what I want is something that would strip out the text between the [readmore] tags on the fly. If I can get something that would also count the characters before it strips them out, so that I can have [ Read More (3212 bytes) ] then that would be cool too, but certainly not required.
Boiled down, I guess what I need help with is a regex to detect [readmore] VBCode tags :)