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

Reply
 
Thread Tools Display Modes
  #11  
Old 04-18-2013, 09:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't want to hide the code in the archive? Those pages have THIS_SCRIPT defined as 'archive' so just add that into the condition.

As for the videos.... those don't show in the archives and I would guess you would need to go actually edit the code manually to make them show.
Reply With Quote
  #12  
Old 04-19-2013, 08:08 AM
Adem GEN?'s Avatar
Adem GEN? Adem GEN? is offline
 
Join Date: Apr 2005
Location: İstanbul / T?rkiye
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You don't want to hide the code in the archive?
I want to hide.
I hid URL Links into Archive. That's OK.
I want to hide [php],[html],[code],[quote] into Archive.

Quote:
Originally Posted by Lynne View Post
Those pages have THIS_SCRIPT defined as 'archive' so just add that into the condition.
Can you give an example? I'm beginner.


Quote:
Originally Posted by Lynne View Post
As for the videos.... those don't show in the archives and I would guess you would need to go actually edit the code manually to make them show.
Not the archive
Okay video. I Changed $tag_list['no_option']['video'] => $tag_list['video']['php'] now ok

Thanks
Reply With Quote
  #13  
Old 04-19-2013, 02:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if (!($vbulletin->userinfo['userid'] > 0) AND THIS_SCRIPT != 'archive')

(I'm still not sure what exact condition you wanted there so you will need to do the logic yourself.)
Reply With Quote
  #14  
Old 04-19-2013, 04:15 PM
Adem GEN?'s Avatar
Adem GEN? Adem GEN? is offline
 
Join Date: Apr 2005
Location: İstanbul / T?rkiye
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Section the normal message
http://awesomescreenshot.com/09216n9j50

Archive Section (The problem here)
http://awesomescreenshot.com/0d016nak95

For Archive [url],[video],[img]
archive_thread_post
PHP Code:
if ($vbulletin->options['adem_bbkodugizleme_etkin'])
{
if (!(
$vbulletin->userinfo['userid'] > 0))
    {
$post['pagetext'] = eregi_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)'$vbphrase[adem_arsiv_url_mesaji], $post['pagetext_simp']);

$post['pagetext_simp'] = strip_bbcode($post['pagetext']);
$post['postdate'] = vbdate($vbulletin->options['dateformat'], $post['dateline']);
$post['posttime'] = vbdate($vbulletin->options['timeformat'], $post['dateline']);
    }

I want to hide [php],[html],[code],[quote],[email] into Archive.

Can you help?

Thanks
Reply With Quote
  #15  
Old 04-19-2013, 04:33 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not really sure... but it uses the function strip_bbcode which is in the fuctions.php file. You could try using the hook strip_bbcode and set $fast_and_dirty to true? I'm not sure what that will do, but take a look at the function and you can probably do what you want.
Reply With Quote
  #16  
Old 04-19-2013, 05:39 PM
Adem GEN?'s Avatar
Adem GEN? Adem GEN? is offline
 
Join Date: Apr 2005
Location: İstanbul / T?rkiye
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry, I am taking your time so much.

I want to write a plugin.
Task of plugin is hiding [php],[html],[code],[VIDEO],[quote],[IMG],[url],[email] tags from guests.

I can hide in the forum with the sample code you gave me That's ok, no problem.
hook location - bbcode_fetch_tags
PHP Code:
if (!($vbulletin->userinfo['userid'] > 0)) {

$tag_list['no_option']['php'] = array(
                
'html'          => 'No viewing allowed'
            
);

The screen is here:http://awesomescreenshot.com/09216n9j50
Thank you



But I can not hide [php],[html],[code],[VIDEO],[quote],[IMG],[url],[email] tags in archive. I need to help here, Could you help me, please? Can you give an example? I'm beginner.

Regards
Reply With Quote
  #17  
Old 04-19-2013, 10:33 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ummmmm, hook location strip_bbcode:
PHP Code:
$fast_and_dirty true
I'm honestly not sure if that will do exactly what you want but it's worth trying. Did you go find the function in the file that I mentioned? Take a look at it and how it defines the parameters, like these defaults:

$stripquotes = false
$fast_and_dirty = false
$showlinks = true
$stripimg = false
$keepquotetags = false

So, try setting those to what you want and see what happens.
Reply With Quote
  #18  
Old 04-20-2013, 06:00 AM
Adem GEN?'s Avatar
Adem GEN? Adem GEN? is offline
 
Join Date: Apr 2005
Location: İstanbul / T?rkiye
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your help but I could not


http://awesomescreenshot.com/08816pf234
Reply With Quote
  #19  
Old 04-20-2013, 03:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry, but if those don't work, then you will need to actually look at the function I pointed you to and try some things out yourself. There are already mods to do all this stuff and I don't have time to go and see how they did them, so you should go do that.
Reply With Quote
  #20  
Old 04-21-2013, 06:09 PM
Adem GEN?'s Avatar
Adem GEN? Adem GEN? is offline
 
Join Date: Apr 2005
Location: İstanbul / T?rkiye
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much for your help again

I couldn't find plugin for 4.x.x version. (hiding the bb code from guests.)

Can you allow me to ask other persons by opening a new topic?

Best Regards
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 05:11 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.10438 seconds
  • Memory Usage 2,266KB
  • Queries Executed 11 (?)
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_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
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete