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)

Xscape 03-21-2003 01:44 AM

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

But I don't get why I see nothing in under
"Edit Canned Text"

filburt1 03-21-2003 01:47 AM

If the textboxes are empty it's because you haven't defined any custom text yet.

Xscape 03-21-2003 01:49 AM

No, there's just nothing there. The table ends after "Edit Canned Text".

filburt1 03-21-2003 01:50 AM

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.

Boofo 03-21-2003 04:44 AM

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. ;)

pattox 03-21-2003 12:09 PM

I dont seem to have permission to access cannedtext.php, I am admin...

filburt1 03-21-2003 12:13 PM

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.

pattox 03-21-2003 12:19 PM

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]

filburt1 03-21-2003 12:34 PM

What are the first few lines of cannedtext.php?

pattox 03-21-2003 12:42 PM

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, \"\")");



All times are GMT. The time now is 09:26 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.01167 seconds
  • Memory Usage 1,744KB
  • 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)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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