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)

digitalJE5U5 09-02-2005 07:57 PM

I installed the hack and everything went smooth. However, when I try and create a custom page with php, I am not getting the header and footer included.

Under the "theme" option , I have selected "default basic theme". The default VB form header and footer are included.

ex: echo "hi";

Gives me a plain white page with "hi". No header or footer.

If I change the parse method to TEXT and change nothing else, I get echo "hi"; just like it is supposed to look - inside a box with the header and footer, etc.

ANy help? What am I doing wrong?

Thanks,

/DJ

Logician 09-03-2005 06:28 AM

Quote:

Originally Posted by digitalJE5U5
I installed the hack and everything went smooth. However, when I try and create a custom page with php, I am not getting the header and footer included.

To include header and footer in PHP parsing, you need to add it to your code like this :

echo "$header";
echo "hi";
echo "$footer";

jluerken 09-03-2005 07:53 AM

Will this work with 3.5 or will be an update available within short?

Logician 09-03-2005 07:57 AM

Quote:

Originally Posted by jluerken
Will this work with 3.5 or will be an update available within short?

I have no idea for both question. I haven't even yet downloaded 3.5

jluerken 09-08-2005 08:50 AM

Quote:

Originally Posted by Logician
I have no idea for both question. I haven't even yet downloaded 3.5

Hi Ligician,

this is one of the most important hacks for me and I think for others also.
Many special pages were created and now, where the 3.5 release is coming close
it would be nice to have this hack updated.

Can you take time to do this?

This would be really excellent.

Logician 09-08-2005 10:54 AM

Quote:

Originally Posted by jluerken
This is one of the most important hacks for me and I think for others also.
Many special pages were created and now, where the 3.5 release is coming close
it would be nice to have this hack updated.

Can you take time to do this?

This would be really excellent.

I understand. But please note that my hack list is way too crowded (see my profile) and most of these hacks are quite complicated ones like webtemplates. I have even unofficially released hundreds (literally!) of other hacks in hack requests forum and I even get requests for them to be updated from time to time. As for my officially released hacks, some members are asking them to be ported from vb2.x to vb3.x and some vb 3.x to vb3.5. If I covered all these requests, believe me this would be a full time job. So unfortunately I can only work on these requests for these when I have a time. Sorry for the inconvenience..

jluerken 09-08-2005 11:08 AM

Quote:

Originally Posted by Logician
I understand. But please note that my hack list is way too crowded (see my profile) and most of these hacks are quite complicated ones like webtemplates. I have even unofficially released hundreds (literally!) of other hacks in hack requests forum and I even get requests for them to be updated from time to time. As for my officially released hacks, some members are asking them to be ported from vb2.x to vb3.x and some vb 3.x to vb3.5. If I covered all these requests, believe me this would be a full time job. So unfortunately I can only work on these requests for these when I have a time. Sorry for the inconvenience..

We should try to clone you Logician :D

Pain86 09-11-2005 04:51 PM

is there anyway to make links load on one page and not open a new window up?

NonCompare 09-13-2005 09:33 AM

Is it possible using conditionals to have only one template(I named it articles) with dynamic-changing content. I just made a static left tmenu for my forum categories:
Introduction [forumid=1]
Articles [forumid=2]
Suggestions [forumid=3]
and so on.......


My initial moved was to have my left menu a link like:
<a href="/forums/view.php?pg=articles&forumid=1">Introduction</a>
<a href="/forums/view.php?pg=articles&forumid=2">Articles</a>

Now my problem is I don't know how to implement that so-called outside variables, so that when I click Articles(2), for example, it will go to view.php?pg=articles&forumid=2 and will display all threads that belong to Articles category. But remeber it use the same template, so if I click Introduction again, for example, it will go again to view.php?pg=articles&this_forumid_here_will_change _accordingly

Does anyone already done this. Please help me, I would greatly appreciate from you guys!

If I did not explain it thoroughly, kindly let me know.

Logician 09-13-2005 01:34 PM

Quote:

Originally Posted by NonCompare
Now my problem is I don't know how to implement that so-called outside variables, so that when I click Articles(2), for example, it will go to view.php?pg=articles&forumid=2 and will display all threads that belong to Articles category. But remeber it use the same template, so if I click Introduction again, for example, it will go again to view.php?pg=articles&this_forumid_here_will_change _accordingly

If I understand it correctly, it sounds possible. You need to put "forumid" into "Outside Variables" section of your webtemplate.

Then create a new webquery that depends on this very $forumid variable. Eg.

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

In this webquery also makes sure you enter this line to "Query PHPInclude Code" :
PHP Code:

$forumid intval($forumid); 

Now you can include this webquery in your webtemplate and everytime you call your webtemplate with a new "$forumid" value, the content of it will change.

Is this what you wanted to achieve?


All times are GMT. The time now is 04:41 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.01410 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
  • (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