vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - Product Review Forums ? Research, Review & Compare Items (https://vborg.vbsupport.ru/showthread.php?t=269808)

Ted S 03-21-2012 04:34 PM

Quote:

Originally Posted by stevectaylor (Post 2311690)
I'd guess your general settings are the fault. You need to allow outbound url's

Actually the url just needs an http:// - without one all links are assumed to be on the same [local] domain.

Ted S 03-21-2012 04:35 PM

Quote:

Originally Posted by stevectaylor (Post 2311637)
This is what we get at the end

So the XML parser is only finding 3 product records in that file. If there's more post a copy of the file up or pm me to send it directly.

Preech 03-22-2012 11:00 AM

Quote:

Originally Posted by Ted S (Post 2311437)
There's a couple minor things for the next release this week but what are you looking for?

Well some of the features that I'm looking for, would probably require you to have a lite and pro version of this mod.
Along with the review, maybe like a way to sample a mixtape.

stevectaylor 03-22-2012 11:17 AM

Quote:

Originally Posted by Ted S (Post 2311783)
So the XML parser is only finding 3 product records in that file. If there's more post a copy of the file up or pm me to send it directly.

No Thats the bottom 3 of 12. tbh at the moment I suspect its something connected with either a general VB setting or sql setting at the moment.

Goatpod 03-22-2012 12:15 PM

Ted, wonder if you could help with this.

I've written a plugin to incorporate some Ebay ads with the product reviews. What I'm trying to do is grab the Manufacturer name used in the product review as a keyword on which to search ebay and return ads under the product review.

The plug in works fine with the keyword hard coded into the plugin but what I'd like to do is grab the Manufacturer variable created by your mod. for the plugin to use it as a keyword in the Ebay api search.

Code:

ob_start();
require_once("./phpbay/ebay.php");
phpBayAPI("keyword", "5", "", "", "", false);
$php_include = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('prodforums_product_details',array('php_include' => $php_include));

The keyword bit in the code is were the manufacturer variable would appear.

Any pointers as to the proper syntax for the variable would be greatly appreciated but I fully understand if this is beyond the remit of your support for the mod. I did start a thread in the VB4 prog. section but that seems to have drawn a blank so I thought I'd ask your good self.

Cheers
Dave

Ted S 03-22-2012 04:34 PM

Quote:

Originally Posted by Preech (Post 2312048)
Well some of the features that I'm looking for, would probably require you to have a lite and pro version of this mod.
Along with the review, maybe like a way to sample a mixtape.

We don't do pro versions of our mods. What exists is shared to everyone and if you need something truly custom then we'd suggest adding it on top with the help of another developer.

Ted S 03-22-2012 04:35 PM

Quote:

Originally Posted by stevectaylor (Post 2312055)
No Thats the bottom 3 of 12. tbh at the moment I suspect its something connected with either a general VB setting or sql setting at the moment.

vB has no setting impact on this part of the mod unless the file is somehow huge?

Similarly SQL would issue an error if it had one. The code you're seeing is every record looped through regardless of what happens to it.

Ted S 03-22-2012 04:38 PM

The variable you're looking for is mfrg which, in the context of viewing a post is accessible as $product['mfrg']

You can add that to your array of the code is going into this mod directly. If you're placing it elsewhere like in another plugin be sure it's after this mod runs so it's available too you.

Preech 03-22-2012 06:11 PM

Quote:

Originally Posted by Ted S (Post 2312165)
vB has no setting impact on this part of the mod unless the file is somehow huge?

Similarly SQL would issue an error if it had one. The code you're seeing is every record looped through regardless of what happens to it.


I appreciate all of the response Ted. I've found a open source script that will cover everything that I was looking for in this script. If I need help incorporating this with in vBulletin, I will keep you in mind.

Ted S 03-22-2012 07:59 PM

Quote:

Originally Posted by Preech (Post 2312194)
I appreciate all of the response Ted. I've found a open source script that will cover everything that I was looking for in this script. If I need help incorporating this with in vBulletin, I will keep you in mind.

Awesome!

I don't provide any coding or direct services so please keep someone else in mind :D


All times are GMT. The time now is 01:23 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.02731 seconds
  • Memory Usage 1,746KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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