vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/showthread.php?t=71992)

sv1cec 12-01-2004 12:41 PM

Quote:

Originally Posted by rh2004
Thanks for the above it worked code change :)

Can smeone tell me how I add this to satellite template which I brought because in
the templates theme I can't find any of the text where I need to add this new text after....

There was a post with some instructions on how to do this, in other skins, sorry I have no idea.

ptenthus 12-01-2004 02:10 PM

When I try to warn a user, I get a blank page.

I checked and realized that none of the templates were created when I ran the upgrade_warn.php (which ran without any errors that I saw)...

Is there an easy way to create these so I can get my warning system up and running?

Thanks.

sv1cec 12-01-2004 02:58 PM

Quote:

Originally Posted by ptenthus
When I try to warn a user, I get a blank page.

I checked and realized that none of the templates were created when I ran the upgrade_warn.php (which ran without any errors that I saw)...

Is there an easy way to create these so I can get my warning system up and running?

Thanks.

The only reason I can think of, why the templates are not created, is that you are using a table prefix and you haven't changed the file to use that, or that you haven't uploaded the directory install_warn with the file warn.xml which is in that directory. One more thing. The templates are added to that default style, if you are using more than one, check the thread, there is a post on how to add the templates to the rest of the styles you use.

Rgds

ptenthus 12-01-2004 03:11 PM

install_warn directory is there with the .xml file in place.

No table prefixes. Only one styleset, however, it is ID # 2.

How difficult would it be for me to go through mySQL and insert directly the templates?

sv1cec 12-01-2004 03:31 PM

Do me a favor and run this query:

select * from template

what is the styleid you see in your templates? In my table, it is -1. What's yours?

Rgds

ptenthus 12-01-2004 04:56 PM

I see a few that are 2 and then several (the unmodded ones, I think) that are -1.

UPDATE: Yep, looks like everything I've changed in the style shows up with style id 2, anything that I left at vB default is style id -1.

Quote:

Originally Posted by sv1cec
Do me a favor and run this query:

select * from template

what is the styleid you see in your templates? In my table, it is -1. What's yours?

Rgds


j_86 12-01-2004 04:56 PM

Hi there.

In what file do we do the Step #10 in the new-install instructions?

Thanks;

Jamie

sv1cec 12-01-2004 05:21 PM

Quote:

Originally Posted by JimpsEd
Hi there.

In what file do we do the Step #10 in the new-install instructions?

Thanks;

Jamie

Sorry, it's in editpost.php

sv1cec 12-01-2004 05:28 PM

Quote:

Originally Posted by ptenthus
I see a few that are 2 and then several (the unmodded ones, I think) that are -1.

UPDATE: Yep, looks like everything I've changed in the style shows up with style id 2, anything that I left at vB default is style id -1.

I am not sure how you can modify the upgrade_warn.php to make it work for your case. I assume that you could change the styleid, but I do not know to what you should change it to.
I can't figure out why yours are styleid 2 while mine are 1.

OR you can open up warn.xml and copy the templates from there. Sorry my friend, I can't help with that.

Rgds

ptenthus 12-01-2004 05:38 PM

Okay, no problem...

Help me with this one thing and I should be up and running.

Here is a snippet of the first template in warn.xml:

Code:

<templategroup name="Ungrouped Templates">
                <template name="WARN" templatetype="template" date="1100330326" username="sv1cec" version="3.0.1"><![CDATA[$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
</head>
<body>
$header
$navbar
<BR>
<if condition="$bbuserinfo[userid]=='0'">

I understand the variables you have at the beginning (defining the template name, etc.) but where do I start copying the contents of the template - I assume the "![CDATA[" portion is not part of the template itself...

Thanks.


All times are GMT. The time now is 02:46 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.01704 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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