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

Reply
 
Thread Tools
Prosperent Product Search and Auto-Linker Details »»
Prosperent Product Search and Auto-Linker
Version: 2.8, by 99SIVTEC 99SIVTEC is offline
Developer Last Online: Jul 2015 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.1.x Rating:
Released: 01-23-2012 Last Update: 11-20-2012 Installs: 18
Uses Plugins Auto-Templates
Additional Files  
No support by the author.

Updates:
  • November 21, 2012- Re-instantiated the template search bar for those who can't use sidebars in their templates. (v.2.8)
  • November 20, 2012- Altered Default Sort Option to make it a drop down. (v.2.7)
  • November 20, 2012- Fixed the issue causing users not to be able to view their PMs. (v.2.6)
  • November 19, 2012- The search bar is now inside a Forum Block, no longer will you have to alter your template files.
    There is also an additional part to this plugin, the Auto-Linker. More about this will be described below.
  • November 13, 2012- Resolved an issue with the starting query and when facets were clicked. (V2.4)
  • October 24, 2012- Added a starting query and updated the API. Also now works when the query has an apostrophe in it. (V2.3)
  • July 17, 2012- Added negative filters for Brands and Merchants. (v. 2.2)
  • June 4, 2012- More optimization, fixed a CSS bug. (v. 2.1)
  • May 18, 2012- Optimization. Updated API class, better functionality, removed the recent queries table. Added a CSS file that contains most of the CSS for those who want to change any settings. (v. 2.0)
  • February 21, 2012- Optimization. I was informed that it was running slow on some peoples forums, so I optimized the table. It should run a lot faster and smoother now. (v. 1.6)
  • February 16, 2012- Made some adjustments in how things are run, worked out a few bugs that I found. (v.1.5)
  • February 14, 2012- 'Recent Searches' and 'Top Products' Sidebars have been integrated. These will help drive traffic to your forums. More AdminCP Options. (v.1.4)
  • February 3, 2012- Facets have been launched, more Admin options, optimized code. (v1.3)
  • January 31, 2012- Updated with AdminCP options for the logo, default price sort type, and API key (v1.2)
  • January 27, 2012- Updated with Price Sort (v1.1)

Prosperent Product Search

This add-on will help make/increase earnings from your forum. It will add a product search to your forum's sidebar, which users can utilize to search for products. When they click the product through your forum they will be redirected to the Merchant's site. If they make a purchase you will earn a commission from the sale.

Prosperent Auto-Linker
This new portion of the add-on will enable you to designate words that will be linked to the Product Search. You can also use a different query.

For example,

red shoes => red Nike shoes
shoes

If you put the above inside the text area then any time red shoes or just shoes is in a post it will be linked to the Product Search. If you put the additional part after red shoes with any word then when it find 'red shoes' it will actually send the query of 'red Nike shoes' to the Product Search.

As with this example, put the longer part first. That way red shoes will be matched before shoes. Else red shoes would never be found.

Why Prosperent Product Search?

Prosperent Product Search uses Prosperent's API, which is a very advanced API that offers you access to 3000 merchants and 50 million products from all of the top online retailers. Stores like Zappos, 6pm, Best Buy, Overstock, REI, Advance Auto Parts, Kohl's, Gap, Banana Republic, Cabelas, and thousands more. If it is sold online, we probably have it in our system.

We have an ever growing community, which is always willing to answer questions and lend a helping hand, and our team here at Prosperent is also available on the forum.

Installation

First thing, head over to Prosperent and click Join, its Free to do so. Create your account and once you are signed in, click the API tab up top. This page will give you the information you need to know about the API. But all you need to do here at the moment is click API Keys on the submenu and click Add New API Key. This will get you the API key you'll need so commissions can be tracked back to you. Name it whatever you'd like and you'll see that its created a key for you.

Save that key somewhere as you'll be needing it later.

Now, download the .zip file and unzip it. First import the plugin file in the AdminCP. Open the 'Upload' folder and copy the contents into your main or root vbulletin directory.

Okay, with that done. Go into your AdminCP and click Settings -> Options -> Prosperent Settings and add your API Key to the input box labeled Api_Key and save that there.

The new search box is now in a forum block. These can be turned on or off inside the AdminCP options.

You also may have to enable sidebars for your forum if they currently are not active, to do this go to admincp -> options -> Forum Sidebar and Block Options and enable the Forum Sidebar option.

After that is finished, go to Forums & Moderators then go to Forum Blocks Manager. Once there click Add Block.

