vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Rookie here (https://vborg.vbsupport.ru/showthread.php?t=118335)

oberheimhaven 06-11-2006 07:58 PM

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 />');

Xtrato 06-12-2006 01:56 AM

if it shows you a line like:

Find : K

Above this ADD: F

it would look like

F
K

Sean S 06-12-2006 01:56 AM

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 ;)

oberheimhaven 06-12-2006 02:21 AM

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:

Xtrato 06-12-2006 02:25 AM

you installing a new vBulletin forum?

Sean S 06-12-2006 02:27 AM

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.

oberheimhaven 06-12-2006 02:46 AM

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


All times are GMT. The time now is 02:31 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.01126 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete