Advertisement:

Author Topic: SMF Articles  (Read 307697 times)

Offline IzzySoft

  • Semi-Newbie
  • *
  • Posts: 11
Re: SMF Articles
« Reply #920 on: July 03, 2016, 06:27:02 PM »
another minor thing...

Description disappears when i press [Edit]



Is this just happening for me? :p

Any hacks you already added to address the Description not showing would be great. :)

Thanks.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,480
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #921 on: July 03, 2016, 09:33:01 PM »
What SMF version and what browser?
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 IzzySoft

  • Semi-Newbie
  • *
  • Posts: 11
Re: SMF Articles
« Reply #922 on: July 03, 2016, 10:09:15 PM »
What SMF version and what browser?

SMF ver 2.0.11



« Last Edit: July 03, 2016, 10:31:55 PM by IzzySoft »

Offline IzzySoft

  • Semi-Newbie
  • *
  • Posts: 11
Re: SMF Articles
« Reply #923 on: July 06, 2016, 08:25:39 PM »
I think the culprit lies here?



Wait... where is the 'title'?

Doesn't the title go into the 'id'?

Code: [Select]
// Now create the editor.
$editorOptions = array(
'id' => 'title',
'value' => 'descript',
'width' => '90%',
'form' => 'catform',
'labels' => array(
'editcat' => $txt['smfarticles_editcat']
),
);

'id' => 'title',
'value' => 'descript',

Ehhh, i know not what to do. :p
Help?! :)

Offline IzzySoft

  • Semi-Newbie
  • *
  • Posts: 11
Re: SMF Articles
« Reply #924 on: July 06, 2016, 09:57:17 PM »
Wait.. i think i got it.

function i updated in Articles2.php
Code: [Select]
function EditCat()
{
global $context, $mbname, $txt, $smcFunc, $sourcedir;

// Check if they can add categories
isAllowedTo('articles_admin');

$cat = (int) $_REQUEST['cat'];
// Check if an article was selected
if (empty($cat))
fatal_error($txt['smfarticles_nocatselected']);

/*
// Needed for the WYSIWYG editor.
require_once($sourcedir . '/Subs-Editor.php');

// Now create the editor.
$editorOptions = array(
'id' => 'descript',
'value' => '',
'width' => '90%',
'form' => 'catform',
'labels' => array(
'editcat' => $txt['smfarticles_editcat']
),
);
create_control_richedit($editorOptions);
$context['post_box_name'] = $editorOptions['id'];
*/

// Load the subtemplate for the category
$context['sub_template']  = 'editcat';

// Set the page title
$context['page_title'] = $mbname  . ' - ' .  $txt['smfarticles_title'] . ' - ' . $txt['smfarticles_editcat'];

$dbresult = $smcFunc['db_query']('', "
SELECT
ID_CAT, title, roworder, ID_PARENT
FROM {db_prefix}articles_cat ORDER BY title ASC");
$context['articles_cat'] = array();
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
{
// Can't be a parent of itself
if ($row['ID_CAT'] == $cat)
continue;

$context['articles_cat'][] = $row;
}
$smcFunc['db_free_result']($dbresult);

CreateArticlesPrettryCategory();

// Get category information
$dbresult = $smcFunc['db_query']('', "
SELECT
ID_CAT, title, description, imageurl, ID_PARENT
FROM {db_prefix}articles_cat
WHERE ID_CAT = $cat");
$row = $smcFunc['db_fetch_assoc']($dbresult);
$smcFunc['db_free_result']($dbresult);
$context['articles_data'] = $row;


// Needed for the WYSIWYG editor.
require_once($sourcedir . '/Subs-Editor.php');

// Now create the editor.
$editorOptions = array(
'id' => 'descript',
'value' => $context['articles_data']['description'],
'width' => '90%',
'form' => 'catform',
'labels' => array(
'editcat' => $txt['smfarticles_editcat']
),
);
create_control_richedit($editorOptions);
$context['post_box_name'] = $editorOptions['id'];
}

phew... ;D
« Last Edit: July 06, 2016, 10:23:26 PM by IzzySoft »

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,480
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #925 on: July 07, 2016, 01:14:46 PM »
What did you update changing to get it to work?
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 IzzySoft

  • Semi-Newbie
  • *
  • Posts: 11
Re: SMF Articles
« Reply #926 on: July 07, 2016, 01:35:12 PM »
Code: [Select]
// Needed for the WYSIWYG editor.
require_once($sourcedir . '/Subs-Editor.php');

// Now create the editor.
$editorOptions = array(
'id' => 'descript',
'value' => '',
'width' => '90%',
'form' => 'catform',
'labels' => array(
'editcat' => $txt['smfarticles_editcat']
),
);
create_control_richedit($editorOptions);
$context['post_box_name'] = $editorOptions['id'];

moved to end of function, and changed...

'value' => '',
   ...to...
'value' => $context['articles_data']['description'],

:)

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,480
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #927 on: July 07, 2016, 01:59:54 PM »
ok good to know
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 IzzySoft

  • Semi-Newbie
  • *
  • Posts: 11
Re: SMF Articles
« Reply #928 on: July 07, 2016, 02:39:34 PM »
Thank you for working on this Mod.

And from what little i saw browsing here, thank you for helping everyone out when you have a free minute.

Very much appreciated. ;D

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,480
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #929 on: July 08, 2016, 10:57:56 AM »
Strange I checked my mod code and I had
'value' => $row['description'],

In the code so maybe you changed some files?
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 IzzySoft

  • Semi-Newbie
  • *
  • Posts: 11
Re: SMF Articles
« Reply #930 on: July 08, 2016, 03:37:24 PM »


you might be right. I installed most Mods from the SMF Package Manager. ;)

