Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #61  
Old 15 Dec 2009, 21:32
muratmunich muratmunich is offline
 
Join Date: Oct 2005
Thanks...

Ok nice, but do you know the Advantage of this way to use Variables in a Template ?
Reply With Quote
  #62  
Old 15 Dec 2009, 21:58
ragtek's Avatar
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
http://www.vbulletin.org/forum/showthread.php?t=228078
__________________
my addons: http://ragtek.github.com
Reply With Quote
  #63  
Old 17 Dec 2009, 00:35
anthony parsons anthony parsons is offline
 
Join Date: Apr 2005
I like it Lynne... between this and the nav plugin, my life is now made a lot easier than having to sit down and come up with it myself. Very much appreciated. Custom page with menu... excellent.

Attached Images
File Type: png ilikeit.PNG (62.4 KB, 1738 views)
Reply With Quote
  #64  
Old 17 Dec 2009, 07:07
nubian nubian is offline
 
Join Date: Nov 2004
Question

  1. Is is mandatory that I have the text case of there vars to be all in caps in the test.php and in the name of the template?

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.


    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    How do I get it so that I can retain the case of my test.php but change the case in the template from TEST to test?
  2. I plan on making quite a few custom pages so would it be possible to place these php files in another directory?
Reply With Quote
  #65  
Old 17 Dec 2009, 17:52
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
1. No, you don't need all caps. You just need to be consistent when you use it. If it's in all small letters in the $globaltemplates area, then use all small letters in the $templater.
2. Sure, but you'll have to make sure when you include the global.php page, or any other scripts, you'll have to make sure the path to them are correct.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #66  
Old 19 Dec 2009, 18:22
turtile turtile is offline
 
Join Date: Apr 2009
Real name: John
I get the error:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I tried the other global method from the posts and I get a blank page. My template is under my default page.

Code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks
Reply With Quote
  #67  
Old 19 Dec 2009, 18:58
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
And are you putting this file in the same directory as all your other vbulletin files? If not, you need to do a chdir to get the global.php file.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #68  
Old 19 Dec 2009, 19:33
turtile turtile is offline
 
Join Date: Apr 2009
Real name: John
My index file is in unusualplants.net/
The forum is located at unusualplants.net/forums

I tried changing the directory at the beginning of the code (never changing back), right before the global line(never changing back), at the beginning and changing the directory back after the global line, and right before the global line and changed it back after. I get a blank page for each one.

I used this for changing the directory:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and this for moving back:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks
Reply With Quote
  #69  
Old 19 Dec 2009, 19:51
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
When you added the template, did you add it to the style you are currently using to browse your forum?
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #70  
Old 19 Dec 2009, 19:53
turtile turtile is offline
 
Join Date: Apr 2009
Real name: John
Originally Posted by Lynne View Post
When you added the template, did you add it to the style you are currently using to browse your forum?
Yes
Reply With Quote
  #71  
Old 19 Dec 2009, 20:17
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by turtile View Post
Yes
First, make sure the path is correct - it should be the full path to your vb forums directory.

Check your error_logs (if you don't know where they are, ask your host) to see if anything is in there.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #72  
Old 19 Dec 2009, 20:45
turtile turtile is offline
 
Join Date: Apr 2009
Real name: John
Originally Posted by Lynne View Post
First, make sure the path is correct - it should be the full path to your vb forums directory.

Check your error_logs (if you don't know where they are, ask your host) to see if anything is in there.
the forum.php file is located @ unusualplants.net/forums/

(I'm not sure which time this is set on)


For PHP:
/home1/riptidep/public_html/unusualplants/error_log:
[19-Dec-2009 17:45:25] PHP Warning: require_once(./global.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home1/riptidep/public_html/unusualplants/index.php on line 27
[19-Dec-2009 17:45:25] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/riptidep/public_html/unusualplants/index.php on line 27

Thanks for all of your help
Reply With Quote
  #73  
Old 19 Dec 2009, 20:49
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
It looks like you didn't do your chdir correctly. You need to do the FULL path:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #74  
Old 19 Dec 2009, 21:35
ExTincTi0N's Avatar
ExTincTi0N ExTincTi0N is offline
 
Join Date: Mar 2008
Location: Texas
Real name: Taylor Jones
Okay Lynne I am in need of your assistance.



How do i get it so that the nav button "Game Nights" is selected?
__________________
www.vbtree.com the newest and hotest vb skin site out.
www.artvenom.com where the venom of art resides.
Reply With Quote
  #75  
Old 19 Dec 2009, 21:44
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
If you defined THIS_SCRIPT at the top of your page, you should use it in your condition for your tab. You should post for help regarding this in the thread where you got the tab code.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 2 (1 members and 1 guests)
RichieBoy67
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 00:46.

Layout Options | Width: Wide Color: