Status
Not open for further replies.

AngelArs

New member
I must say this appears to be one of your better hacks. Even though our site is not going to have many reviews, I might have to buy the pro version of this anyway. Good job.

Now on to our problem...

In the summery section it is displaying all of the HTML code. Here is what it looks like:

Short review summery of product.<br />
<br />
Test. <br />
<br />
Test<br />
<br />
test<br />
<br />
test.

Here is what it's supposed to look like;

Short review summery of product.

Test.

Test

test

test.
 
It might be something with the editor.
Are you using the full WYSIWYG editor? And if you look in the database at the table dbtech_review_reviews, in the field reviewtext, does it have the <br /> in there or normal line breaks?
 
It might be something with the editor.
Are you using the full WYSIWYG editor? And if you look in the database at the table dbtech_review_reviews, in the field reviewtext, does it have the <br /> in there or normal line breaks?
It looks OK to me, but I posted a screenshot below so you could see it, just in case I'm looking at the wrong thing.
 

Attachments

  • database test.jpg
    database test.jpg
    40.3 KB · Views: 0
Sorry for the delay in responding. My hard drive crashed and it took me a while to get my system back up.

The db shouldn't have the <br /> in there, I'm not sure why it's adding it. If you go in and edit the image and remove the <br /> but leave the line breaks and save it, does it reinsert them?

For now, if you want to fix it so it doesn't display that.
Open dbtech/gallery/modules/gallery/actions/view_image.php

Find
PHP:
$bbcode_parser        = new vB_BbCodeParser($vbulletin, fetch_tag_list());

after add

PHP:
$image_data['text']    = str_replace("<br />", "\n\r", $image_data['text']);

It wont fix the issue but it will display correctly after.
 
Don't know why I was thinking the gallery mod heh.
Same question though, does it do the same when you modify the review and save it.

To fix it for now

Open dbtech/review/actions/view_review.php

Find
PHP:
$bbcode_parser        = new vB_BbCodeParser($vbulletin, fetch_tag_list());

after add

PHP:
$review_data['reviewtext']    = str_replace("<br />", "\n\r", $review_data['reviewtext']);
$review_data['short_desc']    = str_replace("<br />", "\n\r", $review_data['short_desc']);
 
Status
Not open for further replies.

Legacy DragonByte Reviews

vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
190
Customer rating
0.00 star(s) 0 ratings
Back
Top