Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
eBay Search function - code updated Details »»
eBay Search function - code updated
Version: 1.00, by scottkoz20 scottkoz20 is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.2.x Rating:
Released: 09-01-2018 Last Update: Never Installs: 1
Template Edits
Re-useable Code Code Changes Additional Files  
No support by the author.

Background Note for this Hack: My search functionality for eBay broke on my site 2 weeks ago and I got it re-working yesterday. This was something that was added onto my site year before I took over sportscardforum.com and I don't know if the original author is a member here (so if someone is the original author, please advise so I can provide the proper credit).

This hack is adding/updating eBay search functionality on your site.

1) If you do not have an eBay EPN Campaign ID, you will need to register for this first. You can go to https://epn.ebay.com/login to register.

2) Add the following code snippet to your Style that you want to modify the Navbar from the Navigation/Breadcrumb Templates. I have mine above the following (it's embedded with another mod)

Code:
{vb:raw ad_location.ad_navbar_below}
You will need to change the BOLD text to your eBay EPN Campaign

Code:
				
<form method="get" id="search-ebay-box" target="_blank" action="http://rover.ebay.com/rover/1/711-53200-19255-0/1?" >
<input type="hidden" name="type" value="3" />
<input type="hidden" name="campid" value="Your Campaign ID from EPN" />
<input tabindex="1" type="text" name="icep_uq" value="" maxlength="160" size="26" class="ebaytext" />
<input type="submit" value="Search" tabindex="3" />
</form>
You can play with this a bit, I use to have mine on the header of the site, but changed this earlier this year.

3) Save and test.


There is a Javascript code that you can add to put in a transparent overlay. The code would go directly AFTER the end form tag.

If wanted to use this, the image will need to be uploaded to your images/misc folder. Please change the BOLD text to be your site.

Code:
<script type="text/javascript">
(function() { var f = document.getElementById('search-ebay-box'); if (f && f.icep_uq) { var q = f.icep_uq; var n = navigator; var l = location; if (n.platform == 'Win32') { q.style.cssText = 'border: 2px solid #7e9db9; padding: 2px;'; } var b = function() { if (q.value == '') { q.style.background = '#FFFFFF url(YOUR SITE/images/misc/ebay_search.gif) left no-repeat'; } }; var f = function() { q.style.background = '#ffffff'; }; q.onfocus = f; q.onblur = b; if (!/[&?]q=[^&]/.test(l.search)) { b(); } } })();
</script>
This would be the final product



I do not know if this will work on VB3 or VB5. You'd have to test this out and that part of the reason I am going to mark this not supported.


I can try to answer and help where I can, but I know enough to be dangerous, not enough to be proficient. :erm:

Show Your Support

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

Comments
  #2  
Old 09-02-2018, 05:13 PM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reserved
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 02:46 PM.


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.03373 seconds
  • Memory Usage 2,219KB
  • Queries Executed 16 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_onlinestatus
  • (2)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