Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #11  
Old 06-14-2002, 09:28 PM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a hack in which will enable HTML for specific usergroup(s), such as Admins, Mods, and Super Mods. Look around the "Released Hacks" forum and you'll see it in there. I currently use it.
Reply With Quote
  #12  
Old 06-14-2002, 09:35 PM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

afterlab, read post #1.
Brokie wrote:
Quote:
When I searched for a hack to give some people the right to post HTML, I found this hack: HTML Always Enabled for Admins+Etc.

But, when I use that hack, some other hacks won't work with the users that are allowed to post html (ex. the /me hack)
You speak about "HTML Always Enabled for Admins+Etc." hack?
Reply With Quote
  #13  
Old 06-14-2002, 10:01 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hellsatan
Lol...
@xiphoid - Force of Habit...Hard to break a near 6 year habit
Generally you leave your signature (ie. Regards, Satan) if the post is in the form of a request, apology, or thank you. Thats how I usually see it. Ofcourse you leave yours in every post you make, so I've been wondering it too. Maybe you could go on some type of program to get treatment of this habit?
j/k
Reply With Quote
  #14  
Old 06-17-2002, 02:27 PM
Broekie's Avatar
Broekie Broekie is offline
 
Join Date: Dec 2001
Location: Netherlands
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hellsatan
Just PM FireFly (Chen), ask him if he will help, and give him a link to this thread...
Did that, but no reply...
But hey, he must be getting lots of requests so it's not that weird he didn't reply
Reply With Quote
  #15  
Old 06-17-2002, 06:57 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeh...

@Velocd...You know...You may be onto something there

Satan
Reply With Quote
  #16  
Old 06-20-2002, 10:20 AM
Broekie's Avatar
Broekie Broekie is offline
 
Join Date: Dec 2001
Location: Netherlands
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay, then I'll make a start myself...

This is the code that (for as far as I know) should be run over the part that's specified by
HTML Code:
 and
, for the users with permission.


PHP Code:
    $bbcode=str_replace("<","<",$bbcode);
    
$bbcode=str_replace(">",">",$bbcode);
    
$bbcode=str_replace("&lt;","<",$bbcode);
    
$bbcode=str_replace("&gt;",">",$bbcode); 
This should reverse the anti-html proces in the function bbcodeparse2 (admin/funcions.php)


Let's say, I want moderators and higher to be able to use this:

PHP Code:
if (!ismoderator($forumid){
    
$bbcode=str_replace("&amp;lt;","&lt;",$bbcode);
    
$bbcode=str_replace("&amp;gt;","&gt;",$bbcode);
    
$bbcode=str_replace("&lt;","<",$bbcode);
    
$bbcode=str_replace("&gt;",">",$bbcode);

Now to make it so that this only happens between the
HTML Code:
 and
tag.
Could anybody please help me on this?
Reply With Quote
  #17  
Old 06-20-2002, 01:13 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now I must say that I really dont understand why you need HTML codes. IMO bbcodes do the trick in most cases.

Anyway I'm sure you have a reason so here you go: Find the code you need attached..

A few points:
* This was a quicky and from the coder point of view I know there are more "elegant" ways to handle it, but this is the code I made it up in a short time.
* Not tested, so give it a try.
* One Restriction applies: you can use ONE html tag PER message only! Or you'll be messed up
* Other than these you should be fine..

Enjoy.
Logician
Attached Files
File Type: txt htmlcode.txt (785 Bytes, 20 views)
Reply With Quote
  #18  
Old 06-20-2002, 01:20 PM
Broekie's Avatar
Broekie Broekie is offline
 
Join Date: Dec 2001
Location: Netherlands
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Only 1 [html] tag per message, that shouldn't be a problem

I'll insert this code into my testboard, and I'll let you know the results

Thanks very much!
Reply With Quote
  #19  
Old 06-20-2002, 01:55 PM
Broekie's Avatar
Broekie Broekie is offline
 
Join Date: Dec 2001
Location: Netherlands
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmz, is doesn't work
I've even de-installed some of the hacks at the testforum, but that didn't do the trick.
No errors or something, the text in the post just comes out like

test
HTML Code:
<marquee>test</marquee>
test
Reply With Quote
  #20  
Old 06-20-2002, 02:28 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

are you posting from a usergroup with usergroupid 5 or 6?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06669 seconds
  • Memory Usage 2,283KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_html
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete