Advertisement:

Author Topic: SMF Articles  (Read 307920 times)

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #820 on: August 31, 2013, 02:00:22 PM »
It reverses the changes to the files made. But leaves copied files/folders/database tables/settings intact
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 iaccountant

  • Jr. Member
  • **
  • Posts: 220
    • iaccountant
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #821 on: August 31, 2013, 02:05:29 PM »
I think I answered the "uninstall" part of my question because when I uninstalled the root index.php backup file created today, nothing broke :)

Guess that makes sense, even to a newbie

I presume to that I can go to all the files indicated by the parser and delete the backup copies, and it would "look" like a totally clean install except fro some changed dates

Thanks for the help VB....much appreciated

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #822 on: August 31, 2013, 02:17:51 PM »
Yes you can glad to help
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 brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #823 on: October 04, 2013, 11:24:22 PM »
Hi Friends,
I don't have time to read all the 42 pages in this topic, but a search for "approval" did not turn up anything helpful.

I'm using SMF 2.0.5 with Tiny Portal 1.107, and SMF Articles 2.5.1.

When a member writes and submits an article, it goes into the approval queue.  However, I can't seem to find any way to read the article before I approve it (except by opening it up for editing).

Is that how it's supposed to work?  Or have I just not found the right buttons?

Thanks for your help  :)
Inkscape Community  (SMF with Tiny Portal)

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

Offline brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #824 on: October 07, 2013, 05:32:51 PM »
3 days later.....

No one knows?  I really apologize if this has been asked a million times before.  But I searched, and didn't find anything that answers it.

I just don't understand why there's an approval feature, if the admins or mods can't read it before approving or denying it.  Is the approval feature broken?  Or I'm supposed to review it by opening for editing?  Or have I just not found the right controls?

Thanks   :)
Inkscape Community  (SMF with Tiny Portal)

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

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #825 on: October 07, 2013, 05:35:00 PM »
Was a really basic mod when made haven't had time to update it so that is the only way to see it at the moment.
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 brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #826 on: October 07, 2013, 09:26:20 PM »
Ok   :)

Just wanted to make sure it wasn't broken, or I couldn't find controls.   ;)

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)

Offline seelie

  • Semi-Newbie
  • *
  • Posts: 34
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #827 on: December 21, 2013, 04:30:11 PM »
Hi there

I've installed SMF Articles as part of the ezPortal suite.  When I attempt to import TinyPortal Articles (TP version 1.104), I get the following error:

Unknown column 'authorID' in 'field list'
File: /home/neroatl/public_html/forums/Sources/Articles2.php
Line: 2858

Any particular guidance on how to resolve?

Offline seelie

  • Semi-Newbie
  • *
  • Posts: 34
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #828 on: December 21, 2013, 06:13:37 PM »
Hi there

I've installed SMF Articles as part of the ezPortal suite.  When I attempt to import TinyPortal Articles (TP version 1.104), I get the following error:

Unknown column 'authorID' in 'field list'
File: /home/neroatl/public_html/forums/Sources/Articles2.php
Line: 2858

Any particular guidance on how to resolve?

Figured it out :)

For that version of TP, it is author_id not authorID ... just replaced it in Articles2.php and all imported fine :)

Offline brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #829 on: March 01, 2014, 04:21:25 PM »
Hi Friends,
Another question.  I want to know if it's possible, how to move articles which were submitted into the wrong category, into the correct category.  I can't seem to find a way to do that.  It seems like a vital feature for admins.

Thanks for your help!   :)

PS -- I'd be willing to make a small donation, if it could make this and my previous request possible (admin able to read articles before approving).  TA
Inkscape Community  (SMF with Tiny Portal)

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

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #830 on: March 01, 2014, 05:02:07 PM »
You should be able to edit a category then change the category the article was placed under.
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 brynn

  • Full Member
  • ***
  • Posts: 515
  • Gender: Female
    • Inkscape Community
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #831 on: March 02, 2014, 01:45:30 AM »
Oooh, ok!  Yes, I've got it working now.

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)

Offline Hondo

  • Full Member
  • ***
  • Posts: 513
  • Gender: Male
    • Access-o-Mania
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #832 on: March 27, 2014, 01:54:42 PM »
What I'am missing is the posibility to add Permissions to Categories. And because I'm missing it I have done for me. ist is quite simple, just a Selection for the Category and a submit Button. It looks now so:


In articles2.php Function ArticlesAdminPerm() I just added this after the AdminTabs:

Code: [Select]
$dbresult = $smcFunc['db_query']('', "
SELECT
ID_CAT, title, roworder, ID_PARENT
FROM {db_prefix}articles_cat ORDER BY title ASC");
$context['news_cat'] = array();
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
$context['articles_cat'][] = $row;
$smcFunc['db_free_result']($dbresult);

CreateArticlesPrettryCategory();

And in Template catpermlist after the table:
Code: [Select]
<form method="post" action="' , $scripturl , '?action=articles;sa=addPermission">
<table border="0" width="80%" cellspacing="0" align="center" cellpadding="4" class="tborder">
<tr>
<td align="right" style="vertical-align: top">', $txt['smfarticles_category'] ,':&nbsp;<select name="cat">';
foreach ($context['articles_cat'] as $cat)
echo '<option value="', $cat['ID_CAT'], '">', $cat['title'], '</option>';
echo '</select></td>
<td align="left"><input type="submit" value="' , $txt['smfarticles_text_addperm'] , '" name="submit" /><br /><br /></td>
</tr>
</table>
</form>

That's it. It would be great if you would update you Mod in this way. Also Mod Downloads etc.
« Last Edit: March 28, 2014, 06:13:25 AM by Hondo »

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #833 on: March 27, 2014, 02:40:37 PM »
There is more code behind category level permissions then just the display links. You would also need to modify the queries to show items based on permissions.

I have it downloads pro,gallery pro etc
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 Hondo

  • Full Member
  • ***
  • Posts: 513
  • Gender: Male
    • Access-o-Mania
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #834 on: March 27, 2014, 03:07:32 PM »
It works for me.
I can set permissions for each Category.

Offline Hondo

  • Full Member
  • ***
  • Posts: 513
  • Gender: Male
    • Access-o-Mania
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #835 on: March 28, 2014, 06:11:30 AM »
OK I see, I have fogotton to post the rest:
in articles2 in Array Subactions you have to insert: 'addPermission' => 'AddPermission',
And insert the function maybe at the End of File:
Code: [Select]
Function AddPermission()
{
$cat = $_REQUEST['cat'];
if(isset($cat))
redirectexit('action=articles;sa=catperm;cat=' . $cat);
else
redirectexit('action=admin;area=articles;sa=adminperm');
}

Offline Impsat-1

  • Jr. Member
  • **
  • Posts: 320
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #836 on: April 25, 2014, 03:47:34 PM »
just wondering if its possible to center the images for each category... or to move the actual title name over closer to the picture? You can see what I mean from the attached piccie  :)

Mmm... Hi Guys, I have the same problem..., please how I can center or centered images in category?.... the MOD works fine in SMF 2.0.7, but the image is right... and I need centered, Thanks.... & Regards.... ;)

Have a Great Time 8)
« Last Edit: April 25, 2014, 04:30:01 PM by Impsat-1 »
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

Offline Impsat-1

  • Jr. Member
  • **
  • Posts: 320
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #837 on: April 25, 2014, 04:00:54 PM »
Mmm... If Somebody need for SMF 2.XX or wants here My translation for "spanish_latin-utf8.php"

In file package-info.xml find
Code: [Select]
<install for="2.0 - 2.0.99, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
<redirect url="?action=admin;area=articles;sa=admin">redirect.txt</redirect>
<readme>ReadMe.txt</readme>
<modification type="file">articles2.xml</modification>
<require-file name="Articles2.php" destination="$sourcedir" />
<require-file name="Articles2.template.php" destination="$themedir" />
<require-file name="Articles.english.php" destination="$themedir/languages" />
<require-file name="Articles.english-utf8.php" destination="$themedir/languages" />
<require-dir name="articles" destination="$boarddir" />
<code>articlessql2.php</code>

And replace with
Code: [Select]
<install for="2.0 - 2.0.99, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
<redirect url="?action=admin;area=articles;sa=admin">redirect.txt</redirect>
<readme>ReadMe.txt</readme>
<modification type="file">articles2.xml</modification>
<require-file name="Articles2.php" destination="$sourcedir" />
<require-file name="Articles2.template.php" destination="$themedir" />
<require-file name="Articles.english.php" destination="$themedir/languages" />
<require-file name="Articles.english-utf8.php" destination="$themedir/languages" />
<require-file name="Articles.spanish_latin-utf8.php" destination="$themedir/languages" />
<require-dir name="articles" destination="$boarddir" />
<code>articlessql2.php</code>

Find
Code: [Select]
<upgrade for="2.0 - 2.0.99, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
<redirect url="?action=admin;area=articles;sa=admin">redirect.txt</redirect>
<readme>ReadMe.txt</readme>
<require-file name="Articles2.php" destination="$sourcedir" />
<require-file name="Articles2.template.php" destination="$themedir" />
<require-file name="Articles.english.php" destination="$themedir/languages" />
<require-file name="Articles.english-utf8.php" destination="$themedir/languages" />
<require-dir name="articles" destination="$boarddir" />
<code>articlessql2.php</code>

Replace with
Code: [Select]
<upgrade for="2.0 - 2.0.99, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
<redirect url="?action=admin;area=articles;sa=admin">redirect.txt</redirect>
<readme>ReadMe.txt</readme>
<require-file name="Articles2.php" destination="$sourcedir" />
<require-file name="Articles2.template.php" destination="$themedir" />
<require-file name="Articles.english.php" destination="$themedir/languages" />
<require-file name="Articles.english-utf8.php" destination="$themedir/languages" />
<require-file name="Articles.spanish_latin-utf8.php" destination="$themedir/languages" />
<require-dir name="articles" destination="$boarddir" />
<code>articlessql2.php</code>

Find
Code: [Select]
<uninstall for="2.0 - 2.0.99, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
<modification type="file" reverse="true">articles2.xml</modification>
<remove-file name="$sourcedir/Articles2.php" />
<remove-file name="$themedir/Articles2.template.php" />
<remove-file name="$themedir/languages/Articles.english.php" />
<remove-file name="$themedir/languages/Articles.english-utf8.php" />
<code>UnInstall.php</code>
</uninstall>

Replace with
Code: [Select]
<uninstall for="2.0 - 2.0.99, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
<modification type="file" reverse="true">articles2.xml</modification>
<remove-file name="$sourcedir/Articles2.php" />
<remove-file name="$themedir/Articles2.template.php" />
<remove-file name="$themedir/languages/Articles.english.php" />
<remove-file name="$themedir/languages/Articles.english-utf8.php" />
<remove-file name="$themedir/languages/Articles.spanish_latin-utf8.php" />
<code>UnInstall.php</code>
</uninstall>

In file articles2.xml Add 1 line before "<file name="$languagedir/Who.english.php">" this code
Code: [Select]
<file name="$languagedir/Modifications.spanish_latin-utf8.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles Text Strings
$txt['smfarticles_menu'] = 'Art&iacute;culos';
$txt['smfarticles_admin'] = 'Configuraci&oacute;n de Art&iacute;culos';

$txt['smfarticles_articlessettings'] = 'Ajustes';
$txt['smfarticles_approvearticles'] = 'Aprobar Art&iacute;culos';
$txt['smfarticles_form_approvecomments'] = 'Aprobar comentarios';
$txt['smfarticles_catpermlist'] = 'Lista de Permisos por Categor&iacute;as';
$txt['smfarticles_txt_import'] = 'Importar';

$txt['permissiongroup_smfarticles'] = 'SMF Art&iacute;culos';

$txt['permissionname_view_articles'] = 'Ver Art&iacute;culos';
$txt['permissionhelp_view_articles'] = 'Define si los usuarios pueden ver los Art&iacute;culos.';
$txt['cannot_view_articles'] = 'No puedes ver esta página.';

$txt['permissionname_add_articles'] = 'Añadir Art&iacute;culos';
$txt['permissionhelp_add_articles'] = 'Si el usuario puede enviar Art&iacute;culos';

$txt['cannot_add_articles'] = 'No puedes añadir Art&iacute;culos.';
$txt['permissionname_edit_articles'] = 'Editar Art&iacute;culos propios';
$txt['permissionhelp_edit_articles'] = 'Si el usuario puede editar Art&iacute;culos';

$txt['cannot_edit_articles'] = 'No puedes editar Art&iacute;culos.';
$txt['permissionname_delete_articles'] = 'Borrar Art&iacute;culos propios';
$txt['permissionhelp_delete_articles'] = 'Si el usuario puede borrar Art&iacute;culos';
$txt['cannot_delete_articles'] = 'No puedes borrar Art&iacute;culos.';

$txt['permissionname_articles_comment'] = 'Dejar comentarios';
$txt['permissionhelp_articles_comment'] = 'Permite al usuario comentar Art&iacute;culos.';
$txt['cannot_articles_comment'] = 'No puedes escribir comentarios.';


$txt['permissionname_articles_auto_approve'] = 'Auto-aprobaci&oacute;n Art&iacute;culos';
$txt['permissionhelp_articles_auto_approve'] = 'Si los Art&iacute;culos son automáticamente aprobados al enviarlos.';

$txt['permissionname_articles_autocomment'] = 'Auto-aprobación de comentarios';
$txt['permissionhelp_articles_autocomment'] = 'Los comentarios no necesitan esperar Aprobaci&oacute;n.';

$txt['permissionname_rate_articles'] = 'Valorar Art&iacute;culos';
$txt['permissionhelp_rate_articles'] = 'Si el usuario puede valorar Art&iacute;culos';
$txt['cannot_rate_articles'] = 'No tienes permiso para valorar Art&iacute;culos.';

$txt['permissionname_articles_admin'] = 'Administrar Art&iacute;culos';
$txt['permissionhelp_articles_admin'] = 'El usuario puede administrar Art&iacute;culos';
$txt['cannot_articles_admin'] = 'No tienes permiso para administrar Art&iacute;culos.';
// END SMF Articles Strings       
]]></add>
    </operation>
</file>

And Add To Folder the file "Articles.spanish_latin-utf8.php"
Download here

Please... seee or tell me what about the "center" or "centered" images in category, Thanks & Regards.... Great MOD, but I can't center or centered images in category, pleaseee :'(

Thaaanks!!!, Hace a Great Time 8).-
« Last Edit: April 25, 2014, 04:28:31 PM by Impsat-1 »
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

Offline Impsat-1

  • Jr. Member
  • **
  • Posts: 320
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #838 on: April 26, 2014, 12:39:21 AM »
Mmm... hey Guys, please... how I can center the image in category


Pleaseee....

Thanks & Regards 8).-
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles (2.5.1 Released with SMF 2.0 support!)
« Reply #839 on: April 26, 2014, 12:55:31 AM »
change td tag to td align="center"
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