Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Canned Text Details »»
Canned Text
Version: 1.00, by filburt1 filburt1 is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-19-2003 Last Update: Never Installs: 24
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-21-2003, 01:44 AM
Xscape Xscape is offline
 
Join Date: Feb 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm... I like the idea... And I installed...

But I don't get why I see nothing in under
"Edit Canned Text"
Reply With Quote
  #43  
Old 03-21-2003, 01:47 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the textboxes are empty it's because you haven't defined any custom text yet.
Reply With Quote
  #44  
Old 03-21-2003, 01:49 AM
Xscape Xscape is offline
 
Join Date: Feb 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, there's just nothing there. The table ends after "Edit Canned Text".
Reply With Quote
  #45  
Old 03-21-2003, 01:50 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then you didn't install the hack correctly, or you're not using my normal requirements of PHP 4.3.0 and vB 2.3.0 RC3.
Reply With Quote
  #46  
Old 03-21-2003, 04:44 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To have the usercp navbar appear at the top of the page in your cannedtext page:

NOTE: You may want to edit the first part here. I have 9 items in my navbar. You may have less or more.

Add this:

PHP Code:
  $cpnav[1]="#1C5780";
  
$cpnav[2]="#1C5780";
  
$cpnav[3]="#1C5780";
  
$cpnav[4]="#1C5780";
  
$cpnav[5]="#1C5780";
  
$cpnav[6]="#1C5780";
  
$cpnav[7]="#1C5780";
  
$cpnav[8]="#1C5780";
    
$cpmenu[9]="class=\"fjsel\" selected";
  
$cpnav[9]="#13486D"
Above this:

PHP Code:
  eval("\$cpnav = \"".gettemplate("usercpnav")."\";"); 
And put:

Quote:
<br>
$cpnav
<br>
In the cannedtext template right BELOW this:

Quote:
<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td width="100%"><normalfont>
<b><img src="https://vborg.vbsupport.ru/images/vb_bullet.gif" align="middle" alt="$bbtitle - powered by vBulletin version $templateversion">
<a href="index.php?s=$session[sessionhash]">$bbtitle</a>
&gt; Edit Canned Text</normalfont></td>
</tr>
</table>
You will have to ajust the colors accordingly since vb.org parses them out here. But you should all get the idea.
Reply With Quote
  #47  
Old 03-21-2003, 12:09 PM
pattox pattox is offline
 
Join Date: Jan 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont seem to have permission to access cannedtext.php, I am admin...
Reply With Quote
  #48  
Old 03-21-2003, 12:13 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With my original cannedtext.php? It will load if your userid is not 0 (i.e., you're not a guest). Make sure you're logged in.
Reply With Quote
  #49  
Old 03-21-2003, 12:19 PM
pattox pattox is offline
 
Join Date: Jan 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You do not have permission to access this page. This could be due to one of several reasons:
You do not have permission to access the page that you were trying to. Are you trying to edit someone else's post or trying to access administrative features? Check that you are allowed to perform this action in the Forum Rules.
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logged in user: Owen [logout]
Reply With Quote
  #50  
Old 03-21-2003, 12:34 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What are the first few lines of cannedtext.php?
Reply With Quote
  #51  
Old 03-21-2003, 12:42 PM
pattox pattox is offline
 
Join Date: Jan 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<?
if ($_POST['action'] == "save")
{
	$templateused = "standardredirect,redirect_cannedtextsaved";
	require("./global.php");
	if ($bbuserinfo['userid'] == 0 or $ctmax == 0) show_nopermission();
	
	$userid = $bbuserinfo['userid'];
	
	// force the update to work if the rows don't exist yet
	$DB_site->query("DELETE FROM cannedtext WHERE userid = $userid");
	$DB_site->query("INSERT INTO cannedtext (userid, number, contents)
		VALUES ($userid, 1, \"\"), ($userid, 2, \"\"), ($userid, 3, \"\"), ($userid, 4, \"\"), ($userid, 5, \"\")");
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:59 AM.


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.06835 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete