vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Allow Usergroups to Post HTML (https://vborg.vbsupport.ru/showthread.php?t=96926)

ddmobley 08-16-2007 03:09 PM

Quote:

Originally Posted by ArchangelX (Post 1318668)
Yepz...same here...although I didn't know the exact cause of it. Anyone got a fix? Thanks!

What's disappointing about this situation is everywhere on this site that someone has requested a mod like this, everyone has been referred here to this mod, AND the author of the mod is on this forum often, so that means he knows about the problem and is simply ignoring people since I sent him both an email and a PM about the subject. When I made my original post, I checked his profile and his last visit was that same day. Why simply ignore one of the most widely desired mods because you can't find a solution? If you can't fix the problem, perhaps an open discussion of it could lead to a solution with help from other modders. But I simply do not understand ignoring people. Unsupported is one thing, abandoned on purpose is another.

mik2007 08-27-2007 09:10 AM

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.

ddmobley 08-27-2007 04:45 PM

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.

ddmobley 08-28-2007 08:51 PM

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.

ddmobley 08-28-2007 10:34 PM

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.

ddmobley 08-28-2007 11:10 PM

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
$vbulletin->db->query_write("
        DELETE FROM " . TABLE_PREFIX . "post_parsed
        WHERE dateline < " . (TIMENOW - ($vbulletin->options['cachemaxage'] * 60 * 60 * 24))
);


I edited it to look like this:

Code:

// expired cached posts
$vbulletin->db->query_write("
        DELETE parsed FROM " . TABLE_PREFIX . "post_parsed AS parsed
        LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON thread.firstpostid = parsed.postid
        WHERE parsed.dateline < " . (TIMENOW - ($vbulletin->options['cachemaxage'] * 60 * 60 * 24)) . "
        AND thread.sticky = 0"
);


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.

roymogg 08-31-2007 07:26 PM

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

kall 08-31-2007 07:40 PM

Hi Roymogg,

Yes indeed, it appears to work fine with 3.6.8.

noppid 08-31-2007 09:09 PM

Quote:

Originally Posted by ddmobley (Post 1327698)
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.

I ran into this too. So, I set out looking for a solution. I put code in the misc_bbcode_start hook and ran the rebuild post cache. No html worked still.

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.

yoyoyoyo 09-15-2007 01:56 PM

Quote:

Originally Posted by kall (Post 1329697)
Hi Roymogg,

Yes indeed, it appears to work fine with 3.6.8.

but the cached posts displaying any html posts as raw html error still exists. Is there any way to fix this issue?


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
  • Page Generation 0.01417 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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