The following will show the no permission message to users who arn't in group 1, 2 or 3 (remove the ! to make it show if they are in 1, 2 or 3). Just replace 1, 2, 3 will a comma sperated list of usergroups to match your needs.
PHP Code:
|
Thanks, it works perfectly. :)
|
Quote:
username_loggedin username_loggedout So I fixed the pathing on each of them - yet I still can't get it to go correctly. I know I'm missing it somewhere else - does anyone know where? |
The STANDARD_ERROR template contains the majority of the HTML for the no permission screen that you'll need to edit :)
|
Oh, one other thing - I pathed the navbar correctly (made it a separate template actually, just in case I f'd something up, but it appears right.
The only thing throwing me off is the logout javascript: Code:
<script type="text/javascript"> Obviously a very minor issue. Another minor issue I am having is that my tables within my template go too wide (don't have this problem on my forums within the forum directory). I was able to tweak percentages to pixels for a temporary fix, but if anyone knows what this vague problem may be, thought I'd mention it as well; my post above is my big concern right now though :ermm: |
Quote:
|
Quote:
Its driving me mad...here is my thread I also tried editing another gallery script, but I ended up with the same problems, images would only load above header, but nothing would load under it. |
it looks like your hard coding the file, this howto deals more with using the template system directly
|
Quote:
|
Im sure there is, but i dont know how to do it really
|
Cool, waiting for further instructions.
|
im confused - how do i make the navbar i have included in my page change to show your status as logged in?
|
Quote:
I do have a question, how do I have "Who is online" show the location. IE: Gio "Unknown" main.php To Gio Test Page test.php |
I THINK i know how to do that, but i need to double check somthing ^_^
|
Quote:
|
What is the recommended way to install/upgrade the series of templates used with a hack? (I know htl deals with this but...) Installing the templates manually is a pain and error prone, as is asking the user to go to the admin cp and upload the xml file.
How does one create a new template group? I imagine one has to install/overwrite the templates in the base style(s). As a hack is being developed (and templates changed), one also has to be sure that any modified templates in the main and other styles are flagged. I'm sure that tips on these points would be most welcome. |
Edit: Sorry I got told off for posting in the wrong forum.
I fixed the problem and to simply make a new page which utilises existing stylesheets and headers, technically all you need to do is: 1. Create Custom Template with everything you Require - Ensure you include your header, footer etc references, shown below. PHP Code:
PHP Code:
|
Quote:
|
Hi, I am making a mod and im new to VB but Im a fast learner.
I want to load a template called (test) inside test i want to put rows from a db table (test) with value1|value2|value3 i want to print the 3values for each row in the table and display them in the html defined in the (test2) template... and then load the rest of the (test) template. Is this possible? Another question is: Would cases be suitable rather than all the ifs? or are ifs better? thanks for help. |
Sorry for the stupid question -
How does one pass a variable from a php script TO the template? I've got a file, page.php, that includes the basic instructions in the first post in this thread, ending with (eval('print_output("' . fetch_template('my_template') . '");'); It works great - 'my_template' contains $header, some html, $footer, and it renders the page as expected. However, in page.php I also define a variable $output = "some output"; I put $output in 'my_template' but it does not print out "some output" as expected. Again sorry I'm probalby out of my legue here but if there's an easy way to do this please let me know! TIA! |
question on action templates, can u define wut u mean by actions more precisely im a lil confused.
|
like.
search.php?do=getnew is a vB3 action, and it does a specific / more refined / predetermined function |
k
so something like blah.php?do=redirect is one? |
Thanks Faranth! I read the whole thread and now I understand a little more how the whole thing is working :)
The "actions", are they all included in one php file? But I guess not, they must be spread evywhere. To list all these actions, is the way to do that to Ctrl-F through all the files and search for "do=" ??? And also, where are all the functions, do we simply need to require global.php for all the functions beeing available? Noobish cheers :nervous: :) |
Really useful 'hack' (or guide, whatever). Got my first VB based page up and running in no time at all.
thanks a lot :D. |
Hi Zachery,
I tested the first & second examples but I keep getting the following lines in my browser: HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> PHP Code:
Please help. R.L. :) |
You didnt print any templates...
your missing the most important line eval('print_output("' . fetch_template('TEMPLATE') . '");'); You just made some varibles, you didnt tell the script to display a template i suggest trying generic shell eval('print_output("' . fetch_template('GENERIC_SHELL') . '");'); |
Got it! It worked :)
Thanks Zachery. |
Quote:
I have a lot of content outside of my forums which I'd love to be able to include the header and footer from the template on! This way I could update the style of my whole site, forums and static content, through the admincp. I've tried almost everything I can think of, if someone has a simple test page they can show me I'd be really, really greatful :) |
how can a do one code for ?do= and thene whene i make a new template i can do ?do=test and so that i can do it at's mutch as i want. please help my. :d
|
You simply put:
PHP Code:
|
yea but that is only for one page.
I want samthing that is a code that is so that whene i add a template called test ,game or whatever i can do ?do= whene i made the template. |
I sure would appreciate some help with this question. I apologize if it has been answered in this thread, I just can't figure out how to do the simple little thing I want.
Basically I have a search bar and a google ad, etc. I want these in my headers but from time to time change the html code of them. I would much prefer to have them saved as templates and simply change those couple templates instead of the header in each style. I created a template for the Google Search bar and tried using $GoogleSearch in my header. Of course that didn't work...silly me. :) I would really appreciate how to simply call custom templates in the header, footer, etc. Thank you very much! :) |
Quote:
it works fine when i am on the message board, but on my index page, there is no fade. anyone know what's goin on, or have this working on a non-vb page? |
acutally, i just figured it out.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
Duse any one now how to use <?php include("$id.htm" ?> in vb.
|
Quote:
|
Any idea why my code isn't working? I'm sure (as a novice) I have to be doing something wrong. What I'm trying to do is get a page up thats going to display information put into my database. Its an episode guide. It runs fine alone, but I'm in the process of making my entire site template based.
Here is the template Code:
$stylevar[htmldoctype] PHP Code:
|
Quote:
|
and how do i do that phpinclude template thing.
|
All times are GMT. The time now is 07:59 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|