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



Posts: 18
Joined: Jul 24th, 2006
Gender: Male
Re: Admin HTML in Posts
Reply #30 - Aug 12th, 2006 at 12:47am
Print Post  
Ok, I apologize.

It does work very nicely and thank you kindly for this mod.

The issue is it not displaying on 'post preview'.
But is does show correctly after you've acually posted.

Thanks again.
  
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 #31 - Aug 12th, 2006 at 8:48am
Print Post  
Hi aerow90,

aerow90 wrote on Aug 11th, 2006 at 6:18pm:
hi, now i installed the newsest version of the mod , and i have the same problem it does not works Sad


I had with your code the same problem  and I has tested, tested, tested.... Take over please the code standing here 1 to 1. Then it might go.

Quote:
[html]
<center>
<a href=http://www.muenztreffwieda.de/topo/data/1155284867.2343.php target="_blank">
<img src=http://www.muenztreffwieda.de/images/banner/top100.jpg border="0" alt="http://www.muenztreffwieda.de/topo/">
</a>
</center>
[/html]


The Mod obvious-partially does not co-operate with quotation mark (these Sign "").
  

Greeting ThM
Back to top
 
IP Logged
 
aerow90
Senior Member
****
Offline



Posts: 253
Joined: Mar 18th, 2006
Re: Admin HTML in Posts
Reply #32 - Aug 12th, 2006 at 9:25am
Print Post  
Now its perfect thank you very much  Cheesy
  
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 #33 - Aug 12th, 2006 at 11:42am
Print Post  
funny I took is code exactly as he posted it and it worked for me. Oh well at least it works for him now.
  
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 #34 - Aug 13th, 2006 at 12:01pm
Print Post  
Remeber you can't use <br /> (new line for html) anymore because that was causing the problem.

When you entered in a table, it would get to the end of every line and put in a <br />. So you would get something like this:

Code
Select All
<table><br />
<tr><td><br />
</td><br />
</tr><br />
</table></br />
 



So I figured the easiest way to overcome this was to remove every <br /> inside the html snippet. If you want to make a new line then use the paragraph <p> and </p>.

Enjoy, this mod is so helpfull  Wink
  
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 #35 - Aug 28th, 2006 at 12:55am
Print Post  
Sorry for the trouble but could it be possible to have a mod setting in the admin center to allow global moderators access to this? I really need this. Smiley
  
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 #36 - Aug 31st, 2006 at 2:59pm
Print Post  
How do I change this code so both administrator and Global Mods can use html instead of just the administrator?

Code
Select All
### ADMIN HTML ###

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

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

		}

		### ADMIN HTML END ###
 


  
Back to top
 
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 #37 - Aug 31st, 2006 at 3:06pm
Print Post  
Hi
i dont if this right. try it. Make backup

### ADMIN HTML ###

           if ($iamgmod && (${$uid.$user}{'position'} eq "Administrator" || ${$uid.$user}{'position'} eq "Administrator")) {

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

           }

           ### ADMIN HTML END ###
« Last Edit: Aug 31st, 2006 at 4:35pm by Jeff »  

greetings
Jeff
Back to top
WWW  
IP Logged
 
MF-B
Senior Member
****
Offline



Posts: 410
Location: Moscow
Joined: Apr 11th, 2006
Gender: Male
Re: Admin HTML in Posts
Reply #38 - Aug 31st, 2006 at 4:24pm
Print Post  
No...

Need change this
Code
Select All
if(${$uid.$musername}{'position'} eq "Administrator") {
 



to this

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



  
Back to top
WWW  
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 #39 - Aug 31st, 2006 at 4:35pm
Print Post  
aha ok. thnx MF-B.  Wink
  

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 #40 - Aug 31st, 2006 at 8:36pm
Print Post  
Thanks that works great
  
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 #41 - Sep 2nd, 2006 at 10:33am
Print Post  
Just out of curiosity. Any idea why when html code is posted in a thread it takes almost 10 sec to open and display the thread? When there is no html code the thread opens up almost instantly. This wasn't an issue in YaBB1.X
  
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 #42 - Sep 7th, 2006 at 5:35pm
Print Post  
I have no idea why that is happening, and I am not finding this issue. If you have a link then I'd be happy to take a look....
  
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 #43 - Sep 7th, 2006 at 7:55pm
Print Post  
ok its not as bad if the html page is small , the pages I tried to post had about 80,000 caracters. I guess it takes some time to process it all.
  
Back to top
 
IP Logged
 
joewp
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 3
Joined: Mar 4th, 2006
Re: Admin HTML in Posts
Reply #44 - Oct 16th, 2006 at 8:56pm
Print Post  
I installed this on my test board on my home netork, and I can get Google video to play, which uses the <imbed> tag, but YouTube video won't play, using the <object> tag. It just prints the url and nothing else.

Any ideas?

Here's the Google Video code
Code
Select All
[html]<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=2466534388405290581&hl=en"> </embed>[/html] 


and the Youtube code
Code
Select All
[html]
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/4cTskwGOSms"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/4cTskwGOSms" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>[/html] 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 
Send TopicPrint