Congratulations to vtecmec for winning May/June's Lude Of The Month, with his DIY Turbo BB1 build.
>>> Click Here For Profile <<<

>>> Click Here For Profile <<<

Just tinkering
- Kawa
- Posts: 3405
- Joined: Sun Jun 20, 2010 5:58 pm
- My Generation: 4G
- XBOX GamerTag: kawa222
- Location: Nottingham
- Contact:
Just outputting the original string / $content, the [img] code is actually [img:random] where random is some ...erm.... apparently random letters and numbers.
Have tried differing combinations of (.?*) after both img sections of the pregmatch, but not getting any result...
Working on viewforum.php, lines 718 and 719. Line 746 outputs the result to the template. Will have another look tomorrow.
Have tried differing combinations of (.?*) after both img sections of the pregmatch, but not getting any result...
Working on viewforum.php, lines 718 and 719. Line 746 outputs the result to the template. Will have another look tomorrow.
- indigolemon
- The Chaos Engine
- Posts: 6680
- Joined: Wed Jun 30, 2010 1:45 pm
- My Generation: 4G
- PSN GamerTag: M149YSL
- Location: Kelty, Fife
- Has thanked: 24 times
- Been thanked: 71 times
- Contact:
Assuming the closing tag is a standard one:
Code: Select all
if (preg_match('/^.*\[img\:(.+?)\](.+?)\[\/img\]/i', $content, $matches)) {
echo $matches[1];
}
'On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.' - Charles Babbage
- NafemanNathan
- LotM Winner
- Posts: 20144
- Joined: Sun Aug 08, 2010 9:37 pm
- My Generation: 0G
- Location: Yeovil, Somerset
- Has thanked: 8 times
- Been thanked: 124 times
- Kawa
- Posts: 3405
- Joined: Sun Jun 20, 2010 5:58 pm
- My Generation: 4G
- XBOX GamerTag: kawa222
- Location: Nottingham
- Contact:
See what looks right. If it looks crap we revert it. Auto update, yes.NafemanNathan wrote:I guessed that's what you might have been trying. Is it going to be a thumbnail or will it pop up/expand when you hover over it?
Also would we be able to change/update the first pic from time to time and it update automatically?