PDA


View Full Version : [Read More] Character Limit Bug with vb 3.0.3?


Atomic Fireball
07-07-2004, 02:50 AM
I've upgraded to vbulletin 3.0.3, and did a clean install and re-applied the hacks. Everything is working correctly, expect for one strange bug I've noticed.

In the Control Panel for vBadvanced CMPS, I changed the following numbers here to 1000:

News Maximum Characters
The maximum number of characters to display per news post before it is replacedby the '[read more]' link. Set this to 0 to disable it.

The problem is that it's not working. No matter what number I change it to, it still only shows 400 characters.

If I change the number to "0" (to turn off this feature) it does show the FULL news post correctly. (But this is too much).

So, if I change the number back to something like 1000, 2000, 1800, etc., it will show only 400 characters. Strange.

It's not a major bug or anything, but it's odd to say the least.
I'm using vBadvanced CMPS v1.0.0 and vBulletin 3.0.3.

Any help is appreciated, thanks.

Brian
07-07-2004, 11:11 AM
Try editing that page and change the limit on that specific page rather than in the default settings, or revert the setting to it's default (using the checkbox on that page) and then try changing the default setting. ;)

Atomic Fireball
07-07-2004, 04:45 PM
Thanks for the reply, Brian.

Did you mean editing the character limit on the adv_portal_newsbits template, or the news.php file?

Also, where exactly is the revert the setting to its default check box? I looked through the entire list of options on the Default Settings page and didn't see a revert to default option. Nor did I see this on the News module options either.

Please let me know when you get a chance, thanks!

Brian
07-07-2004, 05:25 PM
Admin CP => vBa CMPS => Edit Pages

Once there, click on 'Home / Default'. That will bring up your homepage's settings and that's where you'll find the 'Revert to Default' checkbox. ;)

Atomic Fireball
07-07-2004, 06:24 PM
Hi Brian, Thanks again for the reply.

I looked and there's no "Revert to Default' check boxes. There are many that say "Use Default" or "All Default", but there's no revert. Is that what you meant?

Checking the "Use Default" didn't work, nor did unchecking it and entering in various character values. No matter what value I use it always shows 400 characters.

Does the 400 character ring a bell anywhere to be significent in some way? If so, that may narrow down the problem.

Brian
07-07-2004, 06:29 PM
Sorry, "Use Default" is what I was thinking of. Would you mind filling out a support ticket via the Members Area here so I can just have a look myself?

Atomic Fireball
07-07-2004, 07:26 PM
Hi brian, Thanks again for your reply. But I'm reluctant to give out admin login information, especially since I have backup passwords for the AdminCP, etc.

I'll try to figure it out, but if anyone has upgraded to vbulletin 3.0.3, it would be great to hear if you are experiencing this issue as well. Thanks.

Fargo
07-25-2004, 11:07 AM
Im having this very problem as well and would appreciate any insight that you may have, Brian. The default is 1000 characters, however it only displays a fraction of that.

If I change it to 2000 characters, it still only displays a portion of the post (same amount as it was before). I have also tried doing everything you suggested with no avail, as well as manually editing the database to try to resolve this issue, however that does not work either.

Any ideas?



also, there seems to be a bug in your admin cp:

If I set the following:
News Posts Maximum
The maximum number of news posts to display. Set to 0 to show all posts

To 0, it actually shows NO news. Any value above 0 shows the proper number of posts.

Atomic Fireball
07-25-2004, 12:09 PM
If I set the following:
News Posts Maximum
The maximum number of news posts to display. Set to 0 to show all posts

To 0, it actually shows NO news. Any value above 0 shows the proper number of posts.
[/edit]

I can reproduce this as well. If I set it to 0, there's no news. :(

I am still having the character bug limit that I descrived, but I've set my character limit to 950, and it shows about 400, so I've just learned to live with it at this point.

However, if there's a solution, I'd be very interested in correcting this, thanks!

Fargo
08-02-2004, 10:18 AM
any word on this issue?

Brian
08-02-2004, 01:31 PM
The news posts limit is a known bug and will be fixed in the next version. It shouldn't be a big deal though as you can just set it to a high enough number to include all of your posts. :)
As for the characters problem, I was finally able to reproduce this and find the problem. If you'll look in your /forum/modules/news.php file for this code:

$news['message'] = fetch_trimmed_title($news['message'], $vba_options['portal_news_maxchars']) . construct_phrase($vbphrase['read_more'], $vboptions['bburl'], $news['threadid'], $session['sessionurl']);



And replace it with this:

$news['message'] = substr($news['message'], 0, strrpos(substr($news['message'], 0, $vba_options['portal_news_maxchars']), ' ')) . '...' . construct_phrase($vbphrase['read_more'], $vboptions['bburl'], $news['threadid'], $session['sessionurl']);


That should fix the problem. :)

Atomic Fireball
08-03-2004, 08:49 PM
Hmm...I tried this, but the character bug still exists.

ria.enigma, have you tried this fix and did it work for you?
Just curious, thanks.

Brian
08-03-2004, 09:06 PM
So it makes no difference at all? What do you have the max characters set to?

Atomic Fireball
08-03-2004, 09:08 PM
I have the max characters set to 950, then altered to 900, 800, etc. It keeps showing only about 400 characters. :(

Brian
08-03-2004, 09:16 PM
I'm not sure how... Keep in mind though that this counts the HTML that is outputted from your vB code (otherwise it would be easier to end up with many un-ended tags). Can you give me a link to your site so I can have a look?