Offline Siirist

  • Sophist Member
  • *****
  • Posts: 1,201
  • Gender: Male
  • What would Kindred or Illori do?
    • A Sanctuary (Support for Survivors of abuse/Info for Family & Friends)
Re: SMF Articles
« Reply #931 on: July 11, 2016, 10:04:43 AM »
Hello,

I installed this under the advice of Kindred.

I know nothing about this, other than it creates a method of creating, approving, sorting, editing, and deleting articles.

I looked at the permissions and it is straight forward about what is permitted and what is not based on membergroup.

I do not believe that this is going to work for me, because when adjusting permissions, it allows all regular members to do something.

My preferences are that a lower post-count membergroup can view articles, but cannot post/create them, and higher post-count membergroups can post/create them.

This provides incentive for members to post. At least that is the way I see it.

To facilitate my desires, I have created boards that members can see, but are read-only, then as a child-board, higher post-count membergroups can "submit" articles (lower post-count membergroups cannot see this board) and the submissions are viewed by the Staff and either approved (moved to the parent board), or are not approved and moved to the Recycle Bin.

Am I way off here, or is my thinking sound?

Be Well,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,237
  • Gender: Male
    • Kindred-999 on GitHub
Re: SMF Articles
« Reply #932 on: July 11, 2016, 11:04:45 AM »
of course it allows that....  you just have to turn off ("disallow") permissions for the regular members group and then ALLOW for the post-count based groups.
I use exactly that setup on 40konline.

Old-time members are allowed to post articles - must be approved by an admin
all members are allowed to read articles.

These are the permissions...
View Articles          
Add Article          
Edit own Articles          
Delete own Articles          
Rate Articles          
Leave Comments          
Articles Auto Approved          
Auto Approve Comments          
Admin Articles


If auto-approve is not allowed, then the article or comment must be approved by someone with Admin Articles permission
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 Siirist

  • Sophist Member
  • *****
  • Posts: 1,201
  • Gender: Male
  • What would Kindred or Illori do?
    • A Sanctuary (Support for Survivors of abuse/Info for Family & Friends)
Re: SMF Articles
« Reply #933 on: July 12, 2016, 11:48:06 AM »
Kindred,

Thank you so much for this detailed clarification.   :)

I discussed this and the Knowledge Base mod with the forum owner, and she is not interested at this time due to the "newness" of the forum.

I have un-installed, but they remain up-loaded for future use should the need arise.

As always, I appreciate your words.

Be Well,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Offline Hondo

  • Full Member
  • ***
  • Posts: 513
  • Gender: Male
    • Access-o-Mania
Re: SMF Articles
« Reply #934 on: August 04, 2016, 01:36:31 PM »
Hello,
first thank you for this mod.
Does anybody has a german translation of this mod?

Thanks!
Andreas

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,480
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #935 on: August 04, 2016, 02:09:36 PM »
Not sure you can try searching this topic.
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 MrMike

  • Full Member
  • ***
  • Posts: 649
    • BotScout.com - Bust Those Bots!
Re: SMF Articles
« Reply #936 on: August 04, 2016, 03:30:25 PM »
Does anybody has a german translation of this mod?

I've made some passable translations of a few mods using Google Translate, pasting the strings in and then copying them into a new language file. They aren't perfect but in most cases they're good enough to be understandable.

Also, there are some forums like http://linguaholic.com that can help you with translations.

Offline Hondo

  • Full Member
  • ***
  • Posts: 513
  • Gender: Male
    • Access-o-Mania
Re: SMF Articles
« Reply #937 on: August 04, 2016, 03:41:06 PM »
Hi vbgamer45,
I have tried the Search.
I searched to "german", "deutsche" and "translation"
I don't find anything suitable.

@ MrMike,
Its not the problem to translate it - it is a problem of time I need for this.

Thanks anyway
Andreas

Offline MrMike

  • Full Member
  • ***
  • Posts: 649
    • BotScout.com - Bust Those Bots!
Re: SMF Articles
« Reply #938 on: August 04, 2016, 04:11:35 PM »
Its not the problem to translate it - it is a problem of time I need for this.

Unless there are a ton of strings it shouldn't take more than a couple of hours to do it in google. It might not be a perfect translation but it'll usually be good enough to use.

Offline brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: SMF Articles
« Reply #939 on: April 29, 2017, 06:16:11 PM »
Hi Friends,
A member just alerted me to the fact that people who are not logged in (guest or member) can't view a list of articles by that user, if the user gives them a link to My Articles.  We have figured out that that particular button only displays the articles of the person who clicks it.  So if I follow the link he provided for his My Articles, I only see my articles.

It does seem reasonable that people not logged in, and even guests should be able to see the list (if the permission is set that way, which it is).  I would expect all the editing buttons to be grayed out or missing.  But the list with links, just to read the articles, I'm not sure why it's blocked.

We're banging our heads trying to find a way for one member to show a list of all his articles, which are scattered through a few different categories, on one page.

The forum search doesn't search articles.  The article search won't search by username, with the search field blank.  And how can you fill in a 3 letter search term and be sure it will find all the member's articles?  Even if you wanted to use google, his articles are scattered through categories, so you'd have to search each category, wouldn't you?  Or is there a way to use google, and only have articles, or at least all his articles at the top, in the results?

Any ideas?

Thank you very much   :)
Inkscape Community  (SMF with Tiny Portal)

Inkscape for Cutting Design  (originally a phpBB forum, converted to SMF, and using Simple Portal)