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 06-10-2013 06:41 PM

Quote:

Originally Posted by Toorak Times (Post 2427107)
...having said that Ted I'm a dyed in the wool forumite, starting from getting banned in yahoo and establishing what is the largest Oz lawn bowls forum Bowlsworld around 10 years ago and long term member of a vB 3.6 site www.bowlsblog.com, the second largest, and part of the biggest www.julianhainesbowls.co.uk. I came out of forums but AM a publisher. I would plead to you and all mod builders to think CMS and Blog as the worlds reality in media shifts around

With vB5 looming we're not planing much of anything at this time but will do, if & when we build something new :)

Ted S 06-10-2013 06:43 PM

Quote:

Originally Posted by addamroy (Post 2427108)
I've uploaded an attachment showing the admin permissions. There is no 'manage posts' permission option in the 4.2.1 admin permissions it doesn't seem.

Hrmm...

You can comment out

Quote:

if (!can_administer('canadminposts'))
{
print_cp_no_permission();
}
From admincp/productforums.php although checking for some access level would be a good idea.

We will of course switch this around in the next release.


Quote:

Originally Posted by addamroy (Post 2427108)
How do I turn GD on or off? I'm pretty sure I have it though because I use the Damn Comp Member Map mod which requires that, and that mod works fine.

GD is installed at the server level.

Have you used the image uploader (on the edit screen) / bulk importer?

addamroy 06-10-2013 08:09 PM

Quote:

Originally Posted by Ted S (Post 2427175)

Have you used the image uploader (on the edit screen) / bulk importer?

No I have been using the product submission form, this section of the forum will run almost entirely off products submitted by members so this feature likely won't be used at all.

Also, if (!can_administer('canadminposts')) does not show up in the productforums.php file I have. I narrowed it down to canadminposts for a search in the file and it doesn't exist.

Another question, is there anyway you can write up a quick plug-in that hooks into showthread somewhere that registers the {vb:raw product.productid} variable for use in the showthread template of my product forums?

The reason for this is I've already added a custom 'write a review' button elsewhere on that page, a big blatant one, but I need to be able to append the product ID to the URL so it works and goes to the write a review page when it's clicked.

Ted S 06-10-2013 09:13 PM

Quote:

Originally Posted by addamroy (Post 2427184)
No I have been using the product submission form, this section of the forum will run almost entirely off products submitted by members so this feature likely won't be used at all.

Ahh!

If members input urls just run the bulk script and it should resize them for you.

Quote:

Originally Posted by addamroy (Post 2427184)
Also, if (!can_administer('canadminposts')) does not show up in the productforums.php file I have. I narrowed it down to canadminposts for a search in the file and it doesn't exist.

Are you looking in the admincp folder version? It's line 33 in my version.

Quote:

Originally Posted by addamroy (Post 2427184)
Another question, is there anyway you can write up a quick plug-in that hooks into showthread somewhere that registers the {vb:raw product.productid} variable for use in the showthread template of my product forums?

The reason for this is I've already added a custom 'write a review' button elsewhere on that page, a big blatant one, but I need to be able to append the product ID to the URL so it works and goes to the write a review page when it's clicked.

Try editing the hook showthread_post_start and adding

$thread['productid'] = $product['productid'];

Right after $show['largereplybutton'] = false;

This will make the variable thread.productid

addamroy 06-10-2013 09:50 PM

When I run the sync external images script I get the following error.

Quote:

couldnt save the image for - skipping
couldnt save the image for - skipping
All Done!
I checked the folder I set up for these images in the core settings with my FTP software and the images are in fact being created in this folder.

The thumbnails are not showing up on the productforums.php display page. Folder permissions are at 755. :(

Other than that it's going great though, that hook edit you mentioned worked perfectly this is all in all a great mod.

Ted S 06-10-2013 10:46 PM

Quote:

Originally Posted by addamroy (Post 2427198)
The thumbnails are not showing up on the productforums.php display page. Folder permissions are at 755.

Either the path is wrong or the server is unable to write to it.

addamroy 06-10-2013 11:40 PM

Quote:

Originally Posted by Ted S (Post 2427210)
Either the path is wrong or the server is unable to write to it.

Alright, I'm pretty sure the path is right because the files are being created and written to the correct place, and the view image url in my core settings is the same of coarse just a shortened version of the full url.

Other than that what do you suppose would cause the server to be unable to read/write that folder or the images?

Ted S 06-11-2013 12:01 AM

Quote:

Originally Posted by addamroy (Post 2427221)
Alright, I'm pretty sure the path is right because the files are being created and written to the correct place, and the view image url in my core settings is the same of coarse just a shortened version of the full url.

Other than that what do you suppose would cause the server to be unable to read/write that folder or the images?

\

I think I'm missing something...

The files (full and thumbnail) are being created, are in the folder specified, load up (if downloaded via ftp) but don't show on the site?

addamroy 06-11-2013 01:30 AM

1 Attachment(s)
Quote:

Originally Posted by Ted S (Post 2427229)
\

I think I'm missing something...

The files (full and thumbnail) are being created, are in the folder specified, load up (if downloaded via ftp) but don't show on the site?

Yes the thumbnail isn't showing on the productforums.php page, in addition to the error I pasted above when I run the sync images script which is strange because the images DO seem to be getting created and stored in the folder, I've attached an image.

Ted S 06-11-2013 01:36 AM

Quote:

Originally Posted by addamroy (Post 2427251)
Yes the thumbnail isn't showing on the productforums.php page, in addition to the error I pasted above when I run the sync images script which is strange because the images DO seem to be getting created and stored in the folder, I've attached an image.

Hrm....

Perhaps the script is erroring before the database gets updated... Do any of the mainphoto or thumb values exist in the table prf?


All times are GMT. The time now is 08:48 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.02618 seconds
  • Memory Usage 1,756KB
  • 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
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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