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)
-   -   WebTemplates 3.x: VB Integrated Content Management System (https://vborg.vbsupport.ru/showthread.php?t=76422)

Logician 03-20-2005 07:46 PM

Quote:

Originally Posted by m0nde
Will this hack conflict with my vBadvanced installation?

As stated in FAQ, the answer is no.

Quote:

I got this error after running the MySQL queries:
Please run the query in phpmyadmin. More info in FAQ and installation document.

DanCan 03-20-2005 07:56 PM

I did, but now I learned how to do it in the way you preferred, and now it works. - and I actually learned how to run a SQL query.

Thanks.

DanCan 03-20-2005 07:58 PM

And wow! Just checked the test page. This looks great! Can't wait to use it.

Thanks

m0nde 03-20-2005 09:11 PM

I hadn't read the FAQ properly. Thanks for the quick reply.

I don't have phpmyadmin installed to run the sql query.

So I added my account into the appropriate line in config.php and ran the query from Admin CP | Import & Maintenance | Execute SQL Query

After doing this, I received the errors below:

Quote:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax near ';
CREATE TABLE `wt2_queries` (
`qid` int(10) unsigned NOT NULL auto_incremen' at line 19
I really want to try out WebTemplates.

EH-Jay 03-20-2005 11:56 PM

Quote:

Originally Posted by Logician
I don't get your problem exactly. All I'm saying is that IF your webtemplate is "PHP parsed" you can NOT include any header and footer in it, otherwise you'd get PARSE error. (This is also stated in help document). Headers and footers are for "TEXT" or "HTML" parsed webtemplates.

If your webtemplate is already TEXT or HTML parsed but you still get an parse error, then paste the content of your header and webtemplate that gives the error and I'll check.

"Header/Footer Templates:" was what I was talking about. It says in the 2 files "Header/Footer Templates are always HTML parsed."

So? I'm lost :(

Logician 03-21-2005 05:15 AM

Quote:

Originally Posted by m0nde
I hadn't read the FAQ properly. Thanks for the quick reply.

I don't have phpmyadmin installed to run the sql query.

So I added my account into the appropriate line in config.php and ran the query from Admin CP | Import & Maintenance | Execute SQL Query

After doing this, I received the errors below:

You gotto install phpmyadmin. It is a free script anyway. Please read the FAQ.

neocorteqz 03-21-2005 06:48 AM

You can also run Queries from the vBull admin CP

Logician 03-21-2005 08:42 AM

Quote:

Originally Posted by neocorteqz
You can also run Queries from the vBull admin CP

No, not for this hack's installation. It involves a long query list which vb admin cp run query tool can not handle, so phpmyadmin is strongly recommended.

m0nde 03-21-2005 06:25 PM

Quote:

Originally Posted by Logician
You gotto install phpmyadmin. It is a free script anyway. Please read the FAQ.

I managed to work through this myself, but you're right, PHPMyAdmin was easy and straight forward to install and made it work.
I did have some problems with pathing because I'm running all this on Windows 2003 SBS. But i changed the Windows pathing scheme on line 29 of webtemplate.php from ..\ to .\ and it worked fine.

All said and done, WebTemplates is a very good add-on and I can see myself using it for various custom pages.

I would like to see you create an auto-install script, Logician, which will place all the files automatically and even execute the query automatically. This would make things simpler, even though the install is fairly straight forward.

Again, thank you very much for your help and for an exellent piece of work. :up:

Izze_de 03-22-2005 12:15 PM

hi,

i am trying to create a new theme based on the "Two Column Theme".

i want to insert the vbadvanced portal left column instead of the stats.

code is following:
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] $WT_PageName</title>
$headinclude
</head>
<body>
$header
$navbar
$nowbrowsing
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
<td width="$vba_options[portal_leftcolwidth]" valign="top">
<if condition="$show['left_column']">
$home[leftblocks]
</if>

  <br>
  </td>
  <td width="20"><input type="image" src="$vboptions[cleargifurl]" width="20" height="1"></td>
  <td valign="top"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
    <thead>
    <tr>
            <td class="tcat" align="left">&raquo; $WT_PageName</td>
</tr>


 <tr>
  <td class="alt2" align="left">
                        <div class="normalfont">
$includedtemplate
      </div>
  </td>
 </tr>
 <tr>
  <td class="thead" align="left"> Page
      Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname]
      at $WT[lastvisitdate]. $WT_Editor_link<br>
      Page Created at <b>$creationdate</b>, Last Modified
      : <b>$lasteditdate</b>.</td>
 </tr>

</thead>
</table>
               
               
                </td>
 </tr>
</table>
 $footer

</body>
</html>

but when i try to view the testpage it says:

Quote:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /path/to/forum/view.php(657) : eval()'d code on line 14
is it possible to include the portal boxes and when, how ?

Thank you.


All times are GMT. The time now is 07:06 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.01364 seconds
  • Memory Usage 1,750KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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