Having a bit of trouble with the BB code parsing on article.php
It's set to not parse BB code, but one of our custom image alignment BB codes is displaying the URL from inside the tags:
Quote:
Spring has arrived here in Michigan quite suddenly, going from wet, rainy, and cold to hot, sunny, and downright balmy in the space of a couple of days. Of course, it seems only right that with the sudden appearance of Spring, the new edition of Kobold Quarterly should arrive! http://www.neuroglyphgames.com/rpgbl...4/KQ-Cover.jpgAnd Issue 17 of Kobold Quarterly, the Switzerland of the Edition Wars, is full of feature articles, new content, and editorials containing new material for Pathfinder, D&D 4E, and Dragon Age RPG. As with my previous reviews of Kobold Quarterly, each article will be rated on a scale of 1-5 for Crunch and Fluff to give readers an idea of how useful the material is for their game system. But I have also decided to change the format of my grading system for reviews to a similar format – so rather than assigning a letter grade as I have done previously, each criteria will get a rating of 1-5, with...
Is there any way for the mod to simply ignore that BB code and not post that URL in the middle of the article preview text?
A super ancient bump for anyone who can help. i coudlnt find a solution with the latest version and actaully went back searching all the way to page 2, sigh
I basically want what Sweeks wanted where i can to retain the Articles.php navigation bar where i go in the articles forum, so when i click on an article, the categories navigation still stays in place. it does not just dissapear into showthread.
I know its not supported by the author but any help from fellow vbers who are in the know or have done something similar would be much appreciated.
---------------------------------
Originally Posted by Sweeks
Is there any way so I can have the articles display within a normal looking forumdisplay and then on the showthread keep the article layout etc? Im not too keen on the main articles.php page.
What do I need to change in these bits of code in articles.php make it where the "Most Read" and "Most Commented" so that the modules only list the top articles in the last "X" amount of days?
PHP Code:
if (in_array('mostread', $af_modules))
{
$row = 0;
$af_mrpp = $vbulletin->options[af_mrpp];
$threads = $db->query_read("
SELECT thread.threadid,thread.title AS threadtitle
FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "post AS post
ON (post.postid = thread.firstpostid)
WHERE thread.forumid IN ($forumids)
$visiblethreads$authorids$condition ORDER BY views DESC
LIMIT 30, $af_mrpp");
while($thread = $db->fetch_array($threads))
{
$row++;
$thread = process_thread_array($thread, $lastread, $foruminfo['allowicons']);
$thread[threadtitle] = substr($thread[threadtitle], 0, $vbulletin->options[af_maxtitle]);
eval('$a_most_read .= "' . fetch_template('af_articlesmallbit') . '";');
}
}
PHP Code:
if (in_array('mostcommented', $af_modules))
{
$row = 0;
$af_mcpp = $vbulletin->options[af_mcpp];
$threads = $db->query_read("
SELECT thread.threadid,thread.title AS threadtitle
FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "post AS post
ON (post.postid = thread.firstpostid)
WHERE thread.forumid IN ($forumids)
$visiblethreads$authorids$condition ORDER BY replycount DESC
LIMIT 30, $af_mcpp");
while($thread = $db->fetch_array($threads))
{
I'm running 3.8.6 and I installed this mod last night. I am happy to report that it is working perfectly. I just wish you could identify more than one forum as an article forum - but then again I have no tried to set a parent forum as the article forum to see if the setting is carried forward to the forums children.
perhaps someone knows the answer to this question?
What do I need to change in these bits of code in articles.php make it where the "Most Read" and "Most Commented" so that the modules only list the top articles in the last "X" amount of days?
hey Blueman, try this (its working for me), we just need to format current date with the days we want minus thread dateline. We create $datecut variable and a condition the query
This for most read:
PHP Code:
if (in_array('mostread', $af_modules)) { $row = 0; $af_mrpp = $vbulletin->options[af_mrpp]; // Change the first 90* for the days you want $datecut = TIMENOW - (90*24*60*60); $threads = $db->query_read(" SELECT thread.threadid,thread.title AS threadtitle FROM " . TABLE_PREFIX . "thread AS thread LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = thread.firstpostid) WHERE thread.dateline > $datecut AND thread.forumid IN ($forumids)
and this for most comment:
PHP Code:
if (in_array('mostcommented', $af_modules)) { $row = 0; $af_mcpp = $vbulletin->options[af_mcpp]; // Change the first 90* for the days you want $datecut = TIMENOW - (90*24*60*60); $threads = $db->query_read(" SELECT thread.threadid,thread.title AS threadtitle FROM " . TABLE_PREFIX . "thread AS thread LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = thread.firstpostid) WHERE thread.dateline > $datecut AND thread.forumid IN ($forumids)
By the way, I read in the first post that it doesn't work, but I also saw some people posted that some versions did work on 3.7 (I think 1.9 was 1 version I seen mentioned).
If it does, would anyone have an older version that would work?