Our Sponsors



PHP Nuke themes, stock photos, icons, drupal themes and more.
Custom jobs at low cost, free lancers and service buyers.



Western Studios :: View topic - Live Server Status
Need Jobs done? Use our brand new Jobs Board to get your projects done at affordable prices.
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups     ProfileProfile   Log inLog in 


Live Server Status


Goto page Previous  1, 2, 3
 
Post new topic   Reply to topicprinter friendly version    Western Studios Forum Index -> General
Western Studios

Site Admin
Site Admin
~PHP Nuke User~

Platinum Subscriber

Posts: 3358
Staff
Next Group: 1642 posts
admin(Mark) wrote:

hi, I do not have smarty template system installed but I will try to help you.
Try this:
Open the pn-server.php and on line 8 change
Code:
$ThemeSel = get_theme();

to:
Code:
global $theme;
$ThemeSel = get_theme();


Next scroll down the bottom of that file and change the following:
http://www.westernstudios.net/pastebin/index.php?show=75

to:
http://www.westernstudios.net/pastebin/index.php?show=76

Next open pn_server_c.html and under {/literal} add {mytheme}

Posted: Thu Oct 26, 2006 7:22 pm

Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 15
Next Group: 35 posts
ShotoKan wrote:

I did the changes you sent and i am getting the following error:

Fatal error: Call to undefined function: get_theme() in /home/jn00bfes/public_html/v2stats/pn-server.php on line 17

I think this error is happening because my nuke site is located at /home/jn00bfes/public_html/v3 and this pn-server.php is running at /home/jn00bfes/public_html/v2stats so is probably not finding the get_theme() function

How could i solve that? Should i move the /v2stats inside my nuke main folder or is there a way to make it find the get_theme() function?

Posted: Fri Oct 27, 2006 7:53 am

Western Studios

Site Admin
Site Admin
~PHP Nuke User~

Platinum Subscriber

Posts: 3358
Staff
Next Group: 1642 posts
admin(Mark) wrote:

try this instead, move the pn-server.php file to root folder where your mainfile.php and config.php are located. Next open the pn-server.php file and just above these codes
Code:
global $theme;
$ThemeSel = get_theme();


add:
Code:
require_once "mainfile.php";


Next you will need to edit your block to link to the pn-server.php. Change the link
Code:
http://www.yoursite.com/v2stats/pn-server.php?s=0


to:
Code:

http://www.yoursite.com/pn-server.php?s=0


Posted: Fri Oct 27, 2006 8:05 am

Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 15
Next Group: 35 posts
ShotoKan wrote:

Ok.
What i did was to add the require_once "mainfile.php"; like you said inside the pn_server.php pointing to the right place where the file is but did not move the file to the roor directory.

So i did this require_once "/v3/mainfile.php";

The error now is gone but it shows only a blank page.

I cant move it to the root because then it will give me other errors on the includes files.

I think we are getting there.

Posted: Mon Oct 30, 2006 4:26 pm

Post new topic   Reply to topic    Western Studios Forum Index -> The hangout -> General All times are GMT - 5 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts What is this site missing? 5 admin 1848 Sat Aug 30, 2008 2:31 am
strik9 View latest post
No new posts Version Information 4 Guest 771 Sat Jun 18, 2005 11:49 pm
Guest View latest post
No new posts New site design 4 admin 1491 Tue Apr 13, 2004 10:18 am
admin View latest post
This topic is locked: you cannot edit posts or make replies. Site logo 3 Greener 1830 Wed Feb 25, 2004 11:48 am
admin View latest post
 
Forums ©