vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Digital Point Spy (https://vborg.vbsupport.ru/showthread.php?t=243429)

NovoCiv 02-14-2011 11:32 PM

But see, I don't want to run that code globally. If I do that the moderators can't communicate with the hide hack because it's always replaced with "Message Hidden".

Is there a way to create a new hook located inside spy.php?

digitalpoint 02-15-2011 12:09 AM

No clue what a hide hack is. But if you need to run some special code only on the spy page for whatever reason, couldn't you just check to see if THIS_SCRIPT == 'spy' and then run it if it is?

OcR Envy 02-17-2011 02:12 PM

Hey digitalpoint,

Any way to update the links to have vbseo parse them? I realize the whole client side / server side just looking for a suggestion.

digitalpoint 02-17-2011 05:43 PM

Not that I know of. Doesn't vbseo redirect automatically to it's special URL?

OcR Envy 02-17-2011 08:18 PM

Sure it does but I don't want it to 301 ;)

Code:

function text2seo(text) {
    text=text.replace(/[^a-z-A-Z-0-9]+/g,'-');
    text=text.toLowerCase();
    return text;
}

Then edit the js file to match your url structure, not easy but works.


Ever think about tracking other events like article, blogs etc.. ?

digitalpoint 02-17-2011 08:43 PM

Quote:

Originally Posted by OcR Envy (Post 2163704)
Sure it does but I don't want it to 301 ;)

Code:

function text2seo(text) {
    text=text.replace(/[^a-z-A-Z-0-9]+/g,'-');
    text=text.toLowerCase();
    return text;
}

Then edit the js file to match your url structure, not easy but works.


Ever think about tracking other events like article, blogs etc.. ?

Truthfully, it doesn't matter a ton if it redirects. The instances that people actually click something from the scrolling spy are pretty rare. And it doesn't muck with search engines because the feed is coming from an AJAX request that is built from JavaScript. And even then the underlying AJAX response is nothing more than numbers (not URLs). So a search engine or any other automated process aren't going to be seeing the content that is withIn the scrolling area.

And yeah... Would like to support additional events, but can't until vBulletin adds hook locations that would support it.

OcR Envy 02-17-2011 11:38 PM

Understandable and agreeable on both, I just like pretty links.

AusPhotography 03-20-2011 05:14 AM

FYI 'Report Post' does not log under vB4.1.2.
I'll have a look at it this week

digitalpoint 03-20-2011 05:57 PM

Reported Post still works fine for me under 4.1.2.

nerowolfe 03-21-2011 01:55 PM

Hi

is perfect for me.

How I can delete the voice in submenu Community>"Spy"?

Thank to all!

EDIT: it's ok now. Ty


All times are GMT. The time now is 06:28 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.01404 seconds
  • Memory Usage 1,736KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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