PDA

View Full Version : Administrative and Maintenance Tools - add/import product link relocation


o0Hubba0o
04-14-2007, 10:00 PM
As per my own request here (https://vborg.vbsupport.ru/showthread.php?t=127389).

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 (https://vborg.vbsupport.ru/showpost.php?p=1228039&postcount=3), 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):
{
print_cp_header($vbphrase['plugin_products_system']);
}

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


This will add this...:
http://img.photobucket.com/albums/v496/HubbasBedroom/forum/importlinkbot.gif

....up here too:
http://img.photobucket.com/albums/v496/HubbasBedroom/forum/importlinktop.gif

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

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