News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[HTML] Permission Mod

Started by winrules, August 20, 2006, 03:17:35 PM

Previous topic - Next topic

snyperthugs

Ok I did a clean install AGAIN because nobody knew of a fix for this, and started putting all my mods back on, everything went ok with the HTML mod untill I installed (mp3 Flash Player BBC Tag) and that mod wouldnt display correctly so I uninstalled it and the HTML mod STILL doesnt work. Any idea what it could be since I know the actual mod that caused the conflict??
www.4mydjs.com - Get Your Music Heard!

SmittyNY


Nvb

Quote from: Kolya on August 18, 2009, 07:58:37 PM
For SMF 2.0 RC1.2

./Sources/Subs-Post.php
Find:

if (allowedTo('admin_forum'))

Replace With:

if (allowedTo('post_html'))


./Sources/ManagePermissions.php
Find:

'report_any' => array(false, 'post', 'participate'),

Replace With:

'report_any' => array(false, 'post', 'participate'),
'post_html' => array(false, 'post', 'moderate'),


Find:

'profile_title_any',

Replace With:

'profile_title_any',
'post_html',


./Themes/default/languages/ManagePermissions.english.php
Find:


$txt['permissiongroup_attachment'] = 'Attachments';

Replace With:


$txt['permissionname_post_html'] = 'Post HTML';
$txt['permissionhelp_post_html'] = 'This will allow members to post HTML using [html] BBC tags.';

$txt['permissiongroup_attachment'] = 'Attachments';



Any modifications needed for 2.0 RC 5.0?
Worked perfect on the previous RC versions but not on RC 5.0

Update desperately needed!!

Nvb


Edson

is this smf 2.0 RC 5.0 compatible?
Uso Theme Default
Versión SMF 2.0 RC5

Kolya

Works fine for me on SMF 2.0 final when installing as described above. And it worked on RC5 as well.
Not sure what the problem is for Nvb.

Edson

Quote from: Kolya on June 26, 2011, 01:56:27 PM
Works fine for me on SMF 2.0 final when installing as described above. And it worked on RC5 as well.
Not sure what the problem is for Nvb.
I agree with you, friend Kolya
Uso Theme Default
Versión SMF 2.0 RC5

Apllicmz

When update dont forget portuguese

<file name="$languagedir/ManagePermissions.portuguese_pt.php" error="skip">
        <operation>
            <search position="replace"><![CDATA[
$txt['permissiongroup_attachment'] = 'Anexos';
]]></search>
            <add><![CDATA[
$txt['permissionname_post_html'] = 'Postar em HTML';
$txt['permissionhelp_post_html'] = 'Isto ir&aacute; permitir que os membros postem em HTML usando [html] BBC tags.';

$txt['permissiongroup_attachment'] = 'Anexos';
]]></add>
        </operation>
       
    </file>
   
    <file name="$languagedir/ManagePermissions.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="replace"><![CDATA[
$txt['permissiongroup_attachment'] = 'Anexos';
]]></search>
            <add><![CDATA[
$txt['permissionname_post_html'] = 'Postar em HTML';
$txt['permissionhelp_post_html'] = 'Isto ir&aacute; permitir que os membros postem em HTML usando [html] BBC tags.';

$txt['permissiongroup_attachment'] = 'Anexos';
]]></add>
        </operation>
       
    </file>
   
    <file name="$languagedir/ManagePermissions.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="replace"><![CDATA[
$txt['permissiongroup_attachment'] = 'Anexos';
]]></search>
            <add><![CDATA[
$txt['permissionname_post_html'] = 'Postar em HTML';
$txt['permissionhelp_post_html'] = 'Isto ir&aacute; permitir que os membros postem em HTML usando [html] BBC tags.';

$txt['permissiongroup_attachment'] = 'Anexos';
]]></add>
        </operation>
       
    </file>
   
    <file name="$languagedir/ManagePermissions.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="replace"><![CDATA[
