vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   WebTemplates 3.5.x: VB Integrated CMS (Content Management System) (https://vborg.vbsupport.ru/showthread.php?t=103076)

FreshPrince 11-20-2006 10:38 PM

OK, I see what you are talking about:

http://www.usandworldpolitics.com/fo...w.php?pg=test2


The only thing I don't get is that it says from "Forum 2." How can I can I change the Webtemplate code to get it to take data from the forums where people are actually posting and not "Forum 2?"

Thank you. :)


WEB

Razasharp 11-21-2006 12:48 AM

Quote:

Originally Posted by W.E.B. Du Bois (Post 1121843)
Let me ask you a question there. I know vBadvanced is not your specialty but maybe you know. It is possible to use vBadvanced to create two webpages? No, right? I already use vBadvanced for my forum front page, so I probably can't use it for a second totally different page, or can I?

Yes I think vbadvanced lets you have additional pages. Refer to their help guides for more info.

Quote:

Originally Posted by W.E.B. Du Bois (Post 1121863)
The only thing I don't get is that it says from "Forum 2." How can I can I change the Webtemplate code to get it to take data from the forums where people are actually posting and not "Forum 2?"
Thank you. :)

In that template you will see a call to a WQ_query_name_here

Then find that query, click on edit, and in there towards the top there is a select query. You should be able to change the forums you want it to call from in there. I haven't got access to my ACP at the moment so that is all from memory. If you read the help guides it will also help you understand how webtemplates and web queries work together :)

Razasharp 11-21-2006 01:12 AM

what forums do you want it to show from? or all of them?

FreshPrince 11-21-2006 02:02 AM

Quote:

Originally Posted by Razasharp (Post 1121959)
what forums do you want it to show from? or all of them?

Yes, all of them. Except for the private and moderator forums of course.

:)

FreshPrince 11-21-2006 02:08 AM

In my admin panel, I clicked on "WebQueries" and saw under option 3:

3- $WQ_last10threadfromforum2
Gets last 10 threads title/author/date from forum 2 [edit] [remove]

I clicked on edit, here's what it says in the "Query" box:

Quote:

SELECT threadid, title, postusername,postuserid,dateline
FROM " . TABLE_PREFIX . "thread
WHERE sticky=0 AND visible=1 AND forumid=2
ORDER BY dateline DESC
LIMIT 10
So, if I wanted to take threads from all my forums (except for the private forums and moderator forums) what should I change in there?

Thanks


WEB

Razasharp 11-21-2006 02:22 AM

try this:

SELECT threadid, title, postusername,postuserid,dateline
FROM " . TABLE_PREFIX . "thread
WHERE sticky=0 AND visible=1
ORDER BY dateline DESC
LIMIT 10

FreshPrince 11-21-2006 03:18 PM

I think I got it figured out now. Thanks for your help.

One note I would like to make is that I got caught up for a while with one problem. That's basically that you can put in the webquery code (i.e. $WQ_last10thread ) into the webtemplate, however it will do nothing unless you also go into the admin cp and then go into the section "Logician's WebTemplates" then into the "WebTemplates" edit the templates that you want and CHECK OFF the queries that you want to enable in that template. I'll take a picture of it with my photoshop program to fully illustrate my meaning later.

This is just something you probably want to tell noobs, like myself, as it did hold me up for a while.

Thanks again.

WEB

Razasharp 11-21-2006 03:30 PM

Glad you got it sorted :)

Yes, you need to check the box for the WQs you want to use with that particular WT ;)

Slash_ 11-22-2006 06:00 AM

here is a page i made

http://www.extremebodybuilding.net/f...php?pg=sponsor

see how towards the bottom the

Page Created at Today - 11:50 PM, Last Modified : Today - 11:56 PM.

runs over the gradeint

how can i take that part off of the page so it will quit doing that?

Logician 11-22-2006 06:35 AM

Quote:

Originally Posted by Slash_ (Post 1122784)
here is a page i made

http://www.extremebodybuilding.net/f...php?pg=sponsor

see how towards the bottom the

Page Created at Today - 11:50 PM, Last Modified : Today - 11:56 PM.

runs over the gradeint

how can i take that part off of the page so it will quit doing that?

Edit theme "Default Basic Theme", play with (or remove) part:

PHP Code:


<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



All times are GMT. The time now is 06:48 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.01963 seconds
  • Memory Usage 1,751KB
  • 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_php_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