vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Help: Strip formatting from {vb:raw criteriaDisplay} (https://vborg.vbsupport.ru/showthread.php?t=277531)

kh99 03-22-2013 12:04 AM

Quote:

Originally Posted by tbworld (Post 2411490)
In my journeys, I noticed that plugin 'search_complete' appears in 'resultsview.php' and 'search.php'. I see why this might be needed, but it also seems as it could cause problems if the user doesn't know. Am I missing something in this assumption?

That was quite a while ago, so I can't remember exactly what I was thinking at the time, but I believe the check for get_class($this) == 'vb_Search_Resultsview' was meant to make sure that the other line is only executed when the resultsview.php hook is called. In fact, looking at it now, I'm not sure why it works because the search.php hook is not in any class, so there would be no $this. Maybe it works because it would just be a null value? Or maybe you're asking because it doesn't work...

tbworld 03-22-2013 01:01 AM

Quote:

Originally Posted by kh99 (Post 2411494)
I'm not sure why it works because the search.php hook is not in any class, so there would be no $this. Maybe it works because it would just be a null value? Or maybe you're asking because it doesn't work...

Actually, I never understood it. I just added another hook in the code as to not mess any future execution of code that might call it. I found it interesting that one was part of a class and the other is not. I will have to revisit that code with your thoughts in mind. I guess I figured that it was accidentally given a similar name.

If I do not leave myself some major comments in my code I cannot remember what I did after a week! Thanks so much for your relply :)

kh99 03-22-2013 01:23 AM

Oh, I see, you were asking about the hooks and not this code specifically. I didn't think of that, maybe it is a mistake. I don't have the code in front of me right now so I can't look to see if there's anything in common between the two locations that would make it make sense. I know there are some other hooks that are called in more than one place on purpose, so it's possible that it's not a mistake, but you're right, it could be confusing.

izzet 03-29-2013 03:26 AM

hi http://www.yazsana.net/tag/kabak-tarifleri/ meta desc. or keyword not found :s help me problem pls.

Talk Hard 08-07-2016 10:28 PM

I fugured another way since this only worked for search and my tags pages only get indexed.

I used the replacement tool .
I added in </u></b> replaced with nothing
I added in <u><b> """"""

Nothing broke yet:
http://www.scam.com/tags.php?tag=deals


All times are GMT. The time now is 08:27 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.01841 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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