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



Posts: 62
Location: Ipswich
Joined: Jan 7th, 2006
Gender: Male
Admin HTML in Posts
Jul 19th, 2006 at 9:29am
Print Post  
This mod allows admins to insert HTML code into their posts using:

[html] ... [/html]

WARNING!!!!

Auto-Link URL's can cause some errors when inserting in URL's in HTML. It is recommended that you disable Auto-Link URL's in the Admin Centre/Forum Settings to reduce broken links.

Mod History

1.1 (9th Aug 2006) - Fixed bug with <br /> tags being created each line. <br /> tags can no longer be used with this version, please use <p> and </p> tags instead.
« Last Edit: Aug 9th, 2006 at 12:49pm by James Andrews »  

admin_html_in_posts_11.mod ( 1 KB | Downloads )
Back to top
WWWAIM  
IP Logged
 
Xavier
Senior Member
****
Offline



Posts: 442
Location: Ipswich
Joined: Apr 5th, 2005
Gender: Male
Re: Admin HTML in Posts
Reply #1 - Jul 20th, 2006 at 4:20am
Print Post  
Brillient just what i have been waiting for. just one thing can you have it so that you can only allow certain html tags as i don't want certain tags to be allowed due to security risks
  
Back to top
WWWYIM  
IP Logged
 
James Andrews
Junior Member
**
Offline



Posts: 62
Location: Ipswich
Joined: Jan 7th, 2006
Gender: Male
Re: Admin HTML in Posts
Reply #2 - Jul 21st, 2006 at 8:59am
Print Post  
Well yes, that is a problem. But if you're worried about that, you should be carefull who you allow to be an admin!

My idea of this mod is...an admin can do anything he/she wants to do in a post, I mostly insert iFrames into posts, which is very usefull.

Having restrictions I don't think would matter too much, unless you've got a "crazy" admin on your board  8)
  
Back to top
WWWAIM  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Admin HTML in Posts
Reply #3 - Jul 21st, 2006 at 9:05am
Print Post  
Hi
maybe a setting for this mod?

Enable HTML in Posts?
- Only Admins
- Admins and Gmods
- Admin, Gmods and Mods
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Admin HTML in Posts
Reply #4 - Jul 24th, 2006 at 12:13am
Print Post  
YeeeSSSSss , thanks for this mod. I have waited since YaBB2 was out for this mod. I second JetLi's suggestion. It would be much more practical to have the option of letting certain membergroups or even individual members the ability to post html.

Thanks so much. Now the only other must have mod left would be the news-feed mod, then I could finally switch over my board.

I'd leave all the html tags in there and agree that anyone who has the proper permission to post html must also be someone you trust.
  
Back to top
 
IP Logged
 
Stephan Reich
New Member
*
Offline


Ich mag Eintracht Frankfurt

Posts: 43
Location: Frankfurt am Main
Joined: Jul 14th, 2006
Gender: Male
Re: Admin HTML in Posts
Reply #5 - Jul 24th, 2006 at 7:45am
Print Post  
Hello,

this is a good idea Smiley.

I don't think, that this mod is a security risk because I would not give  people, who have not my trust, an admin status.

This mod is a great thing, for people (like me Wink) who will make it simply. I can make for example a  nice table with Frontpage Express, save the file and open it with text editor and copy the text between body and /body to my post Smiley.

Suggestion: It would be good, when you can see your input in the live preview Wink.

Thank you for this mod Smiley

Bis dann...

Stephan
  

Erbarme Shocked. Zu spät, die Hesse komme Grin!
My YaBB-Version: YaBB 2.1 (10 - 22 h)
Back to top
WWWAIM  
IP Logged
 
Karman888
New Member
*
Offline



Posts: 18
Joined: Jul 24th, 2006
Gender: Male
Re: Admin HTML in Posts
Reply #6 - Jul 24th, 2006 at 9:43pm
Print Post  
Please pardon My ignorance on this...

I'm a little confused on how to use this. I have the mod installed but am unsure how to generate html code between the [html] [/html]. I have tried so many variations.

Again pardon My ignorance.
  
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Admin HTML in Posts
Reply #7 - Jul 25th, 2006 at 11:59am
Print Post  
I havent installed the mod yet as I am awaiting to hear from JameZ if he will implement the changes mentioned by JetLi but if it works at all like a similar mod for yabb1.3 you just have to copy html code right in your post then select a checkbox indicating that it is html code that you are posting so that the board can interpret it as such
  
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Admin HTML in Posts
Reply #8 - Jul 27th, 2006 at 1:26am
Print Post  
well Installed it but it isn't parcing the html code as I would have expected.

I run a online racing forum and we post the race results generated by the game server after each race. I have included some sample html code of a simple table that presently works on a Yabb1.4 board and the enable_html_v14a.zip mod from Michael Prager. For some reason this present mod doesn't seem to like the following code.

Many thanks to JameZ for getting this mod off the ground and getting the ball rolling.

Code
Select All
<TABLE border="2"
	style="background : #173D54"
	cellpadding="3"
	cellspacing="2"
	summary="">
<TR	style="color : black">
<TD style="background : #CEDAEB">
	P
</TD>
<TD style="background : #CEDAEB">
	#
</TD>
<TD style="background : #CEDAEB">
	DRIVER
</TD>
<TD style="background : #CEDAEB">
	TIME
</TD>
</TR>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	1
</TD>
<TD style="background : #CEDAEB">
	020
</TD>
<TD style="background : #CEDAEB">
	D Godin
</TD>
<TD style="background : #CEDAEB">
	166.834 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	2
</TD>
<TD style="background : #CEDAEB">
	26
</TD>
<TD style="background : #CEDAEB">
	A Suley
</TD>
<TD style="background : #CEDAEB">
	166.473 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	3