$txt['permissiongroup_attachment'] = 'Anexos';
]]></search>
            <add><![CDATA[
$txt['permissionname_post_html'] = 'Postar em HTML';
$txt['permissionhelp_post_html'] = 'Isto ir&aacute; permitir que os membros postem em HTML usando [html] BBC tags.';

$txt['permissiongroup_attachment'] = 'Anexos';
]]></add>
        </operation>
       
    </file>



jimbouk1977

I also tried  this with SMF 2.0.1 the only error i had was with  sub/manage/permissions   so i used code above & still no joy i have the permission to add but HTML still wont show

im using  do i need to ?. this is how i used to do it i had no issues untill i changed themes any ideas as to why the bbc does no longer work ?.
Might be a stupid question but its how you learn

Using SMF 2.0.1  & SP

jimbouk1977

Quote from: snyperthugs on January 27, 2011, 08:04:39 PM
Ok I did a clean install AGAIN because nobody knew of a fix for this, and started putting all my mods back on, everything went ok with the HTML mod untill I installed (mp3 Flash Player BBC Tag) and that mod wouldnt display correctly so I uninstalled it and the HTML mod STILL doesnt work. Any idea what it could be since I know the actual mod that caused the conflict??


Looks like this might be my issue also  !.
Might be a stupid question but its how you learn

Using SMF 2.0.1  & SP

jimbouk1977

hmm works with new HTML but anything added before theme change no longer works any ideas on that one ?.  ???
Might be a stupid question but its how you learn

Using SMF 2.0.1  & SP

Joker™

Quote from: jimbouk1977 on December 13, 2011, 12:50:58 PM
hmm works with new HTML but anything added before theme change no longer works any ideas on that one ?.  ???
Can be the reason that the [ html ] tags were missing in those posts. Try to edit them, add tags to them and see if it works.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

jimbouk1977

Yeah tried that already Joker to no avail also if I use <iframe> it shows my site & not the thing im trying to embed don't know what the hell happened but i changed themes before & never had this like you said normally just go back edit & works but very odd this time only new thing is 2.0.1 & transparent theme  ???
Might be a stupid question but its how you learn

Using SMF 2.0.1  & SP

Biology Forums

Can you post any html or just simple html <b><i><u> ??

Kolya

There would be no point if this mod replicated the basic HTML permission that's already available via SMF's backend.
So this allows all HTML.

romanos8

How can I implement this HTML code?


<table align="center" border="8" cellspacing="0">

<tr>
<td align="center" bgcolor="yellow">
<font color="red" size="4">Happy</font>
</td>
</tr>

<tr>
<td align="center" bgcolor="aqua">
<font color="blue" size="4">Anniversary</font>
</td>
</tr>

</table>

Biology Forums

Wrap it around [html]<<YOUR CODE>>[/html]

romanos8


Gluz

If you are Admin it works, just put something like this:
[html]<table align="center" border="8" cellspacing="0">
<tr><td align="center" bgcolor="yellow"><font color="red" size="4">Happy</font></td></tr>
<tr><td align="center" bgcolor="aqua"><font color="blue" size="4">Anniversary</font></td></tr>
</table>[/html]


If you are not Admin, then the Admin need to activate the HTML BBCode for use in the posts (not recommended), or install this mod if it's SMF 1.1.x or do what it says in this post if it's SMF 2.0.x (not tested, but the search values are correct for a SMF 2.0.x files sintax), other way, users can't use HTML in posts.

romanos8

Quote from: Gluz on September 18, 2015, 01:18:40 AM
If you are Admin it works, just put something like this:
[html]<table align="center" border="8" cellspacing="0">
<tr><td align="center" bgcolor="yellow"><font color="red" size="4">Happy</font></td></tr>
<tr><td align="center" bgcolor="aqua"><font color="blue" size="4">Anniversary</font></td></tr>
</table>[/html]


If you are not Admin, then the Admin need to activate the HTML BBCode for use in the posts (not recommended), or install this mod if it's SMF 1.1.x or do what it says in this post if it's SMF 2.0.x (not tested, but the search values are correct for a SMF 2.0.x files sintax), other way, users can't use HTML in posts.


Hi, thanks for your post. I have allowed my users but it wont work for me even using my admin account.

Advertisement: