vBulletin Mods

The Official vBulletin Modifications Site
http://www.vbulletin.org/forum/showthread.php?t=62164

Lynne 26 Jan 2010 17:40

Quote:

Originally Posted by netshaq (Post 1967224)
I am trying to add a custome page and I am getting this error

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 3893

Parse error: syntax error, unexpected T_STRING in /data/10/0/120/59/772548/user/790634/htdocs/forum/test.php(42) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: TEST in [path]/includes/functions.php on line 3893

thanks
Steve

This article is in the vB3 articles section. You are using vB4 and should not be using this article.

netshaq 27 Jan 2010 16:39

Lynne,

How would I do this with the new version vb4

thanks
Steve

Lynne 27 Jan 2010 17:18

Quote:

Originally Posted by netshaq (Post 1968081)
Lynne,

How would I do this with the new version vb4

thanks
Steve

Check the vB4 Articles forum - there is an article for this in there (actually, it is also in my profile page since I was the one who put the updated copy of this article there).

scottct1 29 Jan 2010 15:47

Not working for me...

I get the following error message

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/home/satellit/public_html/thelist/test.php on line 43

The global.php file is located at ././global.php

Line 43 is... eval('$navbar = "' . fetch_template('navbar') . '";');

Running vbulletin 3.8.4

Any ideas?

--------------- Added 29 Jan 2010 at 15:58 ---------------

Not working for me...

I get the following error message

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/home/satellit/public_html/thelist/test.php on line 43

The global.php file is located at ././global.php

Line 43 is... eval('$navbar = "' . fetch_template('navbar') . '";');

Running vbulletin 3.8.4

Any ideas?

--------------- Added 29 Jan 2010 at 16:29 ---------------

Not working for me...

I get the following error message

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/home/satellit/public_html/thelist/test.php on line 43

The global.php file is located at ././global.php

Line 43 is... eval('$navbar = "' . fetch_template('navbar') . '";');

Running vbulletin 3.8.4

Any ideas?

--------------- Added 29 Jan 2010 at 16:53 ---------------

Not working for me...

I get the following error message

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/home/satellit/public_html/thelist/test.php on line 43

The global.php file is located at ././global.php

Line 43 is... eval('$navbar = "' . fetch_template('navbar') . '";');

Running vbulletin 3.8.4

Any ideas?

Digital Jedi 30 Jan 2010 20:33

Whoa, quadruple post!
Quote:

Originally Posted by scottct1 (Post 1969832)
Not working for me...

I get the following error message

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/home/satellit/public_html/thelist/test.php on line 43

The global.php file is located at ././global.php

Line 43 is... eval('$navbar = "' . fetch_template('navbar') . '";');

Running vbulletin 3.8.4

Any ideas?

Er, okay, the error is at line 43 of your test.php file, not your global.php file. You probably deleted a quote or something when putting in your template name.

Also, I don't know what you mean when you say where global.php is located, but unless you have some very customized file locations, there was no reason to edit the line refering to global.php. require_once('./global.php'); shouldn't need to be changed.

amcd 31 Jan 2010 16:42

././global.php is the same as ./global.php which is also the same as ./././././././././././././././global.php

. refers to the current directory and .. refers to parent directory.

edytwinky 17 Feb 2010 23:05

Quote:

Originally Posted by Gary King (Post 482619)
1) correct
2) replace $bbuserinfo[usergroupid] == 6 with $bbuserinfo[usergroupid] == 7 or $bbuserinfo[usergroupid] == 8 or $bbuserinfo[usergroupid] == 9
3) Replace eval('print_output("' . fetch_template('TEST') . '");'); with your PHP stuff.

In while file do I edit to allow the article to be viewed by only certain usergroups?

gcc.programmer 18 Feb 2010 05:49

Hello:

I'm a vB noob, trying to create a static page w/ vB 3.8.4 I placed the test.php file in the forums folder, and created the template as a new template in the admincp, but am getting a "page not found" when I type in the url for the page. Obviously, I'm not doing something right!

Could someone offer me some advice?

Thanks.

cellarius 18 Feb 2010 09:16

If you're getting a 404, you either did not upload the file, did not upload to the correct place, did not enter the correct URL or have a typo.

Problem Resolved
by gcc.programmer
22 Feb 2010 18:25

LOL!

The site I was working on is not my own, and though I thought I was in the right place, the owner has over 100 web properties, and at this point has lost track of many of them. Luckily, the servers he uses are managed. When I spoke with them, I found that the document root I was using, though it looked correct, was not in fact the correct one.

Thank you, Cellarius for taking the time to respond to me.

Abdullah SZ 01 Mar 2010 07:25

Quote:

Now if you want to show who is browsing this new page of yours, just open up includes/functions_online.php and find:

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

Below, add:
I can't find it.

Quote:

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

(Be sure to change the values to your own!)
I know the first test is file name, what about the second one?

Digital Jedi 02 Mar 2010 17:33

Quote:

Originally Posted by Abdullah SZ (Post 1994289)
I can't find it.

It's not in there anymore. Just look for the area with that same syntax structure. There are a bunch of blocks of code with that same format.

Quote:

I know the first test is file name, what about the second one?
Same name. In his tutorial all lowercase tests are the file name and all uppercase TESTs are the template name.

SoloX 20 Mar 2010 16:57

Hi all ...

Which templates do I need to include to get a list of latest threads?
Similar to what we get by going to /forums/search.php?do=getnew

I am sure his has been asked before but I could not find an answer.

Thanks

Simon Lloyd 20 Mar 2010 19:33

This question has nothing to do with this mod, however dump this in your new template:

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

Change YOURSITE.COM, the forum ID's and the 15 to as many threads as you would like to show!

Dan! 21 Mar 2010 09:53

I've followed your guide and its worked pretty well, apart from I have the following error at the top of my page:

Quote:

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/socialop/public_html/includes/class_core.php on line 2552
any ideas at all?


All times are GMT. The time now is 16:19.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2001 - , vbulletin.org. All rights reserved.