Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 06-11-2006, 07:58 PM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Rookie here

where adding code to modify the install like index.php when it askes to add code above something

Example> If>(adminexample)
t hen add code above this ,here is the stupid question copy the code right above this? I know silly but Im cornfused

thxs
rook

Find:
__________________________________________________ ______________________________ ___________

if (can_administer('canadminstyles'))

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯

Above this, add:
__________________________________________________ ______________________________ ___________

construct_nav_option("General Settings", 'arcadeadmin.php?do=general', '<br />');
construct_nav_option("Game Settings", 'arcadeadmin.php?do=games', '<br />');
construct_nav_option("Score Settings", 'arcadeadmin.php?do=scores', '<br />');
construct_nav_option("Challenges", 'arcadeadmin.php?do=challenges', '<br />');
construct_nav_group("Arcade", '<hr />');
Reply With Quote
  #2  
Old 06-12-2006, 01:56 AM
Xtrato's Avatar
Xtrato Xtrato is offline
 
Join Date: Feb 2005
Location: New Jersey
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if it shows you a line like:

Find : K

Above this ADD: F

it would look like

F
K
Reply With Quote
  #3  
Old 06-12-2006, 01:56 AM
Sean S's Avatar
Sean S Sean S is offline
 
Join Date: Jan 2004
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

basically in whatever program that you are using to edit the file, hit the find/search option within that program to find the particular line that you are looking for.

In this case, you are looking for "if (can_administer('canadminstyles'))".

Then once you find this line, you have to copy the second part and add it above this code depending on the instructions given. So in this case or particular example that you have used, the final code after editing should look like this,



Code:
construct_nav_option("General Settings", 'arcadeadmin.php?do=general', '<br />');
construct_nav_option("Game Settings", 'arcadeadmin.php?do=games', '<br />');
construct_nav_option("Score Settings", 'arcadeadmin.php?do=scores', '<br />');
construct_nav_option("Challenges", 'arcadeadmin.php?do=challenges', '<br />');
construct_nav_group("Arcade", '<hr />');

if (can_administer('canadminstyles'))
hope that helps, if you still need help just ask
Reply With Quote
  #4  
Old 06-12-2006, 02:21 AM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sean S
basically in whatever program that you are using to edit the file, hit the find/search option within that program to find the particular line that you are looking for.

In this case, you are looking for "if (can_administer('canadminstyles'))".

Then once you find this line, you have to copy the second part and add it above this code depending on the instructions given. So in this case or particular example that you have used, the final code after editing should look like this,



Code:
construct_nav_option("General Settings", 'arcadeadmin.php?do=general', '<br />');
construct_nav_option("Game Settings", 'arcadeadmin.php?do=games', '<br />');
construct_nav_option("Score Settings", 'arcadeadmin.php?do=scores', '<br />');
construct_nav_option("Challenges", 'arcadeadmin.php?do=challenges', '<br />');
construct_nav_group("Arcade", '<hr />');

if (can_administer('canadminstyles'))
hope that helps, if you still need help just ask

Ok will try Im sorry Im "new" green as the grass LOl However I have time and I will spend every second i can to learn this once all the code is in and i have to go run insall.php can u tell me how Im sorry, I do know how to upload the file to the proper place with ftp Thank you again I will learn!!

Ober:banana:
Reply With Quote
  #5  
Old 06-12-2006, 02:25 AM
Xtrato's Avatar
Xtrato Xtrato is offline
 
Join Date: Feb 2005
Location: New Jersey
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you installing a new vBulletin forum?
Reply With Quote
  #6  
Old 06-12-2006, 02:27 AM
Sean S's Avatar
Sean S Sean S is offline
 
Join Date: Jan 2004
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no problem Ober, no need to be sorry we all start from somewhere. As for running the install.php, basically first you have to upload it to the folder that the instruction gives you. In most cases, the install.php file of the mods/hacks goes in the /admincp folder of your forums. Once you have uploaded the file and made all the file edits in the instruction, just go to http://www.yoursite.com/forums/admincp/install.php and follow the instructions again from there.

by running install.php it means to just simply go to that page and it should do the install automatically for you,

good luck.

I think he is installing some kind of arcade hack/addon Xtrato by looking at the example code he has given, not sure though.
Reply With Quote
  #7  
Old 06-12-2006, 02:46 AM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oberheimhaven
Ok will try Im sorry Im "new" green as the grass LOl However I have time and I will spend every second i can to learn this once all the code is in and i have to go run insall.php can u tell me how Im sorry, I do know how to upload the file to the proper place with ftp Thank you again I will learn!!

Ober:banana:
Here is what i get when i tried to load arcade game any suggestions?

Warning: Unknown(/home/niceman/public_html/forums/includes/class_database_analyse.php): failed to open stream: No such file or directory in /admincp/plugin.php(1232) : eval()'d code on line 1

Fatal error: (null)(): Failed opening required '/home/niceman/public_html/forums/includes/class_database_analyse.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/niceman/public_html/forums/admincp/plugin.php(1232) : eval()'d code on line 1

Quote:
Originally Posted by Sean S
no problem Ober, no need to be sorry we all start from somewhere. As for running the install.php, basically first you have to upload it to the folder that the instruction gives you. In most cases, the install.php file of the mods/hacks goes in the /admincp folder of your forums. Once you have uploaded the file and made all the file edits in the instruction, just go to http://www.yoursite.com/forums/admincp/install.php and follow the instructions again from there.

by running install.php it means to just simply go to that page and it should do the install automatically for you,

good luck.

I think he is installing some kind of arcade hack/addon Xtrato by looking at the example code he has given, not sure though.
Issue was resolved thxs
Ober
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 12:12 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.04272 seconds
  • Memory Usage 2,228KB
  • 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
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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