vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - ibProArcade - professional Arcade System (https://vborg.vbsupport.ru/showthread.php?t=101554)

stangger5 08-14-2012 04:02 PM

Quote:

Originally Posted by GandM (Post 2356917)

I get not found. So I do not know where to insert the new code into the template?
I am running vb 4.2.0

Any help or suggestions would be appreciated.

vb4.2 you need to use the Navigation Manager and make a arcade tad there ..
No more need for the template edit..

GandM 08-14-2012 04:19 PM

Thank you for the reply. Pardon my ignorance but i have never made a tab before. I do not know what to enter for Target URL.

I can make a tab called Arcade but it does do anything, just acts like the whats new tab.

stangger5 08-14-2012 04:24 PM

Quote:

Originally Posted by GandM (Post 2356924)
Thank you for the reply. Pardon my ignorance but i have never made a tab before. I do not know what to enter for Target URL.

I can make a tab called Arcade but it does do anything, just acts like the whats new tab.

Active: Yes
Title: Arcade
Target URL: arcade.php

:)

GandM 08-14-2012 04:26 PM

Quote:

Originally Posted by stangger5 (Post 2356926)
Active: Yes
Title: Arcade
Target URL: arcade.php

:)

Thank you very much for the fast reply. The arcade tab and the arcade is working.

james_t 08-14-2012 07:12 PM

I just upgraded the forum to vBulletin 4.2 and now the arcade scores won't submit. I tried downloading the .htaccess file mentioned earlier in the thread but the .zip file won't expand.

Hippy 08-14-2012 07:42 PM

try to add the index edit..
you will find that in the txt file of the archive

james_t 08-14-2012 09:28 PM

Quote:

Originally Posted by Hippy (Post 2356965)
try to add the index edit..
you will find that in the txt file of the archive

I can't get the archive to expand, so I can't access the .txt file.

I tried pasting this into the index.php after the <?php but it made the home page error out.

// ibProArcade
if($_POST['module'] == "pnFlashGames")
{
require_once('./global.php');

switch($_POST['func'])
{
case "storeScore":
$_GET['act'] = "Arcade";
$_GET['module'] = "arcade";
$_GET['do'] = "pnFStoreScore";
break;

case "saveGame":
$_GET['do'] = "pnFSaveGame";
break;

case "loadGame":
$_GET['do'] = "pnFLoadGame";
break;

case "loadGameScores":
$gid = $vbulletin->input->clean_gpc('p', 'gid', TYPE_INT);
$uid= $vbulletin->userinfo['userid'];
$game = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "games_scores WHERE mid=$uid AND gid = $gid ORDER BY score DESC LIMIT 0,1");
$scores = $game[score];

if($scores != false)
{
//Return true
print "&opSuccess=true&gameScores=$scores&endvar=1"; //send endvar to keep opSuccess separate from all other output from PostNuke
}
else
{
print "&opSuccess=false&error=Error&endvar=1";
}
break;
}
}

$act = $_GET[act];
$autocom = $_GET[autocom];
$showuser= $_GET[showuser];
if($act == "Arcade" || $autocom=="arcade") {
include "arcade.php";
exit();
}
if(!empty($showuser) && $showuser >= 1) {
$u = $showuser;
$_GET[u] = $showuser;
include "member.php";
exit();
}

// end of ibProArcade
----------------------------------------------------------

Hippy 08-14-2012 09:36 PM

That should of worked many be something was out of place.. you can email me the file and I could look it over . Details are in my profile
By the way you mentioned youtried the htaccess. Do you know if rewrite is on what code in that file? Or did you add to your already existing .htaccess

james_t 08-14-2012 09:45 PM

It's just the default index file that came with the latest vbulletin.

I tried creating a .htaccess file, but since I don't really know what I'm doing, I can't say I did it right.

I'm not sure how to email you an attachment.

Hippy 08-14-2012 09:56 PM

<a href="https://vborg.vbsupport.ru/showthread.php?p=2328579" target="_blank">https://vborg.vbsupport.ru/showthread.php?p=2328579</a>

This will help you , with the htaccess.. as far as attaching a file to a email.. find add attachment. Browse for the file v you want to attach . my email is in my profile..


All times are GMT. The time now is 11:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12594 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete