Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 06-20-2002, 02:45 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I applied the code to my board and it works here.
Attached Images
File Type: gif htmltag.gif (7.0 KB, 0 views)
Reply With Quote
  #22  
Old 06-20-2002, 03:00 PM
Broekie's Avatar
Broekie Broekie is offline
 
Join Date: Dec 2001
Location: Netherlands
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jup, I've posted it with a user in usergroup 6
Could it be the version of vbb I'm using? (2.2.5)

I'll try it at my 2.2.6 testboard right now, that board has alsmost no hackes installed...

[edit]
Damned, I can't reach the new server (the one with vbb 2.2.6 installed)
I'll de-install all the installed hacks at my 2.2.5 testboard one-by-one to find out which one it is that's influencing this hack.
Thanks for testing it at your board, I now know that it should work (not that I doubted you ofcourse )
[/edit]
Reply With Quote
  #23  
Old 06-20-2002, 03:22 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are applying the code to admin/functions.php and you are REPLACING the existing code right? Also bbcode is ON in the forum you post?

Can you send the portion of admin/functions.php begining 10 lines above the hack and ending 10 lines after the hack. Let me check it.
Reply With Quote
  #24  
Old 06-20-2002, 03:29 PM
Broekie's Avatar
Broekie Broekie is offline
 
Join Date: Dec 2001
Location: Netherlands
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician
You are applying the code to admin/functions.php and you are REPLACING the existing code right? Also bbcode is ON in the forum you post?

Can you send the portion of admin/functions.php begining 10 lines above the hack and ending 10 lines after the hack. Let me check it.
Here you go:
Attached Files
File Type: txt functions.txt (1.5 KB, 8 views)
Reply With Quote
  #25  
Old 06-20-2002, 03:46 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok you applied correctly.. that's strange, it works fine here..

If you are sure message poster (not reader!) is from usergroup 6 and bbcode is enabled in the forum you post, I'm clueless.
Reply With Quote
  #26  
Old 06-20-2002, 03:56 PM
Broekie's Avatar
Broekie Broekie is offline
 
Join Date: Dec 2001
Location: Netherlands
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm very sure about those things

But I won't give up, I'll even stay up all night to make it work
I just can't stand that it works for you but not for me

And again, thanks very much for your support!
Reply With Quote
  #27  
Old 06-20-2002, 05:23 PM
Broekie's Avatar
Broekie Broekie is offline
 
Join Date: Dec 2001
Location: Netherlands
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician, I've got some strange news. It also doesn't work at a totaly unhacked vbb2.2.1

The only thing I can think of is that it works for you due to a other hack you've installed...

Otherwise, I'm also totaly clueless...
Reply With Quote
  #28  
Old 06-20-2002, 05:40 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lets make some debugging:

Apply this code instead of the other (to a test board!):

PHP Code:
if ($post[usergroupid]==OR $post[usergroupid]==5) {
echo 
"usergroupid is 6 or 5<br>";
 if (
preg_match("/(\[)(html)(])(\r\n)*([^"]*)(\[\/html\])/siU"$post[pagetext], $matches1))
    {
echo 
"HTML tag matched!<br>";
     
$temp_value='-@log?c?an@-';
     
$parsed_html=bbcodeparse2($matches1[5],1,1,1,1);
echo 
"this is parsed_html=".$parsed_html."<br>";
     
$post[pagetext]=preg_replace("/(\[)(html)(])(\r\n)*([^"]*)(\[\/html\])/siU""$temp_value"$post[pagetext]);
    }
}  
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
echo 
"bbcodeparse runs..<br>";

if ((
$post[usergroupid]==OR $post[usergroupid]==5) and isset($parsed_html)) 
{
echo 
"rewriting parsed HTML";
$post[message]=str_replace($temp_value$parsed_html$post[message]); } 
Now after you applied the code, create a new thread in any forum with Site Admin account and post a test message with html tag. After it's posted, showthread.php will run and it will display the message you posted. Check the begining of this page. You should see some debugging text there. Tell me what they are..
Reply With Quote
  #29  
Old 06-20-2002, 05:47 PM
Broekie's Avatar
Broekie Broekie is offline
 
Join Date: Dec 2001
Location: Netherlands
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
usergroupid is 6 or 5

Warning: Unknown modifier 'h' in /home/www/testforum/admin/functions.php on line 273
bbcodeparse runs..
line 273 is this line:
PHP Code:
 if (preg_match("/([)(html)(])(\r\n)*([^"]*)([/html])/siU"$post[pagetext], $matches1)) 
Reply With Quote
  #30  
Old 06-20-2002, 05:50 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok problem is in the code.. I'll correct it, brb.. (how come it worked here, really weird!)
Reply With Quote
Reply


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 04:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04720 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
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)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
  • (2)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete