Go Back   vb.org Archive > Community Central > vBulletin.org Site Feedback
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 06-12-2003, 04:52 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 12:49 AM Xenon said this in Post #9
Yeah, i implemented it shortly after i got the ftp details
The idea was by filburt, and i've implemented it in a quite easy way i think.
thanks god there is the iif function

bob, hmm maybe i'll post the modification when i'm back at home
That would be great. Stefan. Thank you.
Reply With Quote
  #12  
Old 06-12-2003, 08:35 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone tell me what it is because i hate logging out ?
Reply With Quote
  #13  
Old 06-12-2003, 09:02 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll have to log out and find out.
Reply With Quote
  #14  
Old 06-12-2003, 09:05 AM
ap0c's Avatar
ap0c ap0c is offline
 
Join Date: Mar 2003
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"You cannot view codes as long as you haven't prooved your license status!" in the code and php boxes.
A creative idea, that's for sure
Reply With Quote
  #15  
Old 06-12-2003, 11:13 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bob here is the little part which is changed from a normal phpbox creation:

PHP Code:
"phphighlite(stripslashes(addslashes('" iif(islicensed(), "\\5"addslashes(gettemplate('unlicensed_viewcode'00))) . "')))"
(see in bbcodeparse2 function where you find phphighlight...)

you can replce the islicensed with any other condition and you can also hardcode the text, i've put it into a template, so if you do the same, you have to add the templatename to global.php template chache
Reply With Quote
  #16  
Old 06-12-2003, 11:31 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[code], too?
Reply With Quote
  #17  
Old 06-12-2003, 12:00 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 07:13 AM Xenon said this in Post #15
Bob here is the little part which is changed from a normal phpbox creation:

PHP Code:
"phphighlite(stripslashes(addslashes('" iif(islicensed(), "\\5"addslashes(gettemplate('unlicensed_viewcode'00))) . "')))"
(see in bbcodeparse2 function where you find phphighlight...)

you can replce the islicensed with any other condition and you can also hardcode the text, i've put it into a template, so if you do the same, you have to add the templatename to global.php template chache
Here's what I have just to test it and the code still shows up instead of the message. I made the template 'unlicensed_viewcode', too. What am I doing worng here?

"phphighlite(stripslashes(addslashes('" . iif($bbuserinfo[usergroupid]==6, "\\5", addslashes(gettemplate('unlicensed_viewcode', 0, 0))) . "')))",
Reply With Quote
  #18  
Old 06-12-2003, 12:36 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@filburt: yes, code, php and sql tags, i just used php as the example

@bob: are you sure you have inserted it into the right phphighlight section? there are two of them iirc.
also this is the php tag change, you won't see a difference in code tags, until you change that, too
Reply With Quote
  #19  
Old 06-12-2003, 12:44 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think so. I replaced:

PHP Code:
        $replacearray = array(
          
"createlists('\\7', '\\5')",
          
"createlists('\\4')",
          
"checkurl('\\5', '\\7')",
          
"checkurl('\\4')",
          
"stripbrsfromcode('\\5')",
          
"phphighlite('\\5')"
with this:

PHP Code:
        $replacearray = array(
          
"createlists('\\7', '\\5')",
          
"createlists('\\4')",
          
"checkurl('\\5', '\\7')",
          
"checkurl('\\4')",
          
"stripbrsfromcode('\\5')",
          
"phphighlite(stripslashes(addslashes('" iif($bbuserinfo[usergroupid]==6"\\5"addslashes(gettemplate('unlicensed_viewcode'00))) . "')))",
//          "phphighlite('\\5')", 
Isn't this right?
Reply With Quote
  #20  
Old 06-12-2003, 01:48 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is $bbuserinfo global in that function?
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 07:42 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.04416 seconds
  • Memory Usage 2,273KB
  • Queries Executed 13 (?)
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
  • (4)bbcode_php
  • (2)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
  • (2)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
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete