vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - add/import product link relocation (https://vborg.vbsupport.ru/showthread.php?t=144887)

o0Hubba0o 04-14-2007 10:00 PM

add/import product link relocation
 
As per my own request here.

Plug-in works with 3.7

This is a very basic, it is a file edit however. Basically once you have a lot of products installed the add/import product link is at the bottom of the page and I wanted it on top so I didn't have to scroll down or move the page all the way down. Well I finally found it lol.

What I did was just add another link at top and left the other one at the bottom, this will be my first time submitting an edit of my own here so play nice. ;) If anythings missing or wrong please let know.


EDIT: Before going on, Survivor posted a plug-in in this post, I've added to my instructions in a zip file, but the plug-in makes it a lot easier. Thanks tons Survivor, I've really got to sit and look into the plug-in/product system so I can that in the future lol.

In forums/admincp open your plugin.php

FIND (at top):
PHP Code:

{
    
print_cp_header($vbphrase['plugin_products_system']);


AFTER ADD:
PHP Code:

echo '<p align="center">' construct_link_code($vbphrase['add_import_product'], "plugin.php?" $vbulletin->session->vars['sessionurl'] . "do=productadd") . '</p>'


FleaBag 04-14-2007 11:07 PM

Genius. I really don't understand why it's at the bottom anyway!

Surviver 04-15-2007 04:34 AM

Nice Idea, but why a file Edit? ;)

I'hve attached two Plugins - Import them and the Link is shown up without a file-edit ;)

@o0Hubba0o

If you want you can attach it in the first post ;)

Greetings Surviver

thincom2000 04-15-2007 05:43 AM

Thank you. The scrolling was starting to get on my nerves. :D

Although I found that adding it before
PHP Code:

    print_table_header($vbphrase['installed_products'], 4); 

was better because otherwise it appears on other pages unnecessarily.

Hornstar 04-15-2007 07:35 AM

Hey nice work.

bashy 04-15-2007 08:11 AM

Installed your plugin, nice thanks...

Quote:

Originally Posted by Surviver (Post 1228039)
Nice Idea, but why a file Edit? ;)

I'hve attached two Plugins - Import them and the Link is shown up without a file-edit ;)

@o0Hubba0o

If you want you can attach it in the first post ;)

Greetings Surviver

Thanks to the author for the idea as well.....I have like 200+ products installed pmsl..
it was a long way down......

rjmjr69 04-15-2007 02:26 PM

Sweet!!!!!!!!!!! Any advantage to updating to the xml?

o0Hubba0o 06-09-2007 05:16 PM

Quote:

Originally Posted by rjmjr69 (Post 1228334)
Sweet!!!!!!!!!!! Any advantage to updating to the xml?

Not really any advantage to it, the link just shows up on the product page only now instead of all the pages like before.


All times are GMT. The time now is 10:03 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.00960 seconds
  • Memory Usage 1,735KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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