News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Articles

Started by SMFHacks.com Team, September 04, 2008, 04:03:00 PM

Previous topic - Next topic

vbgamer45

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

iaccountant

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

vbgamer45

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

brynn

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  :)

brynn

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   :)

vbgamer45

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

brynn

Ok   :)

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

Thank you very much!

seelie

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?

seelie

Quote from: seelie 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?

Figured it out :)

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

brynn

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

vbgamer45

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

brynn

Oooh, ok!  Yes, I've got it working now.

Thank you very much   :)

Hondo

#832
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:

$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:
<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.

vbgamer45

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

Hondo

It works for me.
I can set permissions for each Category.

Hondo

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:
Function AddPermission()
{
$cat = $_REQUEST['cat'];
if(isset($cat))
redirectexit('action=articles;sa=catperm;cat=' . $cat);
else
redirectexit('action=admin;area=articles;sa=adminperm');
}


Impsat-1

#836
Quote from: Bec on September 10, 2008, 12:29:12 AM
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)
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 ;).-

Impsat-1

#837
Mmm... If Somebody need for SMF 2.XX or wants here My translation for "spanish_latin-utf8.php"

In file package-info.xml find
<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
<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
<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
<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
<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
<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
<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).-
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 ;).-

Impsat-1

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 ;).-

vbgamer45

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

Advertisement: