Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2002, 03:04 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi.
I was trying to modify the above file to make a simple hack:
I would use my left-side menu in AdminCP to link some external link, like phpMyAdmin and so on, like a bookmark keeper.

Well, as the standard makenavoption appends a '&s=session' to the link,
PHP Code:
// NOTE: '&s=$session[sessionhash]' will be AUTOMATICALLY added to the URL - do not add to your link! 
I would modify slightely the above file.

Well, I got an error because the adminfunctions.php file is somehow linked to functions.php one and to some other.

What's the solution to modify that (or similar) files ?

Thanks
Reply With Quote
  #2  
Old 01-07-2002, 06:19 PM
dito dito is offline
 
Join Date: Dec 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well if i get u right then ur in the wrong file.....

go to admin/index.php,

find;
Code:
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("Options"); ?>
</table>
<a href="options.php?s=<?php echo $session[sessionhash]; ?>&action=options"> Change options </a>
</td></tr>
now above that u can add ur own link like this:
Code:
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("phpmyadmin"); ?>
</table>
<a href="www.urdomain.com/phpmyadmin">use phpmyadmin </a>
</td></tr>

now if u want to make more links do it like this again and if u want to add more options within a certain group then just add this line and change it to ur needs:<a href="www.urdomain.com/phpmyadmin">use phpmyadmin </a>
but remember to add this "|"after each line so it looks like this;
Code:
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("phpmyadmin"); ?>
</table>
<a href="www.urdomain.com/phpmyadmin">usephpmyadmin</a> |
<a href="www.urdomain.com/phpmyadmin/tutorials">phpmyadmin tutorials</a>
</td></tr>
Reply With Quote
  #3  
Old 01-07-2002, 07:27 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wrong YOUR version, I think...
Thanks the same

I'm talking about v2.2.1 .... All the menu options are done by
makenavoption called in adminfunctions.php ...

What's yours ?
:stupid:
Reply With Quote
  #4  
Old 01-07-2002, 08:34 PM
dito dito is offline
 
Join Date: Dec 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ooh hehe well im using v2.1.0
so im not sure if that changed in v2.2.0
just check it to be sure....
Reply With Quote
  #5  
Old 01-07-2002, 08:38 PM
dito dito is offline
 
Join Date: Dec 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well anyway i think if u remove the sesion hash it will work fine look at the code that i showed
compare the one that i asked u to search for and the custom one i made under it ...on the top one u see sesion session hash and in the custom i replaced it cuz it only works if u make that page within the vb so then u would have to include it in misc.php if im not mistaken...
Reply With Quote
  #6  
Old 01-07-2002, 08:38 PM
Psychdrone Psychdrone is offline
 
Join Date: Nov 2001
Posts: 525
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

version 2.1.0 eh??
Reply With Quote
  #7  
Old 01-07-2002, 09:12 PM
dito dito is offline
 
Join Date: Dec 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes im using v2.1.0 but the guy in question uses 2.2.0
so i dont know that evrsion
Reply With Quote
  #8  
Old 01-08-2002, 06:27 AM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2.2.1 ...

Hwr, I didn't thought ver 2.1.0 would exist ...

Any way, my problem is in index.php reflecting functions defined in adminfunctions.php, AS REQUESTED in my first post in topic.

Nothing else... !

Thanks. Bye
Reply With Quote
  #9  
Old 01-11-2002, 08:56 AM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uhh? Nobody can help ?

Where in code that file is locked ?

Thanx
Reply With Quote
Reply


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 10:14 PM.


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.04667 seconds
  • Memory Usage 2,242KB
  • 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
  • (3)bbcode_code
  • (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