</TD>
<TD style="background : #CEDAEB">
	99
</TD>
<TD style="background : #CEDAEB">
	P Paulin
</TD>
<TD style="background : #CEDAEB">
	166.027 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	4
</TD>
<TD style="background : #CEDAEB">
	92
</TD>
<TD style="background : #CEDAEB">
	J Stewart
</TD>
<TD style="background : #CEDAEB">
	165.676 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	5
</TD>
<TD style="background : #CEDAEB">
	17
</TD>
<TD style="background : #CEDAEB">
	J MacLeod
</TD>
<TD style="background : #CEDAEB">
	165.651 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	6
</TD>
<TD style="background : #CEDAEB">
	8
</TD>
<TD style="background : #CEDAEB">
	P Seymour
</TD>
<TD style="background : #CEDAEB">
	165.457 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	7
</TD>
<TD style="background : #CEDAEB">
	38
</TD>
<TD style="background : #CEDAEB">
	G Logan
</TD>
<TD style="background : #CEDAEB">
	165.350 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	8
</TD>
<TD style="background : #CEDAEB">
	12
</TD>
<TD style="background : #CEDAEB">
	R Rans
</TD>
<TD style="background : #CEDAEB">
	164.959 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	9
</TD>
<TD style="background : #CEDAEB">
	5
</TD>
<TD style="background : #CEDAEB">
	J Meade
</TD>
<TD style="background : #CEDAEB">
	164.832 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	10
</TD>
<TD style="background : #CEDAEB">
	6
</TD>
<TD style="background : #CEDAEB">
	V MacDonald
</TD>
<TD style="background : #CEDAEB">
	164.748 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	11
</TD>
<TD style="background : #CEDAEB">
	19
</TD>
<TD style="background : #CEDAEB">
	D Searle
</TD>
<TD style="background : #CEDAEB">
	164.501 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	12
</TD>
<TD style="background : #CEDAEB">
	48
</TD>
<TD style="background : #CEDAEB">
	D Hayes
</TD>
<TD style="background : #CEDAEB">
	164.465 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	13
</TD>
<TD style="background : #CEDAEB">
	1
</TD>
<TD style="background : #CEDAEB">
	M McCullough
</TD>
<TD style="background : #CEDAEB">
	164.345 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	14
</TD>
<TD style="background : #CEDAEB">
	2
</TD>
<TD style="background : #CEDAEB">
	R Colford
</TD>
<TD style="background : #CEDAEB">
	164.096 mph
</TD>
<TR	style="color : black">
<TD style="background : #CEDAEB">
	15
</TD>
<TD style="background : #CEDAEB">
	57
</TD>
<TD style="background : #CEDAEB">
	J Nowlan
</TD>
<TD style="background : #CEDAEB">
	163.521 mph
</TD>
</TABLE>
 


  
Back to top
 
IP Logged
 
James Andrews
Junior Member
**
Offline



Posts: 62
Location: Ipswich
Joined: Jan 7th, 2006
Gender: Male
Re: Admin HTML in Posts
Reply #9 - Jul 27th, 2006 at 3:02pm
Print Post  
There is no error in the mod. There is an error in your html.

Code
Select All
<TD style="background : #CEDAEB">
	163.521 mph
</TD>
</TABLE>
 



You forgot to end the row with a </TR>. Put that in the end and it will work.
  
Back to top
WWWAIM  
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Admin HTML in Posts
Reply #10 - Jul 27th, 2006 at 4:18pm
Print Post  
thanks JameZ for the response, I tried adding a </tr> but it did nothing. Please note that the code I posted is a sample of the code produced by our race server and works as it is posted in any browser, also works on my old Yabb 1.4 board using Michael's allow_html mod, but when I try it on my YaBB2.1 board using this mod, it doesn't parse correctly for some reason. I tried removing the gaurdian protection in case it was blocking me for some reason but other than that I cannot figure what is wrong. When I post this code I usually only copy the code between the <body></body> tags.

I would greatly appreciate any ideas you might have to get it to work. I have attached the complete html code of a past race we ran in hopes that we can find a solution.
  

sample_html.zip ( 1 KB | Downloads )
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 #11 - Jul 29th, 2006 at 11:08am
Print Post  
Hi,

I have try a simple table to provide. With the first attempt the whole post office window was black and no table was to be seen. With the second attempt (over answer provide) the entire window was shifted. Which is wrong ?

Greetz ThM

Edited:
Hi, I have removed the link to the mistake representation, because I think that I have done a mistake in the HTML code by the table production.
« Last Edit: Jul 31st, 2006 at 3:13pm by ThM »  

Greeting ThM
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Admin HTML in Posts
Reply #12 - Aug 7th, 2006 at 2:35am
Print Post  
please can someone try the code I attached in post #10 , It's code the my race server automatically generates after we race online. The game is called Nascar Seasons 2003. Best online racing sim game ever made. I really need this mod to display this correctly or I will be forced to keep using YaBB1
  
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 #13 - Aug 7th, 2006 at 10:53am
Print Post  
Hi,

it is to be translated a little bit hard for me this.
But I believe, you would like to integrate yours html code in a contribution.

I have differently tried it once. I have inserted your complete code with the CustomPage Mod in my forum.

Once the code directly and once the file with an Iframe. Everything was correctly indicated. Possibly this helps you if it does not function in the other kind.

You can see the result with Iframe here:
http://www.toptools4you.de/cgi-bin/yabb2/YaBB.pl?custompage=test
  

Greeting ThM
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: Admin HTML in Posts
Reply #14 - Aug 8th, 2006 at 2:35pm
Print Post  
So if I read correctly you posted my code and it displays correctly both directly as is and in an iframe?

by the way your link doesn't work. The page is unreachable. I'd really like to see it.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 4
Send TopicPrint