vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Amazon Store Integration (https://vborg.vbsupport.ru/showthread.php?t=96607)

xug 09-24-2005 01:34 PM

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.

mikelbeck 09-24-2005 03:36 PM

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.

mikelbeck 09-24-2005 04:18 PM

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


hbalagh1 09-25-2005 03:32 AM

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

some kind of search feature (if possible) would be great

hbalagh1 09-25-2005 04:18 AM

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?

mikelbeck 09-25-2005 11:22 AM

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"


hbalagh1 09-25-2005 06:18 PM

thanks

hbalagh1 09-25-2005 06:39 PM

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 :)

mikelbeck 09-25-2005 07:01 PM

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.

hbalagh1 09-25-2005 07:11 PM

great, i also wonder if there is a way to show a subtotal somehow?


All times are GMT. The time now is 11:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01272 seconds
  • Memory Usage 1,766KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (10)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete