The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Custom BBCode (don't know...?)

View previous topic View next topic Go down

In progress Custom BBCode (don't know...?)

Post by DSorcerer on March 10th 2017, 8:40 pm

I foundthisand I'm wondering... I want a code just like that but it should be like this:
User writes:
Code:
[podpis]Text here[/podpis]
but actually it's:
Code:
<br /><div id="podpis">Text here</div>
And, it should work in descriptions of categories & forums. Is it possible?
Also, what if:
Code:
[borderimg]link[/borderimg]
Code:
<img src="link" style="margin-right: 15px; margin-bottom: 8px;border: 1px solid silver;background: white; padding: 4px;border-radius: 3px;box-shadow: 1px 1px 3px silver"></a>
This should work only in posts.
avatar
DSorcerer
New Member

Posts : 17
Reputation : 1
Language : Polish

Back to top Go down

In progress Re: Custom BBCode (don't know...?)

Post by Luffy on March 10th 2017, 9:11 pm

Hello,

You want to add the
Code:
[podpis]Text here[/podpis]
in the posts and take place of the Description?





avatar
Luffy
Manager
Manager

Male Posts : 4456
Reputation : 442
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

In progress Re: Custom BBCode (don't know...?)

Post by DSorcerer on March 11th 2017, 1:09 am

Hello,
Well... I want to use [podpis] only in forums / categories because... yeah, it's quite hard to explain XD I just want to change the position of forums' and categories' descriptions. Somehow I made a mistake in coding and the text of titles of categories / forums gone down, but I liked it. And because forum descriptions haven't selectors specified, I decided to paste codes. It's really a nightmare to write in EVERY description:
Code:
<br /><div id="podpis">TEXT<div>
.
avatar
DSorcerer
New Member

Posts : 17
Reputation : 1
Language : Polish

Back to top Go down

In progress Re: Custom BBCode (don't know...?)

Post by Dr Jay on March 11th 2017, 1:17 am

You can use HTML in forum descriptions for Categories and Forums.

I have had to do it, and it does take time, but you can modify them all at once which is the main benefit.
avatar
Dr Jay
Forumember

Male Posts : 90
Reputation : 6
Language : English
Location : USA(UTC-5)

http://www.geekpolice.net

Back to top Go down

In progress Re: Custom BBCode (don't know...?)

Post by DSorcerer on March 11th 2017, 11:49 am

And what about [borderimg]?
avatar
DSorcerer
New Member

Posts : 17
Reputation : 1
Language : Polish

Back to top Go down

In progress Re: Custom BBCode (don't know...?)

Post by Dr Jay on March 11th 2017, 8:48 pm

The code has an error:
Code:
        <img src="link" style="margin-right: 15px; margin-bottom: 8px;border: 1px solid silver;background: white; padding: 4px;border-radius: 3px;box-shadow: 1px 1px 3px silver"></a>

Placing an
Code:
</a>
at the end of a HTML element that is already defined as
Code:
<img>
.

You should place the IMG tag/element and at the end of the line place the
Code:
/>
or place in a new tag:
Code:
</img>

So, it should look like:
Code:
/*Example 1*/
<img src="link" style="margin-right: 15px; margin-bottom: 8px;border: 1px solid silver;background: white; padding: 4px;border-radius: 3px;box-shadow: 1px 1px 3px silver" />

/*Example 2*/
<img src="link" style="margin-right: 15px; margin-bottom: 8px;border: 1px solid silver;background: white; padding: 4px;border-radius: 3px;box-shadow: 1px 1px 3px silver"></img>

Anyway... that should work properly, but let me know.
avatar
Dr Jay
Forumember

Male Posts : 90
Reputation : 6
Language : English
Location : USA(UTC-5)

http://www.geekpolice.net

Back to top Go down

In progress Re: Custom BBCode (don't know...?)

Post by DSorcerer on March 13th 2017, 3:08 pm

Yes, I know.
I'm sure you don't understand my question xD Yeah, I made a mistake, but it's not an information which I need. I'm asking: how to do own BBCodes?
avatar
DSorcerer
New Member

Posts : 17
Reputation : 1
Language : Polish

Back to top Go down

In progress Re: Custom BBCode (don't know...?)

Post by brandon_g on March 13th 2017, 8:46 pm

Hello,

Let me see if I understand you correctly: You want to add your bbcodes to be able to used in posts on your forum?

If so, there no way to do this by default in the admin panel.

I am not sure if there is anyway to do this using code.

-Brandon


Remember to mark your topic when a solution is found.
avatar
brandon_g
Support Moderator
Support Moderator

Male Posts : 5542
Reputation : 504
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

In progress Re: Custom BBCode (don't know...?)

Post by vietkanpy on March 14th 2017, 8:24 am

avatar
vietkanpy
Forumember

Male Posts : 52
Reputation : 20
Language : vietnam

http://www.hotrofm.net/

Back to top Go down

In progress Re: Custom BBCode (don't know...?)

Post by DSorcerer on March 16th 2017, 9:20 pm

Wow, you rock! Thanks! And how to make the borderimg to work in posts, also? Or it works and I just don't know how to use it xD
avatar
DSorcerer
New Member

Posts : 17
Reputation : 1
Language : Polish

Back to top Go down

In progress Re: Custom BBCode (don't know...?)

Post by vietkanpy on March 17th 2017, 11:15 am

@DSorcerer wrote:Wow, you rock! Thanks! And how to make the borderimg to work in posts, also? Or it works and I just don't know how to use it xD



Add a Javascript Code and copy to paste code.
avatar
vietkanpy
Forumember

Male Posts : 52
Reputation : 20
Language : vietnam

http://www.hotrofm.net/

Back to top Go down

In progress Re: Custom BBCode (don't know...?)

Post by DSorcerer on March 18th 2017, 1:15 am

I did it before XD But "borderimg" doesn't work in the posts. It doesn't show any border, but "podpis" works.
"Borderimg" works in the categories/forums descriptions. I wanted "podpis" in categories/forums only and "borderimg" in both (posts + categories/forums descs) Razz
avatar
DSorcerer
New Member

Posts : 17
Reputation : 1
Language : Polish

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum