News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom BB Code

Started by Anguz, November 12, 2004, 05:35:27 AM

Previous topic - Next topic

Anguz

You could, but the problem is that if the parsing of the code doesn't check that it was actually you who used it, then anyone quoting a message where you did, will know your code for the JS and then use it. If it's not life or death to have this, I'd say you should wait for a public release of 1.1, don't you think? I have the idea of doing the permissions based parsing, but I really don't know if that'll happen after or before 1.1 final. :P
Cristián Lávaque http://cristianlavaque.com

hartiberlin

Hi Anguz,
thanks for the answers.
Would this also apply to the signature only ?

If I only use it in my signature, what if then someone
would quote my posting, I guess the signature is not quoted , right ?
So then he does not see the codes , right ?

Regards, Stefan.

Anguz

That is true, they can't quote your sig. Someone with the permission to edit profiles would, though. What is this JS that you really need? Just curious. :)
Cristián Lávaque http://cristianlavaque.com

hartiberlin

Hmm,
Would a normal user have the permission to edit my admin profile ?
Probably not, right ?

I would need this to include a Google Adsense Javascript code
in my admin signature.
Only me as the admin of my forum should be able to do this.

Are there other options to do this ?

Thanks.

Regards, Stefan.

Anguz

#84
It could be done, use the javascript in the replacing code of the new custom tag.
Cristián Lávaque http://cristianlavaque.com

hartiberlin

Okay, I installed it now and the BB code mod works.
But how do I now make an iframe with it ?

I want to embed this code:

<iframe src="http://rcm.amazon.com/e/cm?t=overunitcomth-20&o=1&p=8&l=as1&asins=1892062135&fc1=000000&=1&lc1=0000ff&bc1=000000&lt1=_blank&IS2=1&f=ifr&bg1=ffffff&f=ifr" width="120" height="240" scrolling="no" marginwidth="0" marginheight="0" frameborder="0">
</iframe>


Thanks thanks.

Regards, Stefan.

Anguz

You're welcome. If that's the HTML you want in the message, at the beginning add the name of the tag like it's explained in the mod to create a tag. :)
Cristián Lávaque http://cristianlavaque.com

hartiberlin

#87
Hi,
well the problem is, that I can not directly put the whole HTML code as it is:


<iframe src="http://rcm.amazon.com/e/cm?t=overunitcomth-20&o=1&p=8&l=as1&asins=1892062135&fc1=000000&=1&lc1=0000ff&bc1=000000&lt1=_blank&IS2=1&f=ifr&bg1=ffffff&f=ifr" width="120" height="240" scrolling="no" marginwidth="0" marginheight="0" frameborder="0">
</iframe>


into the posting, but I must first create the BBcode in the admin section this way:


if <iframe src="$1" width="120" height="240" scrolling="no" marginwidth="0" marginheight="0" frameborder="0">
</iframe>


and then copy the link like this into the posting:


[if]http://rcm.amazon.com/e/cm?t=overunitcomth-20&o=1&p=8&l=as1&asins=1892062135&fc1=000000&=1&lc1=0000ff&bc1=000000&lt1=_blank&IS2=1&f=ifr&bg1=ffffff&f=ifr[/if]



This is very annoying, as it takes a lot of manual work to copy and paste all
the single lines into a posting and add infront and at the end the [if] and [/if]
tags...
Hmm, is there a much easier way when I use the current 1.1 beta version ?
Can I then as the administrator  copy and paste the whole HTMLcode directly into the posting without having to care
about BBCodes ?
Does this then only work for the admin of the forum ?
That would be good !

I am willing to pay the 50 US$ for the 1.1 version, if this makes it possible
and could be easily updated from the now 1.03 to 1.1 with no problems.

Regards, Stefan.


Anguz

In 1.1, as an admin only, you can use HTML between html bbcode tags I really don't recommend that you use the custom bbcode tags for html that you don't want just anyone to use, cause anyone could use them then.

Example:

[center]
[html]
<iframe width="500" height="200" src="http://www.google.com"></iframe>
[/html]
[/center]


comes out like this:
Cristián Lávaque http://cristianlavaque.com

hartiberlin

Does this code only work in version 1.1 ?
If only the admin can use it, then it is okay !

hartiberlin

I just found a bug in your 3 mods !

They just can only be installed if you have set the forum into real
name mode for calling the server via repair_settings.php

if you use this:
http://66.90.118.44/~overunit/index.php

then the mods can´t be installed !

Regards, Stefan

Anguz

What 3 mods? Faster Parsecode, ModSettings Textarea and Custom BB Code?

I don't understand what you mean by

QuoteThey just can only be installed if you have set the forum into real
name mode for calling the server via repair_settings.php
Cristián Lávaque http://cristianlavaque.com

hartiberlin

Yes, all 3 mods have this error !
they only install , if I have set the forum
onto the real domain name usage !

YOu can change via repair_settings.php
the forum from being called via the IP number:
http://xx.xx.xx.xx/~username
or
http://domainname.com

If I use the first:
http://xx.xx.xx.xx/~username

then the mods don´t install !

I have installed my forum into the root directory of my domain.

Regards. Stefan.

Anguz

Why is it the mods' fault? :P
Cristián Lávaque http://cristianlavaque.com

hartiberlin

It does not accept the password,
so it will not install from the package manager.

But maybe this is only a problem of the path settings ?

Anguz

Quote from: hartiberlin on May 15, 2005, 06:07:53 PM
It does not accept the password,
so it will not install from the package manager.

But maybe this is only a problem of the path settings ?

Well, it's not the mod's problem, that I'm sure. Doesn't the same happen with other mods you try to install? I'd post this issue in a support board, since it's a problem you're having with your forum settings.
Cristián Lávaque http://cristianlavaque.com

hartiberlin

I did not yet install other mods !
Only change some template files to include
some Google adsense ads.

azuregenesis

waiting for this mod to updated as well :)

Anguz

1.04


  • Updated for SMF 1.0.5.
Cristián Lávaque http://cristianlavaque.com

spirulez

(some screencopy please ?)
Do you undestrand something about SMF's variables? | Vous comprenez quelque chose aux variables sous SMF ?
Some help please? | Un peu d'aide svp ?
Thanks a lot | Merci beaucoup

Advertisement: