Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
add/import product link relocation Details »»
add/import product link relocation
Version: 1.00, by o0Hubba0o o0Hubba0o is offline
Developer Last Online: May 2018 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.5 Rating:
Released: 04-14-2007 Last Update: 06-02-2007 Installs: 7
Uses Plugins
Re-useable Code Translations  
No support by the author.

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>'


This will add this...:



....up here too:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-14-2007, 11:07 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Genius. I really don't understand why it's at the bottom anyway!
Reply With Quote
  #3  
Old 04-15-2007, 04:34 AM
Surviver's Avatar
Surviver Surviver is offline
 
Join Date: Feb 2006
Location: Bonn, Germany
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 04-15-2007, 05:43 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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.
Reply With Quote
  #5  
Old 04-15-2007, 07:35 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey nice work.
Reply With Quote
  #6  
Old 04-15-2007, 08:11 AM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed your plugin, nice thanks...

Quote:
Originally Posted by Surviver View Post
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......
Reply With Quote
  #7  
Old 04-15-2007, 02:26 PM
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Location: Southie
Posts: 876
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet!!!!!!!!!!! Any advantage to updating to the xml?
Reply With Quote
  #8  
Old 06-09-2007, 05:16 PM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rjmjr69 View Post
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.
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 04:11 AM.


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.04347 seconds
  • Memory Usage 2,278KB
  • Queries Executed 21 (?)
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
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_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