Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize shortcodes to more generic codes #6

Open
ghost opened this issue Mar 21, 2015 · 2 comments
Open

Customize shortcodes to more generic codes #6

ghost opened this issue Mar 21, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 21, 2015

Hi,

Just want to know if it's possible to get more basic shortcake though this package, per exemple I want to make a mention of another user could I use this package to do :

@Username #MessageID

In a simple way, is this possible to freely adapt the parser for any specific use.
If not, could you redirect me to another package that could make this.

Sincerly,

@gravitano
Copy link
Member

Maybe you can create @mention shortcode instead of @username. For example:

@mention('username', $messageId)

To register this shortcode you can do something like this:

Shortcode::register('mention', function($username, $messageId)
{
  // your code here
});

@thunderer
Copy link
Contributor

@Maxime-BHA Maybe you'll be interested in my shortcode library, I recently implemented "configurable syntax" feature, please read the usage docs in the README.md (Syntax part at the end of section), you can configure different parts to have for example {code}, @code$ or other variants, I'm also interested in any ideas you may have, I'd be happy to implement them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants