Advertisement:

Author Topic: SMF Articles  (Read 307609 times)

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,440
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #220 on: March 08, 2009, 02:01:06 PM »
Even better if you can implement this to the right of the titlebg or so shown in this pic in your next release.

« Last Edit: March 08, 2009, 02:04:42 PM by BlueDevil »

Offline Filipina

  • Full Member
  • ***
  • Posts: 454
  • Gender: Female
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #221 on: March 08, 2009, 03:40:23 PM »
Article view on the article page itself? Or on the article listing page?

Examples would be these two pages to show the avatar... and the "most recent articles" link on the main forum would also be great :)

http://www.melindaspenpals.com/penpal-community/index.php?action=articles;cat=2 

http://www.melindaspenpals.com/penpal-community/index.php?action=articles;sa=view;article=2
« Last Edit: March 08, 2009, 03:45:56 PM by Filipina »

Offline davieb

  • Semi-Newbie
  • *
  • Posts: 43
    • My Photographic Website
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #222 on: March 10, 2009, 03:55:01 PM »
Tell you what would be a great addition to SMF Articles, (for me anyway) and that would be the ability to add attachements to the articles. The mod seems to use just the standard posting system for SMF but without the "Additional Options" bit at the bottom. On our site we are trying to use SMF Articles to create "How To" guides, location information and techniques for photographers so being able to add images as attachments would be a godsend. We already have the "Inline Attachments" mod in the forum which allows us to put images in particular places in forum posts and the "inline" dropdown actually appears on the screen when writing aticles but the attachment browse field at the bottom doesn't.

Is there anyway the attachment bit could be added.

Offline laetabi

  • Full Member
  • ***
  • Posts: 436
  • Gender: Male
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #223 on: March 10, 2009, 04:59:14 PM »
I wanted the same thing as some articles were better presented with .pdf or .xls file supplements as attachments. Rather than wait for a mod I just ftp the doc to my host then link to it from within the article...

eg.
Code: [Select]
[url=http://www.forumname.com/.../filename.pdf]Click here for example x[/url]
What type of washing machine is September?

An autumnatic. :)

Offline laetabi

  • Full Member
  • ***
  • Posts: 436
  • Gender: Male
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #224 on: March 11, 2009, 10:04:55 AM »
vbg,

Re permissions on SMF Articles, is there an easy way to allow certain membergroups to view a list of articles within a category but not see the article itself? Happy to manually edit code if you can suggest something?

I have a load of technical articles that only paid up members can view but want non-members to see the depth of the resource by alowing them to view the headings

Thanks

W
What type of washing machine is September?

An autumnatic. :)

Offline Filipina

  • Full Member
  • ***
  • Posts: 454
  • Gender: Female
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #225 on: March 11, 2009, 11:54:54 PM »
One more thing vbgamer45.... when i go in and view ratings as an admin (to see who rated what) on that page the star images are showing as red x's ... When you look at the properties it shows as default/images/star,gif instead of Themes/default/images/star.gif ...   

Offline Bec

  • Full Member
  • ***
  • Posts: 467
  • Gender: Female
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #226 on: March 13, 2009, 11:11:12 AM »
Just wondering if anyone knows if there is a code floating around to display the latest articles in a tp block?? 

and I dont know if Im going blind or what but is it possible to use html in the articles?
« Last Edit: March 15, 2009, 11:20:18 AM by Bec »

Offline MMcGrad2

  • Semi-Newbie
  • *
  • Posts: 41
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #227 on: March 19, 2009, 12:27:31 AM »
How can I make everyone view the articles page, I know how to let everyone view the tab, but how can i let people view http://www.mybeautifulwebsitethatyoudontgettoknowitsname.com/index.php?action=articles ?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,469
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #228 on: March 19, 2009, 01:11:57 AM »
You need to setup the permissions

Under Admin -> Permissions
Modify a group then find the SMF Articles permissions.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline MMcGrad2

  • Semi-Newbie
  • *
  • Posts: 41
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #229 on: March 19, 2009, 08:44:52 PM »
You need to setup the permissions

Under Admin -> Permissions
Modify a group then find the SMF Articles permissions.
Still doesn't work.  Is there anyway I can manually override the mod's files so anyone can view the articles?  I want to make use of the articles like a blog.

Offline Özgür

  • SMF Hero
  • ******
  • Posts: 3,926
  • Gender: Male
  • Özgür | jQuery Lover
    • ozgurce on Facebook
    • @ozgurce on Twitter
    • Özgür Yalçın
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #230 on: April 04, 2009, 05:42:48 PM »

Smf Articles Little Pretty Url Support

Find in PrettyUrls-Filters.php
Code: [Select]
?>Add Before:
Code: [Select]
function pretty_articles_filter($urls)
{
    global $boardurl, $scripturl;
   
// categories
    $pattern = '~' . $scripturl . '(.*)action=articles;cat=([^;]+)~S';
    $replacement = $boardurl . '/articles/category/$2/';
    $replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
    foreach ($urls as $url_id => $url)
        if (!isset($url['replacement']))
            if (preg_match($pattern, $url['url']))
                $urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);

   
    // articles
    $pattern = '~' . $scripturl . '(.*)sa=view;article=([^;]+)~S';
    $replacement = $boardurl . '/articles/$2/';
    $replacement .= (strpos($replacement, '?') === false ? '?' : ';') . (isset($PHPSESSID[0]) ? $PHPSESSID[0] : '') . ';' . (isset($sesc[0]) ? $sesc[0] : '') . (isset($fragment[0]) ? $fragment[0] : '');
    foreach ($urls as $url_id => $url)
        if (!isset($url['replacement']))
            if (preg_match($pattern, $url['url']))
                $urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
   
    return $urls;
}
You go to your site.com/forum/index.php?action=admin;area=pretty;sa=filters and find this code
Code: [Select]
    }
}
from last line.
And add between these line for this
(ex :
Code: [Select]
    } code code code....
}
)

Code: [Select]
,
    "articles": {
        "description": "articles",
        "enabled": 0,
        "filter": {
            "priority": 4,
            "callback": "pretty_articles_filter"
        },
        "rewrite": {
            "priority": 4,
            "rule": [
                "RewriteRule ^articles/([^/]+)/?$ index.php?action=articles;sa=view;article=$1 [L,QSA]",
                "RewriteRule ^articles/category/([^/]+)/?$ index.php?action=articles;cat=$1 [L,QSA]"
            ]
        },
        "title": "Articles pretty support"
    }

And go to pretty settings and enable this filter and run pretty maintenance.
« Last Edit: April 04, 2009, 05:49:10 PM by Özgür´ »
So Long

Offline robinrobin

  • Jr. Member
  • **
  • Posts: 297
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #231 on: April 06, 2009, 01:14:06 PM »
1.0.1.7
2.0 RC1

Spell-checking articles while editing them actually removes all text from the text-field when the spell-checking tab/window closes and returns to the edit tab/window!

Solution: Copy the code for the spell-checking feature from the Post.template.php file in your theme(s) folder(s) and replace the code in the Articles2.template.php file with it.

A preview function is needed.

The text-field when editing articles could be wider.

Solution: Search for "// Showing BBC?" in Articles2.template.php and add a width to the table tag just above it.
« Last Edit: April 07, 2009, 05:12:18 PM by robinrobin »

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,203
  • Gender: Male
    • Kindred-999 on GitHub
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #232 on: April 26, 2009, 12:00:14 AM »
Ok...

I just finished importing a boatload of articles form my old Joomla/Mambo installation into the SMF articles tables.

I now have two problems.
1- none of the categories have a count... they all still say "0" as the number of articles.
2- the SUB categories do not properly fill the breadcrumbs...   If I click on Cat1 the breadcrumbs say: forum > articles > Cat1, but if I then go to SubCatA, the breadcrumbs say: forum > articles > subcatA
there is no way to get back to the category... only to the articles root or the subcat.

side note- mambo allows HTML... If I do not EDIT the articles, then everything is fine... but once I edit an article, it displays all of the html. :(

Question: What are the "roworder" and "sectiontitles" column for in the smf_articles_page database tables?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,469
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #233 on: April 26, 2009, 12:33:18 AM »
1. Check that Count Sub Categories total is checked under article systems
2. Will add a fix for this issue.

Quote
Question: What are the "roworder" and "sectiontitles" column for in the smf_articles_page database tables?
Currently they are not used yet. The plan was for a way to store long articles or to allow articles to be split into multiple pages.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,203
  • Gender: Male
    • Kindred-999 on GitHub
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #234 on: April 26, 2009, 01:24:31 AM »
nope...    the problem appears to be that the system does not recognize the imported articles....

UNTIL I add or delete an article in that specific category, at which point, it recounts and fills in the correct number.
There should be a "force recount" option in the admin...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,469
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #235 on: April 26, 2009, 02:00:34 AM »




Spell-checking articles while editing them actually removes all text from the text-field when the spell-checking tab/window closes and returns to the edit tab/window!

Solution: Copy the code for the spell-checking feature from the Post.template.php file in your theme(s) folder(s) and replace the code in the Articles2.template.php file with it.


How did you get spell check to work? I haven't been able to get it to work correctly with wywsig editor..
nope...    the problem appears to be that the system does not recognize the imported articles....

UNTIL I add or delete an article in that specific category, at which point, it recounts and fills in the correct number.
There should be a "force recount" option in the admin...
Good idea will add it.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,469
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #236 on: April 26, 2009, 02:15:49 AM »
Released a new update!

Version 1.0.2
!Fixed duplicate linktree on some pages in SMF 2.0
+Added bbc editor for categories in SMF 2.0
+Added a comma separator for subcategories on SubCategories list.
!Fixed link tree to show subcategories of articles and added to the display article page to include categories
+Added Recount articles function found under Settings
!Improved the modification for better support with mod_security
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,203
  • Gender: Male
    • Kindred-999 on GitHub
Re: SMF Articles (1.0.2 Released with SMF 2.0 support)
« Reply #237 on: April 26, 2009, 09:15:04 AM »
WOOT!  this works like a charm...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline robinrobin

  • Jr. Member
  • **
  • Posts: 297
Re: SMF Articles (1.0.1.7 Released with SMF 2.0 support)
« Reply #238 on: April 26, 2009, 01:12:19 PM »
How did you get spell check to work? I haven't been able to get it to work correctly with wywsig editor..

I just replaced all your spellchecking code with the one from my theme. I was surprised that no further configuration was needed. It worked just fine.

Offline jwladi

  • Newbie
  • *
  • Posts: 4
Re: SMF Articles (1.0.2 Released with SMF 2.0 support)
« Reply #239 on: April 27, 2009, 03:41:55 PM »
I'm thinking about make a TP block to show an introduction to last article in main page.  It would be fine a field where you can add an introduction to the article with bbcodes/html tags in order to format this introduction, or something like this.