Page Index Toggle Pages: [1] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) Admin HTML in posts (Read 16158 times)
James Andrews
Junior Member
**
Offline



Posts: 62
Location: Ipswich
Joined: Jan 7th, 2006
Gender: Male
Admin HTML in posts
Oct 31st, 2008 at 7:23pm
Print Post  
Allows admin to insert html in posts by

[html]  [/html]

Thanks to multikon for making this 2.3 compatable.
  

admin_html.txt ( 1 KB | Downloads )
Back to top
WWWAIM  
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: Admin HTML in posts
Reply #1 - Nov 1st, 2008 at 10:55pm
Print Post  
Hi,

I installed this mod without Problems.

In one Thread, where I post html the Avatars
of Posters are not shown...

Greetings
Mick
« Last Edit: Nov 2nd, 2008 at 6:20pm by mick »  
Back to top
WWW  
IP Logged
 
mick
Senior Member
****
Offline


I love YaBB

Posts: 345
Location: Dorsten
Joined: Nov 29th, 2005
Gender: Male
Re: Admin HTML in posts
Reply #2 - Nov 5th, 2008 at 8:39am
Print Post  
Hi,
I think the Problem comes, when you use the
"body-Tag" inside html. In the following Posts
the Avatars are not shown.
After deleting the body-Tag everything was ok.
Greetings
Mick
  
Back to top
WWW  
IP Logged
 
Captain John
Senior Member
****
Offline


Pass to Port !

Posts: 264
Location: Reno Beach
Joined: Jan 18th, 2007
Gender: Male
Re: Admin HTML in posts
Reply #3 - Dec 11th, 2008 at 4:59am
Print Post  
  This only works inside the Post window, correct ?  Not in the Subject line.
  So Curious ... What does this do above and beyond the BBC buttons above the Post Window ?
  

Love to live and love on the water
Back to top
 
IP Logged
 
jfk
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 44
Joined: Oct 14th, 2007
Re: Admin HTML in posts
Reply #4 - Dec 12th, 2008 at 11:53am
Print Post  
Using this mod with the iframe function I've built a small on-line shop in one of my posts complete with pop-up windows to display larger images, selection forms for clothing colours and sizes, paypal buttons, etc. - I don't know if this can be done with BBC?

Whether it can or can't, I'm pleased with the results (but would like a pointer to BBC tuition if this kind of things is possible).

John

  

My YaBB forum can be found at www.Rabbiters.co.uk
Back to top
 
IP Logged
 
LWS
Senior Member
****
Offline


seek and ye shall find...i
must be BLIND!!

Posts: 285
Location: Southern Ohio
Joined: Feb 25th, 2007
Re: Admin HTML in posts
Reply #5 - Dec 12th, 2008 at 1:54pm
Print Post  
yep.. goes well beyond bbc. using html in a post you have complete control of how it is formated..  can use background images in a table for example
  

LoneWebSurfer.com Nothing but YaBB templates
Back to top
WWW  
IP Logged
 
Simps
Junior Member
**
Offline


Gruellered!!!

Posts: 60
Location: Midlands, UK
Joined: Dec 24th, 2007
Re: Admin HTML in posts
Reply #6 - Dec 13th, 2008 at 5:13pm
Print Post  
Hi there, just a quick question before I download it. Can Global Mods post HTML with this also.
Thanks
  
Back to top
WWW  
IP Logged
 
jfk
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 44
Joined: Oct 14th, 2007
Re: Admin HTML in posts
Reply #7 - Dec 14th, 2008 at 10:08pm
Print Post  
I had this installed on my forum for Global Mods to use, I just changed the following line in the relevant file:

f(${$uid.$musername}{'position'} eq "
Administrator
") {

Of course, that meant that Administrators couldn't use this mod (which didn't bother me as I used to do all my posting on the forum as a global moderator anyway)

I'm not clever enough to tell you how but I'm sure it wouldn't be too difficult to edit the code so that both the Admin and G-Mods can post html.

John
  

My YaBB forum can be found at www.Rabbiters.co.uk
Back to top
 
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Admin HTML in posts
Reply #8 - Dec 15th, 2008 at 2:26pm
Print Post  
Should be administrators and global moderators allowed to use html code in posts, then change the following part in the modfile:

<search for>

Quote:
           ### ADMIN HTML ###

           if(${$uid.$musername}{'position'} eq "Administrator") {

                 $message =~ s~\[html\]\s*(.+?)\s*\[/html\]~&AdminHTML($1)~eisg;

           }

           ### ADMIN HTML END ###


</search for>

<replace>

Quote:
           ### ADMIN HTML ###

             if (${$uid.$musername}{'position'} eq 'Administrator' || ${$uid.$musername}{'position'} eq 'Global Moderator') {

                 $message =~ s~\[html\]\s*(.+?)\s*\[/html\]~&AdminHTML($1)~eisg;

           }

           ### ADMIN HTML END ###


</replace>

Grin
  

Greeting ThM
Back to top
 
IP Logged
 
jfk
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 44
Joined: Oct 14th, 2007
Re: Admin HTML in posts
Reply #9 - Dec 15th, 2008 at 4:49pm
Print Post  
That's exactly what I would have tried first   Wink Grin
  

My YaBB forum can be found at www.Rabbiters.co.uk
Back to top
 
IP Logged
 
Simps
Junior Member
**
Offline


Gruellered!!!

Posts: 60
Location: Midlands, UK
Joined: Dec 24th, 2007
Re: Admin HTML in posts
Reply #10 - Dec 15th, 2008 at 5:24pm
Print Post  
Great, thanks a lot for that  Cheesy
  
Back to top
WWW  
IP Logged
 
Simps
Junior Member
**
Offline


Gruellered!!!

Posts: 60
Location: Midlands, UK
Joined: Dec 24th, 2007
Re: Admin HTML in posts
Reply #11 - Dec 17th, 2008 at 5:19pm
Print Post  
I cannot get this working. I am trying to paste a google maps iframe in with the html tags but it just displays all the words and no map. I have copied everything over correctly and checked it 10 times.  Cry Cry
  
Back to top
WWW  
IP Logged
 
Simps
Junior Member
**
Offline


Gruellered!!!

Posts: 60
Location: Midlands, UK
Joined: Dec 24th, 2007
Re: Admin HTML in posts
Reply #12 - Dec 17th, 2008 at 5:30pm
Print Post  
It says file missing in the iframe.
I have changed the name of the member group "Administrator" to "Admin" If i change that in the code nothing happens again but with it as "Administrator" i get file missing error in the iframe
  
Back to top
WWW  
IP Logged
 
ThM
God Member
*****
Offline



Posts: 585
Location: Germany, Nds.
Joined: May 21st, 2006
Gender: Male
Re: Admin HTML in posts
Reply #13 - Dec 17th, 2008 at 7:19pm
Print Post  
It works ....  Grin

Quote:
[html]
<center>
<iframe src=http://www.yourdomain.com/map/map.php frameborder="no" width="99%" scrolling="no" height="720" allowtransparency="true" /></iframe>
</center>
[/html]


Use the url to the map without the " sign ..... take a look to the example code.

Wink
  

Greeting ThM
Back to top
 
IP Logged
 
Simps
Junior Member
**
Offline


Gruellered!!!

Posts: 60
Location: Midlands, UK
Joined: Dec 24th, 2007
Re: Admin HTML in posts
Reply #14 - Dec 18th, 2008 at 5:11pm
Print Post  
You sir are a gent. Thanks very much. Thats all it was. Those pesky " signs
Got it working now.
Merry Christmas  Cheesy Wink
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint