MyBB Community Forums

Full Version: Creating Custom MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9
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
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
What

Caps maps yokmu ..
please caps.
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>
*bump*
hi there how can i make a table mycode so in posts i can insert a table
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
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.
Could you explain further please? I am not sure what you mean by the emssage getting parsed.

Thanks for the reply Big Grin
Rob
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'));
Pages: 1 2 3 4 5 6 7 8 9