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)
-   -   Canned Text (https://vborg.vbsupport.ru/showthread.php?t=50513)

filburt1 03-19-2003 10:00 PM

Canned Text
 
This hack allows members to reply to messages with "canned text" (prewritten messages). This is useful for moderators and helpful members who find that they are constantly answering the same question over and over again.

filburt1 03-20-2003 02:34 PM

Screenshots:

Rose 03-20-2003 02:37 PM

:D Very nice, Filburt!

[high]* Rose installs immediately[/high]

Kars10 03-20-2003 02:37 PM

Very cool Hack!!
Install this right now... :)

Thanks Filburt1

Overgrow 03-20-2003 02:37 PM

Hey I requested this a few months ago cuz I was too lazy to do it :D Nice! I'll check the shots... I hope this works in PM!

filburt1 03-20-2003 02:38 PM

It can be adapted to work anywere, just get the data from the cannedtext table.

Overgrow 03-20-2003 02:39 PM

>>Don't ever PM me with vB questions. Ever.

If your hack worked in PMs you could just use a canned response :)

filburt1 03-20-2003 02:41 PM

I just ignore vB PMs.

Xenon 03-20-2003 02:44 PM

hmm, how did you become mod then? :D

as said in general hacking..
nice hack :)

N9ne 03-20-2003 03:01 PM

This is a very nice hack filby, thanks :).

Dan 03-20-2003 03:11 PM

Wow Filbie has turned hacker

-will install this when he gets home-

Dean C 03-20-2003 03:21 PM

Cool hack filburt. Can we add an admin option to use it only for certain usegroups?

Where you seperate the usergroups with a comma?

Thanks ;)

- miSt

Schorsch 03-20-2003 03:21 PM

Thanks filburt!

One question, how can I make this only available for admins and mods ?

filburt1 03-20-2003 03:30 PM

It can if you write it yourself :p

pattox 03-20-2003 03:31 PM

Wow, thanks Filburt I apreciate you responding to my request so quickly!

Overgrow 03-20-2003 03:52 PM

>>It can if you write it yourself

LOL a hacker after my own heart.

Kars10 03-20-2003 03:55 PM

Quote:

Today at 18:21 Schorsch said this in Post #13
Thanks filburt!

One question, how can I make this only available for admins and mods ?

Hab ich bei mir auch gemacht. ?ber den Logician Template Conditions Hack. :)

I love this hack!! Great work Filburt! ;)

N9ne 03-20-2003 04:00 PM

Quote:

Today at 05:55 PM Kars10 said this in Post #17


Hab ich bei mir auch gemacht. ?ber den Logician Template Conditions Hack. :)

I love this hack!! Great work Filburt! ;)


Oh oh, German practise:

"I have done this myself using Logician's conditional templates hack"

Something like that eh?

Xenon 03-20-2003 04:03 PM

exactly :)

Kars10, kannst doch jetzt nicht einfach hier mit deutsch anfangen :D

Kars10 03-20-2003 04:36 PM

@ Ni9ne, very Good!! Exactly that!! ;)
@ Xenon, sorry die Gewohnheit ... :(

N9ne 03-20-2003 05:09 PM

Quote:

Today at 06:03 PM Xenon said this in Post #19
exactly :)

Kars10, kannst doch jetzt nicht einfach hier mit deutsch anfangen :D


And you said something about not talking in German everytime in threads, "Kars10, can you not in every thread discuss in German" lol, I worded that badly, but it was a word to word translation.

Anyway, I'm taking this too off topic...so um I'll stop now :)

N!ck 03-20-2003 05:24 PM

Great idea!

Boofo 03-20-2003 06:12 PM

Good one, Turtle Guy. ;) Thanks!

Intex 03-20-2003 07:29 PM

Very cool hack m8 :cool:.

Kars10 03-20-2003 07:41 PM

@ Filburt, how can we integrate this to Firefly?s Quickreplybox?? :confused:

Kars

ULTIMATESSJ 03-20-2003 08:23 PM

i've been looking for something like this for my forums, it's very useful for mods and admins who have to deal with the same spammers and problems

Boofo 03-20-2003 08:55 PM

For anyone interested in having this show only to Admins and SuperMods (and Mods, if desired), use Logician's Dynamic Templates hack (and if you're not, [high]shame on you![/high]) and just do a conditional in the usercpnav template for the link in the navbar and the $jscannedbits in the newreply template. ;)

Chris Gwynne 03-20-2003 09:03 PM

I was going to suggest that to Mist, Boofo :p

This is the way I'm doing it and it works well. :p

Boofo 03-20-2003 09:06 PM

The only drawback is that they can still run the cannedtext.php file from the url bar and save text that way. ;)

Rose 03-20-2003 09:23 PM

Isn't there a way to prevent certain usergroups from viewing certain php files?

filburt1 03-20-2003 10:02 PM

Well by editing the PHP file yes:
PHP Code:

if (!in_array($bbuserinfo['usergroupid'], array([i]list of bad usergroupids[/i])))
{
...



Link14716 03-20-2003 10:42 PM

Or...
PHP Code:

if (in_array($bbuserinfo['usergroupid'], array([i]list of bad usergroupids[/i]))) {
exit;


Nice hack. :)

[high]* Link14716 (c)licks install. :)[/high]

Chris Gwynne 03-20-2003 11:14 PM

Well, only YOU know about cannedtext.php in the first place. So, I don't think it's a problem. :)

Boofo 03-20-2003 11:16 PM

So, if we replace both instances of this:

PHP Code:

if ($bbuserinfo['userid'] == or $ctmax == 0show_nopermission(); 

with this:

PHP Code:

if (!in_array($bbuserinfo['usergroupid'], array(567)) or $ctmax == 0) {
show_nopermission();


in the cannedtext.php file, then we should be all set? ;)

filburt1 03-20-2003 11:26 PM

Yup, looks right.

Schorsch 03-21-2003 12:28 AM

Quote:

Yesterday at 06:30 PM filburt1 said this in Post #14
It can if you write it yourself :p
yeah man i'm not a hacker! great support here :(

filburt1 03-21-2003 12:33 AM

As the title clearly states:
Quote:

The hacker cannot guarantee to provide support for this hack.
So I don't think the one star rating was really necessary, now was it? I'm a busy man, I can't customize every hack I write for every user who asks.

Schorsch 03-21-2003 12:35 AM

1 star ? I gave u 5!

!!BUSH SUCKS!!

filburt1 03-21-2003 12:36 AM

Well somebody did, circumstances just seemed to point to you.

That Bush thing was sure out of nowhere...

Boofo 03-21-2003 12:50 AM

He's busy working on his math. ;)


All times are GMT. The time now is 10:35 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.01628 seconds
  • Memory Usage 1,790KB
  • 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
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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