Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 16 Sep 2005, 21:45
Mavs00 Mavs00 is offline
 
Join Date: Sep 2005
Question Need Static Template help....... bad

First, I'm a code dummy.......

I've been attempting to follow this seemingly simple -TEMPLATE- in order to create vB template driven pages.

I think I'm struggling with calling the right variables.

I created a rules.php file in my root dir (my forum sit in root/forums). Here is where I'm at:


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

I put my script in the root dir, and when I run it I get:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/adkhighp/public_html/rules.php on line 8
I highlight places I think may be wrong, but I'm not sure. Not sure what error message means, or how to fix it. Any help would be appreciated. Thanks

fetch_template('forums/static/forum_rules') <-- This line calls the php doc i created that I want displayed in the template.
Reply With Quote
  #2  
Old 16 Sep 2005, 21:51
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
If your script is already in your forumhome directory, then there is no need for a chdir.

Also on line 8, the + shouldn't be there:

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

__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #3  
Old 16 Sep 2005, 21:52
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Lol, reading your post a bit more, you got + signs everywhere. Looks like you replaced avery space with a plus.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #4  
Old 16 Sep 2005, 22:53
Mavs00 Mavs00 is offline
 
Join Date: Sep 2005
LOL, No that must have been a copy/paste error or something.

The exact code (copied from the server)


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

And it is still getting the same error

Last edited by Mavs00 : 17 Sep 2005 at 05:57. Reason: Automerged Doublepost
Reply With Quote
  #5  
Old 17 Sep 2005, 05:47
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
I just tried, but get no error.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #6  
Old 17 Sep 2005, 05:56
Mavs00 Mavs00 is offline
 
Join Date: Sep 2005
No error now, I'm set

Figured it out, Thanks Marco (I took the link out, as the error code is now gone).

I'll post results for anyone with a similar issue. It's easier than I thought, took a different approach though. First, I took the basic code from the this posted -TEMPLATE-


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

First I removed the {chdir('./forums');} line as Marcho suggested and than changed the other highlighted section to my custom name. Then I saved the file as rules.php in my root forum directory (if you do not save it there any images called on by your vbulletin main.css get lost)

Then I went into vBulletin admin panel;

Styles & Templates --> Style Manager --> Template Options (Add New Template)

and then created a basic html table;


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

Then saved it as for_rules

That gave me -THIS- , which is exactly what I was looking for.

Last edited by Mavs00 : 17 Sep 2005 at 05:59.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

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


New To Site? Need Help?

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

Layout Options | Width: Wide Color: