Congratulations to vtecmec for winning May/June's Lude Of The Month, with his DIY Turbo BB1 build.

>>> Click Here For Profile <<<

Image

Just tinkering

User avatar
Kawa
Posts: 3404
Joined: Sun Jun 20, 2010 5:58 pm
My Generation: 4G
XBOX GamerTag: kawa222
Location: Nottingham
Contact:

Post by Kawa » Tue Apr 30, 2013 10:07 pm

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.

User avatar
indigolemon
The Chaos Engine
Posts: 6676
Joined: Wed Jun 30, 2010 1:45 pm
My Generation: 4G
PSN GamerTag: M149YSL
Location: Kelty, Fife
Has thanked: 20 times
Been thanked: 70 times
Contact:

Post by indigolemon » Tue Apr 30, 2013 10:28 pm

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

User avatar
Donald
Supporter 2015
Posts: 9894
Joined: Sun Jun 12, 2011 10:17 pm
My Generation: 0G
Location: Earth 3.0
Been thanked: 5 times

Post by Donald » Wed May 01, 2013 6:54 pm

I have found something...... :twisted:

Might keep it a secret.

EDIT: It's not my pepe.

User avatar
Kawa
Posts: 3404
Joined: Sun Jun 20, 2010 5:58 pm
My Generation: 4G
XBOX GamerTag: kawa222
Location: Nottingham
Contact:

Post by Kawa » Wed May 01, 2013 7:41 pm

:P

User avatar
Donald
Supporter 2015
Posts: 9894
Joined: Sun Jun 12, 2011 10:17 pm
My Generation: 0G
Location: Earth 3.0
Been thanked: 5 times

Post by Donald » Wed May 01, 2013 7:44 pm

I haven't found anything you may have changed yet, just something old that I personally would tinker with :lol:

What was changed in your tinkering anyway?

User avatar
Kawa
Posts: 3404
Joined: Sun Jun 20, 2010 5:58 pm
My Generation: 4G
XBOX GamerTag: kawa222
Location: Nottingham
Contact:

Post by Kawa » Wed May 01, 2013 8:02 pm

Was going to pull through the first image from the first post and display it in the lude profile forum listing. But indigo has let me down :lol:

User avatar
Donald
Supporter 2015
Posts: 9894
Joined: Sun Jun 12, 2011 10:17 pm
My Generation: 0G
Location: Earth 3.0
Been thanked: 5 times

Post by Donald » Wed May 01, 2013 9:29 pm

If that means what I imagine it does, it's a cool idea 8-)

User avatar
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: 121 times

Post by NafemanNathan » Wed May 01, 2013 10:19 pm

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?

User avatar
Kawa
Posts: 3404
Joined: Sun Jun 20, 2010 5:58 pm
My Generation: 4G
XBOX GamerTag: kawa222
Location: Nottingham
Contact:

Post by Kawa » Wed May 01, 2013 10:31 pm

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?
See what looks right. If it looks crap we revert it. Auto update, yes.

User avatar
Kawa
Posts: 3404
Joined: Sun Jun 20, 2010 5:58 pm
My Generation: 4G
XBOX GamerTag: kawa222
Location: Nottingham
Contact:

Post by Kawa » Thu May 02, 2013 9:48 pm

Used another method. Check out the lude profile section, some may need to CTRL + F5.

Post Reply

Return to “Archive”