Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 12-13-2005, 06:31 PM
VaaKo VaaKo is offline
 
Join Date: Jul 2005
Location: Lebanon
Posts: 400
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default renaming my index.php

I just installed vbadvanced CMPS, and I would like to rename my index.php (forum) into forum.php so I can rename my CMPS file index.php
so that when users enter my site they get the portal first and then they click on the forum.php

NOT: that the portal and the forum are on the same dir
Reply With Quote
  #2  
Old 12-13-2005, 06:35 PM
TyleR's Avatar
TyleR TyleR is offline
 
Join Date: Nov 2004
Location: North Carolina
Posts: 349
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just rename it, then go to AdminCP->vBulletin Options->Forum Home Page Options-> Set the first box to forum instead of index.
Reply With Quote
  #3  
Old 12-14-2005, 04:49 AM
VaaKo VaaKo is offline
 
Join Date: Jul 2005
Location: Lebanon
Posts: 400
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it worked but now my arcade is messed up, everytime a user tries to save his highscore, it redirects him to the portal
I donno why
so I restore it

any other way to make people enter portal.php instead of index.php?
Reply With Quote
  #4  
Old 12-14-2005, 05:04 AM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make an index.html file, put it in your root. and place this in it

HTML Code:
<html>
	<head>
	<title>your site name.... </title>
	<script language="JavaScript">
	self.location.href='/forums/portal.php';
	</script>
	</head>
	<body>
	</body>
	</html>
Reply With Quote
  #5  
Old 12-14-2005, 12:15 PM
VaaKo VaaKo is offline
 
Join Date: Jul 2005
Location: Lebanon
Posts: 400
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that didn't work :\
weird :\

any other way?

maybe htaccess file?
could that work?
Reply With Quote
  #6  
Old 12-14-2005, 01:01 PM
utw-Mephisto utw-Mephisto is offline
 
Join Date: Jan 2005
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your index.php (which ever) add this at the top of the file just below <?php

Code:
if($_POST['module'] == "pnFlashGames"){
	$_GET[act] = "Arcade";
	$_GET['module'] = "arcade";
}
if($_POST['func'] == "storeScore"){
	$_GET['do'] = "pnFStoreScore";
}
if($_POST['func'] == "saveGame"){
	$_GET['do'] = "pnFSaveGame";
}
if($_POST['func'] == "loadGame"){
	$_GET['do'] = "pnFLoadGame";
}
$act = $_GET[act];
$showuser= $_GET[showuser];
if($act == "Arcade") {
include "arcade.php";
exit();
}
if(!empty($showuser) && $showuser >= 1) {
$u = $showuser;
$_GET[u] = $showuser;
include "member.php";
exit();
}
Arcade should be able now to save the highscore correctly ... I am using also forum.php instead of index.php because my cms needs an index.php (also vbadvanced)

Oh, assuming you use ibproarcade as on ut2007world.com

So your index.php should look like

PHP Code:
<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.0.0 (vB 3.5) - 9656
// || ? 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 03:54, Fri Dec 9th 2005
// || 
// ++ ========================================================================++


// ibproarcade modification
if($_POST['module'] == "pnFlashGames"){
    
$_GET[act] = "Arcade";
    
$_GET['module'] = "arcade";
}
if(
$_POST['func'] == "storeScore"){
    
$_GET['do'] = "pnFStoreScore";
}
if(
$_POST['func'] == "saveGame"){
    
$_GET['do'] = "pnFSaveGame";
}
if(
$_POST['func'] == "loadGame"){
    
$_GET['do'] = "pnFLoadGame";
}
$act $_GET[act];
$showuser$_GET[showuser];
if(
$act == "Arcade") {
include 
"arcade.php";
exit();
}
if(!empty(
$showuser) && $showuser >= 1) {
$u $showuser;
$_GET[u] = $showuser;
include 
"member.php";
exit();
}
// end of ibproarcade modification

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''adv_index');
define('VBA_PORTAL'true);
define('VBA_SCRIPT''CMPS');

// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

chdir('/xxxxxx);

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

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once('
./global.php');

print_portal_output($home);

?>
Reply With Quote
  #7  
Old 12-14-2005, 03:42 PM
VaaKo VaaKo is offline
 
Join Date: Jul 2005
Location: Lebanon
Posts: 400
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx man, seems to be working fine
really thx
Reply With Quote
  #8  
Old 12-14-2005, 03:57 PM
utw-Mephisto utw-Mephisto is offline
 
Join Date: Jan 2005
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

glad that it worked
Reply With Quote
  #9  
Old 12-14-2005, 05:44 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

utw-Mephisto,

Please remove vBa file quoted above.

Thanks
Reply With Quote
Reply

Thread Tools
Display Modes

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


All times are GMT. The time now is 11:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12253 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete