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)

Morrus 08-31-2014 02:58 AM

Quote:

Originally Posted by Ted S (Post 2513176)
Playing around as promised and I'm still not sure what's causing this for you...

Using a completely clean install, there's no issues preserving line breaks as you can see at http://vbulletin.moderninsider.com/ (no min posting to review, no limit on reviews / product).

This opens up the question as to your specific settings. Since we've got the basics, let's talk details... editor options? html allowed? bb code allowed? moderation?

And of course the most basic... you are using 4.2.2 for sure, right (this is the #1 cause of compatibility issues so sorry for asking twice).

I've tried every combination possible that I can find - Bbcode on/off, HTML on/off, both for vbulletin and for the mod specifically. Advanced editor is as shown in the above screenshots, both on and off. Like I say, it's fine everywhere else on the site.

For now I have HTML on so at least I can post some test reviews. But that can't be a long term solution, for obvious reasons.

(yup, 4.2.2!)

Ted S 08-31-2014 03:04 AM

Quote:

Originally Posted by Morrus (Post 2513187)
I've tried every combination possible that I can find - Bbcode on/off, HTML on/off, both for vbulletin and for the mod specifically. Advanced editor is as shown in the above screenshots, both on and off. Like I say, it's fine everywhere else on the site.

For now I have HTML on so at least I can post some test reviews. But that can't be a long term solution, for obvious reasons.

(yup, 4.2.2!)

Alright, that makes it way more painful to fix, sorry!

How are you with database queries? Good you say, fantastic!

Let's see how one of your review with line breaks looks in mySQL:

SELECT comments FROM pf_reviews WHERE postid = XXX (pick the post, will show all the reviews on it).

We're looking to see if we either get line breaks in the raw data or break tags added (which are getting removed).

Morrus 08-31-2014 12:38 PM

Quote:

Originally Posted by Ted S (Post 2513189)
Alright, that makes it way more painful to fix, sorry!

How are you with database queries? Good you say, fantastic!

Let's see how one of your review with line breaks looks in mySQL:

SELECT comments FROM pf_reviews WHERE postid = XXX (pick the post, will show all the reviews on it).

We're looking to see if we either get line breaks in the raw data or break tags added (which are getting removed).

We're slipping outside my comfort zone here - I'm not too sure what I'm doing.

So I went to PHYMYADMIN and entered that query. There's no table pf_reviews, but there is pf_review. I'm hoping that's just a typo and not an actual missing table.

Looking at pf_review I can't see anywhere there where the review is actually stored. It just has reviewid productid threadid postid userid rating comments headline fullname location ipaddress createddate approved.

I'm going to make a guess that postid is what I want in the post table? In that case, looking at the post, there's the wall of text, but no line breaks. The custom fields, at the bottom, though, are formatted with bold titles and line breaks, so that little bit works. The main body of the text is just the wall though.

Phew. That was a long way to say -- if I understand you right, no, there is no formatting in the actual database entry.

I'm pretty sure this has to be the same thing missing WYSIWYG toolbar. If we fix the toolbar, I'm willing to bet the formatting issue will fix itself too.

Also, as a data point - posting in HTML (when it's switched on) works just fine, and the formatting gets saved correctly.

Ted S 08-31-2014 05:57 PM

1 Attachment(s)
Sorry, sounds like I gave you both a typo and bad details.

Since I can't duplicate the lack of the editor toolbar either, I have to ask you to keep playing along here, painful and slow as the process may be.

Give this version of the addon a spin and let me know if anything changes.

Morrus 08-31-2014 06:08 PM

1 Attachment(s)
Quote:

Originally Posted by Ted S (Post 2513260)
Sorry, sounds like I gave you both a typo and bad details.

pf_review is the correct place to be looking.

comments is the field that holds the actual review.

I realize you may not see any breaks in phpMyAdmin but try copying & pasting the text out. If there's still no breaks (and no HTML tags), that's a good indication that there's an issue on the front-end entering data. If they're there, it's something else.

Curiouser and curiouser. The comments field is entirely empty!

Ted S 08-31-2014 06:46 PM

Quote:

Originally Posted by Morrus (Post 2513261)
Curiouser and curiouser. The comments field is entirely empty!

Try clicking edit (if it's truly blank, there wouldn't be a review message, just a title).

Ted S 08-31-2014 06:53 PM

Also, see my previous post which is edited to include a test version of the addon,

Morrus 08-31-2014 08:02 PM

1 Attachment(s)
Nada. Empty.

Clicking the review title takes me to the forum thread, which shows the review text.

Morrus 08-31-2014 08:03 PM

Quote:

Originally Posted by Ted S (Post 2513264)
Also, see my previous post which is edited to include a test version of the addon,

I haven't tried that yet - issue being that with all the work I've done customizing it, I'm worried about now breaking what I've done!

Ted S 08-31-2014 09:06 PM

Quote:

Originally Posted by Morrus (Post 2513272)
Nada. Empty.

Clicking the review title takes me to the forum thread, which shows the review text.

So how do you know there's no line breaks? There shouldn't be any review at all...


All times are GMT. The time now is 04:48 AM.

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.03622 seconds
  • Memory Usage 1,751KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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