Block Type: Custom HTML/PHP. Click Continue. You'll be doing this for the two (2) sidebars. Now for the information to enter into each, look at the two images attached. Create a sidebar for Top Products.


If you can't view the images for any reason, for the forum block...

Title: 'Prosperent Top Products' or something similar
Description: Displays the top products.
Cache Time: 300 (or more, your call, this won't be changing as much as recent searches)
Content Type: PHP
Content: return $this;
Template to Use: Block_Prosperent_Tops_Template

Title: 'Prosperent Store' or something similar
Description: Displays the search box.
Cache Time: 1
Content Type: PHP
Content: return $this;
Template to Use: block_prosperent

Change the display order on the 'Forum Blocks Manager' to your liking.

Admin Options:

Giving you more power over this add-on.
  • Api_Key- Enter your Api key here so you can earn your commissions
  • Phrases and Optional Queries- Insert the words you'd like to be linked to the Product Search and their optional query.
  • Case Sensitive Matching
  • Open links in new window?- Will either open a link in a new window or the same window.
  • Default_Sort- Sets the sort type default. relevance desc = Relevancy, price asc = Low to High, price desc = High to Low
  • Starting Query- Adds a starting query, if nothing is set as a query when the user gets to the product search page.
  • Enable Facets
  • Api Limit- Set the API limit. Default is 10.
  • Pagination Limit- Set the amount of results to appear per page. Default is 15.
  • Addional Directory- This one is for those who's forums have an additional directory. Now instead of altering code you are able to define the additional directory here, Don't forget the leading slash (/).
  • Merchant Facets- Number of merchants to display in primary facet list
  • Brand Facets-Number of merchants to display in primary facet list
  • Enable Top Products Sidebar-
  • Top_Shown- Sets the number of Top Products to be shown in the sidebar.
  • Negative Brand Filters- Brands to discard from results. If more than 1, seperate by commas. Enter the Brand name exactly how it appears in the results. (ie. Nike, Reebok, Merrell)
  • Negative Merchant Filters- Merchants to discard from results. If more than 1, seperate by commas. Enter the Merchant's name exactly how it appears in the results.(ie. 6pm, Zappos.com, endless)
  • Logo_Image-Set to display the Prosperent Logo with the search bar. Size is 167px x 50px.
  • Logo_imageSmall- Set to enable the smaller logo. Size is 100px x 30px.
  • Template_Placement- Changes the template that {vb: raw includedphp} is placed in. Remember the template name is case sensitive.

Template Installation of Search Bar:
Go to Styles & Templates, click Style Manager and then on your Primary Style, click Edit Templates. Open the header template and insert
PHP Code:
{vb:raw includedphp
where you'd like the search bar to show up.

Notes:

You can change which template to put
PHP Code:
[COLOR="RoyalBlue"] {vb:raw includedphp}[/COLOR
into but if you do you must change it inside the plug-in. The Plug-in is named Search Form Input Box. The template name is case sensitive.

If you have any questions or suggestions, please feel free to ask me here or on the Prosperent Community.

Download Now

File Type: zip Prosperent Product Search (v2.8).zip (42.7 KB, 39 views)

Screenshots

File Type: jpg topProductBlock.jpg (59.3 KB, 0 views)
File Type: jpg Prosperent.Store.jpg (59.6 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 01-25-2012, 01:55 PM
99SIVTEC 99SIVTEC is offline
 
Join Date: Nov 2001
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm one of the other developers here at Prosperent. We tested our search plugin on one of my old automotive message forums mentioned in the first post. Here are my earnings from the plugin over the past several months:

You were paid $317.02 on December 29, 2011
You were paid $148.78 on December 5, 2011
You were paid $316.65 on November 2, 2011
You were paid $278.73 on October 8, 2011
You were paid $375.26 on August 30, 2011
You were paid $206.88 on August 3, 2011
You were paid $170.01 on July 5, 2011
You were paid $157.64 on June 7, 2011

My holiday shopping was good to me. My next payment will be 526.78.
Reply With Quote
  #3  
Old 01-26-2012, 07:30 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I now have it installed , but I notice when I search for an item the price shown is a little funky...

See the attached Pic... Notice the orange dollar sign, and the prices above it.
Attached Images
File Type: jpg see.jpg (80.1 KB, 0 views)
Reply With Quote
  #4  
Old 01-26-2012, 07:37 PM
99SIVTEC 99SIVTEC is offline
 
Join Date: Nov 2001
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking into that now, be back with you in a few.
Reply With Quote
  #5  
Old 01-26-2012, 07:52 PM
99SIVTEC 99SIVTEC is offline
 
Join Date: Nov 2001
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, so I can't get either of the ones that I have running to do the same, even when I search for HDMI cable. The only issue I can see is that its trying to list the price_sale.
Could you give me the URL so I can see a live example and see if the CSS is causing an issue. You can PM me the link if you'd like.
Did you alter the products.php at all?
Reply With Quote
  #6  
Old 01-26-2012, 07:58 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Only thing I changed in products.php was adding my API.

Site URL is www.satelliteguys.us.
Reply With Quote
  #7  
Old 01-26-2012, 08:02 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BTW a user of mine sends a suggestion...

They would like to see results ordered in lowest price to highest price.

Thanks for your fast work!
Reply With Quote
  #8  
Old 01-26-2012, 08:09 PM
99SIVTEC 99SIVTEC is offline
 
Join Date: Nov 2001
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

K, so looking at the results, it would seem that its commenting out the if and else statements that display the price.
PHP Code:
<td style="width:17%; font-size:18px;"> <!--?    
                if(empty(
$record['price_sale']) || $record['price'] <= $record['price_sale'])
                { 
                    
//we don't do anything 
                    
?--> <p style="padding-bottom:15px;"><span>$<span>50.17</span></span></p> <!--?
                }
                
//otherwise strike-through Price and list the Price_Sale
                
else
                { 
                    ?--> <
p style="padding-bottom:3px;"><span style="text-decoration: line-through;">$50.17</span></p> <p style="padding-bottom:15px;"><span><font color="#cc6600">$<span></span></font></span></p> <!--? 
                } 
                ?--> <
a rel="nofollow" href="www.satelliteguys.us/product.php?q=Monster Cable HDMI A/C - Type C Mini HDMI - Type A HDMI Cable- 6ft" onclick="javascript:document.location='http://prosperent.com/store/product/401335-2154-0/?k=Monster+Cable+HDMI+A%2FC+-+Type+C+Mini+HDMI+-+Type+A+HDMI+Cable-+6ft&amp;m=Mwave.com&amp;p=b14bc82e7b5257399d818714aed72ce5&amp;referrer=http%3A%2F%2Fwww.satelliteguys.us%2F&amp;location=http%3A%2F%2Fwww.satelliteguys.us%2Fproduct.php%3Fq%3Dhdmi%2Bcable&amp;query=Hdmi+Cable';return false;"><img src="http://community.prosperent.com/img/visit_store_button.gif"></a> </td
So its included <!-- --> where the PHP statements should be. Check your code, and see if you can add
PHP Code:
<td style="width:17%; font-size:18px;">
                <?php    
                
if(empty($record['price_sale']) || $record['price'] <= $record['price_sale'])
                { 
                    
//we don't do anything 
                    
?>
                    <p style="padding-bottom:15px;"><span>$<span><?php echo $record['price']?></span></span></p>
                    <?php
                
}
                
//otherwise strike-through Price and list the Price_Sale
                
else
                { 
                    
?>
                    <p style="padding-bottom:3px;"><span style="text-decoration: line-through;">$<?php echo $record['price']?></span></p>
                    <p style="padding-bottom:15px;"><span><FONT COLOR="#cc6600">$<span><?php echo $record['price_sale']?></span></FONT></span></p>
                    <?php 
                

                
?>
                <a href="<?php echo $_SERVER['HTTP_HOST']; ?>/product.php?q=<?php echo $record['keyword']?>" onclick="javascript:document.location='<?php echo $record['affiliate_url']?>';return false;"><img src="http://community.prosperent.com/img/visit_store_button.gif"></a>
            </td>
It may have gotten affected, but if that doesn't work, probably the best thing to do for the moment would be to take out the code inside that
HTML Code:
<td></td>
statement and put
HTML Code:
<p style="padding-bottom:15px;"><span>$<span><?php echo $record['price']?></span></span></p>
Let me know if either of those fix the issue. And as for the price sorting, that's a very good idea, I'll start working on that.
Reply With Quote
  #9  
Old 01-26-2012, 08:16 PM
99SIVTEC 99SIVTEC is offline
 
Join Date: Nov 2001
Posts: 281
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And if you'd like you can send me your version of the products.php file and I can fix it for you.
Reply With Quote
  #10  
Old 01-26-2012, 08:18 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That worked, looks much better now, thanks!

Glad to hear your working on the price sorting feature, I am sure many people will enjoy that!
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 03:34 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.05959 seconds
  • Memory Usage 2,370KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_html
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete