PDA

View Full Version : Trying to edit index.php but doesn't seem to be right file


PamBlizzard
11-12-2004, 09:49 PM
I'm trying the instructions for adding CMPS content to other forum pages, provided at http://www.vbadvanced.com/membersarea.php?do=viewmanual&productid=4&pageid=6

where it says:
For the next step, you will want to search your file for the phrase "print_output" (without the quotes). In our example here, you would find the following code:

eval('print_output("' . fetch_template('FORUMHOME') . '");'); "
However, my index.php does not contain that code at all. In fact, it's a very short file. and looks like this:

<?php
// ++=========================================================================++
// || vBadvanced CMPS v1.0.0
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 18:45, Sun Nov 7th 2004
// ||
// ++ ========================================================================++
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);

// ============================================
// No Further Editing Necessary!
// ============================================

require_once('./global.php');

print_portal_output($home);

?>
The renamed index_old.php DOES have the code that I am told to search for and edit, but it really is my OLD index file from the first portal version before I upgraded to CMPS.

Any thoughts on what I might be doing wrong, or what the right file is?

THANKS! :)

Artayick
11-13-2004, 08:53 AM
you are to edit the index.php for your forums not the cmps index.php you will find your phrase to edit there

Our Sponsors
 

PamBlizzard
11-13-2004, 09:01 AM
Thanks for your reply :)
I posted the contents of my actual index.php above (not the cmps index.php) and the phrase does not exist in that file, as you can see.

Artayick
11-13-2004, 09:16 AM
that is rather odd.. My index.php for my forums is a rather large file. How is your site and forums set up.. like mine.. www.tkgn.com/index.php is my home page.. where forums.tkgn.com/index.php is my vb home page.. this is the file to edit.. if it still like that.. im lost too..

Our Sponsors
 

PamBlizzard
11-13-2004, 09:23 AM
Yes, isn't it? :) I had Brian do the upgrade from the HomePage to CMPS for me yesterday (and he was lightening fast, awesome!) So I guess he set it up a bit differently.

Like you, my root domain is my portal page the forum. I have no subdirectory for the forum itself, it's all in the root directory.

I don't know much about php but I suspect that "define('THIS_SCRIPT', 'adv_index');" is calling a page or template named adv_index, but I can't find one of those either!

I'm sure Brian will sort it all out for me...unless someone else has run up against the same thing.

Artayick
11-13-2004, 09:59 AM
if your foums and and home page are installed in the same dir.. he prolly renamed the forum index to something else.. cause that is the index code for the cmps page. Take a look at your url contact details in your vb admin and see if there is the path to the forums and what the file name is that it might have been changed to

PamBlizzard
11-13-2004, 10:19 AM
Good idea...yes, it says my domain, my root directory. Very strange!

Artayick
11-13-2004, 10:29 AM
can i get a link to your site real quick like... i have to see this... driving me nuts and its not even my site.. lol

PamBlizzard
11-13-2004, 10:36 AM
Sure! I have VB 3.0.0, no mods except for CMPS that was upgraded from HomePage yesterday.

http://www.JohnEdwardTalk.org

Artayick
11-13-2004, 10:38 AM
file you are needing to edit is forum.php that is the name of the file that he changed the index.php to. You can put your code in there to get your nav bar on the left side

Artayick
11-13-2004, 10:41 AM
also quick note.. in your vb settings you might want to check the path to your home page.. cause when going from the forum.. and clicking the link at the bottom takes you to the old site I believe.. http://www.johnedwardfriends.org/home.shtml is where that takes me..

PamBlizzard
11-13-2004, 10:41 AM
*Pam smacks her head* thank you SO much. I didn't think far enough back in the process.....thank you, thank you....

Artayick
11-13-2004, 10:47 AM
welcome glad to help out..