vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - Cafe Press reloaded (https://vborg.vbsupport.ru/showthread.php?t=195858)

Jman423 01-01-2009 09:12 PM

Quote:

Originally Posted by Digital Jedi (Post 1698366)
Did you try my CSS file a few posts back?


I didn't get a chance to look, but I get the feeling it's pulled from CafePress. Been jumping around all over the place trying to get multiple things done. Haven't seemed to get any one thing finished.

Yes I did, no luck.

My biggest problem is the pricing. When the user clicks on a different size for a shirt, the price looses the markup then adds the up-charge. That and the error when trying to "Keep Shopping" from the CafePress cart are preventing me from making this live.

Thank you

Saviour 01-07-2009 09:39 AM

Digital Jedi...

If you're listening, LOL! I've found another problem within this mod. It tends to break W3C's XHTML validation for the following reason:

Quote:

Line 568, Column 22: document type does not allow element "style" here .

<style type="text/css">



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
The problem occurs when you go to my shop page, located at http://www.glitchpc.com/forums/shop.php and try to validate through W3C's validation service.

Is there any way we can get this fixed?

Upon looking at the shop.php file I find the following:

Code:

echo "<style type=\"text/css\">\n";
        echo ".head {font-weight: bold; font-size: 1.5em}\n";
        echo "</style>\n";

This seems to be where the culprit lies.

Thanks for looking...

Saviour 01-07-2009 10:03 AM

Update...

Well, I decided to edit the shop.php file and removed the above "style" code. Re-uploaded the shop.php file to the server and checked for validation.

It passed...Woo-hoo! Apparently...this little fix resulted in no issues with the functionality of this mod. Everything seems to be working fine.

So, Digital Jedi...if anyone is experiencing the same problem with W3C validation, they may want to incorporate this little fix, or the coder may want to revamp the shop.php file to include this...just a thought.

Thanks, again, for looking...

Digital Jedi 01-07-2009 06:45 PM

I got the page to vaildate a completely different way, but it escapes at the moment what it is I did. I really need to start keeping change logs.

JimmiOO 01-08-2009 05:18 PM

I have installed it and it works ok when i use http://www.cafepress.com/CNDS as the store id

I have created my own free shop and its looks like i have added products but it not showing products when i change the CNDS to my own id.

Any ideas?

mousegeek 01-08-2009 06:53 PM

I must be doing something wrong. I have the latest version of PHP and MY SQL and I keep getting this error:

Warning: preg_replace() [function.preg-replace]: Unknown modifier '/' in [path]/shop.php on line 325

Warning: preg_replace() [function.preg-replace]: Unknown modifier '/' in [path]/shop.php on line 327

Warning: preg_replace() [function.preg-replace]: Unknown modifier '/' in [path]/shop.php on line 328




What does this mean and how do I fix this?

JimmiOO 01-08-2009 06:59 PM

I have sussed out my problerm with the products not showing.

How you you go about sorting the currency? at the moment it shows A£ and not £

JimmiOO 01-08-2009 09:34 PM

Also is there any way you can just sell the products without having to add a logo for print

Digital Jedi 01-08-2009 11:16 PM

Quote:

Originally Posted by JimmiOO (Post 1705602)
Also is there any way you can just sell the products without having to add a logo for print

Don't add a logo?

Jman423 01-09-2009 01:33 AM

I had to uninstall this. I can't sell anything if the prices won't remain correct.

It is a nice mod, thank you for taking the time to work on it.


All times are GMT. The time now is 01:24 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.01213 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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