![]() |
Quote:
|
Great mod but I'm having some probs and wondering if anyone knows how to fix it --
When I paste raw html adsense code in my post (basic editor) it turns out ok but then, when I save it, it adds <br /> to every line and thus breaks adsense. No matter what I did it always inserts those <br /> tags! Any idea? update: Looks like vb does it, not this mods fault. |
This is a simple fix to solve your problem: Make your line of HTML text all one line. Then it will display correctly.
On the other hand, it would be NICE if the author of the mod would simply admit that he doesn't know how to fix the problem with the HTML vanishing out of the post cache. |
There is another mod for 3.0.6 at https://vborg.vbsupport.ru/showthread.php?t=75590 that modifies some files. Does 3.0.6 have the same post cache that 3.5.4 does? If so, I was wondering if using the other mod would work for 3.5.4 and eliminate the post cache expiring. I can't believe the author of this mod here refuses to at least comment on the post cache error.
|
I have been working with today and have found out that the display of parsed HTML with this mod is dependant on the Cached Posts Lifespan setting in the admin section. If you turn post caching OFF by entering a 0 in the field, the mod will not work at all, only rendering HTML to the user posting it. The next person who tries to read the post who is not in the user group that allows HTML, they will simply see a raw dump of the HTML code.
|
In a search for an answer to the parsed posts disappearing, I have modified my system to preserve the parsed post cache for posts that are sticky. On my system, the only posts that would have HTML in them are sticky posts, so it was, to me, only a question of how to keep the software's maintenance from deleting posts from the parsed post cache that were stickly posts. Here's how I did it:
In includes/cron/cleanup2.php, there is a code segment that looks like: Code:
// expired cached posts I edited it to look like this: Code:
// expired cached posts Edit: I found I was getting a SQL error in my previous modification, and found a new way of keeping the post_parsed_cache clean. This above works. This simply checks the thread table for the existence of a sticky post ID that matches the post ID of a post in the parsed post cache. If there is a match, it doesn't delete that post's cache, it leaves it indefinitely, or until the post is manually deleted. |
Kall,
Will this hack work under 3.6.8 - this is a mod I would like to install for a restricted set of user groups (mainly Admin) cheers RoyMogg |
Hi Roymogg,
Yes indeed, it appears to work fine with 3.6.8. |
Quote:
So, I hacked the file and ran it again. This time posts parsed properly. Since it's only me in one forum doing html, this is easy to maintain. Is it normal that admin functions skip hooks? Anyway, I'm good to go. |
Quote:
|
All times are GMT. The time now is 08:09 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|