![]() |
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 |
Quote:
echo "$header"; echo "hi"; echo "$footer"; |
Will this work with 3.5 or will be an update available within short?
|
Quote:
|
Quote:
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. |
Quote:
|
Quote:
|
is there anyway to make links load on one page and not open a new window up?
|
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. |
Quote:
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:
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|