The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

5 posters

Go down

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

Post by Ritsu March 10th 2017, 8:40 pm

I found this and 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.
Ritsu
Ritsu
Forumember

Male Posts : 63
Reputation : 7
Language : Polish, English
Location : Poland

http://lolirock.forumpolish.com

Back to top Go down

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

Post by TheCrow 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?


Custom BBCode (don't know...?) Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

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

Post by Ritsu 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>
.
Custom BBCode (don't know...?) Screen10
Ritsu
Ritsu
Forumember

Male Posts : 63
Reputation : 7
Language : Polish, English
Location : Poland

http://lolirock.forumpolish.com

Back to top Go down

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

Post by Dr Jay 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.
Dr Jay
Dr Jay
Forumember

Male Posts : 92
Reputation : 7
Language : English
Location : USA(UTC-5)

https://geekpolice.forumotion.com

Back to top Go down

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

Post by Ritsu March 11th 2017, 11:49 am

And what about [borderimg]?
Ritsu
Ritsu
Forumember

Male Posts : 63
Reputation : 7
Language : Polish, English
Location : Poland

http://lolirock.forumpolish.com

Back to top Go down

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

Post by Dr Jay 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.
Dr Jay
Dr Jay
Forumember

Male Posts : 92
Reputation : 7
Language : English
Location : USA(UTC-5)

https://geekpolice.forumotion.com

Back to top Go down

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

Post by Ritsu 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?
Ritsu
Ritsu
Forumember

Male Posts : 63
Reputation : 7
Language : Polish, English
Location : Poland

http://lolirock.forumpolish.com

Back to top Go down

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

Post by brandon_g 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


Custom BBCode (don't know...?) Brando10
Remember to mark your topic Custom BBCode (don't know...?) Solved15 when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Custom BBCode (don't know...?) Scre1476
Team Leader
Review Section Rules | Request A Review | Sticker Points
brandon_g
brandon_g
Manager
Manager

Male Posts : 10113
Reputation : 923
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

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

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

vietkanpy
vietkanpy
Forumember

Male Posts : 89
Reputation : 33
Language : vietnam

http://benhxahoivn.com/

Back to top Go down

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

Post by Ritsu 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
Ritsu
Ritsu
Forumember

Male Posts : 63
Reputation : 7
Language : Polish, English
Location : Poland

http://lolirock.forumpolish.com

Back to top Go down

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

Post by vietkanpy 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

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

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

Male Posts : 89
Reputation : 33
Language : vietnam

http://benhxahoivn.com/

Back to top Go down

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

Post by Ritsu 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
Ritsu
Ritsu
Forumember

Male Posts : 63
Reputation : 7
Language : Polish, English
Location : Poland

http://lolirock.forumpolish.com

Back to top Go down

Back to top

- Similar topics

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