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

Logician 02-04-2004 05:55 AM

Quote:

Originally Posted by cindyd
I need to know how to tie the new pages into the regular forum? Do I just set up a parent forum and list all the links? I know I could do that, but there must be another way.....I just don't know what to call what I want on a search.

I'm not sure what you mean by tie the webtemplates into the forum?

XtReMaTriX 02-10-2004 01:05 PM

Quote:

Originally Posted by Logician
Included vb templates do not work on headers. You have to add inside regular templates. So you'll add $WTT_templatename (of course rename "templatename" section in this variable!) inside your webtemplate that you want to inherit.

Or create a webtemplate header template and copy/paste your templates content into this one and then you can use this webtemplate header in your other webtemplates


I was rather confused by how you explained that.. Ok so I cant use VBTemplates in the header.. ok.

In the old version I created a VB Template called top and bottom, and put my layout and everything in there.

Is that how it should be done now? Or is there a better way??

I tried making a vbTemplate with all the values and adding that to the WebTemplate but nothing showed up... I would really appriciate some more help...

Logician 02-10-2004 06:47 PM

Quote:

Originally Posted by XtReMaTriX
I was rather confused by how you explained that.. Ok so I cant use VBTemplates in the header.. ok.

In the old version I created a VB Template called top and bottom, and put my layout and everything in there.

Is that how it should be done now? Or is there a better way??

I tried making a vbTemplate with all the values and adding that to the WebTemplate but nothing showed up... I would really appriciate some more help...

You have 2 options:
1- You can create header/footer Webtemplates. (or modify existing default ones). Then you can add your content there and you can use these header/footer webtemplates in other webtemplates.

2- You can create a regular vb template as you did. Then add its name in the "included vb template" part in your webtemplate edit page. Then add "$WTT_templatename" in your webtemplate and this template will show up in the location you put "$WTT_templatename". In this method, if you have more than 1 template sets, create your template in all template sets.

roxics 02-24-2004 08:30 AM

Quote:

Originally Posted by Logician from page 12
The structure won't be flexible so don't expect something fancy but here is a draft webquery: (Remember to replace X with threadid)

I've been playing around with this webquery and it's great. Here is an example:
http://www.visionengine.com/board/view.php?s=&pg=sound

But when you said it won't be flexible what exactly do you mean? The reason I'm asking is because I'm curious if it can do more.

Is there a way to get it to pull only the second post and beyond from a particular thread? Along with a "post reply" link (image and all) to that thread?


Second query
Is there a way to pull only the first post from a given thread? With username, avatar, edit link, homepage link, profile link. Pretty much everything from the postbit.

The reason is because I'm looking for an easy way for members to contribute articles. Most don't know HTML and send me word documents I have to format into simple HTML. It's a pain. They are used to using the board. Plus that way there is a copy of the article on the board.

If there is anyway to make these two queries work togther that would be even better.

Highlander 02-25-2004 10:37 AM

Hi Logocian,

i used the first version too .. and it wored fine.. but now i changed to this version.. witrh a news install of my board.. and have this error when i visit our TEST template :(

http://spielplanet2.de/forums/view.php?pg=test

can you help me?

roxics 02-25-2004 05:59 PM

Can someone help me with this. I'm trying to get the next 10 events for the next ten days on the calendar to show on this page. But I'm pretty clueless as to what I'm doing.

Here is the page:
http://www.visionengine.com/board/view.php?s=&pg=events

Here is my query
PHP Code:

SELECT *
FROM calendar_events
WHERE 
public = AND eventdate >= +10()
ORDER BY eventdate LIMIT 10 

Here is my query result row

PHP Code:

<table border='0' cellspacing='0' cellpadding='0' width='100%'>
<
tr><td bgcolor='#000000' width='100%' height="0" 
<
table width='100%' border='0' cellspacing='1' cellpadding='3'>
<
tr>
<
td bgcolor='#cecfce' width='100%'>
      <
div align="left">
<
font style="FONT-FAMILY: Verdana, MS Sans Serif;FONT-SIZE: 10pt;"><b>Event</b$WQfield[subject]<br>
<
font style="FONT-FAMILY: Verdana, MS Sans Serif;FONT-SIZE: 10pt;"><b>From 
       
:</b> <a href="$bburl/member.php?s=&action=getinfo&userid=$WQfield[postuserid]">$WQfield[username]</a></div>
      <
div align="right"><font style="FONT-FAMILY: Verdana, MS Sans Serif;FONT-SIZE: 8pt;"><b>Date:</b$WQfield[eventdate]</div></td>
</
tr>
<
tr
     <
td bgcolor='#F1F1F1' width='100%' height="5" align='left'
      <
font style="FONT-FAMILY: Verdana, MS Sans Serif;FONT-SIZE: 10pt;"
      
$WQfield[event]</font> </td>
</
tr>
</
table>
</
td>
</
tr>
</
table>
<
br

On top of that I can't seem to get the username to show up. Or manage to get it so the event information is formatted properly.

Logician 02-25-2004 06:42 PM

Quote:

Originally Posted by Highlander
Hi Logocian,

i used the first version too .. and it wored fine.. but now i changed to this version.. witrh a news install of my board.. and have this error when i visit our TEST template :(

http://spielplanet2.de/forums/view.php?pg=test

can you help me?

Your PHP version is old. Either upgrade it or change all instances of "array_key_exists" in the script as "key_exists"

Logician 02-25-2004 06:46 PM

Quote:

Originally Posted by roxics
Can someone help me with this. I'm trying to get the next 10 events for the next ten days on the calendar to show on this page.

This wont work.. calendar dates in vb2 is not saved in a nice format to get via a webquery for future dates.

Highlander 02-25-2004 07:54 PM

found the error :D

<*YERAH**

everybdy who has PHP 4.0.6 has to find in view.php following code:

Code:

array_key_exists
replace with (think more than 18 times)
->with this please-> key_exists

Highlander 02-25-2004 07:55 PM

ahh okai.. you helped me out already while i searched the error .. lol .. anyway muchas grazias :D


All times are GMT. The time now is 12:01 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.01453 seconds
  • Memory Usage 1,768KB
  • 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
  • (6)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