Creating Custom MyCode
#41
ACP - Message Filters - Custom Mycode - Add MyCode

MyCode Title :: !HA
MyCode Description :: <fill something in>
Regular Expression :: \[!HA\]
Replacement :: <img src="IMG_SOURCE" />
Activate MyCode :: YES
Reply
#42
LeX- Wrote:ACP - Message Filters - Custom Mycode - Add MyCode

MyCode Title :: !HA
MyCode Description :: <fill something in>
Regular Expression :: \[!HA\]
Replacement :: <img src="IMG_SOURCE" />
Activate MyCode :: YES

Thank you sooo much!


#sKiLLy
Reply
#43
What

Caps maps yokmu ..
please caps.
Reply
#44
Hey there, I've a question concerning iframes. I've tried inserting them in to posts as html (with it enabled) and with a custom MyCode but I'm having problems.

It does work(ish). I see the frame in the post fine, but it doesn't actually display the page, it's just blank. Are iframes somehow disabled within MyBB or am I confused?

Just using this code for the time being to keep it uncomplicated:
<iframe 
src ="http://google.com"
width="200">
</iframe>
Reply
#45
*bump*
Reply
#46
hi there how can i make a table mycode so in posts i can insert a table
Reply
#47
Hey,

Been searching for a while now and i cannot find this. It is probably out there but I cant see it.

Would it be possible to put something like {USERNAME} into a mycode so when you use this on any page/post ect, it will come up as the users account name, or if not logged in, guest?

If this is possible would you be able to tell me how to do this.

Thanks in advance, this would be really handy on my custom pages mod.
Rob

Edit - I have found http://mods.mybboard.net/view/show-name-mycode which works, however only in posts and topics Sad not in custom pages

Edit - I have found http://mods.mybboard.net/view/show-name-mycode which works, however only in posts and topics Sad not in custom pages
[/quote]

If it helps, i have found a code from a proboards code/graphics plugin which does exactly what i want. But it needs to work with a plugin for mybb..
http://socal.proboards26.com/index.cgi?b...hread=7067
Reply
#48
That plugin runs whenever a message gets parsed; so all you have to do is parse the content of your custom page and the [name] will be changed to your username.
Reply
#49
Could you explain further please? I am not sure what you mean by the emssage getting parsed.

Thanks for the reply Big Grin
Rob
Reply
#50
Can you try this?

Open pages.php

Find
				add_breadcrumb("$pageInfo[title]", 'pages.php');

Add Below
				$parser = new postParser;
				$pageInfo['content'] = $parser->parse_message($pageInfo['content'], array('allow_mycode' => 'yes'));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)