Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Amazon Store Integration Details »»
Amazon Store Integration
Version: 1.00, by mikelbeck mikelbeck is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Version: 3.0.9 Rating:
Released: 09-19-2005 Last Update: 09-26-2005 Installs: 6
DB Changes Template Edits
Code Changes Additional Files Is in Beta Stage  
No support by the author.

This is my first mod for vBulletin, so take it easy on me if I've done something incorrect...

Anyway, this is an Amazon store integration mod for vB. One of my sites is job/career oriented, so I offer books that are related to this through this mod. It will pull all of the items in a particular category (Amazon BrowseNode) and display them for users to pick & choose what they want. They can add the items to a remote Amazon shopping cart, and when they're finished shopping they can check out through Amazon.

Note that only logged in users will be able to add item to their carts.

See the attached file "install.txt" for installation instruction.

You can see it in action here:

http://www.discusscareers.com/book_store.html

Let me know what you think, have any problems, questions, suggestions, etc.

Show Your Support

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

Comments
  #12  
Old 09-24-2005, 01:34 PM
xug xug is offline
 
Join Date: Oct 2001
Location: The Grand Strand, SC
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mikelbeck, the page you link to and when I browse through the 'store' it gives an error, syntax error in line 2 in the html pages.
Reply With Quote
  #13  
Old 09-24-2005, 03:36 PM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
 
Join Date: Jul 2005
Location: 4C6F6E672049736C616E642C2
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xug
Mikelbeck, the page you link to and when I browse through the 'store' it gives an error, syntax error in line 2 in the html pages.
Thanks, I hadn't noticed that.

I don't see anything wrong with "line 2", though, I'll have to look further.
Reply With Quote
  #14  
Old 09-24-2005, 04:18 PM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
 
Join Date: Jul 2005
Location: 4C6F6E672049736C616E642C2
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't find anything wrong with what it's referring to.

However, I did find one error, and have one addition. I've changed the "install.txt" at the beginning of this thread. Here's the changes.

In the amazon_store template:
find:
PHP Code:
$amazon_store_header_listbit
</table
add after:
PHP Code:
<tr>
<
td>
<
div class="smallfont" align="center">
Amazon Store for vBulletin version 1.0.0<br />
Copyright &copy 2005 by <a href="http://www.elite-computing.net" target=_blank>Elite Computing Services</a>.
</
div>
</
td>
</
tr
In the amazon_store_data_listbit template:
find:
PHP Code:
<else> 
replace with:
PHP Code:
<else /> 
If somebody would like to take a look at the page and try to figure out what the syntax error is all about, have at it.

It doesn't occur on the main page, only the inside pages. This one is fine, but this one reports:

Code:
Line: 2
Char 1:
Error: Syntax Error
Code: 0
URL: http://www.discusscareers.com/book_s...salesrank.html
Reply With Quote
  #15  
Old 09-25-2005, 03:32 AM
hbalagh1's Avatar
hbalagh1 hbalagh1 is offline
 
Join Date: Jun 2005
Location: San Diego
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great little mod installed here
http://www.daycareforums.com/book_store.html

some kind of search feature (if possible) would be great
Reply With Quote
  #16  
Old 09-25-2005, 04:18 AM
hbalagh1's Avatar
hbalagh1 hbalagh1 is offline
 
Join Date: Jun 2005
Location: San Diego
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ohh , i found some kind of goof up
when i click on a book to read more info then try and go to the navbar i get links like this
http://www.daycareforums.com/book_st...?do=logout&u=1

instead of links like this

http://www.daycareforums.com/login.php?do=logout&u=1

any clue of what i may have done?
Reply With Quote
  #17  
Old 09-25-2005, 11:22 AM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
 
Join Date: Jul 2005
Location: 4C6F6E672049736C616E642C2
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hbalagh1
ohh , i found some kind of goof up
when i click on a book to read more info then try and go to the navbar i get links like this
http://www.daycareforums.com/book_st...?do=logout&u=1

instead of links like this

http://www.daycareforums.com/login.php?do=logout&u=1

any clue of what i may have done?
Your navbar is using relative links, for example:

PHP Code:
<a href="login.php"
Add "$vboptions[bburl]/" to the front of the link to correct it:

PHP Code:
<a href="$vboptions[bburl]/login.php"
Reply With Quote
  #18  
Old 09-25-2005, 06:18 PM
hbalagh1's Avatar
hbalagh1 hbalagh1 is offline
 
Join Date: Jun 2005
Location: San Diego
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #19  
Old 09-25-2005, 06:39 PM
hbalagh1's Avatar
hbalagh1 hbalagh1 is offline
 
Join Date: Jun 2005
Location: San Diego
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A couple of request

Is there a way to have bigger thumbnails when your viewing pages (before you click on the product to read more)

And possibly have 3 rows across instead of just the 2....looks a little empty

and when you view your cart if there can be a link to continue shopping
Reply With Quote
  #20  
Old 09-25-2005, 07:01 PM
mikelbeck's Avatar
mikelbeck mikelbeck is offline
 
Join Date: Jul 2005
Location: 4C6F6E672049736C616E642C2
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a fix... The image displayed is supposed to be the medium image, the code for that got all screwed up. Also the title isn't displayed.

In amazon_store_data_listbit, find:
PHP Code:
<if condition="$SmallImage">
<
a href="/book_store/page_$page/category_$category/sort_$sort/get_detail/item_$ASIN.html"><img src="$SmallImageborder="0"></a><br />
<else />
<
a href="/book_store/page_$page/category_$category/sort_$sort/get_detail/item_$ASIN.html">$Title</a><br />
$Author<br />
</if> 
Replace with:
PHP Code:
<if condition="$MediumImage">
<
a href="/book_store/page_$page/category_$category/sort_$sort/get_detail/item_$ASIN.html"><img src="$MediumImageborder="0"></a><br />
<else />
<if 
condition="$SmallImage">
<
a href="/book_store/page_$page/category_$category/sort_$sort/get_detail/item_$ASIN.html"><img src="$SmallImageborder="0"></a><br />
</if>
</if>
<
a href="/book_store/page_$page/category_$category/sort_$sort/get_detail/item_$ASIN.html">$Title</a><br />
$Author<br /> 
In amazon_store, find:
PHP Code:
Amazon Store for vBulletin version 1.0.0<br /> 
Replace with:
PHP Code:
Amazon Store for vBulletin version 1.0.1<br /> 
I'll update the install.txt file, and will have some more fixes coming later today or tomorrow morning:

- Add a "continue shopping" link.
- Straighten out the boxes on the main page, they're not lined up properly.
- Guests can add items to their cart, apparantly, that's not supposed to happen.
- The page description & keywords are screwed up.
Reply With Quote
  #21  
Old 09-25-2005, 07:11 PM
hbalagh1's Avatar
hbalagh1 hbalagh1 is offline
 
Join Date: Jun 2005
Location: San Diego
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great, i also wonder if there is a way to show a subtotal somehow?
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 10:24 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.04463 seconds
  • Memory Usage 2,340KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (10)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
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete