vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Say my name SCREAM my name hack (https://vborg.vbsupport.ru/showthread.php?t=39474)

zajako 06-04-2002 10:00 PM

Say my name SCREAM my name hack
 
A very simple hack.

This hack displays the total amount of times your name has been said in a post(say) and how many times you name has been said in a title(scream). It is very simple yet a nice conforting feeling for some people to see that there name is said often :}

zajako 06-05-2002 11:52 AM

here is a screen shot of it.

Admin 06-05-2002 11:53 AM

I wouldn't install this on a large forum, as it scans the whole post table every time. Nice idea, though.

Sparkz 06-05-2002 12:16 PM

I guess using the word and searchindex tables to determine what posts the username is mentioned in, and then go from there to actually scanning the posts.

I haven't looked at the actual hack yet, so I don't know if you already to it like this, but Firefly's post suggests that you don't...

zajako 06-05-2002 12:20 PM

it is a db serach very very similar to that of the how many threads while you were away as well as posts. Almost the same so if you had a problem with that then there will be a problem wiht this. If you had no problem with that one this should be fine :}

Sparkz 06-05-2002 12:28 PM

Well, those queries don't actually scan the contents of the posts, they just check dates.

And your code doesn't actually count how many times a name was said, but in how many posts/titles it was said...

Chris M 06-05-2002 12:36 PM

Lol...

I like it!

*Installs*

Satan

Sparkz 06-05-2002 12:52 PM

Just keep an eye on your serverload if you have a bit of traffic :)

zajako 06-05-2002 12:54 PM

ahh, you are correct sparkz, but it is close enough....maybe a 2.0 release might do a better job, but for now this works :}

filburt1 06-05-2002 01:01 PM

A lot of people call me filburt, furby, Arien (my real name), etc...it would be cool if we could define what name to search for ;)

Chris M 06-05-2002 01:07 PM

Yeh...

Have sort of like a Multiple search string...

Satan

Sparkz 06-05-2002 01:09 PM

If you want to count the words, and don't want to search all posts, here's a start for ya:
SELECT word.title, searchindex.postid FROM word INNER JOIN searchindex ON word.wordid = searchindex.wordid WHERE word.title like '%something%'

This one will return all the post id's where the search term is found.

SaintDog 06-05-2002 11:20 PM

Not a bad hack, not something I would personally use myself, but a good hack nonetheless.

Good job!

- SaintDog

Spleasure 06-12-2002 06:31 PM

SELECT DISTINCT t.title FROM thread t, post p,searchindex s, word w WHERE s.wordid=w.wordid AND w.title='YOURNAME' AND p.postid=s.postid AND t.threadid=p.threadid

alle the titles of the threads with the word YOURNAME in it. Simply count them ...

(2.2.6)

proxyMX 07-28-2002 01:15 AM

Zajako, i dig your hacks but i diss your avatar ::P
i would install this hack as its a great idea, however i dont want to drain my badnwith or lag my forums up :P I definately think this is collio though, If there was a magically way to preserve bandwith i definately would

GaleForce 11-06-2002 03:36 AM

This is cool, and I installed it, however I get a DB error if someone has a ' in their name.

Vivi Ornitier 11-14-2002 10:15 PM

is there anyway to point out where the name said and named screamed occured? like which forum and such


All times are GMT. The time now is 04:47 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.01036 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete