vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Change Find about (https://vborg.vbsupport.ru/showthread.php?t=297236)

Lynne 04-18-2013 09:37 PM

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.

Adem GEN? 04-19-2013 08:08 AM

Quote:

Originally Posted by Lynne (Post 2417236)
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 (Post 2417236)
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 (Post 2417236)
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

Lynne 04-19-2013 02:45 PM

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.)

Adem GEN? 04-19-2013 04:15 PM

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

Lynne 04-19-2013 04:33 PM

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.

Adem GEN? 04-19-2013 05:39 PM

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

Lynne 04-19-2013 10:33 PM

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.

Adem GEN? 04-20-2013 06:00 AM

Thank you for your help but I could not


http://awesomescreenshot.com/08816pf234

Lynne 04-20-2013 03:28 PM

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.

Adem GEN? 04-21-2013 06:09 PM

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


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

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.01197 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete