Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=1354)
SMF Articles
By vbgamer45 (http://custom.simplemachines.org/mods/index.php?action=profile;u=24876)
CompatibilityWorks with both SMF 2.0.x and SMF 1.1.x
DescriptionAn SMF Article System for SMF
-Articles with bbcode
-Article categories
-Rating of articles
-Comments on articles
-Searching and my articles function
-Permissions for viewing,adding,editing,rating,deleting articles.
-Can import articles from Tiny Portal
Latest updates
3.1
!Fixed bug with the manage categories link
!Removed google+ code
!Updated social sharing links to https for SMF 1.1.x
3.0.4
!Fixed importing new versions of TinyPortal article system
!Fixed some undefined errors for SMF 2.1.x
3.0.3b
+Added install support for SMF 2.1 RC1
3.0.3a
!Fixed install for SMF 2.1 Beta editions
!Fixed some https links for social media
3.0.2
!Delete invalid pictures when they fail to upload
3.0.1
!Better handling of utf8 characters for SMF 2.0.x
3.0
+Now works for SMF 2.1 Beta 1
+New manage articles area for SMF 2.0
+Improved styles for SMF 2.0
+Added new copyright removal system
2.5.1
!Fixed the Facebook like article to encode the full article url
!Fixed empty description field when editing category in SMF 2.0.x
!Cleaned up some more html/styles in SMF 2.0.x version
2.5
+Updated styling for SMF 2.0 for main areas for a better experience
+Updated admin areas with alternating row styles to make reading easier
2.0.2
!Fixed top articles bar layout issue in chrome for SMF 2.0
2.0.1
!Fixed possible undefined error on the search page
+Added future integration support for Badge Awards
2.0
+Added RSS feed icon/RSS feeds now support for the articles
+Added import from FAQ mod and Knowledge Base mod
1.4
+Added sharing icons: Facebook, Google +1, Twitter
1.3.3
!Improved search results for multiple pages.
1.3.2
!Fixed edit article bug for SMF 2.0 thanks to Arantor
1.3.1
+Updated style for articles system for SMF 2.0 RC3 to be more curve
1.2.2
!Fixed find members link on the search page
1.2.1
!Fixed issue with reserved characters in article description and summary for SMF 2.0
1.2a
+Added checking on view article if article no longer exists or not found
1.2.1
!Fixed issue with reserved characters in article description and summary for SMF 2.0
Version 1.1.2
!Fixed bbc editor for categories in SMF 2.0 not working in IE6/IE7
Version 1.1
+Added settings to allow attaching images to articles
+Added more display information on the person making the comment
!Fixed bug with importing tiny portal articles for SMF 2.0
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
Support LinksSMF Package Parser (http://sleepycode.com/PackageParser/)
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)
Despite placing in permissions per category, all users can view all categories.
BEAUTIFUL!!! Ive been waiting ages for this one, thank you!!
I just have one little suggestion and that is after you create a category and are putting articles into those categories, it would be nice if they were arranged in alphabetical order rather than the order they are put in... the irony is I just finished doing all my articles through Tp today so now im in the process of copying them all over lol thanks again!!
I am trying to sort the categories (moving one down) and am getting this error message:-
Table 'buctai8_smf1.articles_cat' doesn't exist
File: /home/buctai8/public_html/Sources/Articles.php
Line: 862
any ideas?
Nice mod ;)
I have a bug here, does anyone else?... when viewing a list of articles, the comments count registers views and the views count registers comments (stats)
Can anyone help with a fix?
Regards
Spudgun.
Can you move existing topics? I have several topics written in a article fashion.
Quote from: Spudgun on September 05, 2008, 02:57:35 PM
Nice mod ;)
I have a bug here, does anyone else?... when viewing a list of articles, the comments count registers views and the views count registers comments (stats)
Can anyone help with a fix?
Regards
Spudgun.
Fixed for next update
Quote from: Rafferty on September 05, 2008, 05:00:13 AM
Despite placing in permissions per category, all users can view all categories.
Can't recreate on my test forum. I tried with guests and setting permissions for admin group to deny for all options under a category
Thanks for this beautiful mod.
Here is Turkish language strings..
Modifications.turkish.php
// Begin SMF Articles Text Strings
$txt['smfarticles_menu'] = 'Makaleler';
$txt['smfarticles_admin'] = 'Makale Ayarları';
$txt['permissiongroup_smfarticles'] = 'SMF Makaleler';
$txt['permissionname_view_articles'] = 'Makaleleri Görüntüle';
$txt['permissionhelp_view_articles'] = 'Ayarlar, eğer üye makaleleri görebiliyorsa.';
$txt['cannot_view_articles'] = 'Makale sayfasını göremezsiniz.';
$txt['permissionname_add_articles'] = 'Makale Ekle';
$txt['permissionhelp_add_articles'] = 'Eğer üyenin makale göndermeye izni varsa';
$txt['cannot_add_articles'] = 'Makale Ekleyemezsiniz.';
$txt['permissionname_edit_articles'] = 'Kendi Makalelerini Düzeltme';
$txt['permissionhelp_edit_articles'] = 'Eğer üye kendi makalelerini düzeltmeye izni varsa';
$txt['cannot_edit_articles'] = 'Makaleleri Düzeltemezsiniz.';
$txt['permissionname_delete_articles'] = 'Kendi Makalelerini Silme';
$txt['permissionhelp_delete_articles'] = 'Eğer üye makaleleri silmeye izni varsa';
$txt['cannot_delete_articles'] = 'Makaleleri Silemezsiniz.';
$txt['permissionname_articles_comment'] = 'Yorum Yapma';
$txt['permissionhelp_articles_comment'] = 'Üyenin bir makaleye yorum yapmasna olanak sağlar.';
$txt['cannot_articles_comment'] = 'Yorum yapma izniniz yok.';
$txt['permissionname_articles_auto_approve'] = 'Otomatik Onaylanmış Makaleler';
$txt['permissionhelp_articles_auto_approve'] = 'Eğer üyenin makaleleri yüklediğinde otomatik onaylanıyorsa.';
$txt['permissionname_articles_autocomment'] = 'Otomatik Onaylanmış Yorumlar';
$txt['permissionhelp_articles_autocomment'] = 'Onaylama beklemeyen Yorumlar.';
$txt['permissionname_rate_articles'] = 'Makaleleri Oylama';
$txt['permissionhelp_rate_articles'] = 'Eğer üye makaleleri onaylamaya izni varsa';
$txt['cannot_rate_articles'] = 'Makale oylamaya izniniz yok.';
$txt['permissionname_articles_admin'] = 'Admin Modu';
$txt['permissionhelp_articles_admin'] = 'Üye Makaleleri Yönetebilir';
$txt['cannot_articles_admin'] = 'Makaleleri yönetme izniniz yok.';
// END SMF Articles Strings
Who.turkish.php
// Begin SMF Articles
$txt['whoall_articles'] = '<a href="' . $scripturl . '?action=articles">' . $txt['smfarticles_menu'] . '</a>\'e bakıyor.';
// END SMF Articles Strings
Quote from: vbgamer45 on September 05, 2008, 08:36:55 PM
Quote from: Spudgun on September 05, 2008, 02:57:35 PM
Nice mod ;)
I have a bug here, does anyone else?... when viewing a list of articles, the comments count registers views and the views count registers comments (stats)
Can anyone help with a fix?
Regards
Spudgun.
Fixed for next update
Very detailed answer - I know you do this for free and I honestly respect that...but... do we all delete the mod or simply put it on hold until such a time that we may get support?
I know this sounds harsh as the issue in no way affects the functionality of the mod but I'm getting headaches from my forum members complaining. ;)
Regards
Spudgun.
Awesome mod!!!
Great job i was waiting this mod
Quote from: Spudgun on September 06, 2008, 11:55:52 AM
Quote from: vbgamer45 on September 05, 2008, 08:36:55 PM
Quote from: Spudgun on September 05, 2008, 02:57:35 PM
Nice mod ;)
I have a bug here, does anyone else?... when viewing a list of articles, the comments count registers views and the views count registers comments (stats)
Can anyone help with a fix?
Regards
Spudgun.
Fixed for next update
Very detailed answer - I know you do this for free and I honestly respect that...but... do we all delete the mod or simply put it on hold until such a time that we may get support?
I know this sounds harsh as the issue in no way affects the functionality of the mod but I'm getting headaches from my forum members complaining. ;)
Regards
Spudgun.
You have to wait for me to update. I rather fix things in one update then do many many updates.
Any TinyPortal Block for the last articles??
Thanks
Quote from: Bec on September 05, 2008, 10:17:44 AM
I am trying to sort the categories (moving one down) and am getting this error message:-
Table 'buctai8_smf1.articles_cat' doesn't exist
File: /home/buctai8/public_html/Sources/Articles.php
Line: 862
any ideas?
I hate bumping but I would appreciate an answer.... :)
I might have that one fixed in the next update. Works ok for my forum might be a spacing issue in the query
Cool thank you! Out of interest any eta on when the next update will be? Think I might uninstall and wait till then
Maybe you can add a column in each category for the last article ;)
Version 1.0.1 Released!
+Added feature to import articles from Tiny Portal if installed.
!Fixed bug with comments and views column out of order.
!Fixed bug moving category order.
Despite my previous slightly negative post, I do appreciate your work and you are right, it is better to fix multiple bugs all in one go. Thanks for your prompt fix vbgamer45 8)
Regards
Tim.
Another fantastic mod by vbgamer45, just aquestion... Say I wanted to name it EVENTS in the MENU BAR how do I change it from ARTICLES ==> EVENTS?
You need open up and modify themes/default/languages/modifications.english.php
Find and change the text of
$txt['smfarticles_menu'] = 'Articles';
i will update the v1.0 version to the v1.01 , if i unistall the 1.0 for install the 1.01 i will lose my articles??
No you will not
Quote from: vbgamer45 on September 07, 2008, 02:14:33 PM
No you will not
Thanks i update and everything is right
But when i try to import the articles of TP i have this message:
Hacking attempt...
Quote from: NIBOGO on September 07, 2008, 02:15:36 PM
Quote from: vbgamer45 on September 07, 2008, 02:14:33 PM
No you will not
Thanks i update and everything is right
But when i try to import the articles of TP i have this message:
Hacking attempt...
Redownload the latest version just added a fix that might fix that issue.
Nice mod! Ive waiting this mod.
And thanks to Hoochie Coochie Man for Turkish Strings
Quote from: vbgamer45 on September 07, 2008, 02:32:37 PM
Quote from: NIBOGO on September 07, 2008, 02:15:36 PM
Quote from: vbgamer45 on September 07, 2008, 02:14:33 PM
No you will not
Thanks i update and everything is right
But when i try to import the articles of TP i have this message:
Hacking attempt...
Redownload the latest version just added a fix that might fix that issue.
Ok thanks , but i cant download any mod :(
You can attach the new version??
I posted the new on the modsite
Quote from: vbgamer45 on September 07, 2008, 03:04:11 PM
I posted the new on the modsite
Installed the new version , but I have an error importing the TP Articles:
' at line 3
Archivo: /homexxxxxxx/Sources/Articles.php
Líne: 2465
Posted new update try that
Quote from: vbgamer45 on September 07, 2008, 04:16:02 PM
Posted new update try that
I have the same error
EDIT: Works great the new version , thanks
Bug: When i move an article , dont update the total of articles in the categories
Hey everyone...
I'm not sure if this is exceptionally relevant, but I found a similar mod that I'm using...it's kinda like this, but moreso toward a blog-ish format.
Link to SMFs mod page:
http://custom.simplemachines.org/mods/index.php?mod=1209 (http://custom.simplemachines.org/mods/index.php?mod=1209)
Link to developer:
http://degreesofzero.com/index.php?action=store;product=1 (http://degreesofzero.com/index.php?action=store;product=1)
Just in case something still isn't working with this one.
:)
Quote from: NIBOGO on September 07, 2008, 06:28:34 PM
Quote from: vbgamer45 on September 07, 2008, 04:16:02 PM
Posted new update try that
I have the same error
EDIT: Works great the new version , thanks
Bug: When i move an article , dont update the total of articles in the categories
Fixed that bug in SMF Articles 1.0.1.3
Fixed but now i lose the "Articles" in the linktree in the articles main page
I don't think there was one on the main page since you are already on the main page no point to having the link tree.
Quote from: vbgamer45 on September 07, 2008, 07:12:07 PM
I don't think there was one on the main page since you are already on the main page no point to having the link tree.
Ok Thanks
Now everything is working great
But maybe you can do something with the TP Articles
Import every single article to a different article category , not upload all to the same category
hi!
when I click "edit articles" opened this pages :
................./forum/index.php?action=articles;sa=editarticle;id=1
and not working "delete articles"
index.php?action=articles;sa=deletearticle;id=1
...
Not Acceptable
An appropriate representation of the requested resource /forum/index.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
and its not found
why?
That's an issue with mod_security
http://www.simplemachines.org/community/index.php?topic=34270.0
my friend ı can do that but not change anythink ?
this is my .htaccess
<IfModule mod_security.c>
# Turn off mod_security filtering. SMF is a big boy, it doesn't need its hands held.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
where is problem
I would contact your host then.
can someone please tell me how i import my tp articles? thanks for the quick updates vbgamer45, love your work!
Go to the admin section of the articles. Then click on the import tab. Then click import tiny portal articles!
ahhh ok cool thank you :)
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 :)
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 :)
Images centred would be nice and give a better feel to the page. ;)
Does anyone know how to centre category images as talked about above?
Thanks for any help given...
Spudgun.
Quote from: Spudgun on September 20, 2008, 08:19:55 AM
Does anyone know how to centre category images as talked about above?
Thanks for any help given...
Spudgun.
Articles.template.php:
Find:
Quote<td class="windowbg"><a href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '"><img src="', $row['imageurl'], '" border="0" alt="" /></a></td>
Replace:Quote<td class="windowbg" align="center"><a href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '"><img src="', $row['imageurl'], '" border="0" alt="" /></a></td>
I keep getting an error when I try to import my TP acticles...
Table 'xxxxxx_smf1.smf_tp_articles' doesn't exist
File: /home/xxxxxx/public_html/forum/Sources/Articles.php
Line: 2461
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.6, while your database is at version 1.1.5. The above error might possibly go away if you execute the latest version of upgrade.php.
It is the latest version: 1.0.1.3.
Any ideas?
It says they don't exist. What table do they exist in the tiny portal articles and are they in the same database?
Yea, I know it means they don't exist... But why don't they? Is it not in the script to create them if they don't exist? Or do I have to create them manually?
Quote from: vbgamer45 on September 25, 2008, 07:44:40 PM
are they in the same database?
Yes, they are.
That import option is meant only if you have created articles in Tiny Portal and wish to import them. If they don't exist it will not work.
Quote from: vbgamer45 on September 26, 2008, 08:05:35 PM
That import option is meant only if you have created articles in Tiny Portal and wish to import them. If they don't exist it will not work.
Oh yes. :D Thank you.
Nice mod BTW.... ;)
This is an awesome mod. Any plans to update it for 2.0? I just upgraded and then discovered to my dismay that I could not reinstall the mod. Oh noes! ;D
Yes in the coming weeks I will upgrade it to 2.0
Quote from: NIBOGO on September 24, 2008, 08:16:08 PM
Quote from: Spudgun on September 20, 2008, 08:19:55 AM
Does anyone know how to centre category images as talked about above?
Thanks for any help given...
Spudgun.
Articles.template.php:
Find:
Quote<td class="windowbg"><a href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '"><img src="', $row['imageurl'], '" border="0" alt="" /></a></td>
Replace:Quote<td class="windowbg" align="center"><a href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '"><img src="', $row['imageurl'], '" border="0" alt="" /></a></td>
hmmm tried the changes and got a parse error... "syntax error, unexpected T_FUNCTION"
Post the file so we can look.
thanks :)
Can I set it so that I don't have to approve articles and comments? I want them to appear as soon as a user submits them.
I also wonder if maybe a Preview option could be added like when posting a topic?
Can we have the number of new articles displayed somewhere? Perhaps "Articles [2]" in the title bar or something? Otherwise you have an articles section which is quite separated from the forum...
Quote from: DistantJ on October 01, 2008, 06:09:23 PM
Can I set it so that I don't have to approve articles and comments? I want them to appear as soon as a user submits them.
There should be permissions located in the permissions section of SMF that allows you to set those functions.
Main category does not show totals of articles in subcategories...however, the subcategories display the number of articles.
There is a settings in the settings section of the mod that allows you to count one level deep for sub categories
Sorry...I missed that.
Thanks for the heads up...much appreciated.
Great idea for integrating in smf 2.0!
I would like to order my articles myself-- not in order they are posted and not in alphabetical order.
can we have an up/down function for articles themselves, the way we do for categories?
thank you!
Nice idea added to my feature list for next updates.
Maybe you add a row for categories with the last article ^^
Quote from: vbgamer45 on October 12, 2008, 09:09:47 PM
Nice idea added to my feature list for next updates.
:)
What I am trying to do is make a multi- community fiction archive. There are two out there, one in perl and one in php-- the php one includes a helluvalot of queries that my groups don't need, and neither of them have forum functions.
Since we're piling up possible changes, another one I would like would be an admin function that would let me change the author-- although I can do that in phpmyadmin, I suppose... or the ability to create a few more fields for my users to fill in. We could use them for co--writers, or genre, or XXX ratings :D
Hi All,
I installed SMF Articles, then uninstalled it, in the admin cp in the left hand panel it left behind Articles Configuration, where do I go to remove this?
Thanks as always
Hi all,
any answer to the above question I posted yesterday??
Check out Sources/Subs.php
Cool, Ty
I've installed this module, am able to access it in the admin panel, but cannot see anywhere to actually write and post an article. Am I missing something here?
Are you using the default theme? If not you will have to modify the index.template.php of the custom theme to include a link to the articles section such as
http://www.yourforum.com/index.php?action=articles
Quote from: vbgamer45 on October 19, 2008, 09:12:47 PM
Are you using the default theme? If not you will have to modify the index.template.php of the custom theme to include a link to the articles section such as
http://www.yourforum.com/index.php?action=articles
I did find the articles section with the url like you mentioned, and I modified index.template.php, but I must not have done it right. I just added a button a couple days ago so I should be good when I get this one in there. Very cool mod btw :)
This is the only reason I have not upgrade to 2.0 =p
In the profile .. in the tiny portal section ( if you have TP installed) .. there is a link to all articles written by the user
is it possible to have this link show all articles written with SMF Articles instead of / or in addition to Tiny Portal?
as it is right now that link does not show any articles written while in SMF Article
thanks
Great MOD Vb
Quote from: kizer on September 05, 2008, 05:43:18 PM
Can you move existing topics? I have several topics written in a article fashion.
Same question for me.
Not yet
Not yet ?
Si you don't say "no", I suppose that we can hope that it could be a new feature in a further release ? :) :)
When a visitor goes to my smf homepage, I would like to automatically redirect them to, or display, the list of article categories.
Is this possible?
Thx-
Quote from: OneLung on October 28, 2008, 11:33:25 AM
When a visitor goes to my smf homepage, I would like to automatically redirect them to, or display, the list of article categories.
Is this possible?
Thx-
Possible to do requires custom code though
vbgamer any update to smf 2.0?
Going to be a little while for this one.
vbgamer45...
I'm using 1.0.1.3 on SMF 1.1.7. Everything seems to be working fine...except for when it comes to XHTML validation once an article is created.
Here's an example from my site: What are the jumper settings for Seagate ATA hard drives? (http://www.saviourpc.com/forums/index.php?action=articles;sa=view;article=42)
If you follow the above link and then click the validation link at the bottom of the page...you'll see that it fails validation.
Has this been addressed in an update of which I'm not aware? If so, and I need to download the latest release...do I need to uninstall/delete the previous release before I install it again? One thing I'm worried about is losing any articles I may have already created.
Hope to hear from you soon...and thanks in advance.
What erorr message does it say i need to see the html
Here's the link to the validation page with the source included:
Validation of previous link (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.saviourpc.com%2Fforums%2Findex.php%3Faction%3Darticles%3Bsa%3Dview%3Barticle%3D42&charset=(detect+automatically)&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.606)
Your template: Articles.template.php has to be modified. find "sppan" and replace with "span".
After that...it's all good, my friend.
Updated for SMF 2.0
Quote from: vbgamer45 on November 25, 2008, 09:39:50 PM
Updated for SMF 2.0
Didn work , for example I see the article tab in index.template not in Subs.php :sI check and the package manager is loading the smf 1.1.X version[/]I modify the package-info.xml and everything is working right
Thanks for the mod
You sure i have it installed on my SMF 2.0 using the latest package from the modsite.
Quote from: vbgamer45 on November 25, 2008, 10:17:12 PM
You sure i have it installed on my SMF 2.0 using the latest package from the modsite.
I modify the package-info.xml and is working right , thanks
What did you change and why?
Just installed this and it works perfect, many thanks. Just one very small error - in the control panel it says
Your Version: 1.0.1.4 Latest Version: 1.0.1.3 Your article system version is not up to date!
:)
im using smf 2.0 & 1.0.1.4
i added to article in wysing editor get this error "You need to enter article text!". if using normal editor work fine.
how can i fix this?
Quote from: vbgamer45 on November 26, 2008, 12:14:24 AM
What did you change and why?
Just a really stupid mistake , I forget of I was emulating SMF 1.1.7 :P
Quote from: ЯocKayseri on November 26, 2008, 03:32:58 AM
im using smf 2.0 & 1.0.1.4
i added to article in wysing editor get this error "You need to enter article text!". if using normal editor work fine.
how can i fix this?
I have the same error :s
Hi,
I'm having the same issue with 'Links' and 'Articles'...
They are not even showing for guests or regular members (which is getting me a few mails from potential reciprocal link partners... ::))
I'm running 1.15 (updates fail - I have a custom flash video recorder and it might be the reason why...)
From my admin account, links and articles work AOK (no issues noted on installation), however, guests and regular members don't see a links or articles button and get a 'password message' if they try to access directly from a link.
e.g. http://www.besteikaiwa.com/forum/index.php?action=links;cat=10
There's nothing wrong with the permissions (triple checked) - I'm not sure if moderators have the glitch or not...
Any ideas anyone? (I'm really screwed here - I installed the links and went out hunting for reciprocal links - I have dozens of people who've been approached, but can't see a working link from me :()
Hi,
I have an electronic site with a project section, and I found this great mod that I will use for my article section.
It would be great if this mod could take care of both my projects and articles, not sure how to suggest a way to go about it.
Dazza0101. :)
*bump*
$10US via PayPal to the person who can fix this for me (make links and articles both display and work properly for all users who have been given the appropriate permissions...)
Should only be 20 mins work for the 'smarties' 8)
Quote from: sakura1998 on November 30, 2008, 06:11:17 PM
*bump*
$10US via PayPal to the person who can fix this for me (make links and articles both display and work properly for all users who have been given the appropriate permissions...)
Should only be 20 mins work for the 'smarties' 8)
Easy fix by deafult only admin's have permissions to access those sections.
You can setup permissions. Under Admin -> Permissions you have to modify each group and add permissions for articles etc.
QuoteEasy fix by deafult only admin's have permissions to access those sections.
Not quite so easy... That's already done - the permissions are set (see the attached image and then have a look at my site - http://www.besteikaiwa.com/forum/ - and try to find the articles button or try to link directly to the articles page the permissions in the image supposedly allow - http://www.besteikaiwa.com/forum/index.php?action=articles;cat=2
The same problem exists with links (which is a very similar plugin)
That screenshot is for category level permissions which you can choose to enable or disable by default everyone has access to all categories.
You also need to setup global permissions inside SMF.
Which is found under SMF's Admin -> Permissions -> Modify each group
Hey VB (Great Aussie beer VB, btw, you wouldn't be a drunken Aussie gamer by any chance would you ;D)
I owe you a beer at any rate... (a deal's a deal and I'm the one who couldn't figure out how to use the mod...)
I have an idea for 'alternative payment', though... (I can become a paying customer and purchase Newletter Pro - which looks a way nifty application)
The guys who make the mods deserve to get paid where they can (one of my big problems with the Open Source community is the lack of gratitude I often see expressed - I really do value the fact that you spent your own time trying to help a noob :))
Quote from: Özgür | ЯocKayseri on November 26, 2008, 03:32:58 AM
im using smf 2.0 & 1.0.1.4
i added to article in wysing editor get this error "You need to enter article text!". if using normal editor work fine.
how can i fix this?
Quote from: sakura1998 on December 01, 2008, 02:55:50 PM
Hey VB (Great Aussie beer VB, btw, you wouldn't be a drunken Aussie gamer by any chance would you ;D)
I owe you a beer at any rate... (a deal's a deal and I'm the one who couldn't figure out how to use the mod...)
I have an idea for 'alternative payment', though... (I can become a paying customer and purchase Newletter Pro - which looks a way nifty application)
The guys who make the mods deserve to get paid where they can (one of my big problems with the Open Source community is the lack of gratitude I often see expressed - I really do value the fact that you spent your own time trying to help a noob :))
Yeah gets kind of tough when you have so many mods that are large in themselves, other websites to work on, and then working fulltime.
Hey Mr. G,
Got a quick question, you wouldn't just happen to have a upgrade package for SMF Articles (version 1.0.1.3 to 1.0.1.4)like you did with EZ Portal
would ya. Because that would make life so much easier, sence I have so many mods installed that the only way I'll be able to do the upgrade is manualy and being a blind user it gets kind of tough sence the only way I can edit all these crazy php files is with note-pad, tried to use note-pad 2 but my screen reader will not work with it, e.g. will not read the line-numbers as well as several other things.
Well thanks for any help you can offer.
Flip - KE4obt
The Blind Ham :-[
QuoteI am a BLIND user!
I'm not blind (just not terribly smart ;D)
Signing off on this topic - Just bought Newsletter Pro, so I'll go make trouble for VB elsewhere...
QuoteAre you using the default theme? If not you will have to modify the index.template.php of the custom theme to include a link to the articles section such as
http://www.yourforum.com/index.php?action=articles
Hi,
Been reading back to try and find my answer - the above looked like it might be a place to start, but the link don't work no more...
(I'm trying out ezportal to allow users to switch between themes and am having trouble getting articles and links to work right - the 'most recent' still show through the ezblocks, but the full feature only lives on 'default')
I tried the 'manual install' instructions and modified everything that lived inside a 'theme' directory and left the others as-is, but wasn't getting this to work...
Any ideas folks?
vbgamer45...
I currently use this mod on an SMF 1.1.7 board. Love the mod, btw.
Anyway...my question is this: Is there any way to cut back on the number of "queries" it creates?
Right now, I have two categories...each having a number of sub categories. When navigating to the Articles page, it creates 38 queries. When going to a category, it creates 84 queries...depending on how many subcategories for a particular category. The more categories/subcategories added...the greater the number of queries. This may be of some concern...if it is to be used as a knowledge base...which is how I'm using it.
Is this issue being addressed?
The main page that looks bad is
http://www.saviourpc.com/forums/index.php?action=articles;cat=26
And that is mostly caused by sub category totals features that counts subcategory totals. Which adds two queries to each category.
Well...
I've adjusted the Articles settings to remove counting the child categories, but the number of queries is still high...even though it removed 30+ queries.
Going back to that link...50+ queries...
Yeah it could be optimized a little bit. I think I see one query I can remove from that page.
I had my wife uninstall version 1.0.1.3 and install 1.0.1.4 because 1.4 is newer and the Articles settings section told me to upgrade. :)
However, I now get this when I go into the settings: Your Version: 1.0.1.4 Latest Version: 1.0.1.3 Your article system version is not up to date!
Isn't that kind of bass ackwards?? Is that just an error or does it not know what it's talkin about??
Other than that, it seems to be working fine, so I'm going to leave it alone.
Thanks,
Flip
Quote from: ke4obt on December 07, 2008, 12:18:21 PM
I had my wife uninstall version 1.0.1.3 and install 1.0.1.4 because 1.4 is newer and the Articles settings section told me to upgrade. :)
However, I now get this when I go into the settings: Your Version: 1.0.1.4 Latest Version: 1.0.1.3 Your article system version is not up to date!
Isn't that kind of bass ackwards?? Is that just an error or does it not know what it's talkin about??
Other than that, it seems to be working fine, so I'm going to leave it alone.
Thanks,
Flip
Fixed forgot to update the version number on myside.
Is there any way of installing an additional articles mod, and calling it projects?
Thank you for any help and your time.
Dazza0101. :)
Oh, regarding the previous message about version number, I noticed the same thing on another one of your mods I have installed, I will check which one it is and post back. ;)
Quote from: vbgamer45 on December 07, 2008, 06:28:35 PM
Quote from: ke4obt on December 07, 2008, 12:18:21 PM
I had my wife uninstall version 1.0.1.3 and install 1.0.1.4 because 1.4 is newer and the Articles settings section told me to upgrade. :)
However, I now get this when I go into the settings: Your Version: 1.0.1.4 Latest Version: 1.0.1.3 Your article system version is not up to date!
Isn't that kind of bass ackwards?? Is that just an error or does it not know what it's talkin about??
Other than that, it seems to be working fine, so I'm going to leave it alone.
Thanks,
Flip
Fixed forgot to update the version number on myside.
That worked!! Amazing! :D
Now I've got to go post 2 other questions, which you'll end up getting anyhow, so be forewarned. He He. one will be at ezp, the other at the hacks site for newsletterp.
Awesome MOD but unfortunately it doesn't work for me. I am using SMF 1.1.7. Here's the link to me forum. www.theconfab.net/forums
When I install this MOD, I get the following message"
QuoteYour Version: 1.0.1.4 Latest Version: 1.0.1.3 Your article system version is not up to date!
How do I overcome this problem?
Thanks in advance.
hi, thanks for mod ...
1- there is any way to know if there is any new article published from forum (maybe as recent post) or always have to come to know??
2- the Articles written increment users post count?
thanks
Quote from: italo_anonimo on December 11, 2008, 05:16:22 PM
hi, thanks for mod ...
1- there is any way to know if there is any new article published from forum (maybe as recent post) or always have to come to know??
2- the Articles written increment users post count?
thanks
bump :)
I want to increment the amount of letters in the description... I think is 255, but I don't see where to add that. I was looking in the Articles.php but no place to be found... could you help me out.
Thanks!
The articles description column is text so the limit on that field is 65535 characters.
Thanks! but is weird I only get 255 characters, after that the text is cut even though I keep putting and putting text.
Oh I see, the description that I'm referring is not the article description, but the category description, on the main action=articles
Sorry for the double post!
Yeah the category description is tinytext you can change it to a text field inside the database to support large descriptions.
Ok, great! Thanks a lot!
Quote from: italo_anonimo on December 11, 2008, 05:16:22 PM
hi, thanks for mod ...
1- there is any way to know if there is any new article published from forum (maybe as recent post) or always have to come to know??
2- the Articles written increment users post count?
thanks
3- its possible make a preview option???
thanks for mod
Got this mod installed and made a start with it. So far so good Im really impressed with what ive seen up to now.
Hi There.
U got my first bug. When I try to approve a comment I get this
QuoteFatal error: Call to undefined function ApproveComment() in /home/glennk/public_html/holderness-coast-fishing.co.uk/forum/Sources/Articles2.php on line 71
im using classic yabb theme with these mods
1. Treasury 2.31 [ Uninstall ] [ List Files ] [ Delete ]
2. Tagging System 2.1 [ Uninstall ] [ List Files ] [ Delete ]
3. Aeva ~ Auto-Embed Video & Audio 5.0.21 [ Uninstall ] [ List Files ] [ Delete ]
4. SMF Articles 1.0.1.4 [ Uninstall ] [ List Files ] [ Delete ]
5. Ad Managment 2.3.4 [ Uninstall ] [ List Files ] [ Delete ]
i have a very strange problem going on. i installed it on 2b4, and it seemed to install properly. but when i go to add an article, i fill out the titile, the summary, and then type in the article where i'm supposed to, and i get an error telling me i need to enter some text!
any suggestions?
Vb me again:) Problem with the Link Button again:)
www.modularfoxmustangs.com
Send me index.template.php
here ya go..
Fixed file attached
VB I don't think it worked...
Recheck that file I downloaded it has the new fix with new aritcle button code.
I see the fix but, on my site Article tab is hiding under the logout tag..
Quote from: italo_anonimo on December 18, 2008, 02:40:35 PM
1- there is any way to know if there is any new article published from forum (maybe as recent post) or always have to come to know??
2- the Articles written increment users post count?
3- its possible make a preview option???
thanks for mod
in case anyone can come up with an explanation for me, i'm reposting the question i asked...
i have a very strange problem going on. i installed it on 2b4, and it seemed to install properly. but when i go to add an article, i fill out the titile, the summary, and then type in the article where i'm supposed to, and i get an error telling me i need to enter some text!
any suggestions?
It is an issue wysiwyg editor will have a fix posted in the next hour
1.0.1.5 Released
!Fixed bugs with SMF 2.0 using the WYSIWYG editor
thanx vbgamer45 your great man. =)
thanks! i'll try installing it shortly!
I want to include summary of the newest arcitles in my handmade portal homepage.
How can i do it?
Or can you give me source codes?
SMF Articles MOD - "Comments" link does not appear
Hi
Anyway, my problem is that when I sign in under a test account the "Add Comment" link does not appear but it DOES when I sign in as the Admin. I have all of the permissions set properly, it's not a browser issues and it's not a post-count issue. I am just completely stumped at this point.
I'm using SMFArticles1.0.1.5 with SMF v1.1.7 and the "Add Comments" link won't even show up in the default theme. Any help would be much appreciated. It's a great script incidentally.
Thanks, CSS
Great mod, thanks.
I've installed on 2.0 b4 and all running very well except error log reporting following whenever users access articles...
Type of error: Undefined
http://www..../forum/index.php?action=articles;sa=view;article=5
8: Undefined variable: user_info
File: /home2/.../public_html/forum/cache/lang_Articles_english_Solihull.php (viewarticle sub template - eval?)
Line: 324
I've a fair few mods and running variant Theme 'Shadow People'. If I need to post a file, let me know which one and will attach.
Mods...
1. Show Joined, Location, Username In Topic View 1.0
2. Add Favicon.ico Support 1.0
3. ThemePermissions 1.0
4. Look But No Read 1.3
5. Ignore Board In New Posts 1.0
6. Hide Info Center From Guests 1.0
7. Bakers Dozen Pages 1.1
8. Fix totalMembers undefined error 1.0
9. Bookmarks 2.2.1
10. Global Headers Footers 2.0
11. Images On Board 1.1
12. Users Online Today 1.5.4
Any help really appreciated as this is a great mod and being used already by members.
Thanks
Willerby
Fixed both above issues
Version 1.0.1.6
!Fixed undefined $user_info on view article page for SMF 2.0
!Fixed articles comment link permission issue showing on the view articles page.
Thanks vbgamer - all fixed as far as I have been able to test...and no errors logged from users today.
I've had to disable the WYSIWYG editor though as its a nightmare when pasting articles in from other apps even when you run them through as plain text. I know this has caused others grief on 2.0b4 so nothing to do with your mod.
I'm getting another error that I am sure is related to this issue - its the same error I get logged on posting when someone uses the WYSIWYG editor heavily - and I've already posted on this issue at http://www.simplemachines.org/community/index.php?topic=283904.0 (http://www.simplemachines.org/community/index.php?topic=283904.0)
When I turn off the WYSIWYG everythings fine so I'm pretty sure its to do with the problems there.
Thanks for your fast response
W
Just wanted to add my thanks for your quick action of the SMF Articles script issues VBGamer. Works great!.
- CSS
Hello,
This looks like a great mod - but I find it's truncing some of my longer articles. Is there any way of increasing the allowable size for an article?
in error log: Undefined index: ID_ARTCICLE.
in Articles.template.php, Articles2.template.php - ID_ARTCICLE, should be ID_ARTICLE
additional - I can't approve a separate comment, I can only approve all the comments.
When I click on the link ../index.php?action=articles;sa=apprcomment;id=4, I get a blank screen
Quote from: ferret on January 16, 2009, 09:04:47 AM
Hello,
This looks like a great mod - but I find it's truncing some of my longer articles. Is there any way of increasing the allowable size for an article?
How long is the article in the number of characters?
Quote from: Andree on January 18, 2009, 01:58:55 PM
in error log: Undefined index: ID_ARTCICLE.
in Articles.template.php, Articles2.template.php - ID_ARTCICLE, should be ID_ARTICLE
additional - I can't approve a separate comment, I can only approve all the comments.
When I click on the link ../index.php?action=articles;sa=apprcomment;id=4, I get a blank screen
Fixed both issues released update.
Version 1.0.1.7
!Fixed bug with undefined error when viewing comment approval list.
!Fixed approving single comment bug
Thanks vbgamer45, upgrade was a doddle.
W
One of my users has pointed out that when they rate an article nothing seems to happen. The rating system works but gives no indication that the article has been rated and leaves the user looking at the article just as they were before they clicked the rating button.
Maybe a message should be displayed to say that rating has been added, perhaps with a link back to the article category they were reviewing rather than the article itself?
Navigation from articles is limited too. There are no options when viewing an article other than using the back button or the main menu ARTICLES button/tab? On a category you have a couple of links at the bottom of the page, maybe these should also be on individual artciles?
Fussy I know, but that's the type of users I have!
W
Hi
Thank you again for this great mod
I have this mod installed and I use 1.1.7 smf.
I have a question, when I update my smf to 2.0 , will I lose my articles ?
Quote from: Minare on January 23, 2009, 12:08:59 PM
Hi
Thank you again for this great mod
I have this mod installed and I use 1.1.7 smf.
I have a question, when I update my smf to 2.0 , will I lose my articles ?
No you will not.
Thank you for your response, good news :)
Installed new 2.0 Beta 4 and Articles 1.0.1.7 - installation went fine.
Admin can see and create categories and articles and permissions - did that.
Gave type of user every kind of permission.
However, no one else can see any link to Articles - is there something I need to do so my users see them?
Thanks
Did you set the global SMF permissions under
Admin -> Permissions
Quote from: vbgamer45 on January 26, 2009, 12:58:35 AM
Did you set the global SMF permissions under
Admin -> Permissions
No, I can't find anything to do with Articles
There should be a set of permissions on that page. If you modify each group for each membergroup that controls who can see the articles button and other permissions such as adding articles, comments etc.
Quote from: vbgamer45 on January 26, 2009, 01:07:24 AM
There should be a set of permissions on that page. If you modify each group for each membergroup that controls who can see the articles button and other permissions such as adding articles, comments etc.
Thanks, I now see it and my users can use Articles.
Thanks so much guys.
When I click "View Ratings" iI see the user but nstead of seeing stars I see [X] - the image of the star is not found.
Besides that I like this module!
I wanted all my articles to be posted in a forum of my choice. Anyway that can be done? Or did I miss it somewhere?
BTW, I hit *add a article* in any topic, it returns me to the main page. Running SMF Beta 4 and Simple Portal. Shouldn't there be a *add a article* where it says *new topic* too?
Quote from: fords8 on January 28, 2009, 09:51:17 PM
I wanted all my articles to be posted in a forum of my choice. Anyway that can be done? Or did I miss it somewhere?
That is not built in at this time.
QuoteThat is not built in at this time.
OK thanks!
QuoteBTW, I hit *add a article* in any topic, it returns me to the main page. Running SMF Beta 4 and Simple Portal. Shouldn't there be a *add a article* where it says *new topic* too?
Anything to add about this?
Is it possible to make this mod available with seo4smf with some extra addings to .htaccess ?
Anybody did this or can ?
Thanks.
Probably not I might do pretty urls.
seo4smf is no longer updated.
Quote from: vbgamer45 on January 29, 2009, 10:41:32 PM
Probably not I might do pretty urls.
seo4smf is no longer updated.
No it is.
Two weeks ago, it was updated. I think mod writer still cares for it or else he wouldn't update it upon a security issue.
am I wrong ?
I don't think so since that has been the update change was 10 lines of code in like over a year
Yes actually you are right, it was just a security fix. But there are so many people using seo4smf
actually I tell this as an excuse not for them but just because I need it, that is why I may seem a bit egoist, sorry dude, never mind I am going crazy =)
hello, i have a little problem
i dont have
$current_action = 'admin';
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
in my Themes/default/index.template.php
can i put
'articles',
after
$ca = 'admin';
}
i know "This operation isn't vital to the installation of this mod." but i realy want to install everything.
Thnx. ;D
Maybe it for custom themes it may be different.
its amber by bloc
(http://i39.tinypic.com/214cdp0.jpg)
im only getting this, already ask in "amber" topic how to fix this, still no answer :-\
Need to see you index.template.php file
Fantastic mod! Thanks for that!
One question: are there any SSI functions available for this mod? Like a list of recent articles etc?
Quote from: Angelotus on February 03, 2009, 08:18:07 AM
Fantastic mod! Thanks for that!
One question: are there any SSI functions available for this mod? Like a list of recent articles etc?
Not yet. Any other SSI functions you are looking for?
Quote from: vbgamer45 on February 03, 2009, 08:19:53 PM
Quote from: Angelotus on February 03, 2009, 08:18:07 AM
Fantastic mod! Thanks for that!
One question: are there any SSI functions available for this mod? Like a list of recent articles etc?
Not yet. Any other SSI functions you are looking for?
Well, like a list of: recent comments in the article section, most rated articles, most commented articles, top submitters. But most of all I would like to see a list of recent articles (similar like the ssi function recent topics).
I need this mod in spanish please :'(
Hey Guys,
This may already have been asked but i installed this MOD but it isnt showing up when i use anything but the defult themes.
Any ideas????
I have installed 2 different themes and neither of them show the articles link.
Thanks Guys :D
i have suggestion.
u can add function, Each forum will be articles on that category name?
and Have a link at the top of this forum to articles of the same forum.
This is an interesting addition.
I uninstall this mod and later missing my Fckeditor (tinyportal) don't work.
Help me please!!!!
when i try to add an article i get this error message. "Fatal error: Maximum execution time of 30 seconds exceeded in /home/easyfree/public_html/Sources/Subs-Editor.php on line 560" any idea what to do
Hello, I have the following problem with the smf article
if I want to edit, delete or approve articles
the following mistake appears:
"501 Method Not Implemented
GET to /smf/articles/ not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
The same situation with view rating and Add Comment
I am using Pretty URLs mod, but if I remove it the same mistake appears again:
"501 Method Not Implemented
GET to /smf/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
This is the address of the forum using smf article mod:
http://www.ruseonline.info/smf/index.php?action=articles;cat=4 (http://www.ruseonline.info/smf/index.php?action=articles;cat=4)
Issue with mod_security read
www.simplemachines.org/community/index.php?topic=34270
Hi,
I am using SMF2.0 RC1
I installed Articles and everything works fine except for the - add comment -
What I get is a blank screen with a http 406 error
This is what it says in the address line of the browser window:
http://89.105.192.22/~id90522/katzenforum/index.php?action=articles;sa=comment;id=21
Any thoughts on what might cause this?
I had a similar problem with Gallery Light. The solution was there to replace ;id=a with &id=a
in the gallery template
same issue caused by mod_security
Thanks for your quick reply, but I am just a beginner with SMF and mods.
What to do?
Thanks in advance,
Pieter
Read this topic
www.simplemachines.org/community/index.php?topic=34270
VBGammer...
I love this mod. :) Now I just have to figur eout how to transfer 200 articles out of a mambo database and into the smf articles tables.
Quote from: Kindred on February 14, 2009, 01:29:14 PM
VBGammer...
I love this mod. :) Now I just have to figur eout how to transfer 200 articles out of a mambo database and into the smf articles tables.
Thanks!
I have built in support for TinyPortal converting you can probably modify them to do mambo as well.
Quote from: ttuu on February 06, 2009, 08:29:25 AM
i have suggestion.
u can add function, Each forum will be articles on that category name?
and Have a link at the top of this forum to articles of the same forum.
This is an interesting addition.
bump!
i don't think i will do that don't understand
Hi,
I tried the .htaccess mod secutiry suggestions, but to no avail.
This is what I get when trying to edit articles:
I am using smf 2.0 rc1
A blank screen with this message:
Not Acceptable
An appropriate representation of the requested resource /~id90522/kattenforum/index.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
While the address bar of the browser displays:
http://89.105.192.22/~id90522/kattenforum/index.php?action=articles;sa=editarticle;id=5
Help is appreciated.
Thanks
Pieter
I have a user set with Edit own Article permission and Articles Admin permission but he cannot edit articles? He's not an admin on the forum just a normal member but has a category of his own with these permissions.
Following error recorded each time he tries:
Fatal error: Maximum execution time of 30 seconds exceeded in /home.../public_html/forum/Sources/Subs-Editor.php on line 560
any ideas?
First of all THANKS for this great mod. I hope I can contribute somehow with my translation :)
NOTE: As this language file is aimed at Spanish speakers I allow myself to write the instructions in Spanish. I hope you won't mind.
Adjunto versión en español en UFT-8 para Articles 1.0.1.7
INSTRUCCIONES
1. Descomprime SMFArticles1.0.1.7.zip
2. Añade el fichero de idioma adjunto a este mensaje
3. Abre el archivo package-info.xml
4. Si, como yo, no usas el inglés haz un "Buscar y reemplazar" Busca english-utf8.php y reemplázalo por spanish_es-uft8.php. Si quieres mantener el inglés busca todos los lugares en los que aparezca english-utf8.php y añade justo debajo una línea idéntica, pero cambiando english por spanish_es.
5. Para SMF 1.x:
Abre el archivo articles.xml
Añade lo siguiente:
<file name="$languagedir/Modifications.spanish_es-utf8.php">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles Text Strings
$txt['smfarticles_menu'] = 'Artículos';
$txt['smfarticles_admin'] = 'Configuración de los artículos';
$txt['permissiongroup_smfarticles'] = 'Artículos SMF';
$txt['permissionname_view_articles'] = 'Ver Artículos';
$txt['permissionhelp_view_articles'] = 'Define si los usuarios pueden ver los artículos.';
$txt['cannot_view_articles'] = 'No puedes ver esta página.';
$txt['permissionname_add_articles'] = 'Añadir artículo';
$txt['permissionhelp_add_articles'] = 'Si el usuario puede enviar artículos';
$txt['cannot_add_articles'] = 'No puedes añadir artículos.';
$txt['permissionname_edit_articles'] = 'Editar propios artículos';
$txt['permissionhelp_edit_articles'] = 'Si el usuario puede editar artículos';
$txt['cannot_edit_articles'] = 'No puedes editar artículos.';
$txt['permissionname_delete_articles'] = 'Borrar propios artículos';
$txt['permissionhelp_delete_articles'] = 'Si el usuario puede borrar artículos';
$txt['cannot_delete_articles'] = 'No puedes borrar artículos.';
$txt['permissionname_articles_comment'] = 'Dejar comentarios';
$txt['permissionhelp_articles_comment'] = 'Permite al usuario comentar artículos.';
$txt['cannot_articles_comment'] = 'No puedes escribir comentarios.';
$txt['permissionname_articles_auto_approve'] = 'Auto-aprobación de artículos';
$txt['permissionhelp_articles_auto_approve'] = 'Si los artículos so automáticamente aprobados al enviarlos.';
$txt['permissionname_articles_autocomment'] = 'Auto-aprobación de comentarios';
$txt['permissionhelp_articles_autocomment'] = 'Los comentarios no necesitan espera para ser aprobados.';
$txt['permissionname_rate_articles'] = 'Valorar artículos';
$txt['permissionhelp_rate_articles'] = 'Si el usuario puede valorar artículos';
$txt['cannot_rate_articles'] = 'No tienes permiso para valorar artículos.';
$txt['permissionname_articles_admin'] = 'Administrar artículos';
$txt['permissionhelp_articles_admin'] = 'El usuario pude administrar artículos';
$txt['cannot_articles_admin'] = 'No tienes permiso para administrar artículos.';
// END SMF Articles Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Who.spanish_es-utf8.php">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles
$txt['whoall_articles'] = 'Viendo <a href="' . $scripturl . '?action=articles">' . $txt['smfarticles_menu'] . '</a>';
// END SMF Articles Strings
]]></add>
</operation>
</file>
5.1 Para SMF 2.x
Abre el archivo articles2.xml
Añade lo siguiente:
<file name="$languagedir/Modifications.english.php">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles Text Strings
$txt['smfarticles_menu'] = 'Artículis';
$txt['smfarticles_admin'] = 'Configuración de los artículos';
$txt['smfarticles_articlessettings'] = 'Ajustes';
$txt['smfarticles_approvearticles'] = 'Aprobar artículos';
$txt['smfarticles_form_approvecomments'] = 'Aprobar comentarios';
$txt['smfarticles_catpermlist'] = 'Lista de Permisos por Categorías';
$txt['smfarticles_txt_import'] = 'Importar';
$txt['permissiongroup_smfarticles'] = 'Artículos SMF';
$txt['permissionname_view_articles'] = 'Ver Artículos';
$txt['permissionhelp_view_articles'] = 'Define si los usuarios pueden ver los artículos.';
$txt['cannot_view_articles'] = 'No puedes ver esta página.';
$txt['permissionname_add_articles'] = 'Añadir artículo';
$txt['permissionhelp_add_articles'] = 'Si el usuario puede enviar artículos';
$txt['cannot_add_articles'] = 'No puedes añadir artículos.';
$txt['permissionname_edit_articles'] = 'Editar propios artículos';
$txt['permissionhelp_edit_articles'] = 'Si el usuario puede editar artículos';
$txt['cannot_edit_articles'] = 'No puedes editar artículos.';
$txt['permissionname_delete_articles'] = 'Borrar propios artículos';
$txt['permissionhelp_delete_articles'] = 'Si el usuario puede borrar artículos';
$txt['cannot_delete_articles'] = 'No puedes borrar artículos.';
$txt['permissionname_articles_comment'] = 'Dejar comentarios';
$txt['permissionhelp_articles_comment'] = 'Permite al usuario comentar artículos.';
$txt['cannot_articles_comment'] = 'No puedes escribir comentarios.';
$txt['permissionname_articles_auto_approve'] = 'Auto-aprobación de artículos';
$txt['permissionhelp_articles_auto_approve'] = 'Si los artículos so automáticamente aprobados al enviarlos.';
$txt['permissionname_articles_autocomment'] = 'Auto-aprobación de comentarios';
$txt['permissionhelp_articles_autocomment'] = 'Los comentarios no necesitan espera para ser aprobados.';
$txt['permissionname_rate_articles'] = 'Valorar artículos';
$txt['permissionhelp_rate_articles'] = 'Si el usuario puede valorar artículos';
$txt['cannot_rate_articles'] = 'No tienes permiso para valorar artículos.';
$txt['permissionname_articles_admin'] = 'Administrar artículos';
$txt['permissionhelp_articles_admin'] = 'El usuario pude administrar artículos';
$txt['cannot_articles_admin'] = 'No tienes permiso para administrar artículos.';
// END SMF Articles Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.english-utf8.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles Text Strings
$txt['smfarticles_menu'] = 'Articles';
$txt['smfarticles_admin'] = 'Articles Configuration';
$txt['smfarticles_articlessettings'] = 'Settings';
$txt['smfarticles_approvearticles'] = 'Approve Articles';
$txt['smfarticles_form_approvecomments'] = 'Approve Comments';
$txt['smfarticles_catpermlist'] = 'Category Permission List';
$txt['smfarticles_txt_import'] = 'Import';
$txt['permissiongroup_smfarticles'] = 'SMF Articles';
$txt['permissionname_view_articles'] = 'View Articles';
$txt['permissionhelp_view_articles'] = 'Sets if the user can view the articles.';
$txt['cannot_view_articles'] = 'You can not view the articles page.';
$txt['permissionname_add_articles'] = 'Add Article';
$txt['permissionhelp_add_articles'] = 'If the user is allowed to submit articles';
$txt['cannot_add_articles'] = 'You can not add articles.';
$txt['permissionname_edit_articles'] = 'Edit own Articles';
$txt['permissionhelp_edit_articles'] = 'If the user is allowed to edit articles';
$txt['cannot_edit_articles'] = 'You can not edit articles.';
$txt['permissionname_delete_articles'] = 'Delete own Articles';
$txt['permissionhelp_delete_articles'] = 'If the user is allowed to delete articles';
$txt['cannot_delete_articles'] = 'You can not delete articles.';
$txt['permissionname_articles_comment'] = 'Leave Comments';
$txt['permissionhelp_articles_comment'] = 'Allows the user to leave comments on an article.';
$txt['cannot_articles_comment'] = 'You are not allowed to leave comments.';
$txt['permissionname_articles_auto_approve'] = 'Articles Auto Approved';
$txt['permissionhelp_articles_auto_approve'] = 'If the users articles are auto approved when submitted.';
$txt['permissionname_articles_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_articles_autocomment'] = 'Comments do not need to wait for approval.';
$txt['permissionname_rate_articles'] = 'Rate Articles';
$txt['permissionhelp_rate_articles'] = 'If the user is allowed to rate articles';
$txt['cannot_rate_articles'] = 'You are not allowed to rate articles.';
$txt['permissionname_articles_admin'] = 'Admin Articles';
$txt['permissionhelp_articles_admin'] = 'User can manage the articles';
$txt['cannot_articles_admin'] = 'You are not allowed to manage the articles.';
// END SMF Articles Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Who.spanish_es-utf8.php">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles
$txt['whoall_articles'] = 'Viendo <a href="' . $scripturl . '?action=articles">' . $txt['smfarticles_menu'] . '</a>';
// END SMF Articles Strings
]]></add>
</operation>
</file>
6. Vuelve a comprimir todo en un ZIP e instala como de costumbre
!Fixed minor bug in SMF 2.0 not showing the title of permissions under simple permissions in SMF.
Is there any information about http 501 - 505 error in Turkish language?
No check webserver permissions
Quote from: vbgamer45 on February 22, 2009, 10:40:18 AM
!Fixed minor bug in SMF 2.0 not showing the title of permissions under simple permissions in SMF.
vbg...
Was this related to my earlier post above?
No most likely due to a bad bbc code inside the mesage that is causing it to loop
Quote from: vbgamer45 on February 22, 2009, 02:06:37 PM
No check webserver permissions
I read the title you have wrote about mod_security . I added that code in my .htacces file. But I still can't see comments etc. pages.
Quote
<IfModule mod_security.c>
# Turn off mod_security filtering. SMF is a big boy, it doesn't need its hands held.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
Please contact your host to disable mod_security for your site
I fixed my http error;
I changed the link tree
for example if the older link is articles;edit, I did it articles&edit. So I changed ; to & ...
But how can I do a last or recent articles block for my index?
is there a way that the articles waiting for submission could be seen in the moderating panel? maybe in the next update or something?
Quote from: LadyC on February 28, 2009, 12:35:01 PM
is there a way that the articles waiting for submission could be seen in the moderating panel? maybe in the next update or something?
Not yet haven't looked at doing any SMF 2.0 specific features yet.
I was wondering if it is possible to change the menu button name from articles to something else.
I am running a techie type site, and want to change it to the word tutorials instead?
Is this possible.... ( i am fairly new to SMF, so dont want to break anything by "fiddling")
thanks
yes... change the word in the text strings (modifications.english.php)
my website is very complicated so instead of having large amounts of links/pages i am trying to keep things down to a minimum.
I am using Simple portal... which has articles but they just arent as good as this actual mod. Which means i have 2 sets of articles hanging around. not good. i want them to be kept as boards aswell as articles
i was wondering if there is any way to do ANY 1 of the following. (In order of which i would prefer)
1.) have them share database tables so they can both display articles that are the same. so if you replied to a post in the forum version it would display as a comment and vice versa.
2.) change the add article link that apears in topics from my simple portals article system to post into both tables.
3.) when posting a topic click a checkbox to have it also submit to article
if anyone can help me that would be brilliant ... thanks :) x
The whole point of this mod is to SEPARATE the articles from normal posts...
(And you could use EZportal which links to this mod if you want a portal and articles system)
right erm ok... i understand the point of the mod - i was trying to find out if i can change that.
As you quite patronising just pointed out it keeps them SEPERATE i obviously know that which is why I'm trying to find a way to edit that. Is'nt that the whole point of adding modifications and adjustments to your smf to get it to function in the way you want for your websites needs.
You didnt actually answer my question at all.
seeing as how my question was never "what is the point of this mod?"
ive obviously looked at all the portal systems long before i posted this, to look for an alternative. ez portal doesnt have enough flexibility to have the blocks showing on the specific actions i need.
tiny portal would obviousy be the best but its not available for SMF 2.0 RC1. the portal mx doesnt have articles and so i would have to use the article mod and simple portals article layout and template look rubish... just like posts. I want them to be posts but look like articles!
but anyway can anybody answer my ACTUAL question, which was is it possible to do any of these things?
Quote from: oistarbwoy on March 01, 2009, 05:12:21 PM
1.) have them share database tables so they can both display articles that are the same. so if you replied to a post in the forum version it would display as a comment and vice versa.
2.) change the add article link that apears in topics from my simple portals article system to post into both tables.
3.) when posting a topic click a checkbox to have it also submit to article
if anyone can help me that would be brilliant ... thanks :) x
I actually did answer your question, albeit indeirectly.
to answer your question more directly... not at all easily.
This mod stores the articles in a completely different format and table(s) from the post messages.
You would have to re-write the mod...
kindred - many thanks for that m8
My forum is turning into vbgamer45 MOD central so please don't disappear :)
Love the MOD and I was wondering if two things might be included in a future update that I miss from my old blog mod
1) Option to show user avatar in the category and article view?
2) Add "most recent articles" link at the top of the forum?
Thanks
VBGamer.....
Im trying to apply manually the "addthis social bookmarking" mod to the articles in the article.template.php
"addthis social bookmarking" code
<!-- AddThis Bookmark Button BEGIN -->
<td align="right" valign="middle" style="padding-right: 6px;">
<script language="JavaScript" type="text/javascript"><!-- // -->
addthis_url = location.href;
addthis_title = document.title;
addthis_pub = \'\';
// ]]></script>
<script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</td>
<!-- AddThis Bookmark Button END -->
into article.template.php
// Show the title
echo '<tr class="titlebg">
<td align="center">', $context['article']['title'], '</td>
</tr>';
echo '<tr class="windowbg">
<td><span class="smalltext"><b>',$txt['smfarticles_submittedby2'],'</b>', '
<a href="',$scripturl, '?action=profile;u=',$context['article']['ID_MEMBER'],'">', $context['article']['realName'], '</a>
<b>',$txt['smfarticles_date2'],'</b> ',
timeformat($context['article']['date']), '
<b>',$txt['smfarticles_views2'],'</b> ',
$context['article']['views'], '
</span>
</td>
</tr>';
// Show Summary
if (!empty( $context['article']['description']))
echo '<tr class="windowbg">
<td><b>',$txt['smfarticles_summary2'],'</b>',
$context['article']['description'], '</td>
</tr>';
// Show article
echo '<tr class="windowbg">
<td><hr />
',parse_bbc($context['article_page']['pagetext']),'
</td>
</tr>';
My problem is,no matter where i add the social bookmark code,it shows crooked or out of place.
Any ideas?
I would try before summary
echo '
<!-- AddThis Bookmark Button BEGIN -->
<td align="center" style="padding-right: 6px;">
<script language="JavaScript" type="text/javascript"><!-- // -->
addthis_url = location.href;
addthis_title = document.title;
addthis_pub = \'\';
// ]]></script>
<script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</td>
<!-- AddThis Bookmark Button END -->';
Quote from: vbgamer45 on March 08, 2009, 01:36:13 PM
I would try before summary
echo '
<!-- AddThis Bookmark Button BEGIN -->
<td align="center" style="padding-right: 6px;">
<script language="JavaScript" type="text/javascript"><!-- // -->
addthis_url = location.href;
addthis_title = document.title;
addthis_pub = \'\';
// ]]></script>
<script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</td>
<!-- AddThis Bookmark Button END -->';
Excellent! Thank you. That was one place i didnt try as i was trying to add it to show after the total of "views". But this works just fine.
Quote from: Filipina on March 08, 2009, 11:09:37 AM
My forum is turning into vbgamer45 MOD central so please don't disappear :)
Love the MOD and I was wondering if two things might be included in a future update that I miss from my old blog mod
1) Option to show user avatar in the category and article view?
2) Add "most recent articles" link at the top of the forum?
Thanks
Article view on the article page itself? Or on the article listing page?
Quote from: vbgamer45 on March 08, 2009, 01:44:17 PM
Quote from: Filipina on March 08, 2009, 11:09:37 AM
My forum is turning into vbgamer45 MOD central so please don't disappear :)
Love the MOD and I was wondering if two things might be included in a future update that I miss from my old blog mod
1) Option to show user avatar in the category and article view?
2) Add "most recent articles" link at the top of the forum?
Thanks
Article view on the article page itself? Or on the article listing page?
article view. I guess where users and guests read the actual article. It shows the posters name,views,etc. I figured the bookmarks could fit right in after it.
Like this:
Submitted By: MoAv Date: November 16, 2008, 02:12:04 PM Views: 95
{bookmarks here}Here one of my articles...
http://www.chevyavalancheclub.com/index.php?action=articles;sa=view;article=34
Notice where the bookmarks ended up to? Right in the center.
Even better if you can implement this to the right of the titlebg or so shown in this pic in your next release.
Quote from: vbgamer45 on March 08, 2009, 01:44:17 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
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.
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.
[url=http://www.forumname.com/.../filename.pdf]Click here for example x[/url]
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
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 ...
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?
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 ?
You need to setup the permissions
Under Admin -> Permissions
Modify a group then find the SMF Articles permissions.
Quote from: vbgamer45 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.
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.
Smf Articles Little Pretty Url Support
Find in PrettyUrls-Filters.php
?>
Add Before:
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
}
}
from last line.
And add between these line for this
(ex :
} code code code....
}
)
,
"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.
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.
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?
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.
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...
Quote from: robinrobin on April 06, 2009, 01:14:06 PM
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..
Quote from: Kindred 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...
Good idea will add it.
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
WOOT! this works like a charm...
Quote from: vbgamer45 on April 26, 2009, 02:00:34 AM
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.
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.
Thanks for this mod!!
Does anyone know the code to add this into a profile (2.0RC1)?
Something underneath "show posts" etc in that side bar like:
Show My Articles (links to all the articles user has posted - the /index.php?action=articles;sa=myarticles;u=1 page)
and then into posts as well- in the display.template- above the avatar picture-- a "My Articles" link??
thanks so much for any help!!!
* gurgle-snarf *
Maybe it's too early in the morning for me, but I think I'm having an issue with the articles mod playing well with certain skins. (Or, to be more snippy, only the skins *I* want to use...) At least, I suspect that's the issue. I have it installed on two different forums. They're both SMF 1.1.8, they both have other mods installed, but neither of them displays anything that allows a person to actually access or submit an article.
One site has SMF Articles 1.0.1.7 and is using "Ancient and Rusted" by m3talc0re. The other site (not even 24 hours old) has the latest 1.0.2 version of SMF Articles and is using NaturaLesa Theme By FriedeKind.
Unfortunately, after installing it, there are NO options ANYWHERE to access articles! From any profile, there is no tab, no options in the profile page, nothing anywhere. In the admin panel, there are configuration options, but that's it.
You don't happen to have a "Make everything work perfectly" checkmark I could activate, do you?
on SMF 1.1.x, you will have to manually add articles into the topnav menu for any themes other than the default.
This is true for ALL mods on 1.1.x
Quote from: Kindred on April 29, 2009, 02:02:45 PM
on SMF 1.1.x, you will have to manually add articles into the topnav menu for any themes other than the default.
This is true for ALL mods on 1.1.x
I... wha... ?
:(
Okay, I have no idea how to do that. Is there a tutorial, preferably written for someone who only has very limited experience with php? "Dammit, Jim, I'm an admin, not a programmer!"
ETA: Okay, in some fairness, I can follow instructions very well and know how to close tags, so I'm not a complete newbie, but I'm pretty close.
each mod has manual install instructions on the mod page...
What the "tiny_mce" folder in mod package?
Quote from: Özgür´ on April 29, 2009, 06:46:16 PM
What the "tiny_mce" folder in mod package?
I was planning to add that an option at one point. But so far decided to stick with SMF's editor.
This is great news (:
personally, I like keeping things slim and sticking with the stuff already built into SMF. Why re=invent the wheel when we can have vbgamer spend his time on more additions. :)
Quote from: Kindred on April 29, 2009, 06:39:56 PM
each mod has manual install instructions on the mod page...
Now, see, this would have been good to know when I started using it. I'm wondering how much of my hair-pulling frustration could've been handled by just knowing this one little thing. See? Not a programmer.
VBgamer, is it possible so that if a guest leaves a comment on an article he can give a screenname that shows up on his comment?
Possible to do not sure If i will do it though requires another column in the table struture and another thing for me to check
Quote from: vbgamer45 on May 05, 2009, 08:22:36 PM
Possible to do not sure If i will do it though requires another column in the table struture and another thing for me to check
What's the point then to let guests comment on articles if they can't fill in their name? Maybe you can add it in a new update?
Something else. In the view article template, how can I get the article ID?
I need it for social bookmark.
I tried this, but no luck:
<a href="http://nujij.nl/jij.lynkx?t=', $context['article']['title'], '&u=' , $scripturl , '?action=articles;sa=view;article=' , $context['article_id'] , '" target="_blank"><img src="http://nujij.nl/nu-jij-icon-16x16.gif" border="0" /></a>
Is it possible to change the name of the Tab? If so how?
Also can the the articles be displayed under the category on the main article index page?
Matt
1. check under themes/default/languages/modifications.english.php
2. Not at this time
actually, you could create a redirect board that points to the articles...
I will take a look later when i get a chance what should i be looking for to change the tab name?
Also how could i link the Article titles and a brief summary with a link on to the front page of PortaMX?
Many Thanks
Matt
look at the EZportla articles block... you should be able to modify the code to work with other portals.
Thank you Kindred.
Is it possible for someone to help with finding the part of themes/default/languages/modifications.english.php
That i would need to edit to change the name of the Tab.
Many Thanks
Matt
Quote from: mattchewone on May 12, 2009, 11:01:37 AM
Thank you Kindred.
Is it possible for someone to help with finding the part of themes/default/languages/modifications.english.php
That i would need to edit to change the name of the Tab.
$txt['smfarticles_menu'] = 'Articles';
Quote from: willerby on May 12, 2009, 11:51:39 AM
Quote from: mattchewone on May 12, 2009, 11:01:37 AM
Thank you Kindred.
Is it possible for someone to help with finding the part of themes/default/languages/modifications.english.php
That i would need to edit to change the name of the Tab.
$txt['smfarticles_menu'] = 'Articles';
I just did this and it didnt work. I tested on 3 different browsers. Any reason why?
All language files load in cache memory so when you change them you have to clear the cahce so that the new language file is forced to load.
Go to ADMIN>MAINTENANCE>Forum Maintenance>Routine and last option is Empty the File Cache... click Run Task Now
When you go back to your forum home page click refresh on your browser and the tab will change
W
Thank you very much that worked a treat.
Can i ask is it possible to have more than one article tab? Is it going to be possible also to have the article links and brief description under the category?
Which version of SMF? 2.0RC1?
Yes RC1 2.0
you can technically create as many tabs as you want (subs.php) however, you can only install articles once... why do you want more than one tab?
Quote from: Kindred on May 12, 2009, 08:34:57 PM
you can technically create as many tabs as you want (subs.php) however, you can only install articles once... why do you want more than one tab?
My forum is dedicated to Photoshop & Photography and i wanted a tab with articles for each. So they both had one category each and the articles listed below.
Try this
Open Sources/Subs.php
Find:
// [Articles] button
'articles' => array(
'title' => $txt['smfarticles_menu'],
'href' => $scripturl . '?action=articles',
'show' => $context['allow_view_smfarticles'],
'icon' => '',
'sub_buttons' => array(
),
),
(or similar as I may have amended this slightly!)
Replace it with something similar to this...
// [Articles1] button
'articles1' => array(
'title' => "Photography Articles",
'href' => $scripturl . '?action=articles;cat=x ',
'show' => $context['allow_view_smfarticles'],
'icon' => '',
'sub_buttons' => array(
),
),
// [Articles2] button
'articles2' => array(
'title' => "PhotoShop Articles",
'href' => $scripturl . '?action=articles;cat=x ',
'show' => $context['allow_view_smfarticles'],
'icon' => '',
'sub_buttons' => array(
),
),
Change the text for whatever you want and change the cat=x to the number of the articles category/ies (go to each category and the id will appear in your browser url bar)
I think that will work
W
Thank you i will give that a go as soon as i get home from work. Thank you
I tried this and i got both tabs, but i miss read the part about the cat=x and now i cannot view the articles at all. I deleted all the edits not sure where it has gone funny.
Try again - it needs a number for the article category in each case.
To avoid editing files back to their original state, save a copy on your server with a tild (~) on the end of the file name, upload your new amended file, check to see what's working and if there are errors just delete the uploaded file and take the tild off the original. That way you can experiment and always get back to where you were.
Go to the pages you want the tabs to link to and look at the url in the browser bar. It will say something like 'http://www.yourforum.com/forum/index.php?action=articles;cat=1'
Change the x in my code (both tabs) to the category number. You can delete the space after that and before the ' apostrophe.
This should work - does for me and I can't see anything on your site that would change this
I cannot view the categories so i cannot tell what number they are,
Now i have gone back to the normal Subs.php (how it was before the edit) i cannot access the articles at all by clicking on the tab!
Thanks for the tip with adding the ~ (although i need to learn how to make a copy and add this)
I am on 1.18 and need to know how to make links live. All of my links are dead links in the area. I've used the bb code with the [url] but that have failed to work. thanks for your help.
Where are you adding the links? In the article body?
Quote from: mattchewone on May 13, 2009, 04:15:35 PM
I cannot view the categories so i cannot tell what number they are,
Now i have gone back to the normal Subs.php (how it was before the edit) i cannot access the articles at all by clicking on the tab!
Thanks for the tip with adding the ~ (although i need to learn how to make a copy and add this)
You will need to get your .../Sources/Subs.php file back to the normal state that has articles in the menu. As you're unsure what edits have taken place best way is to go to the mod page (http://custom.simplemachines.org/mods/index.php?mod=1354), click on the Parse button and it shows you the following edits need to have taken place in your Subs.php file
Find:
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
Add After:
$context['allow_view_smfarticles'] = allowedTo('view_articles');
Find:
'mlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=mlist',
'show' => true,
),
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
),
),
),
Add After:
// [Articles] button
'articles' => array(
'title' => $txt['smfarticles_menu'],
'href' => $scripturl . '?action=articles',
'show' => $context['allow_view_smfarticles'],
'icon' => '',
),
Once you get back to a steady state by checking you have all of these edits exactly as they are above in your subs.php file, you will be able to change the last edit above to the code I have given you.
Hope it works for you.
Always keep a copy of a file you are about to edit so you can go back to it...
W
Thank you Willerby,
The code is all correct i checked that, when i click on the link for the articles, it comes up with the correct code in the URL bar - index.php?action=articles.php
What happens is the articles button gets highlighted as if it is on that page, then it just reloads the forum.
Matt
there is an extra .php in that url...
As kindred says url link should be action=articles not articles.php
Check the subs.php again...
vbgamer,
Does this mod support secondary membergroups eg. where a member belongs to more than one member group?
I have just set up an articles section for which only one member group can see. If that's their primary member group they can view but if its not (ie. its an additional group that they belong to) they cannot view...
I've checked member group permission and article permissions and all is correct.
Bug?
what version of SMF are you using? The mod supports that standard SMF permissions... if a user belongs to ANY group with "allow" and NO group with "deny" then they should be able to access the articles.
2.0RC1
If i post up my subs.php when i get home can you please take a look at it.
Many Thanks
Matt
Sure
Sorry about the delay here is the subs.php
Thanks
mattchewone,
Subs.php attached is correct for standard SMF Articles install. Try upoloading it and checking that you have a simgle Articles tab on your menu that takes you to http:///(forumurl).../index.php?action=articles.
Let me know if that works then we'll get the category id's of photography and photoshop and set up the tabs as you want them
If that subs.php doesn't work, I would uninstall and reinstall SMF Articles as another php file is the cause and it will take too long to find. On uninstall you may get an error on a file - if so, stop the uninstall process, make a note of the error and post that file here.
W
Thanks Willerby,
Here is there error when uninstalling -
4. Execute Modification ./index.php Test failed
1. Replace ./index.php Test failed
I have attached the index.php also.
Matt
Ok Matt, there's your error. The index.php file changes for Articles aren't there. I've added them manually in this version attached.
Upload this file. Check to see if articles working. If so, let me know the category id's of the articles sections you want on your tabs and what you want them called and I'll amend subs.php for you.
If articles still not working correctly, uninstall the articles mod (again if an error let me know and post the file but should uninstall ok now). Then reinstall articles completely.
We're nearly there now...
Fantastic, just uploaded it and it works fine again, what was it that changed?
Here is the URL for the photoshop - index.php?action=articles;cat=1
Here is the URL for the Photography - index.php?action=articles;cat=2
Thanks so much Willerby
Matt
Good.
If you go to the mod page and click on the PARSE button it shows you the changes to each file. The index.php file has an articles array action edit - a simple addition of the line
'articles' => array('Articles2.php', 'ArticlesMain'),
That wasn't in your index.php file hence why articles wouldn't work. It's also why the mod wouldn't uninstall - it couldn't find that line to delete it. The error on uninstall therefore tells you where the error is likely to be.
Here's the amended subs.php which will create two tabs - "Photoshop Articles" which points to category 1 and "Photography Articles" which points to category 2.
Upload this to the Sources directory (remember to keep a ~ tild copy of the now working version first) and check it works. If you want to change the tab labels edit the file in Notepad searching for those two tab labels and replacing them with whatever text you want.
{This edit does not use language files but hard codes the "labels" into the file. If your forum uses multiple languages come back to me as we will need to edit modifications.english.php and any other language files and change the subs.php code to refer to the relevant text references.}
Thank you Willerby! I will get on and do this now!
Are you able to tell me how i ca add the ~ tilde to the original subs.php please i am still new to this.
Also i dont suppose you know if there is way to edit the articles display template so that it displays the articles under the category title for example, when you click the photoshop articles tab, it displays all the articles rather than a category link.
Thank you again!
If you are using ftp to upload files, go to the Sources directory and rename the original subs.php files as subs.php~ (tild symbol is above # key on my keyboard).
Then upload new subs.php. If an error occurs when you check your site, delete the new subs.php you uploaded and rename the original file back to subs.php by taking off the tild.
Re the articles display, thats what the code does I think... It will result in a list of all articles in that category. Let me know if that's not what you wanted...
Thank you Willerby,
I have just put in the newly edited Subs.php and it works wonderfully! Its fantastic, now i will build them up with wonderful articles before i allow people to view them.
Thank you once again.
Quote from: willerby on May 14, 2009, 05:13:13 PM
vbgamer,
Does this mod support secondary membergroups eg. where a member belongs to more than one member group?
I have just set up an articles section for which only one member group can see. If that's their primary member group they can view but if its not (ie. its an additional group that they belong to) they cannot view...
I've checked member group permission and article permissions and all is correct.
Bug?
Still don't know if this is a bug. I think it is as all permissions ok. If I change the order of two member groups that a member belongs to (so that the one that was primary becomes secondary and vice versa) they can see articles one way but not the other. As that is just an order change not a change in permissions I'd say this mod does not support secondary member groups...
If you agree, how do I fix?
It is a bug with secondary membergroups.
Quote from: Angelotus on May 06, 2009, 05:24:24 AM
Something else. In the view article template, how can I get the article ID?
I need it for social bookmark.
I tried this, but no luck:
<a href="http://nujij.nl/jij.lynkx?t=', $context['article']['title'], '&u=' , $scripturl , '?action=articles;sa=view;article=' , $context['article_id'] , '" target="_blank"><img src="http://nujij.nl/nu-jij-icon-16x16.gif" border="0" /></a>
Can I get some help with this please?
I've been looking at using SMF Articles as a replacement for TinyPortal's news system, which still isn't close to readiness for SMF 2.0.
I've got a fresh install of SMF 2.0 RC1-1; along with the latest SMF Articles mod. The database is a copy of one which I'd used for TP .98 ('cause 1.0beta is flaky) -- which has been upgraded to SMF2.0RC1-1. I've confirmed that TP articles are in the database
Whenever I try to use the SMF Article "Import TinyPortal" option, I get the following error:
Quote
Database Error
Table 'xxx_smf3.Arraytp_articles' doesn't exist
File: /home1/xxx/public_html/xxx/Sources/Articles2.php
Line: 2630
Line 2630 is
SELECT authorID ID_MEMBER, subject title, intro description, views, approved, date FROM {$tp_prefix}articles ");
Looking at the code, the trouble may be at line 2582 which defines the tp_prefix variable as:
$tp_prefix = $smcFunc.'tp_';
Unfortunately, I'm a php-neophyte, so I'm not sure what it should be doing. In reading this message about changes to database functions (http://www.simplemachines.org/community/index.php?topic=224166.msg1435927#msg1435927) in SMF2, it appears that the code needs to be updated?
Quick follow-up. After playing with the code a bit, I figured out that the variable $tp_prefix was unneeded so I commented out line 2582 (to keep the line numbering the same), and simply changed line 2630 to
SELECT authorID ID_MEMBER, subject title, intro description, views, approved, date FROM {db_prefix}tp_articles ");
and line 2635 to
FROM {db_prefix}articles AS a, {db_prefix}tp_articles AS t
Now all the TP articles are able to be imported into a single SMF Article category -- which isn't ideal, but I can eventually reassign them by hand. However another problem shows up: TP articles are in HTML; and do not seem to want to display as such in SMF Articles. Am I missing something-- such as a setting somewhere to turn on HTML in the articles?
Finally, it would be ideal for a proper import that the comments also be imported... they are stored in the table "tp_variables" (as are the actual TP categories) -- anyone able to take a stab at a way to copy these to the correct articles? (it should be similar to importing the TP articles themselves, right?)
Thanks ever so much!
Articles does not allow HTML, for security... just like forum posts, the articles need to have the HTML removed and/or converted to BBC.
(Yes, I have the same issue with 900 articles imported from a former joomla installation, but some of the work I did by exporting the articles table in a text file and then performing global replaces before dropping the table and importing the revised table.)
Quote from: Kindred on June 02, 2009, 08:28:36 AM
Articles does not allow HTML, for security... just like forum posts, the articles need to have the HTML removed and/or converted to BBC.
I'm not clear what the security concern would be in removing HTML from the imported articles -- forum posts can be set to allow limited HTML. Does that mean that TP's implementation (Using FCKeditor) in its own article system is insecure?
It also makes this import quite a bit less useful, if the text has to then be re- (or pre)-edited. While I don't have 900, I do have about 300 articles; and I'm not looking forward to re-writing the articles in BB codes.
Unless Articles has a means to allow even a limited subset of HTML (as in forum posts), I'd be include towards looking at other options, such as using a WordPress front-end.
The article import only imports as it is. Might be possible with SMF 2.0 to convert the html to bbcode I think they do that with the WYWSIG editor.
well, HTML in the articles WILL work, so long as you don't ever open them for editing again... (i.e. of the 900 that I imported, I only had to edit the HTML out after we re-saved the record.)
and yes... allowing HTML *IS* insecure... that's one reason that forums use BBC in the first place.
Can't find a way to get a list of recently added articles across all categories and subcategories...
I thought I might get search to do it but no wild card characters and no order function. I can make a simple portal block that does it but is there any way I can create a simple function to use the articles display template to just list the most recent articles?
Quote from: Kindred on June 03, 2009, 09:09:36 PM
well, HTML in the articles WILL work, so long as you don't ever open them for editing again... (i.e. of the 900 that I imported, I only had to edit the HTML out after we re-saved the record.)
and yes... allowing HTML *IS* insecure... that's one reason that forums use BBC in the first place.
I don't believe this is correct, on either point.
After importing, SMF articles displays the HTML code as though it were typed into a BBCode field. (i.e. the formatting is visible) Unless you used some alternate means of import-- all I'm seeing is garbled articles.
BBCode isn't necessarily helpful for security, but is easier for users to use than standard HTML entities. However, a simple HTML filter would remove any supposed XSS/javascript vulnerabilities.
Further, as in my case, the only people able to author articles are already admin-level, there should be no added security concerns over having HTML articles.
As mentioned, SMF already allows "basic HTML" in forum posts (See the Posts and Topics setting)
well, MY installations of SMF do not allow any HTML...
And at my company, we just recently removed ALL capability for HTML, including even basic HTML ....
And I just realized the difference in imports. I imported directly into the database in a SQL statement merging the former mambo data into the smf database
i try add new article and i get this error:
"You need to enter article text"
This is weird Because I enter text in article.
Is there a way to set the order of the articles? I have a number of articles and would like to put them in a particular order. This would also be a nice feature for categories.
nope... articles are sorted by date, just like posts in the forum
Categories can be moved in the list (use the up/down) links
Quote from: willerby on June 04, 2009, 03:29:46 PM
Can't find a way to get a list of recently added articles across all categories and subcategories...
I thought I might get search to do it but no wild card characters and no order function. I can make a simple portal block that does it but is there any way I can create a simple function to use the articles display template to just list the most recent articles?
Any helpers?
well, EZportal is also cretased by vbGamer and has the recent articles as an EZblock....
I can do the same with Simpleportal, just would like to link from the SP block to a list of all articles in reverse date order, regardless of category, similar to the way MyArticles displays but for all users/articles...
Quote from: Kindred on June 13, 2009, 08:27:21 AM
nope... articles are sorted by date, just like posts in the forum
Categories can be moved in the list (use the up/down) links
Thanks, Kindred. :)
This Mod is just Bugged for 2.0 RC1 !! The Index.Template is Still There When the Package is Uninstalled! >:( >:( >:( >:( >:( >:( >:( >:(
GIVE ME A GOOD EXPLANATION FOR THIS !
Bad permissions on your files
Planning has an option to add attachments to articles?
Not planned at this but I could do any custom additions for a small fee
How much you want pay for this option?
Just let me know how you would want it to work and I can give you a quote
I want that users can attach a photo article.
And were able to define where the image will appear in the article.
And the files will be saved in a folder separate Attachments folder of the forum.
Possible to do about $25 to get it added.
How can I pay you?
Check out the link on http://www.smfhacks.com there is a donation link probably will work on it over the weekend
ok to answer tonight, I know if I approve the budget.
Possible that if there is no permission to see some articles in the category is also not see the category in the list of categories?
The spell check is not working all i see is a blank white screen.
Quote from: ttuu on June 25, 2009, 04:38:00 AM
Possible that if there is no permission to see some articles in the category is also not see the category in the list of categories?
Possible to do.
How?
Quote from: vbgamer45 on June 25, 2009, 09:07:56 AM
Quote from: ttuu on June 25, 2009, 04:38:00 AM
Possible that if there is no permission to see some articles in the category is also not see the category in the list of categories?
Possible to do.
Why would you do it? Surely if a user has permission to see some articles but can't see the category because he doesn;t have permission for others you may as well give not give that user permission to see any articles in that category?
Because it just raises curiosity annoying.
I'm using the mod with easy portal. I post and article and click on home to view it. There is only a link there. What I want to be able to do is just see the whole article on the front page. Is there a way to do that?
Can anyone help me with my problem?
Quote from: calumks on June 25, 2009, 06:14:33 AM
The spell check is not working all i see is a blank white screen.
Thanks
vbgamer can you add article link to linktree in new version ?
Woody,
I suggest you ask in the EZPortal thread... but, simply put... not without coding a custom php block in EZPortal.
Quote from: vbgamer45 on June 24, 2009, 09:06:40 PM
Check out the link on http://www.smfhacks.com there is a donation link probably will work on it over the weekend
ok. i did it.
check If you receive.
Quote from: ttuu on June 28, 2009, 06:53:49 AM
Quote from: vbgamer45 on June 24, 2009, 09:06:40 PM
Check out the link on http://www.smfhacks.com there is a donation link probably will work on it over the weekend
ok. i did it.
check If you receive.
Yup just got it.
Quote from: vbgamer45 on June 28, 2009, 09:57:33 AM
Quote from: ttuu on June 28, 2009, 06:53:49 AM
Quote from: vbgamer45 on June 24, 2009, 09:06:40 PM
Check out the link on http://www.smfhacks.com there is a donation link probably will work on it over the weekend
ok. i did it.
check If you receive.
Yup just got it.
o.k. Enjoy
When you think you've finished your work?
Will let you know when I am.
ok. i Waiting patiently.
send me PM.
what abaut this:
Quote from: ttuu on June 25, 2009, 04:38:00 AM
Possible that if there is no permission to see some articles in the category is also not see the category in the list of categories?
? its possible?
Hey VBgamer, I use this for SSI output, but it gets all latest articles. I just want to select those articles from a specific category ID:
function ssi_articleslist($limit = null, $output_method = 'echo')
{
global $context, $mbname, $txt, $smcFunc, $modSettings, $user_info, $scripturl, $user_info;
if ($limit === null)
$limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 5;
else
$limit = (int) $limit;
$context['start'] = (int) $_REQUEST['start'];
$dbresult = $smcFunc['db_query']('', "
SELECT a.ID_ARTICLE, a.title, a.date, a.rating, a.totalratings, m.real_name, a.ID_MEMBER, a.description, a.views, a.commenttotal
FROM {db_prefix}articles AS a
LEFT JOIN {db_prefix}members AS m ON (a.ID_MEMBER = m.ID_MEMBER)
WHERE a.approved = 1 ORDER BY ID_ARTICLE DESC LIMIT $context[start]," . $limit);
$context['articles_listing'] = array();
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
$context['articles_listing'][] = $row;
$smcFunc['db_free_result']($dbresult);
foreach($context['articles_listing'] as $row)
{
echo '', timeformat($row['date'], '%d-%m'), ' <a href="' , $scripturl , '?action=articles;sa=view;article=', $row['ID_ARTICLE'], '">', $row['title'], '</a><br /><span style="font-size: 9px; font-family: Tahoma; color: #777777;">Geschreven door ', $row['real_name'], ' en is ', $row['views'], ' keer gelezen en heeft ', $row['commenttotal'], ' reactie(s).</span><br />', $row['description'], '<br /><hr />';
}
}
Can you help me with this?
Quote from: ttuu on June 28, 2009, 03:58:24 PM
ok. i Waiting patiently.
send me PM.
what abaut this:
Quote from: ttuu on June 25, 2009, 04:38:00 AM
Possible that if there is no permission to see some articles in the category is also not see the category in the list of categories?
? its possible?
Will do. Going to be a couple days as I get the updates added.
Quote from: [Daydreamer] on June 26, 2009, 02:02:12 PM
vbgamer can you add "article link" to linktree in new version ?
bump!
Quote from: vbgamer45 on June 30, 2009, 02:00:36 PM
Quote from: ttuu on June 28, 2009, 03:58:24 PM
ok. i Waiting patiently.
send me PM.
what abaut this:
Quote from: ttuu on June 25, 2009, 04:38:00 AM
Possible that if there is no permission to see some articles in the category is also not see the category in the list of categories?
? its possible?
Will do. Going to be a couple days as I get the updates added.
ok thanks
Quote from: [Daydreamer] on June 30, 2009, 02:12:43 PM
Quote from: [Daydreamer] on June 26, 2009, 02:02:12 PM
vbgamer can you add "article link" to linktree in new version ?
bump!
Not sure what you mean there is a linktree in it
Quote from: vbgamer45 on July 01, 2009, 08:10:59 PM
Quote from: [Daydreamer] on June 30, 2009, 02:12:43 PM
Quote from: [Daydreamer] on June 26, 2009, 02:02:12 PM
vbgamer can you add "article link" to linktree in new version ?
bump!
Not sure what you mean there is a linktree in it
Hmm :) Look at this
http://www.rockayseri.net/rk/articles/?sa=view;article=25
Linktree is
"ЯocKayseri » Forum » Makaleler » Metal Müzik"
But actually linktree should be
"ЯocKayseri » Forum » Makaleler » Metal Müzik » Tolkien'in Orta Dünyası"
So "article link" meaning http://www.rockayseri.net/rk/articles/?sa=view;article=25 should be included linktree. This url should linked article title. (Tolkien'in Orta Dünyası)
Not sure if I want to repeat it. I could will think about it. It is kind of dead link.
Quote from: vbgamer45 on July 01, 2009, 08:47:36 PM
Not sure if I want to repeat it. I could will think about it. It is kind of dead link.
Why dead ? Smf already use this style, am i wrong? O_o
"Simple Machines Community Forum > Customizing SMF > Modifications and Packages > SMF Articles"
Article page not have to any "current article link".
Yeah its ok. I just don't get the point since you are already on that page you are adding a link back to the same page
New update
Version 1.1
+Added settings to allow attaching images to articles
+Added more display information on the person making the comment
!Fixed bug with importing tiny portal articles for SMF 2.0
Thanks vbgamer45 for the update. I have to do it manually though. What are the database changes for the attachments?
Oh, and where does it call the attachment in the view function???
function ViewArticle()
{
global $txt, $context, $user_info, $scripturl, $smcFunc, $mbname, $user_info;
// Check if the current user can view the articles list
isAllowedTo('view_articles');
$m_cats = allowedTo('articles_admin');
$context['m_cats'] = $m_cats;
if (!isset($_REQUEST['article']))
fatal_error($txt['smfarticles_noarticleselected']);
$article = (int) $_REQUEST['article'];
if ($context['user']['is_guest'])
$groupid = -1;
else
$groupid = $user_info['groups'][0];
// Show the articles in that category
$dbresult = $smcFunc['db_query']('', "
SELECT
a.ID_ARTICLE, a.title, a.date, p.view, a.approved, a.rating, a.totalratings, m.real_name, a.ID_MEMBER,
a.description, a.views, a.commenttotal, a.ID_CAT
FROM {db_prefix}articles AS a
LEFT JOIN {db_prefix}members AS m ON (a.ID_MEMBER = m.ID_MEMBER)
LEFT JOIN {db_prefix}articles_catperm AS p ON (p.ID_GROUP = $groupid AND a.ID_CAT = p.ID_CAT)
WHERE a.ID_ARTICLE = $article LIMIT 1");
$row = $smcFunc['db_fetch_assoc']($dbresult);
$context['article'] = $row;
$smcFunc['db_free_result']($dbresult);
// Check Approval
if ($row['approved'] == 0 && $m_cats == false && $row['ID_MEMBER'] != $user_info['id'])
fatal_error($txt['smfarticles_err_articlenotapproved'],false);
// Check if article is allowed to be viewed
if ($row['view'] == '0' && ($m_cats == false && $row['ID_MEMBER'] != $user_info['id']))
fatal_error($txt['smfarticles_perm_no_view_article'],false);
$addarticle = allowedTo('add_articles');
// MyArticles
if ($addarticle && !($context['user']['is_guest']))
$context['articles']['buttons']['mylisting'] = array(
'text' => 'smfarticles_myarticles',
'url' =>$scripturl . '?action=articles;sa=myarticles;u=' . $user_info['id'],
'lang' => true,
);
// Search
$context['articles']['buttons']['search'] = array(
'text' => 'smfarticles_search',
'url' => $scripturl . '?action=articles;sa=search',
'lang' => true,
);
// View Article Buttons
// Edit Article
if ($m_cats == true || $row['ID_MEMBER'] == $user_info['id'])
$context['articles']['view_article']['edit'] = array(
'text' => 'smfarticles_txtedit3',
'url' =>$scripturl . '?action=articles;sa=editarticle&id=' . $article,
'lang' => true,
);
// Delete Article
if ($m_cats == true || $row['ID_MEMBER'] == $user_info['id'])
$context['articles']['view_article']['delete'] = array(
'text' => 'smfarticles_txtdel3',
'url' => $scripturl . '?action=articles;sa=deletearticle&id=' . $article,
'lang' => true,
);
// Link Tree
$context['linktree'][] = array(
'url' => $scripturl . '?action=articles',
'name' => $txt['smfarticles_title']
);
GetParentLink($context['article']['ID_CAT']);
$dbresult = $smcFunc['db_query']('', "
SELECT
pagetext
FROM {db_prefix}articles_page
WHERE ID_ARTICLE = $article LIMIT 1");
$row2 = $smcFunc['db_fetch_assoc']($dbresult);
$context['article_page'] = $row2;
$smcFunc['db_free_result']($dbresult);
// Display all user comments
$dbresult = $smcFunc['db_query']('', "
SELECT
c.ID_ARTICLE, c.ID_COMMENT, c.date, c.comment, c.ID_MEMBER, c.lastmodified,
c.modified_ID_MEMBER, m.posts, m.real_name, c.approved
FROM ({db_prefix}articles_comment as c)
LEFT JOIN {db_prefix}members AS m ON (c.ID_MEMBER = m.ID_MEMBER)
WHERE c.ID_ARTICLE = " . $context['article']['ID_ARTICLE'] . " AND c.approved = 1 ORDER BY c.ID_COMMENT DESC");
$comment_count = $smcFunc['db_affected_rows']();
$context['article_comments'] = array();
while($row3 = $smcFunc['db_fetch_assoc']($dbresult))
$context['article_comments'][] = $row3;
$smcFunc['db_free_result']($dbresult);
$context['article_comment_count'] = $comment_count;
// Update Views
$dbresult = $smcFunc['db_query']('', "UPDATE {db_prefix}articles
SET views = views + 1 WHERE ID_ARTICLE = $article LIMIT 1");
$context['page_title'] = $mbname . ' - ' . $txt['smfarticles_title'] . ' - ' . $row['title'];
$context['sub_template'] = 'viewarticle';
}
There is no attachments in the view page. You have the option to upload images. Then can click/drag the image into the article.
Quote from: vbgamer45 on July 07, 2009, 08:41:23 AM
There is no attachments in the view page. You have the option to upload images. Then can click/drag the image into the article.
Ok, cool. But where can I drag the uploaded image, is that in the add article template, or edit article template? Is that done with a javascript or something? I have to do it manually, that is why I ask.
When you edit the article that is where it is done. For SMF 1.1.x you just click on the image and it adds. For SMF 2.0 you need to drag it to the editor.
Ok, that is clear. Have tried that out, but I see nothing, only the size and [delete] link. In the source I see the javascript is there, but there is no output.
Hello again. Excellent mod here too. Here are a couple things I wonder if are possible:
1. Sort on Last Edit - it's a nice option to sort on Date since the dates don't change with updates/edits
2. A report that shows all of the article links (urls I guess) along with the member name that created them. Preferably a "downloadable report" like a delimited text file
3. Ability to "subscribe" to a members articles, perhaps a notification sent via email when new articles or edits are done
4. Ability to bookmark a specific article within the software (of course you could always bookmark it in your browser)
I apologize if any of this has been previously discussed.
Thanks.
where is its updated version?
Quote from: Baloch on July 17, 2009, 09:15:16 AM
where is its updated version?
You can download the update on the modsite
I use this mod a lot. Its a must have in my forum genre.
I guess i can showcase it..
http://www.chevyavalancheclub.com/index.php?action=articles
I use the PDF mod as well so the "Here you will find some of the mods done & submitted by CAC members.
Help us grow our library!,submit your own How-To.
Adobe Reader® Required" was added in the article.template.php
I just installed SMF Articles - I think it would be the perfect module for a forum that has a lot of tutorials and such.
However, after installing it, there is no button on my links bar. What must I do in order to get a button to show up?
Thank you in advance
If you are running 1.1.x series of SMF and you are using a theme other than the default.... just like any other mod, you will have to manually apply theme changes to your custom theme. This includes adding the articles button to the topnav.
Thanks.... I think I will have to pass on that. I'm not very good at those manual things.
Appreciate the fast response.
vbgamer, how will we update it? ( without losing existing db )
Just upgrade to the latest release. Uninstalling does not delete database entries
i try to attach image in article i cannot see the image in the article view.
if i try to edit article i see in bottum page X in image place.
i see the "function ViewArticle" code:
function ViewArticle()
{
global $txt, $context, $ID_MEMBER, $scripturl, $db_prefix, $mbname, $user_info;
// Check if the current user can view the articles list
isAllowedTo('view_articles');
$m_cats = allowedTo('articles_admin');
$context['m_cats'] = $m_cats;
if (!isset($_REQUEST['article']))
fatal_error($txt['smfarticles_noarticleselected']);
$article = (int) $_REQUEST['article'];
if ($context['user']['is_guest'])
$groupid = -1;
else
$groupid = $user_info['groups'][0];
// Show the articles in that category
$dbresult = db_query("
SELECT
a.ID_ARTICLE, a.title, a.date, p.view, a.approved, a.rating, a.totalratings, m.realName, a.ID_MEMBER,
a.description, a.views, a.commenttotal, a.ID_CAT
FROM {$db_prefix}articles AS a
LEFT JOIN {$db_prefix}members AS m ON (a.ID_MEMBER = m.ID_MEMBER)
LEFT JOIN {$db_prefix}articles_catperm AS p ON (p.ID_GROUP = $groupid AND a.ID_CAT = p.ID_CAT)
WHERE a.ID_ARTICLE = $article LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult);
$context['article'] = $row;
mysql_free_result($dbresult);
// Check Approval
if ($row['approved'] == 0 && $m_cats == false && $row['ID_MEMBER'] != $ID_MEMBER)
fatal_error($txt['smfarticles_err_articlenotapproved'],false);
// Check if article is allowed to be viewed
if ($row['view'] == '0' && ($m_cats == false && $row['ID_MEMBER'] != $ID_MEMBER))
fatal_error($txt['smfarticles_perm_no_view_article'],false);
$addarticle = allowedTo('add_articles');
// MyArticles
if ($addarticle && !($context['user']['is_guest']))
$context['articles']['buttons']['mylisting'] = array(
'text' => 'smfarticles_myarticles',
'url' =>$scripturl . '?action=articles;sa=myarticles;u=' . $ID_MEMBER,
'lang' => true,
);
// Search
$context['articles']['buttons']['search'] = array(
'text' => 'smfarticles_search',
'url' => $scripturl . '?action=articles;sa=search',
'lang' => true,
);
// View Article Buttons
// Edit Article
if ($m_cats == true || $row['ID_MEMBER'] == $ID_MEMBER)
$context['articles']['view_article']['edit'] = array(
'text' => 'smfarticles_txtedit3',
'url' =>$scripturl . '?action=articles;sa=editarticle&id=' . $article,
'lang' => true,
);
// Delete Article
if ($m_cats == true || $row['ID_MEMBER'] == $ID_MEMBER)
$context['articles']['view_article']['delete'] = array(
'text' => 'smfarticles_txtdel3',
'url' => $scripturl . '?action=articles;sa=deletearticle&id=' . $article,
'lang' => true,
);
// Link Tree
$context['linktree'][] = array(
'url' => $scripturl . '?action=articles',
'name' => $txt['smfarticles_title']
);
GetParentLink($context['article']['ID_CAT']);
$dbresult = db_query("
SELECT
pagetext
FROM {$db_prefix}articles_page
WHERE ID_ARTICLE = $article LIMIT 1", __FILE__, __LINE__);
$row2 = mysql_fetch_assoc($dbresult);
$context['article_page'] = $row2;
mysql_free_result($dbresult);
// Display all user comments
$dbresult = db_query("
SELECT
c.ID_ARTICLE, c.ID_COMMENT, c.date, c.comment, c.ID_MEMBER, c.lastmodified,
c.modified_ID_MEMBER, m.posts, m.realName, c.approved
FROM ({$db_prefix}articles_comment as c)
LEFT JOIN {$db_prefix}members AS m ON (c.ID_MEMBER = m.ID_MEMBER)
WHERE c.ID_ARTICLE = " . $context['article']['ID_ARTICLE'] . " AND c.approved = 1 ORDER BY c.ID_COMMENT DESC", __FILE__, __LINE__);
$comment_count = db_affected_rows();
$context['article_comments'] = array();
while($row3 = mysql_fetch_assoc($dbresult))
$context['article_comments'][] = $row3;
mysql_free_result($dbresult);
$context['article_comment_count'] = $comment_count;
// Update Views
$dbresult = db_query("UPDATE {$db_prefix}articles
SET views = views + 1 WHERE ID_ARTICLE = $article LIMIT 1", __FILE__, __LINE__);
$context['page_title'] = $mbname . ' - ' . $txt['smfarticles_title'] . ' - ' . $row['title'];
$context['sub_template'] = 'viewarticle';
}
i cannot see relevant code for attachment.
There is no code on the view article page for that. On the edit article page. You have the option to insert a link to the attachment image in the article description editor.
sorry. I do not understand you
On the edit article page you have the option to attach images to the article.
To get the images to appear in the article after they are attached you can double click the image and it will be added to the article text where your cursor is at. For SMF 2.0 you have to drag and drop the image.
Quote from: vbgamer45 on July 22, 2009, 02:13:40 PM
On the edit article page you have the option to attach images to the article.
To get the images to appear in the article after they are attached you can double click the image and it will be added to the article text where your cursor is at. For SMF 2.0 you have to drag and drop the image.
in the image place i see X.
in the article folder i cannot see the file.
How do I get the image to appear as part of the article?
What settings do you have. Admin -> Articles Configuration -> Settings
For the Articles path and Articles url
http://ladaat.net/forum/articles/
&
/hsphere/local/home/ladaatne/ladaat.net/forum/articles/
That looks right. Any errors in the error log?
What do the links of the broken images look like.
Also what version of SMF
Quote from: vbgamer45 on July 23, 2009, 03:02:51 PM
That looks right. Any errors in the error log?
What do the links of the broken images look like.
Also what version of SMF
ok
in log i see this errores:
http://ladaat.net/forum/index.php?action=articles;sa=editarticle2
2: rename(/hsphere/local/home/ladaatne/ladaat.net/forum/articles/3080_24_07_09_12_50_55.jpeg_thumb,/hsphere/local/home/ladaatne/ladaat.net/forum/articles/thumb_3080_24_07_09_12_50_55.jpeg): No such file or directory
Files: /hsphere/local/home/ladaatne/ladaat.net/forum/Sources/Articles.php
Line: 883
2: getimagesize(/hsphere/local/home/ladaatne/ladaat.net/forum/articles/3080_24_07_09_12_50_55.jpeg): failed to open stream: No such file or directory
Files: /hsphere/local/home/ladaatne/ladaat.net/forum/Sources/Subs-Graphics.php
Line: 269
2: move_uploaded_file(): Unable to move '/tmp/phpwG9XJF' to '/hsphere/local/home/ladaatne/ladaat.net/forum/articles/3080_24_07_09_12_50_55.jpeg'
Files: /hsphere/local/home/ladaatne/ladaat.net/forum/Sources/Articles.php
Line: 879
2: move_uploaded_file(/hsphere/local/home/ladaatne/ladaat.net/forum/articles/3080_24_07_09_12_50_55.jpeg): failed to open stream: Permission denied
Files: /hsphere/local/home/ladaatne/ladaat.net/forum/Sources/Articles.php
Line: 879
in the edit article page the broken link is:
http://ladaat.net/forum/articles/thumb_3080_24_07_09_12_50_55.jpeg
i using SMF v.1.1.10
thanks for your help
Make sure the permissions on the articles folder are writable i think either 755 or 777 will work
Latest verison of this mod installed on SMF 2.0 RC1.2 - member just tried a search using MemberName and got this error...
Unknown column 'memberName' in 'where clause'
File: /home2/.../public_html/forum/Sources/Articles2.php
Line: 2130
One for next release or is it something wrong with my install?
W
Will fix for next release. Should be member_name instead of MemberName for SMF 2.0
Thanks vbgamer...
Quote from: willerby on July 27, 2009, 04:43:40 PM
Thanks vbgamer...
Version 1.1.1
!Fixed search for SMF 2.0
Fast response... thanks
Quick question. Can I add HTML type text here so that my google ads come up? I imported articles from Tiny portal and they all look incorrect.
Sam
No only supports BBC articles
actually, if you have direct database access, you can put HTML directly in the article contents field... as long as you do not edit the article in the future, it will work
(all of my imported mambo articles used html)
Ok, so how exactly do I do it. I have direct access to the database.
THANKS!
Sam
ps.. could this be a suggestion for the next release of your great mod? HTML compatible ;)
you would have to enter the html directly into the field... using proper escaped SQL.
I think this could be way out of my league.
if I enter mysql database for my smf I would just find the articles add my html and whala?! is what your saying?
Thanks for all your help.
Sam
no.... it has to be encoded and escaped characters.... if you try to enter javascript or html by just pasting you will mess up the database table.
It sounds like the answer to your question, in this case is... no.
I'd suggest checking out the ad management mod.
This is a great mod. I was wondering where I would look to rename the references to "myarticles" shown in this pic:
(http://img364.imageshack.us/img364/8035/6461cc864a9ec9ebc803ed5.jpg) (http://img364.imageshack.us/i/6461cc864a9ec9ebc803ed5.jpg/)
I would either like to rename that tab or at the least add a space so it shows at "my articles". Of course this isn't vital, I'm just curious if its possible.
and also, how can I fix this in the admin section:
(http://img364.imageshack.us/img364/9527/0353dd7122e932a7c847745.jpg) (http://img364.imageshack.us/i/0353dd7122e932a7c847745.jpg/)
MyArticles text is most likely located in themes/default/languages/modificiations.english.php
Will fix the version number that is something I need to fix on myside.
Quote from: vbgamer45 on July 31, 2009, 08:24:15 PM
MyArticles text is most likely located in themes/default/languages/modificiations.english.php
Will fix the version number that is something I need to fix on myside.
Thanks for the reply. I did a full on search and I found "MyArticles" in Articles.english.php in case anyone else wanted to change the text or whatever.
$txt['smfarticles_myarticles'] = 'MyArticles';
How can I limit the amount of comments to show?
thanks
There is currently no setting for that.
Quick fix update
Version 1.1.2
!Fixed bbc editor for categories in SMF 2.0 not working in IE6/IE7
It seems the "Total Articles" column only sums up 2 levels down to the first sub-category. Is there a fix for this so it adds all sub-categories?
I had a main category (ie. Racing Games) and then a sub-category (FUEL), and then two more sub-categories under FUEL. Although there were articles in the last two sub-cats, the Racing Games "Total Articles" on the main Articles page still showed zero. Once I moved the articles from the lowest sub-cats so they all resided in FUEL, then the main articles page showed the summation of the articles next to the main category (Racing Games).
I hope that makes sense.
Thanks.
No fix at this time only does one sub level deep.
Hey it's me again...
Is there anyway to create a link to "My Articles" that other members or guests can see the results? If I copy the code by right clicking the My Articles link I'll get the link that ends in myarticles;u=1. But if another member clicks it they get their articles (even though they are not user 1) If a guest clicks it it says login or register (because of course they have no articles).
It's being requested of me to offer this functionality, so someone can post a link to "their articles".
Thanks.
Couple of issues with images...
Firstly, image attachment does not seem to work correctly? I have a browse button and when I post a new article with an image specified in the field the article does not display it. When I go back to EDIT the article it is there on the edit screen but doesn't show on article display? Thought it might be theme related but no theme templates used...
Secondly, I use this 'Simple Image Upload' (http://custom.simplemachines.org/mods/index.php?mod=1669) mod on my forum. The link to it appears to my users when creating articles as its part of the WYSIWYG editing dialogue from the general settings. Unfortunately, it posts the link to images created by this mod in the Summary field and not the main Article field. I've tried to see why this is happeneing but can't work out how that mod functions in relation to SMF Articles...
Any help (even if its hard coding to turn off the 'Add Image to Post' link for aerticles) appreciated...
W
Cough! help?
Cough cough...
No support for the image attachment function?
1. You should be able to click on the image itself inside the edit page to insert the bbc code into the article text. For SMF 2.0 you need to drag the image to the editor.
2. Could be possible to add that bbc code to disallow list will need to look into that.
? Not sure I understand
I upload using the browse button (drag and drop does not work at this point). Nothing appears in the article so I go back to edit (where it is showing for some reason) and then I drag and drop it into the article?
When I do this I get javascript(void) posted...
Using SMF 2.0 RC1.2
SMF 2.0 RC1.2
SMF Articles 1.1.1
Images added to articles (via the Browse function when writing them) doesn't appear anywhere. They are supposed to appear in the article-list, just like the images for categories are shown on the main Articles page, are they not?
The description text of categories turns completely blank in the text field when i click to edit it.
I sure hope the permissions system at least works as it should...
You have to insert the images into the article themselves in order to have them to appear.
Well thank you, but that doesn't really make up for having an "Add image"-field that doesn't add images. Causes a lot of unnecessary confusion amongst users.
i just installed this, but my members can't see the article section. I see it just fine the users of my forum can't. any ideas for fixing whatever i've done?
Quote from: tommybishop on October 24, 2009, 05:05:22 PM
i just installed this, but my members can't see the article section. I see it just fine the users of my forum can't. any ideas for fixing whatever i've done?
You need to setup permissions under
Admin -> Permissions -> Modify each Group -> Then check the SMF Articles permissions needed
I think it is not implemented, but this is a suggestion....
In my web, SMF Articles is used for stories, poetry, and sagas....
It would be nice to have "chapters" implemented, just for those large and long srticles/sagas....
You're stepping beyond "Articles" at that point and into the realm of the eFiction fucntionality...
I think, if you want chapters, etc, you should request a separate mod for writing rather than articles. :)
Yes, I'm migrating from efiction.... I like a more integrated thing, and thats the reason I have installed articles mod
but, I think you missed my point.
eFiction is a whole story based system.
SMF Articles is an articles system (similar to articles in a CMS).
You are trying to make SMF articles into something completely different. Instead of using something and trying to turn it into something else, you should request that someone write a system to do it the right way straight out.
What you are asking is like someone coming to me and saying "Well, I know that SMF is a forum, but I really want to use it like a photo gallery....
just wondering two things, and as i have read maybe its not only me :P
1. The image uploader works perfect for my smf 2.0 installation, but since the image name and thumb are stored in database, can the "main" image be set to show in the template on top and centered? how could this be done? i know dont how difficult this would be.
2. If the first is possible, there could be a "select" primary article image to be the one that displays on top, and then have the multiple image attachment from smf to include more images (if needed) and then added using bbcode as needed.
EDIT:
3. the html bbcode seems not supported by articles.
Thx for the article mod, im planing to use it as not only articles, but for guides as well and multiple images are very case sensitive. thx again for your help.
Well, I'm really thinking not in a thing just like eFiction.... but yes a multi-page article system, as it could be this....
http://www.motherboards.org/reviews/motherboards/1959_1.html
But I know that this is a major change in tables, code, etc.... that's because I told about it as a suggestion, not asking for it. Mod creator is the only one that can see if it fits in the mod.
Thanks anyway.
I have a question, vbgamer, but first, let me just say that the mod installed beautifully on my 1.1.10 forum and, even more importantly, doesn't generate one single error. (I can't tell you how glad I am of that.)
I hope I'm not guilty of not searching adequately, but I'm not seeing this: my posters are asking me how to tell if there are new articles (since you can't tell simply by looking up at the button on the nav bar). This is where I realize that I don't fully understand how to implement the mod. Must one designate specific boards (or create them) in order for posters to be aware of new articles? If I were to create specific boards as "article boards" wouldn't they just become part of the main page's category listings (just regular posting boards) and the posters wouldn't even need to access the articles button?
As you can see, I'm quite at a loss as how to set up the Articles mod to its best advantage or how to achieve "new" articles to be made apparent. :)
Note: I use this tip on my forum and it works beautifully. It would be great if it could be modified for the Articles button; that would pretty much solve the problem. Would you mind taking a look at it?
http://www.simplemachines.org/community/index.php?topic=9017.msg132527#msg132527 (http://www.simplemachines.org/community/index.php?topic=9017.msg132527#msg132527)
At this time there is no way to tell for new articles.
Categories need to be created first on the main articles page. Then articles can be submitted to a category
Thanks! :)
I went ahead and installed it on one of my test boards as well, so I'll just play around with it.
Hi! My can i put recent atricles to my portal? Thank you!
I have an idea useful addition.
option to print articels like print topic.
Quote from: eyeseven on November 04, 2009, 06:02:16 AM
Hi! My can i put recent atricles to my portal? Thank you!
Bulilt into ezportal
I dloaded the latest version and tried to install.
It says:
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Im using RC2 2.0
Quote from: BlueDevil on November 09, 2009, 06:02:43 PM
I dloaded the latest version and tried to install.
Im using RC2 2.0
The mod page doesn't say it's compatible with 2.0 RC2 at this time.
Quote from: Arantor on November 09, 2009, 06:07:34 PM
Quote from: BlueDevil on November 09, 2009, 06:02:43 PM
I dloaded the latest version and tried to install.
Im using RC2 2.0
The mod page doesn't say it's compatible with 2.0 RC2 at this time.
oh snap, lol..... i didnt notice it.
Bummer.
I thought he updated his mods. I use several mods of his. Hope he gets them updated.
A number of his mods are updated, but considering it's been less than 24 hours since the release announcement, we've done fairly well I'd say with the number of mods that did get updated :)
I'm sure vbgamer45 will add support soon for 2.0 RC2 for this mod :)
Quote from: Arantor on November 09, 2009, 06:10:21 PM
A number of his mods are updated, but considering it's been less than 24 hours since the release announcement, we've done fairly well I'd say with the number of mods that did get updated :)
I'm sure vbgamer45 will add support soon for 2.0 RC2 for this mod :)
Oh no, dont get me wrong. Im not pushing at all. :)
I know; actually I'm quite impressed how quickly it's been, since public release announcement, I count nearly 100 mods labelled as RC2 compatible.
Updated with support for SMF 2.0 RC2!
Quote from: vbgamer45 on November 09, 2009, 08:05:17 PM
Updated with support for SMF 2.0 RC2!
Good news, since this is a mod I had decided to wait for before upgrading.
(http://whereitestmystuff.com/images/thumb.gif)
Excellent. Thank you.
hello guys! Do you know (if this has been solved before) or if it's easy to make a tinyportal block with the last articles from all the categories? I checked the other day the code that they use on their recent posts' block. It's like this.
global $scripturl;
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr><td colspan="3" class="titlebg">Recent topics</td></tr> ';
$what=ssi_recentTopics('8', NULL, 'array');
foreach ($what as $topic)
{
echo '
<tr>
<td class="windowbg" valign="middle">
', $topic['link'];
// Is this topic new? (assuming they are logged in!)
if (!$topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['new_from'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';
echo '
</td>
<td class="windowbg2" valign="middle" width="20%">
', $topic['poster']['link'], '
</td>
<td class="windowbg2" valign="middle" width="35%">';
if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))
echo '
<a href="', $topic['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" border="0" style="float: right;" /></a>';
echo '
<span class="smalltext">
', $topic['time'], '
</span>
</td>
</tr>';
}
echo '
</table>';
Would anybody help me to change the code to make articles appear. I suppose there's something to do with SSI.
Thanks in advance for your time. :)
Greetings
I'm using PortaMX portal and I would like to use this mod on its frontpage. I've been talking to creator of that portal and here is what she said:
QuoteI don't know that mod .. but if it have a defined DB interface (or own SSI functions) you can get the content with php blocks.
So, what part of code should I copy to php block then?
Don't have any premade blocks to show an aritlce on a front page of a portal system yet.
hi !
is possible, imports o make a promote of theme TO ARTICLE ?
Please explain a little more
I suspect the request is to be able to convert a regular topic into an article, with a button from the topic itself.
SMFArticles and EzPortal integrate, don't they? If you do it right, it should work then. It's all plans, he wants you to use EzPortal ^_^
I want to ask about something. When you've disallowed guests to browse the forum, they aren't allowed to view the articles section either even if the permission to view articles is set to allowed. Does anyone know how to override this independently from the forum-browsing-permission?
Edit: Wow, i just noticed that no pages are allowed, not even custom ones! Darn.. :( The SMF team should change this in the core.
Why? Access to the site is access to the site.
Well it's called "Allow guests browse the forum", so i presumed it meant the forum alone.
That's just the standard wording of the forum itself, but generally covers everything relating to the forum, including mods.
I have this mod installed on smf 2.0 RC2 with the curves theme as default. Permissions have been set and members can view articles just fine.
Problem:
My attachments (images) do not display with the articles. When creating or editing an article, the attachment upload box seems to work for browsing and selecting files. The files even upload. I can see them in the articles folder on my server, (using FTP.) But no attachments show up in the articles.
Can someone link me to a forum that has this as an example. I'd like to see how it's used.
Quote from: RawDepth on November 22, 2009, 08:47:36 PM
I have this mod installed on smf 2.0 RC2 with the curves theme as default. Permissions have been set and members can view articles just fine.
Problem:
My attachments (images) do not display with the articles. When creating or editing an article, the attachment upload box seems to work for browsing and selecting files. The files even upload. I can see them in the articles folder on my server, (using FTP.) But no attachments show up in the articles.
You have to drag and drop the images into the article in order for them to appear.
Quote from: vbgamer45 on November 22, 2009, 09:00:10 PMYou have to drag and drop the images into the article in order for them to appear.
I tried this...
The function is not allowed from the upload (browse) window.
After the upload, when I drag and drop from the article edit window, it places the following text in my article.
javascript:void(0);
But, still no picture.
I am unablt to install this mod. It says it's imcompatible with my version of SMF. I've emulated all version with no success. Any ideas?
MATTEK: Might be useful if you stated what version of SMF you're using and what exactly you're doing to emulate versions.
Quote from: MATTEK on November 24, 2009, 06:11:36 PM
I am unablt to install this mod. It says it's imcompatible with my version of SMF. I've emulated all version with no success. Any ideas?
At the request of Arantor : I'm using SMF 2.0 RC2. To Emulate I'm clicking the advanced option in the package manager.
Does this allow php articles?
MATTEK: And what are you putting in that box?
Quote from: Arantor on November 24, 2009, 06:50:30 PM
MATTEK: And what are you putting in that box?
I'm entering SMF 2.0 RC1.2
The mod package itself has instructions to install on 2.0 RC2. From the Advanced, select Revert, and then install the mod.
I have it installed by emulating RC2?. Odd. Anyway, the article permission options are all messed up.
Ideas?
No, in RC2 you don't emulate anything, you use the natural version check, though I can see how it could be 'emulating' RC2.
As for that, you'll have to take that up with the mod's author, I don't know nearly enough about it, sorry.
Quote from: Arantor on November 24, 2009, 07:29:19 PM
No, in RC2 you don't emulate anything, you use the natural version check, though I can see how it could be 'emulating' RC2.
As for that, you'll have to take that up with the mod's author, I don't know nearly enough about it, sorry.
No no. I mean when I emulated I entered RC2 instead of the RC1.2 and it worked. The question mark in my sentence was because I'm confused as to how it worked.
Yes, because you're no longer emulating a different version but using the master version identity of the forum software. The mod has in its code a list of versions it supports, one of which that it has listed is 2.0 RC2 explicitly, which is why it worked.
Ah. I see. Thanks man.
Quote from: MATTEK on November 24, 2009, 07:28:12 PM
I have it installed by emulating RC2?. Odd. Anyway, the article permission options are all messed up.
Ideas?
They should still work just the style settings have been fixed yet for curve
Quote from: vbgamer45 on November 24, 2009, 08:08:42 PM
Quote from: MATTEK on November 24, 2009, 07:28:12 PM
I have it installed by emulating RC2?. Odd. Anyway, the article permission options are all messed up.
Ideas?
They should still work just the style settings have been fixed yet for curve
I have no options in my Articles Permission section. I can't set any permissions.
That is category level permissions. You need to set normal permissions which are found under
Admin -> Permissions -> Modify each group and give them the articles permissions needed.
Ah. I see. Thanks man.
Quote from: RawDepth on November 22, 2009, 10:37:01 PM
Quote from: vbgamer45 on November 22, 2009, 09:00:10 PMYou have to drag and drop the images into the article in order for them to appear.
I tried this...
The function is not allowed from the upload (browse) window.
After the upload, when I drag and drop from the article edit window, it places the following text in my article.
javascript:void(0);
But, still no picture.
Anyone else having this problem with attachments not showing?
Quote from: RawDepth on November 25, 2009, 05:38:51 AM
Quote from: RawDepth on November 22, 2009, 10:37:01 PM
Quote from: vbgamer45 on November 22, 2009, 09:00:10 PMYou have to drag and drop the images into the article in order for them to appear.
I get this as well - no pictures display, however when you edit an article you can see athumbnail of the picture.
I tried this...
The function is not allowed from the upload (browse) window.
After the upload, when I drag and drop from the article edit window, it places the following text in my article.
javascript:void(0);
But, still no picture.
Anyone else having this problem with attachments not showing?
When I upload a picture to the article, it does not show, but it's there if you go into Edit.
Any ideas?
Yes you have to drag and drop the picture into the editor for SMF2 or SMF.1.1.x you click the picture to go into the editor
That does not work. Why is the Upload image prompt there, if it doesn't work?
It uploads fine, shows it under edit, but not visible once you save the article. I tried dragging dropping the picture from my desktop to the open article edit window and it doesn't work.
Any ideas?
You have to drag it from the edit screen after the picture is uploaded. This was added since someone paid for this feature to work this way.
I complained about this not working before but never got a satisfactory response. That drag and drop fix doesn't work either. (see above posts) Besides, how would I ever get all of my members to understand that special method.
Since most of our articles are "how to" type, I figured they were worthless without images, so I uninstalled the mod. Now we post articles through other methods.
What browser do you use? Mine was Firefox 3.0.15.
Ok, I uploaded, it, and it won't drag. Please explain.
Will remove the upload feature for next update.
If it works and I am doing it wrong, just tell me how to do it? Can you try yourself and see if it works?
I have used in 1.1.x and SMF 2.0.
1.1.x you have to click the image and it is added to the editor box.
2.0 the only way I could get it to work was to drag and drop and that was using firefox and wywsig editor for SMF 2.0
I might just change to display the images just on the articles page on an area to the side or bottom instead.
Ok, let me try firefox.
I will try firefox and install wywsig and then try. Don't remove it, cause it is a good feature.
Where do I get the WYSIWYG for SMF 2.0 RC2?
I think you have to enable it under -> Profile -> Layout options
Ok, It is enabled, but weird, it doesn't work. It still uses the BBC codes. Any idea?
Probably at this point will scrap it and just make the pictures appear at the side or bottom of the article.
No no, I am talking about the WYSIWYG, how is that suppose to work.
When you are posting, does it display the bold, etc, right away, or just add BBC codes? Mine just shows BBC codes. And my WYSIWYG is enabled.
WYSIWYG by definition is that you're supposed to see text in bold and so on.
So it's enabled in the master configuration and turned on in your profile?
Ok, it was turned off in my profile. Let me try your mod again.
ALso, how can I make it auto enabled for all users, rather then making them have to adjust their profiles? Or is this not wise to do?
Ok, your mod does work with firefox, and WYSIWYG enabled. Only thing after I dragged and dropped it, you have to erase the formatting on picture itself. Then everything works great.
Thanks!
1.2
+Added setting to control if images are shown at the end of the view article that are attached
+Better category dropdown struture in various areas
+Added bbc box to add/edit category SMF 1.1.x
is there any code to show latest article added in tinyportal block?
Hi VBG45!
I've just installed the latest release (1.2) in my new forum with SMF 2 RC2 & SimplePortal 2.3.1 and all seem works great...
The only problem is the visualization of "Category Permission List" that don't show all permissions.
I'd like to have an italian version!
Are you interested if I offer my help for a translation? :)
Bye!
Graziano
Category permission list only shows categories that you have defined custom permissions for.
Otherwise all permissions are shown on Admin -> Permissions -> Modify each group
Yes I would welcome any translation!
Quote from: vbgamer45 on December 19, 2009, 11:39:20 AM
Category permission list only shows categories that you have defined custom permissions for.
Category Permission - Coniglio F.A.Q.
Membergroup View Add Article Edit own Article Delete own Article Options
Administrator Allowed Allowed Allowed Allowed [Delete]
Ospiti Denied Denied Denied Denied [Delete]
Category Permission - Articoli sul Coniglio
Membergroup View Add Article Edit own Article Delete own Article Options
Administrator Allowed Allowed Allowed Allowed [Delete]
Ospiti Denied Denied Denied Denied [Delete]but here...
Category Permission List
Membergroup Category View Add Article Edit own Article Delete own Article Options
Administrator Coniglio F.A.Q. Allowed Allowed Allowed Allowed [Delete]
Administrator Articoli sul Con Allowed Allowed Allowed Allowed [Delete]
Ospiti Coniglio F.A.Q. Allowed Denied Denied Denied [Delete]The second "Ospiti" is missing... or not?
Quote from: vbgamer45 on December 19, 2009, 11:39:20 AM
Otherwise all permissions are shown on Admin -> Permissions -> Modify each group
Yes, I know.
Quote from: vbgamer45 on December 19, 2009, 11:39:20 AM
Yes I would welcome any translation!
OK, I work on it during this WE...
Where I can send the translations?
Ciao!
Graziano
I get a message that the 1.2 release is out of date...
I have the newest version...
Fixed. Safe to ignore should fix itself in about 24 hours
I'm interested in using this mod on one of my sites, but have a few issues with it.
1.| I don't understand the purpose of the "summary" section. Can you explain?
2.| User's other than the admin cannot view articles, even if I give permissions to every membergroup to the category.
3.| Also, I getting these errors in my log:
8: Undefined index: titleFile: /home/xxxxxx/xxxxxx.com/cache/lang_Articles_english_default.php (generic_menu_dropdown_above sub template - eval?)
Line: 256
and
8: Undefined index: descriptionFile: /home/xxxxxx/xxxxxx.com/cache/lang_Articles_english_default.php (generic_menu_dropdown_above sub template - eval?)
Line: 264
Thanks...
1. Summary is short description of the artcile
2. You have to give them global permissions under Admin -> Permissions to view articles
I have a feature request.
I'd like to print the articles, is possible to add the smf standard print tab?
So I can print only the text/pictures without the header.
Thanks.
Graziano
P.S. The translation proceed... slowly! :(
Is this simliar to blogs or replace blogs? Would be great for blogger user.
no... articles really are not blogs.
We use it that way, though, on our forums: blogs. The blog mod found on this site was literally taking over the forums with errors and, after not being able to resolve it, I uninstalled it and installed Articles. It works beautifully and generates no errors, although I agree: technically, articles aren't blogs.
:)
hello everybody !!!
Just one question : Is it possible to put last article on index? Or somewhere else (like on article index) ?
If you use EZportal, it has an article block built in...
hello and thanks for your response !!!
But i don't use ezportal ....
Possible but you would have to code it.
I don't think that is an issue with the Articles mod more of an issue with SMF itself so kind of bug with the curve theme
Here's a dumb question, How do I insert images into an article?
You would have to have them uploaded on a website then use the BBC code editor to link/insert them
That means I would need the link to the image right? Doesn't sound user friendly to me. I would like my members to add articles to my site. Most of them are not computer savy. Any way to get a better editor for this?
you can't dump images into forum posts either.... the articles uses the same IMG BBC code that the forum uses.
Upload your pics to some location
add your article and include the URL of the image in IMG tags.
how hard is that?
IOf you want to keep it all on your site, then install one of the gallery mods.
Well the articles mod you can attach images to an articles page as well just they show up at the bottom of the articles page.
When I deleted an article, got this error:
http://www.gohighvoltage.com/forum/index.php?action=articles;sa=view;article=1
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND c.approved = 1 ORDER BY c.ID_COMMENT DESC' at line 6File: /forum/Sources/Articles2.php
Line: 2443
Did an update that should fix that error
1.2a
+Added checking on view article if article no longer exists or not found
awesome thanks!!
Quote from: Kindred on January 14, 2010, 08:24:05 AM
you can't dump images into forum posts either.... the articles uses the same IMG BBC code that the forum uses.
Upload your pics to some location
add your article and include the URL of the image in IMG tags.
how hard is that?
IOf you want to keep it all on your site, then install one of the gallery mods.
Not hard for the likes of us. It's just that some of my members are used to a tiny mce style interface.
One question though, is there a way to make the image word wrap the text around it rather than sit in line with the text? Perhaps a default setting?
awesome. thanks
how to show latest article in block for tinyportal?
Don't have SSI yet for this mod have a block in ezportal that probably could be ported to Tp
Quote from: vbgamer45 on January 16, 2010, 07:27:50 PM
Don't have SSI yet for this mod have a block in ezportal that probably could be ported to Tp
where can i find thats code?
got this error after installation
Unknown column 'approved' in 'where clause'
File: /var/www/vhosts/afrowall.com/httpdocs/Sources/Articles2.php
Line: 1717
i am suspecting the package manager didnt do its work properly as i had to add the codes to the files manually.
what do i do next ?
re-run the database installation part of the mod manually.
Quote from: Kindred on January 18, 2010, 08:59:12 AM
re-run the database installation part of the mod manually.
thanks.. how do i do that exactly ?
Download the package copy the installer to the root directory of your forum and run it via the browser
Quote from: vbgamer45 on January 18, 2010, 09:10:42 AM
Download the package copy the installer to the root directory of your forum and run it via the browser
yea, i searched for that but didnt see installer.
I saw unistall
articlessql2
readme
package info
changelog
redirect
which one is supposed to be the installer here ?
articlessql2.php
Quote from: Kindred on January 18, 2010, 10:03:05 AM
articlessql2.php
ok, the mistake was that i created the articles tables manually in the database . i might have missed something.
I drooped the table and ran the sql2 file again and it worked. Thanks
Glad you got it working!
i posted an article and got this error
'Invalid value inserted or no type specified.'
http://www.afrowall.com/index.php?action=articles;sa=editarticle2
Invalid value inserted or no type specified.
Function: EditArticle2File: /var/www/vhosts/xxxxxxx/httpdocs/Sources/Articles2.php
Line: 1020
the article did not show up ..
What was the post that you were trying to add?
Does this happen no matter what you enter in for the article text?
Quote from: vbgamer45 on January 19, 2010, 10:38:12 AM
What was the post that you were trying to add?
Does this happen no matter what you enter in for the article text?
NOPE, there is this one particular article i wrote that is doing that. i added another article as a guest and it got posted.
There most be something odd with that article look for {} characters
Quote from: vbgamer45 on January 19, 2010, 10:49:34 AM
There most be something odd with that article look for {} characters
sure, there is that on the article, hmm...why would it be a problem ?
{} are somewhat reserved in SMF 2.0
Quote from: vbgamer45 on January 19, 2010, 10:52:45 AM
{} are somewhat reserved in SMF 2.0
well after removing it, i tried resubmitting the article and got this
http://www.afrowall.com/index.php?action=articles;sa=editarticle;id=32: assert() [<a href='function.assert'>function.assert</a>]: Assertion failedFile: /var/www/vhosts/xxxxxx/httpdocs/Sources/Subs-Editor.php
Line: 1434
Can you post a sample of the article if possible?
PM sent to you
for some reasons..thanks
Thanks fixed and posted an update
1.2.1
!Fixed issue with reserved characters in article description and summary for SMF 2.0
Quote from: vbgamer45 on January 19, 2010, 11:18:05 AM
Thanks fixed and posted an update
1.2.1
!Fixed issue with reserved characters in article description and summary for SMF 2.0
what does that mean exactly ?
reinstalling mod or what ?
Just download and install the mod should autoupgrade
Quote from: vbgamer45 on January 19, 2010, 11:49:47 AM
Just download and install the mod should autoupgrade
my host is somehow not allowing package manager to auto do anything. whenever i install a mod,
the whole included files goes empty, that means i have to add the whole codes manually to make sure everything goes well.
so if you can give me the edits, to add on the modified file, i will be ok. thanks
Just copy Articles2.php from the zip to the Sources folder and your set
Ok cool..thanks
When you uninstall your mod, it does not uninstall from Modifications.english.php
So, if you reinstall an upgrade, etc, or even decide to reinstall, it adds another entry in Modifications.english.php, so then you have duplicate content.
Quote from: GohighVoltage on January 20, 2010, 01:23:33 AM
When you uninstall your mod, it does not uninstall from Modifications.english.php
So, if you reinstall an upgrade, etc, or even decide to reinstall, it adds another entry in Modifications.english.php, so then you have duplicate content.
It should but depends if you have other mods that write to that file in the end as well. This is a known issue with SMF if multiple mods write to the same file it will not uninstall correctly but is safe to ignore.
Quote from: vbgamer45 on January 16, 2010, 07:27:50 PM
Don't have SSI yet for this mod have a block in ezportal that probably could be ported to Tp
Where is the sample code for ezportal?
tq
It's inside the core of ezportal itself under Sources/Subs-Ezportal.php
When I upload an image into an article and it shows beneath the upload box. Am I suposed to be able to click on it to view full size and copy the image location?
Because I can only view the thumbnail.
How would i go about changing the text in this mod? for example i want to change all the article text to Code Base. I removed all the article text in modifications.english.php i removed all the text in articles.english.php and articles.english-utf8.php and somehow text is showing up still. Where exactly does it get its info from?
In SMF 2.0 go under Forum Maintenance and clear the cache it will then reload the cache and the text should be changed.
That did the trick thank you for the fast response.
np Glad you got it working!
Has anyone successfully setup SMF articles to produce an RSS feed?
To produce a feed of articles? Or you looking for something else?
Yes, I was looking to be able to take the articles I've posted to my SMF articles site and turn them into an RSS feed.
I'm reasonably good at wonking around inside the code, but I was hoping someone had already done this and I just needed to be pointed to the solution. I do have the RSS feed for boards MOD (which I think you also wrote).
Thanks
Barry
Nothing has been built yet for that but would be a good feature request.
The other thing I see "missing" from the SMF articles mod is that the Sitemap mod does not appear to pick up the articles - but there are plenty of web workarounds for sitemap issues.
I should add... awesome mod. I've really only just begun trying to work with it but has worked nicely so far.
Thanks there is still a lot i want to do for the mod.
Small inaccuracy -> file Articles2.template.php
<a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this,href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" alt="', $txt['find_members'], '" /></a>
<a href="', $scripturl, '?action=findmember;input=pic_postername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this,href, 350, 400);">', $txt['find_members'], '</a>
It would be better to use a comma instead of point? "reqWin(this,href, 350, 400)" => "reqWin(this.href, 350, 400)"
No, it should be a point, since href is a property of "this".
this.href is a property so it needs to be a period in other for that function to work
Edit Arantor got glad your still around. Don't archive your mods either ;)
Quote from: Arantor on February 04, 2010, 09:55:41 AM
No, it should be a point, since href is a property of "this".
I know that it should be a point, but now in file Articles2.template.php is comma: "reqWin(this,href, 350, 400)"
Thanks released an update to fix that issue!
Quote from: vbgamer45 on February 04, 2010, 05:35:17 PM
Thanks released an update to fix that issue!
Damn, vbgamer45, I am impressive, you have update many mods lately like Nao. What makes you? :P
BTW...I have used this mod but I am curious...the SMFblog and this mod serves the same purpose, no?
SMF Blog right now is based on smf boards not ideal if you want to have many many categories. SMF Articles little better updated at this time.
Updating mods to help the community I took over and bought couple for around $2500 in jan as well to make sure they stay updated.
Quote from: vbgamer45 on February 04, 2010, 10:19:13 PM
SMF Blog right now is based on smf boards not ideal if you want to have many many categories. SMF Articles little better updated at this time.
Updating mods to help the community I took over and bought couple for around $2500 in jan as well to make sure they stay updated.
So basically SMF Blog is no use to the user at all if they were to create their own blogs which will turn into many categories...but only if you can revamp into something different like the blog at vBullentin, our own blogs in our profile.
Yeah a revamp will be needed. I don't think having a board for every user or a board for each blog is realistic.
Quote from: vbgamer45 on February 04, 2010, 10:31:11 PM
Yeah a revamp will be needed. I don't think having a board for every user or a board for each blog is realistic.
There you go. ;D
Hope it's gonna be a great mod after the revamp, then I would use it.
Glad I suggested.
I really like the zCommunity implementation of blogs.... unfortunately, the author decided he had a good thing and made it stand along with a very simplistic forum... and never backported back to smf. :(
VB... if you could make the smfBlogs something like zCommunity, it would be coolness! See 40konline for a currently working implemention of zCommunity.
zCommunity was awesome that was a great mod maybe a new project for me for early this year added to my list heh
Quote from: Kindred on February 04, 2010, 10:46:01 PM
VB... if you could make the smfBlogs something like zCommunity, it would be coolness! See 40konline for a currently working implemention of zCommunity.
Just took a peek at their blog system, damn it's hot...maybe better than vBullentin. That's what I am talking about. A revamp would do with the same title. "SMFBlogs
This mod converts boards that already have threads into articles?
Each thread is changed to article.
Quote from: pittu on February 04, 2010, 11:02:02 PM
This mod converts boards that already have threads into articles?
Each thread is changed to article.
No, that would be SMFBlog
No sorry about that we discussing a different mod SMFBlogs
hmmm.... I have an issue with the permissions
I have a number of users marked as "Project Editors".
They have been granted permission, in the permissions profile, to administrate articles, approve articles, comments, etc.
However, the administration seems to be hidden in the smf admin-only section, which means that the users (who do not have normal board-admin access) are told they can not get to the article approval section.
I know I am missing something simple... but it's anoying.
Any idea vbgamer?
Busy this week but are you using SMF 2.0 with the Articles Mod? I think I know what the issue is.
I am indeed...I am using the dev version from mid-January.
Quote from: Kindred on February 12, 2010, 08:30:03 AM
hmmm.... I have an issue with the permissions
I have a number of users marked as "Project Editors".
They have been granted permission, in the permissions profile, to administrate articles, approve articles, comments, etc.
However, the administration seems to be hidden in the smf admin-only section, which means that the users (who do not have normal board-admin access) are told they can not get to the article approval section.
I know I am missing something simple... but it's anoying.
Any idea vbgamer?
Fixed!
Posted a new version of SMF Articles uninstall the old version and install the new versoin.
Adds a seperate Articles Configuration area.
I was just wondering, I have your articles modification added, how do I switch the tab name? It has the tab name articles, but I am using the modification for something else and need to change what the tab says.
modifications.english.php
Thanks Kinderd for the support. Did that change help you that I made to articles for moderators?
I have not done the upgrade yet... I am running a dev version, so I am going to re-install all the mods in a week or so when there is a good stable RC3 version available. :)
Great MOD !
I have small feature..
Ussualy link to the article .. look like this:
http://xxx.pl/forum/index.php?action=articles;sa=view;article=3 (http://xxx.pl/forum/index.php?action=articles;sa=view;article=3)
What about this, that in article link colapse title ?
Something like this:
http://xxx.pl/forum/index.php?action=articles;sa=view;article=3;title=this_is_article_title (http://xxx.pl/forum/index.php?action=articles;sa=view;article=3;title=this_is_article_title)
I thing that this solution will be more user friendly.
I think I have a pretty urls filter for this. Check out the pretty urls mod and the extras package with it.
Quote from: vbgamer45 on February 22, 2010, 12:49:13 AM
I think I have a pretty urls filter for this. Check out the pretty urls mod and the extras package with it.
Whoa.. i have pretty URLs mod but without extra pack. Now.. all is working fine !
Thanx !
Glad it helps :)
I've installed the mod, created a category (with viewing/posting permissions for registered members) and a test article, but unless I log in with my admin account instead of my test account as a normal user, I get an "An Error Has Occurred! You can not view the articles page." error when I try to access the article page or the article itself. I even tried giving registered members all permissions, but I still can't view the page. Any ideas?
I'm using it in SMF 1.1.111.
Edit: Never mind, didn't know I had to apply permissions in the SMF admin interface too, on the correct member group. :)
Glad you got it working!
Yes, me too. :) I'm trying to adapt this article mod on my forum to be more of a blog mod.
By the way, I just realized the comments on the articles show the most recent on top, is there an easy way to have it the other way, like in the forums?
I think you would need to modify Sources/Articles.php and change the comment query to order by ID_COMMENT DESC if it is missing.
Thanks, I'll look into that.
I'm trying to insert a link tree on the first page of this mod (the categories page), but for some reason it doesn't look like I expect it to. I'm using the default div tag for this, in the same way as in the other template files:
<div style="padding: 3px;">', theme_linktree(), '</div>
It's inserted into the template_articlesmain function, after the global.
On the category page, the link tree only shows the forum name and not the actual categories page name. If I click one of my two categories though, it looks like it should, showing Forum -> Categories page -> Category.
Got any ideas why this is happening?
Edit: Color me surpised! I managed to fix it myself, by editing Article.php. I moved this:
// Setup the Link Tree
$context['linktree'][] = array(
'url' => $scripturl . '?action=articles',
'name' => $txt['smfarticles_title']
);
GetParentLink($cat);
And inserted it after:
// Set page title
$context['page_title'] = $txt['smfarticles_title'];
Edit 2: Well, apparently that didn't solve the issue after all. :( Now I got the categories page in the link tree, but not the categories.
Quote from: vbgamer45 on February 22, 2010, 03:52:15 PM
I think you would need to modify Sources/Articles.php and change the comment query to order by ID_COMMENT DESC if it is missing.
It actually had to be changed from DESC to ASC...
hope there is a code to show latest article in block for portal. tq
Quote from: qubbah on February 24, 2010, 12:11:35 PM
hope there is a code to show latest article in block for portal. tq
Which portal? SimplePortal, TinyPortal, Ezportal, PortaMX, Dream Portal?
Does this article mod act like a review? Because I know there is no review mod. (Yes, it's for games reviews)
I think it it has ratings built in so I think you can use it that way.
Quote from: vbgamer45 on February 25, 2010, 03:28:16 PM
I think it it has ratings built in so I think you can use it that way.
I think the rating system is for users rating the actual article.
Would it be a big job to add an edit function to the comments section? As it is now, comments can only be deleted.
Would require some work about a half hour to hour.
Hallo
I have SMF simple portal.Every SMF portal sistem (Tiny, Simple or EZ) have "add custom html code or php code" feature.Can you write html code with next feature in the block:
-Submit article
-View article
or just preview one article in the list.
This is great mod but not enough visible for my visitors.
Sorry about my english and thanks
well, submit article is not available in a module, but EZPortal (also written by vbgamer) has a recent articles block
Quote from: Kindred on March 07, 2010, 09:27:13 AM
well, submit article is not available in a module, but EZPortal (also written by vbgamer) has a recent articles block
Sorry my mistake.I think about add article button and little preview.Simple portal also have a recent or random article block but I cant connect that options with SMF Articles.
I found this solution on one site:
global $smcFunc, $scripturl;
isAllowedTo('view_articles');
$dbresult = $smcFunc['db_query']('', "
SELECT a.ID_ARTICLE, a.title
FROM {db_prefix}articles AS a
WHERE a.approved = 1
ORDER BY RAND()
LIMIT 5
");
echo'
<div class="smalltext" style="text-align: center; color: #f9e9ac;">
<strong>5 Random Articles</strong>
</div>
<hr />';
echo'
<table>';
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
{
echo '
<tr>
<td align="center">', sp_embed_image('topic'), ' </td>
<td><span class="smalltext"><a href="' . $scripturl . '?action=articles;sa=view;article=' . $row['ID_ARTICLE'] . '">' . $row['title'] . '</a></span></td>
</tr>';
}
$smcFunc['db_free_result']($dbresult);
echo'
</table><hr />
', sp_embed_image('dot'), ' <span class="smalltext"><font color="#000000"><b><a href="' . $scripturl . '?action=articles;sa=addarticle;cat=1">Add Articles</a></b></span>';
ant this is currently the best solution for me.If someone have better proposal please write it here.
Updated mod for SMF 2.0 RC3!
1.3
+Added SMF 2.0 RC3 Support
Hi there,
Once again a great mod VBGamer :D
I have one small problem...... when I upload an image it only shows as a thumbnail within my article as opposed to full size. There is no thumbnail showing beside the Article name.
Any ideas?
I belive that's what it does by default adds the thumbnail with a link to the larger image.
Thanks for the response.
I don't get a link to the larger image showing. The larger image has been uploaded into the folder on my server.
It is not a major deal as my users will have no problem linking to an external site for images and adding them to their articles.
I may remove the upload facility altogether.
Is there still no way that users can be informed that a new article has been submitted yet?
I am using SMF 1.1.11
Donated :-*
Thanks for your time and your mods 8)
Quote from: new2PHP on February 02, 2010, 03:24:39 PM
The other thing I see "missing" from the SMF articles mod is that the Sitemap mod does not appear to pick up the articles - but there are plenty of web workarounds for sitemap issues.
Is there any workaround to get SMF Articles into the sitemap mod?
Quote from: BLueSS on March 13, 2010, 06:26:18 AM
Quote from: new2PHP on February 02, 2010, 03:24:39 PM
The other thing I see "missing" from the SMF articles mod is that the Sitemap mod does not appear to pick up the articles - but there are plenty of web workarounds for sitemap issues.
Is there any workaround to get SMF Articles into the sitemap mod?
Not at this time.
Quote
Is there still no way that users can be informed that a new article has been submitted yet?
Not yet like an unread system? Or like a pm on new article?
Hi,
Just trying this mod out on 2.0RC3 and I have created one category, made 3 articles and lal is great.
I created a sub-category (a child if you like) but I wish to move it (make it not a child) or delete it but there is not option for this.
Any suggestions appreciated, obviously I don't want to delete the parent.
Cheers
G
Go inside the parent category. The subcategories should be listed above and you can find the edit/delete links there.
@vbgamer45
Thanks very much for the response...all sorted!
I'm so sure that wasn't there before when I looked.
It's a great mod by the way, works really well in conjunction with the redirect boards on 2.0RC3.
Cheers
G
hope there is a code for tinyportal block. tq
Hi,
Attached you will find Articles.spanish_es-utf8.php and and Articles.spanish_es.php for SMF Articles 1.3:
And here are the language strings for articles.xml and articles2.xml
spanish_es-utf8
<file name="$languagedir/Modifications.spanish_es-utf8.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles Text Strings
$txt['smfarticles_menu'] = 'Artículos';
$txt['smfarticles_admin'] = 'Configuración de Artículos';
$txt['permissiongroup_smfarticles'] = 'Artículos SMF';
$txt['permissionname_view_articles'] = 'Ver Artículos';
$txt['permissionhelp_view_articles'] = 'Define si el usuario puede ver los artículos.';
$txt['cannot_view_articles'] = 'No puedes ver la página de artículos.';
$txt['permissionname_add_articles'] = 'Añadir Artículo';
$txt['permissionhelp_add_articles'] = 'Si el usuario puede enviar artículos';
$txt['cannot_add_articles'] = 'No puedes añadir artículos.';
$txt['permissionname_edit_articles'] = 'Editar Artículos propios';
$txt['permissionhelp_edit_articles'] = 'Si el usuario puede editar sus propios artículos';
$txt['cannot_edit_articles'] = 'No puedes editar artículos.';
$txt['permissionname_delete_articles'] = 'Borrar Artículos propios';
$txt['permissionhelp_delete_articles'] = 'Si el usuario puede borrar sus propios artículos';
$txt['cannot_delete_articles'] = 'No puedes borrar artículos.';
$txt['permissionname_articles_comment'] = 'Dejar Comentarios';
$txt['permissionhelp_articles_comment'] = 'Permite al usuario comentar los artículos.';
$txt['cannot_articles_comment'] = 'No puedes dejar comentarios.';
$txt['permissionname_articles_auto_approve'] = 'Auto-Aprobación de Artículos';
$txt['permissionhelp_articles_auto_approve'] = 'Si los artículos de este usuario se aprueban de forma automática cuando los envía';
$txt['permissionname_articles_autocomment'] = 'Auto-Aprobación de Comentarios';
$txt['permissionhelp_articles_autocomment'] = 'Comentarios que no necesitan ser revisados para aprobación.';
$txt['permissionname_rate_articles'] = 'Valorar Artículos';
$txt['permissionhelp_rate_articles'] = 'Si el usuario puede valorar artículos';
$txt['cannot_rate_articles'] = 'No puedes valorar artículos.';
$txt['permissionname_articles_admin'] = 'Administrar Artículos';
$txt['permissionhelp_articles_admin'] = 'El usuario podrá administrar los artículos';
$txt['cannot_articles_admin'] = 'No puedes administrar los artículos.';
// END SMF Articles Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Who.spanish_es-utf8.php">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles
$txt['whoall_articles'] = 'Viendo <a href="' . $scripturl . '?action=articles">' . $txt['smfarticles_menu'] . '</a>';
// END SMF Articles Strings
]]></add>
</operation>
</file>
spanish_es
<file name="$languagedir/Modifications.spanish_es.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles Text Strings
$txt['smfarticles_menu'] = 'Artículos';
$txt['smfarticles_admin'] = 'Configuración de Artículos';
$txt['permissiongroup_smfarticles'] = 'Artículos SMF';
$txt['permissionname_view_articles'] = 'Ver Artículos';
$txt['permissionhelp_view_articles'] = 'Define si el usuario puede ver los artículos.';
$txt['cannot_view_articles'] = 'No puedes ver la página de artículos.';
$txt['permissionname_add_articles'] = 'Añadir Artículo';
$txt['permissionhelp_add_articles'] = 'Si el usuario puede enviar artículos';
$txt['cannot_add_articles'] = 'No puedes añadir artículos.';
$txt['permissionname_edit_articles'] = 'Editar Artículos propios';
$txt['permissionhelp_edit_articles'] = 'Si el usuario puede editar sus propios artículos';
$txt['cannot_edit_articles'] = 'No puedes editar artículos.';
$txt['permissionname_delete_articles'] = 'Borrar Artículos propios';
$txt['permissionhelp_delete_articles'] = 'Si el usuario puede borrar sus propios artículos';
$txt['cannot_delete_articles'] = 'No puedes borrar artículos.';
$txt['permissionname_articles_comment'] = 'Dejar Comentarios';
$txt['permissionhelp_articles_comment'] = 'Permite al usuario comentar los artículos.';
$txt['cannot_articles_comment'] = 'No puedes dejar comentarios.';
$txt['permissionname_articles_auto_approve'] = 'Auto-Aprobación de Artículos';
$txt['permissionhelp_articles_auto_approve'] = 'Si los artículos de este usuario se aprueban de forma automática cuando los envía';
$txt['permissionname_articles_autocomment'] = 'Auto-Aprobación de Comentarios';
$txt['permissionhelp_articles_autocomment'] = 'Comentarios que no necesitan ser revisados para aprobación.';
$txt['permissionname_rate_articles'] = 'Valorar Artículos';
$txt['permissionhelp_rate_articles'] = 'Si el usuario puede valorar artículos';
$txt['cannot_rate_articles'] = 'No puedes valorar artículos.';
$txt['permissionname_articles_admin'] = 'Administrar Artículos';
$txt['permissionhelp_articles_admin'] = 'El usuario podrá administrar los artículos';
$txt['cannot_articles_admin'] = 'No puedes administrar los artículos.';
// END SMF Articles Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Who.spanish_es.php">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles
$txt['whoall_articles'] = 'Viendo <a href="' . $scripturl . '?action=articles">' . $txt['smfarticles_menu'] . '</a>';
// END SMF Articles Strings
]]></add>
</operation>
</file>
Thank you very much your translation!
Hi,
I'm having problems with SMF Articles 1.3 for SMF 2.0 RC3
The "Article" link takes me to the path "public_html/smf/article". The index.php file there has got just one line "Access Denied", which is what I see when I try to use the "Article" link in the menu.
http://www.videoedicion.org/foro/articles/
Besides, I cannot find where should I create new categories and articles. The only options I see are "Settings - Approve Articles (0) - Approve Comments (0) - Category Permission List - Import
Any help?
Thanks in advance.
Regards
The article link should point to
http://www.videoedicion.org/foro/index.php?action=articles
And on that page there should be a place to add categories.
Quote from: vbgamer45 on April 02, 2010, 09:24:09 AM
The article link should point to
http://www.videoedicion.org/foro/index.php?action=articles (http://www.videoedicion.org/foro/index.php?action=articles)
And on that page there should be a place to add categories.
Thanks so much for replying.
The link you provide just redirectos to http://www.videoedicion.org/foro/articles/ and shows the "Access Denied" message.
Besides, I have just installed the Download System and I have the same issue. The link http://www.videoedicion.org/foro/download/ just takes me nowhere.
Please, have a look at the menus of both modules and tell me if they look like the should.
Thanks a lot for taking the trouble.
Regards,
Admin menus look fine.
I think you have some kind of url rewriting system enabled that is not working correctly with any mod that ads an action.
And... bingo!
Thanks for the tip!
Glad you got it figured out.
New update for SMF 2.0
1.3.1
+Updated style for articles system for SMF 2.0 RC3 to be more curve
Thanks vbgamer45
problem edit articles ?
1: articles published no problem
(http://i44.tinypic.com/2qc06fo.png)
2: articles edit problem <br> </br> <br> </br>.......
(http://i41.tinypic.com/j96lv4.png)
3: articles edit and save big problem <br> </br> <br> </br>.......
(http://i41.tinypic.com/bgryj8.png)
Looks to me like a missing un_preparsecode when regenerating the form.
New update to fix edit article issue
1.3.2
!Fixed edit article bug for SMF 2.0 thanks to Arantor
my articles v1.3.1
how to manually update ? v1.3.2
Just install the latest version it includes an auto update function.
When I uploaded the 1.3.2 version, in the Packages screen, it still shows it at 1.3.1 how can I fix this?
You can't fix it but it is ok to ignore.
Is this a problem within my forum, or just the package didn't have the new version?
Just package i forget to have new version.
Ok, will you fix and re-upload? just want to make sure it shows correct so I don't go and update it later if I forget
Hi, thank yoU!!
Are you going to upgrade the curves look on LINKS, Contact Mod, and Ad seller PRO?
Great work!
I just did links
AWESOME! Thanks!
articles v1.3.2 reupload update ok
articles view no problem
articles edit problem error ?
Fatal error: Call to undefined function un_preparsecode() in /-----/-----/public_html/Sources/Articles2.php on line 859
Sorry fixed now redownload again from mod site.
Thanks vbgamer45
update new version no problem
Are you working on Contact Mod? Also, Ad Seller Pro?
Your Mods are great, thank you so much.
Yes slowly one by one doing classifieds now.
Ok, great! Thank you! Classifieds PRo is the next one I want to buy from you, when I get some cash soon. I like that mod too!
I have a question
allow edit own articles user
published, own articles user not want the user to make edits
how to make ?
Thanks.
vB,...
I have a question regarding the articles database with user ID's.
I created a membergroup called "editor" and appointed a member i created in which the member ID is #295. Me as admin member #1, wrote most articles. I dont want these articles to show under my name anymore. I want to swap user ID's in the database to these articles.
While looking at the articles database, i looked at "browse" and found it. Can i go ahead edit the user ID there from #1 to #295? Is there somewhere else i need to also go?
That's it. That will change the ownership of the article over to that person.
Quote from: vbgamer45 on April 14, 2010, 10:17:54 AM
That's it. That will change the ownership of the article over to that person.
That's what i thought. You rock man, thanx.
Is there a way to list the articles by Alphabetical vs date? I didn't see a setting anywhere and a project I'm working would require the default listing to alphabetical listing opposed to the default of by date posted.
I'm guessing you could hard code it, but well I'm not that bright to know what or where to change.
Yeah you would have to edit Sources/Articles.php to change it from ID_ARTICLE DESC to date instead
Thank you, I'll give it a try.
I think I confused myself or maybe you. I found ID_ARTICLE DESC ,but I'm confused exactly what to change. I'm trying to change it to list be alpha and you mentioned time.
Yeah you need to change it to the date column of the article.
I use this mod.
But I have one question, I use the "description" for the price. Is there any way to change this that people only put numbers inside? Sorry for my english
Thanks for helping
you would have to edit the source....
Quote from: Kindred on May 10, 2010, 09:35:55 AM
you would have to edit the source....
I am laughing I was thinking I edit what...
I know that I have to edit the source. But I do what?
ok, foolish question time.
due to restoration issue I need to reinstall. I manually deleted all sql tables (6 iirc) articles_ cleared cache and deleted package off server. when I reinstall old categories are still listed when I try to move a post to article.
did I miss something when uninstalling?
thanks.
edit: when I go directly to articles and add from there its correct, its just when trying to add a post to article that the old category is shown and any new ones are not shown.
Probably missed removing the articles_cat sql table
I specifically made sure that one was removed, twice actually.
I'm at a loss :)
That's the only place that I store data only in the database tables not in any files.
would there be a table not named in same convention as others?
attached is screenshot of ones I dropped.
No.
even odder is that after removing it the add to article button shows up under all themes and points to the non-existent category.
going to try looking at all templates and manually removing any reference to article and see what happens.
I like the mod so want to make sure its working here, I appreciate the input and work you've done.
boy I feel foolish, the add to article showing under topics was for simple portal article system and not for this mod.
As far as I can tell this mod is working correctly.
for some reason I had thought this one added the add as article buttons under topics, sorry for the confusion.
Ah makes sense glad you found out what it was.
did a database search for the errant category and found it in sp_ table...knew then I was an idiot :)
Hi, I am running SMF1.1.11 and the Babylon theme and have installed this mod. I can see the article conf panel under CONFIGURATION but no button linking to articles. If I switch to the default theme I can see the button. What do I need to do to see the button in Babylon please? Thanks.
You would need to edit the index.template.php of the babylon theme to include a link/button for the articles
Thanks VBGamer. Is there any script already written that I can copy and add to the index.template.php that you know of? I have no idea what to write and where to put it...
No because for 1.1.x of SMF you have to do it manually
http://docs.simplemachines.org/index.php?topic=1032.0
I used this script and it works, just need to make a button as similar to the existing ones as possible.
I'm using SMF 2.0 RC3 and when I try to add a category I get a 403 Forbidden Error... Any ideas how I can fix this? (I'm Admin so permissions shouldnt be the issue).
403 error sounds like either a webserver permissions issue or an issue with mod_security that has to be disabled by the host.
Quote from: vbgamer45 on May 22, 2010, 01:52:13 PM
403 error sounds like either a webserver permissions issue or an issue with mod_security that has to be disabled by the host.
Neither of those mean anything to me - any idea how I can fix it?
Actually dont worry, I wont be using the mod, wasnt a fan of it when I used it last time and I dont want to go faffing about in some settings that could cause more issues than they solve.
Thanks anyway!
is there any way to give a single category permission to a single user?
No only membergroups.
Not sure if this has been asked already, but it would be cool to be able to add a thumbnail to the articles in the article list.
Nice idea maybe one day
good morning,
I'm having problems with SMF Articles 1.3.2.a -SMF 2.0 RC3 - Simple portal: www.irwin.it is free to check for the moment.
the problem is this i an see the article inside the right page:
http://www.irwin.it/index.php?action=articles;sa=view;article=1
But not in the home page "Articles blocks":
on the home page you find the title " articoli e spunti "
do u have any idea please :-)
I don't know how Simple Portal articles block works sorry
Hi Guys
Just installed the mod & it looks good ;D
One question though in the summary box I'm putting a brief description & business address but need it to section these off with line breaks & paragraphs
Ive tried HTML break & paragraphs codes but it wont work
Any ideas
Thanks in advance
I do not believe that the summary box allows that..
Quote from: Kindred on June 22, 2010, 02:16:33 PM
I do not believe that the summary box allows that..
Ah!
Maybe an idea for an updated version then?
Minor Bugfix
!Fixed issue with MySQL 5.5 since it no longer supports the Type for create tables uses Engine instead
Hmm.. I noticed people can only upload 1 image meanwhile I changed my settings to 10.
Is this a "bug"?
Maybe what SMF version?
I'm using it at SMF 2.0 RC3.
Quote from: Arantor on February 24, 2010, 12:34:43 PM
Quote from: qubbah on February 24, 2010, 12:11:35 PM
hope there is a code to show latest article in block for portal. tq
Which portal? SimplePortal, TinyPortal, Ezportal, PortaMX, Dream Portal?
for tinyportal
You would have to code one or analyze the block code from ezPortal don't have one that is standalone yet.
Did you already check on the "bug"? :)
No. I think there is only one upload field shown at a time.
But if you edit you can add more files.
Aw.. Are you planning to update so you can upload more images?
It would be nice.
And thanks for your awesome mods and support :)
*bump*
Even when editing you still can't upload more images..
And you can't even use it properly..
hello again , anybody knows how can i recal SSI function for SMF articles?
thank you in advance
irwin
you would have to write the script.... this mod does not come with any SSI scripts written
Easy to do though just a couple queries to smf_articles database tables and you can get the articles.
it's ok vbgamer45, u love too much the database query :-P
but isn't so easy for me... can u give me a little script to do this please.
so i can use for links and for article.. thank you in advance.
Please seriously consider multi-language (utf8) support as so far doesn't work. thanks!!!
hi! any idea how to add fshare button to articles? I already installed SA-Facebook integration, and i'm thinking if i can modify the articles area to have fshare button..
thanks..
I think you just need to add it to the articles.template.php and that should be it under view article
hmmm.... problem.
It appears that the notice "your article must be approved before it is visible" uses the fatal_error command/template.
This is very confusing to the user because the box has the heading "An Error Has Occurred"
IMO the display should not be using the error message template for this screen.... I like the "box display" but I do nto see an easy way to remove the "error" message in the heading.
Yeah what I do some of my mods is use a modified version of that box for the error display since then I can set the box title/page title.
you would have to change the CODE in the source and template files that looks for contents under that path. Probably have to re-configure the url code as well
will this give any boost to SEO of our forums???
this has nothing to do with seo
This is a really great mod. I plan to try something with it. I have a referral system on and i already promised to compensate anyone that refers 25 people to submit articles for free with their ads and backlinks inside but the article system in simpleportal is not working as i want. Now i want to use this article mod, is there a way to add an adsense code into it?
You can add adsense by editing the article.template.php and just put the code where you want it show up.
HI, great mod and im trying it.
Installed ok, but can not see any "Article" tab (im not sure what you call it) at the top among "Home", Help, Search, Logout, etc. Im using Headline as my theme.
I tried to see if the "article" tab will show on other theme and it showed on SMF Default Theme -core.
Is there any coding I need in order for it to show? Please help me on this.
Thanks
Edit: I figured it out how to put the Article button on top but the problem is the link give me an ERROR 500. the link is http://.........../forum/articles as what in article setting says its URL.
It also says:
Common reasons for this error are:
Incorrect file/directory permissions: Above 755. In order files to be processed by the webserver, their permissions have to be equal or below 755. You can update file permissions with a FTP client or through cPanel's File Manager.
Incorrect Apache directives inside .htaccess file. Make sure you have not specified unsupported directives inside the local .htaccess file. Such include PHP settings and Apache module settings.
Now I dont know what to do? Help me please. thanks
The article url is http://www.yourforum.com/index.php?action=articles
Got it thanks.
But I didnt put the whole URL only the "?action=articles". If I put the whole it just browse on the forum index.
Thanks vbgamer45
Thanks for this mod...
Here is the danish translation
Best regards
Henrik Poulsen
Articles.danish.php
<?php
/*
SMF Article System
Version 1.1
by:vbgamer45
http://www.smfhacks.com
*/
$txt['smfarticles_title'] = 'Artikler';
$txt['smfarticles_indextitle'] = 'Artikler';
$txt['smfarticles_editarticle'] = 'Rediger artikel';
$txt['smfarticles_nocatabove'] = 'Der er ingen kategori over den nuværende.';
$txt['smfarticles_nocatbelow'] = 'Der er ingen kategori under den nuværende.';
$txt['smfarticles_noarticletitle'] = 'Du skal indtaste en artikel titel';
$txt['smfarticles_articleneedsapproval'] = 'Bemærk: Din artikel skal godkendes før den bliver vist.';
$txt['smfarticles_noarticletext'] = 'Du skal indtaste artikel tekst!';
$txt['smfarticles_setarticlessperpage'] = 'Artikler pr. side ';
$txt['smfarticles_listingdisplay'] = 'Article Listings Display';
$txt['smfarticles_countsubcats'] = 'Medtæl Sub kategorier i antal artikler. <br />(Uses more queries)';
$txt['smfarticles_enableratings'] = 'Aktiver bedømmelse';
$txt['smfarticles_enablecomments'] = 'Aktiver kommentarer';
$txt['smfarticles_disp_description'] = 'Vis beskrivelse';
$txt['smfarticles_disp_views'] = 'Vis antal visninger';
$txt['smfarticles_disp_rating'] = 'Vis bedømmelse';
$txt['smfarticles_disp_membername'] = 'Vis medlemsnavn';
$txt['smfarticles_disp_date'] = 'Vis dato';
$txt['smfarticles_disp_totalcomment'] = 'Vis kommentar antal';
$txt['smfarticles_settings_save'] = 'Gem indstillinger';
$txt['smfarticles_txtguest'] = 'Gæst';
$txt['smfarticles_pages'] = 'Sider: ';
$txt['smfarticles_approvearticles'] = 'Godkend artikel';
$txt['smfarticles_ctitle'] = 'Titel ';
$txt['smfarticles_text_catnone'] = '(Ingen)';
$txt['smfarticles_noarticleselected'] = 'Ingen artikel valgt';
$txt['smfarticles_err_no_rating_selected'] = 'Ingen bedømmelse valgt';
$txt['smfarticles_submittedby'] = 'Indsendt af';
$txt['smfarticles_category'] = 'Kategori ';
$txt['smfarticles_parentcategory'] = 'Ovenstående kategori';
$txt['smfarticles_articlesconfig'] = 'Indstillinger';
$txt['smfarticles_text_reorder'] = 'Flyt';
$txt['smfarticles_options'] = 'Valgmuligheder';
$txt['smfarticles_description'] = 'Beskrivelse';
$txt['smfarticles_totalarticles'] = 'Antal artikler';
$txt['smfarticles_articlespanel'] = 'Artikel Admin Panel';
$txt['smfarticles_articlessettings'] = 'Indstillinger';
$txt['smfarticles_addcat'] = 'Tilføj kategori';
$txt['smfarticles_addarticle'] = 'Tilføj artikel';
$txt['smfarticles_waitingapproval'] = ' artikler afventer godkendelse';
$txt['smfarticles_thereare'] = 'Der er ';
// Category permission strings
$txt['smfarticles_catpermlist'] = 'Kategori rettighedsliste';
$txt['smfarticles_text_catperm'] = 'Kategori rettighed';
$txt['smfarticles_text_addperm'] = 'Tilføj rettighed';
$txt['smfarticles_groupname'] = 'Medlemsgruppe';
$txt['smfarticles_perm_view'] = 'Vis';
$txt['smfarticles_perm_add'] = 'Tilføj aktikel';
$txt['smfarticles_perm_edit'] = 'Rediger egen artikel';
$txt['smfarticles_perm_delete'] = 'Slet egen artikel';
$txt['smfarticles_perm_addcomment'] = 'Tilføj kommentar';
$txt['smfarticles_permerr_permexist'] = 'En rettighed eksisterer allerede for denne gruppe og kategori. Slet venligst denne først.';
$txt['smfarticles_perm_allowed'] = 'Tilladt';
$txt['smfarticles_perm_denied'] = 'Afvist';
$txt['smfarticles_form_viewratings'] = 'Vis bedømmelse';
$txt['smfarticles_error_already_rated'] = 'Du har allerede bedøt denne artikel.';
$txt['smfarticles_error_norate_own'] = 'Du kan ikke bedømme egne artikler.';
$txt['smfarticles_error_no_rating_selected'] = 'Ingen bedømmelse valgt.';
// Latest Version:
$txt['smfarticles_txt_latestversion'] = 'Seneste version: ';
$txt['smfarticles_txt_yourversion'] = 'Din version: ';
$txt['smfarticles_txt_version_outofdate'] = 'Dit artikel system er ikke seneste version!';
$txt['smfarticles_nofirstcat'] = 'Du skal oprette en kategori før du kan tilføje en arktikel';
$txt['smfarticles_image'] = 'Billede URL';
$txt['smfarticles_txtup'] = '[Op]';
$txt['smfarticles_txtdown'] = '[Ned]';
$txt['smfarticles_txt_perm'] = '[Rettigheder]';
$txt['smfarticles_txtedit'] = '[Rediger]';
$txt['smfarticles_txtdel'] = '[Slet]';
$txt['smfarticles_txtunapprove'] = '[Afvist]';
$txt['smfarticles_txtapprove'] = '[Godkend]';
$txt['smfarticles_sub_cats'] = 'Sub kategorier: ';
$txt['smfarticles_editcat'] = 'Rediger kategori';
$txt['smfarticles_deltcat'] = 'Slet kategori';
$txt['smfarticles_warndel2'] = 'Advarsel - Dette vil <b>SLETTE</b> alle artikler i denne kategori!';
$txt['smfarticles_myarticles'] = 'Mine artikler';
$txt['smfarticles_search'] = 'Søg';
$txt['smfarticles_text_addsubcat'] = 'Tilføj Sub kategori';
$txt['smfarticles_returnindex'] = 'Returner til artikel indeks';
$txt['smfarticles_returnart'] = 'Retur til artikel';
$txt['smfarticles_comwaitapproval'] = ' kommentarer afventer godkendelse: ';
$txt['smfarticles_articlecheckapproval'] = 'Kontroller artikel godkendelsesliste';
$txt['smfarticles_comcheckapproval'] = 'Kontroller kommentar godkendelsesliste';
$txt['smfarticles_form_approvecomments'] = 'Godkend kommentarer';
$txt['smfarticles_cviews'] = 'Visninger';
$txt['smfarticles_crating'] = 'Bedømmelse';
$txt['smfarticles_cusername'] = 'Indsendt af';
$txt['smfarticles_cdate'] = 'Dato';
$txt['smfarticles_articletext'] = 'Artikel tekst';
$txt['smfarticles_txt_comments'] = 'Kommentarer';
// Permissions
$txt['smfarticles_perm_no_view'] = 'Du har ikke rettigheder til at se denne kategori.';
$txt['smfarticles_perm_no_add'] = 'Du har ikke rettigheder til at tilføje en artikel i denne kategori.';
$txt['smfarticles_perm_no_edit'] = 'Du har ikke rettigheder til at redigere en artikel i denne kategori.';
$txt['smfarticles_perm_no_delete'] = 'Du har ikke rettigheder til at slette en artikel i denne kategori.';
$txt['smfarticles_perm_no_rate'] = 'Du har ikke rettigheder til at bedømme en artikel i denne kategori.';
$txt['smfarticles_perm_no_editcomment'] = 'Du har ikke rettigheder til at redigere kommentarer i denne kategori.';
$txt['smfarticles_perm_no_addcomment'] = 'Du har ikke rettigheder til at tilføje kommentarer i denne kategori.';
$txt['smfarticles_perm_no_report'] = 'Du har ikke rettigheder til at rapportere indhold i denne kategori.';
//Search Page
$txt['smfarticles_search_article'] = 'Søg efter artikler';
$txt['smfarticles_search_for'] = 'Søg efter:';
$txt['smfarticles_search_title'] = 'Søg artikel titel';
$txt['smfarticles_search_description'] = 'Søg artikel resume';
$txt['smfarticles_search'] = 'Søg';
$txt['smfarticles_search_days30'] = 'Sidste 30 dage';
$txt['smfarticles_search_days60'] = 'Sidste 60 dage';
$txt['smfarticles_search_days90'] = 'Sidste 90 dage';
$txt['smfarticles_search_days180'] = 'Sidste 180 dage';
$txt['smfarticles_search_days365'] = 'Sidste 365 dage';
$txt['smfarticles_search_alltime'] = 'Alle dage';
$txt['smfarticles_search_daterange'] = 'Dato område: ';
$txt['smfarticles_search_membername'] = 'Indsendt af (medlemsnavn): ';
$txt['smfarticles_search_advsearch'] = 'Avancerede søge muligheder';
$txt['smfarticles_searchresults'] = 'Søge resultater';
$txt['smfarticles_commentlist'] = 'Kommentarliste';
$txt['smfarticles_summary'] = 'Resume ';
$txt['smfarticles_summary2'] = 'Resume: ';
$txt['smfarticles_submittedby2'] = 'Indsendt af : ';
$txt['smfarticles_date2'] = 'Dato: ';
$txt['smfarticles_views2'] = 'Visninger: ';
$txt['smfarticles_err_articlenotapproved'] = 'Denne artikel er ikke godkendt endnu.';
$txt['smfarticles_perm_no_view_article'] = 'Du har ikke rettigheder til at se denne artikel.';
$txt['smfarticles_delarticle'] = 'Slet artikel';
$txt['smfarticles_warndel'] = 'Advarsel - Dette vil slette artiklen og du har ikke mulighed for at gendanne den!';
$txt['smfarticles_err_articleedit'] = 'Du har ikke rettigheder til at redigere denne artikel.';
$txt['smfarticles_err_articledelete'] = 'Du har ikke rettigheder til at slette denne artikel.';
$txt['smfarticles_comment_link'] = 'Kommentar link';
$txt['smfarticles_view_comment'] = 'Vis kommentar';
$txt['smfarticles_approveallcomments'] = 'Godkendt alle kommentarer';
$txt['smfarticles_error_no_search'] = 'Du har ikke indtastet noget i søgefeltet...';
$txt['smfarticles_error_ratingsdisabled'] = 'Bedømmelse er deaktiveret';
$txt['smfarticles_error_no_com_selected'] = 'Ingen kommentar valgt';
$txt['smfarticles_form_viewratings'] = 'Vis bedømmelse';
$txt['smfarticles_form_ratearticle'] = 'Bedøm artikel';
$txt['smfarticles_form_norating'] = 'Denne artikel er ikke blevet bedømt endnu.';
$txt['smfarticles_form_rating'] = 'Bedømmelse';
$txt['smfarticles_form_ratingby'] = ' af ';
$txt['smfarticles_form_ratingmembers'] = ' medlemmer.';
$txt['smfarticles_text_rating'] = 'Bedømmelse';
$txt['smfarticles_txtedit3'] = 'Rediger';
$txt['smfarticles_txtdel3'] = 'Slet';
$txt['smfarticles_text_comments'] = 'Kommentarer';
$txt['smfarticles_text_addcomment'] = 'Tilføj kommentar';
$txt['smfarticles_error_no_comment'] = 'Ingen kommentar indtastet';
$txt['smfarticles_text_commentwait'] = 'Din kommentar vil ikke blive vist før det er blevet godkendt.';
$txt['smfarticles_posts'] = 'Posts: ';
$txt['smfarticles_text_delcomment'] = '[Slet]';
$txt['smfarticles_nocattitle'] = 'Du har ikke indtastet en kategory titel';
$txt['smfarticles_nocatselected'] = 'Ingen kategori valgt';
$txt['smfarticles_error_search_small'] = 'Søgetekst er for lille. Skal være længere end 3 karakterer.';
$txt['smfarticles_txt_import'] = 'Importer';
$txt['smfarticles_txt_importtparticles'] = 'Importer TinyPortal artikler';
$txt['smfarticles_txt_importedarticles'] = 'Importerede artikler';
$txt['smfarticles_txt_recount_article_totals'] = 'Genoptæl antal artikler';
$txt['smfarticles_txt_image_settings'] = 'Billede indstillinger';
$txt['smfarticles_allow_attached_images'] = 'Tillad vedhæftelse af billeder';
$txt['smfarticles_max_num_attached'] = 'Antal af tilladte billeder pr. artikel';
$txt['smfarticles_max_filesize'] = 'Max filstørrelse for vedhæftede billede';
$txt['articles_url'] = 'Artikel URL';
$txt['articles_path'] = 'Artikel sti';
$txt['smfarticles_txt_upload_image'] = 'Upload billede';
$txt['smfarticles_error_invalid_picture'] = 'Ikke et godkendt billede filformat';
$txt['smfarticles_error_img_filesize'] = 'Billede overstiger mas filstørrelse på ';
$txt['smfarticles_error_max_attached_images'] = 'Overstiger max antal vedhæftede billeder for denne artikel. Denne begrænsning er ';
$txt['smfarticles_images_view_article'] = 'Vis billeder på vis artikel side';
$txt['smfarticles_err_article_not_found'] = 'Artikel ikke fundet';
?>
Articles.danish-utf8.php
<?php
/*
SMF Article System
Version 1.1
by:vbgamer45
http://www.smfhacks.com
*/
$txt['smfarticles_title'] = 'Artikler';
$txt['smfarticles_indextitle'] = 'Artikler';
$txt['smfarticles_editarticle'] = 'Rediger artikel';
$txt['smfarticles_nocatabove'] = 'Der er ingen kategori over den nuværende.';
$txt['smfarticles_nocatbelow'] = 'Der er ingen kategori under den nuværende.';
$txt['smfarticles_noarticletitle'] = 'Du skal indtaste en artikel titel';
$txt['smfarticles_articleneedsapproval'] = 'Bemærk: Din artikel skal godkendes før den bliver vist.';
$txt['smfarticles_noarticletext'] = 'Du skal indtaste artikel tekst!';
$txt['smfarticles_setarticlessperpage'] = 'Artikler pr. side ';
$txt['smfarticles_listingdisplay'] = 'Article Listings Display';
$txt['smfarticles_countsubcats'] = 'Medtæl Sub kategorier i antal artikler. <br />(Uses more queries)';
$txt['smfarticles_enableratings'] = 'Aktiver bedømmelse';
$txt['smfarticles_enablecomments'] = 'Aktiver kommentarer';
$txt['smfarticles_disp_description'] = 'Vis beskrivelse';
$txt['smfarticles_disp_views'] = 'Vis antal visninger';
$txt['smfarticles_disp_rating'] = 'Vis bedømmelse';
$txt['smfarticles_disp_membername'] = 'Vis medlemsnavn';
$txt['smfarticles_disp_date'] = 'Vis dato';
$txt['smfarticles_disp_totalcomment'] = 'Vis kommentar antal';
$txt['smfarticles_settings_save'] = 'Gem indstillinger';
$txt['smfarticles_txtguest'] = 'Gæst';
$txt['smfarticles_pages'] = 'Sider: ';
$txt['smfarticles_approvearticles'] = 'Godkend artikel';
$txt['smfarticles_ctitle'] = 'Titel ';
$txt['smfarticles_text_catnone'] = '(Ingen)';
$txt['smfarticles_noarticleselected'] = 'Ingen artikel valgt';
$txt['smfarticles_err_no_rating_selected'] = 'Ingen bedømmelse valgt';
$txt['smfarticles_submittedby'] = 'Indsendt af';
$txt['smfarticles_category'] = 'Kategori ';
$txt['smfarticles_parentcategory'] = 'Ovenstående kategori';
$txt['smfarticles_articlesconfig'] = 'Indstillinger';
$txt['smfarticles_text_reorder'] = 'Flyt';
$txt['smfarticles_options'] = 'Valgmuligheder';
$txt['smfarticles_description'] = 'Beskrivelse';
$txt['smfarticles_totalarticles'] = 'Antal artikler';
$txt['smfarticles_articlespanel'] = 'Artikel Admin Panel';
$txt['smfarticles_articlessettings'] = 'Indstillinger';
$txt['smfarticles_addcat'] = 'Tilføj kategori';
$txt['smfarticles_addarticle'] = 'Tilføj artikel';
$txt['smfarticles_waitingapproval'] = ' artikler afventer godkendelse';
$txt['smfarticles_thereare'] = 'Der er ';
// Category permission strings
$txt['smfarticles_catpermlist'] = 'Kategori rettighedsliste';
$txt['smfarticles_text_catperm'] = 'Kategori rettighed';
$txt['smfarticles_text_addperm'] = 'Tilføj rettighed';
$txt['smfarticles_groupname'] = 'Medlemsgruppe';
$txt['smfarticles_perm_view'] = 'Vis';
$txt['smfarticles_perm_add'] = 'Tilføj aktikel';
$txt['smfarticles_perm_edit'] = 'Rediger egen artikel';
$txt['smfarticles_perm_delete'] = 'Slet egen artikel';
$txt['smfarticles_perm_addcomment'] = 'Tilføj kommentar';
$txt['smfarticles_permerr_permexist'] = 'En rettighed eksisterer allerede for denne gruppe og kategori. Slet venligst denne først.';
$txt['smfarticles_perm_allowed'] = 'Tilladt';
$txt['smfarticles_perm_denied'] = 'Afvist';
$txt['smfarticles_form_viewratings'] = 'Vis bedømmelse';
$txt['smfarticles_error_already_rated'] = 'Du har allerede bedøt denne artikel.';
$txt['smfarticles_error_norate_own'] = 'Du kan ikke bedømme egne artikler.';
$txt['smfarticles_error_no_rating_selected'] = 'Ingen bedømmelse valgt.';
// Latest Version:
$txt['smfarticles_txt_latestversion'] = 'Seneste version: ';
$txt['smfarticles_txt_yourversion'] = 'Din version: ';
$txt['smfarticles_txt_version_outofdate'] = 'Dit artikel system er ikke seneste version!';
$txt['smfarticles_nofirstcat'] = 'Du skal oprette en kategori før du kan tilføje en arktikel';
$txt['smfarticles_image'] = 'Billede URL';
$txt['smfarticles_txtup'] = '[Op]';
$txt['smfarticles_txtdown'] = '[Ned]';
$txt['smfarticles_txt_perm'] = '[Rettigheder]';
$txt['smfarticles_txtedit'] = '[Rediger]';
$txt['smfarticles_txtdel'] = '[Slet]';
$txt['smfarticles_txtunapprove'] = '[Afvist]';
$txt['smfarticles_txtapprove'] = '[Godkend]';
$txt['smfarticles_sub_cats'] = 'Sub kategorier: ';
$txt['smfarticles_editcat'] = 'Rediger kategori';
$txt['smfarticles_deltcat'] = 'Slet kategori';
$txt['smfarticles_warndel2'] = 'Advarsel - Dette vil <b>SLETTE</b> alle artikler i denne kategori!';
$txt['smfarticles_myarticles'] = 'Mine artikler';
$txt['smfarticles_search'] = 'Søg';
$txt['smfarticles_text_addsubcat'] = 'Tilføj Sub kategori';
$txt['smfarticles_returnindex'] = 'Returner til artikel indeks';
$txt['smfarticles_returnart'] = 'Retur til artikel';
$txt['smfarticles_comwaitapproval'] = ' kommentarer afventer godkendelse: ';
$txt['smfarticles_articlecheckapproval'] = 'Kontroller artikel godkendelsesliste';
$txt['smfarticles_comcheckapproval'] = 'Kontroller kommentar godkendelsesliste';
$txt['smfarticles_form_approvecomments'] = 'Godkend kommentarer';
$txt['smfarticles_cviews'] = 'Visninger';
$txt['smfarticles_crating'] = 'Bedømmelse';
$txt['smfarticles_cusername'] = 'Indsendt af';
$txt['smfarticles_cdate'] = 'Dato';
$txt['smfarticles_articletext'] = 'Artikel tekst';
$txt['smfarticles_txt_comments'] = 'Kommentarer';
// Permissions
$txt['smfarticles_perm_no_view'] = 'Du har ikke rettigheder til at se denne kategori.';
$txt['smfarticles_perm_no_add'] = 'Du har ikke rettigheder til at tilføje en artikel i denne kategori.';
$txt['smfarticles_perm_no_edit'] = 'Du har ikke rettigheder til at redigere en artikel i denne kategori.';
$txt['smfarticles_perm_no_delete'] = 'Du har ikke rettigheder til at slette en artikel i denne kategori.';
$txt['smfarticles_perm_no_rate'] = 'Du har ikke rettigheder til at bedømme en artikel i denne kategori.';
$txt['smfarticles_perm_no_editcomment'] = 'Du har ikke rettigheder til at redigere kommentarer i denne kategori.';
$txt['smfarticles_perm_no_addcomment'] = 'Du har ikke rettigheder til at tilføje kommentarer i denne kategori.';
$txt['smfarticles_perm_no_report'] = 'Du har ikke rettigheder til at rapportere indhold i denne kategori.';
//Search Page
$txt['smfarticles_search_article'] = 'Søg efter artikler';
$txt['smfarticles_search_for'] = 'Søg efter:';
$txt['smfarticles_search_title'] = 'Søg artikel titel';
$txt['smfarticles_search_description'] = 'Søg artikel resume';
$txt['smfarticles_search'] = 'Søg';
$txt['smfarticles_search_days30'] = 'Sidste 30 dage';
$txt['smfarticles_search_days60'] = 'Sidste 60 dage';
$txt['smfarticles_search_days90'] = 'Sidste 90 dage';
$txt['smfarticles_search_days180'] = 'Sidste 180 dage';
$txt['smfarticles_search_days365'] = 'Sidste 365 dage';
$txt['smfarticles_search_alltime'] = 'Alle dage';
$txt['smfarticles_search_daterange'] = 'Dato område: ';
$txt['smfarticles_search_membername'] = 'Indsendt af (medlemsnavn): ';
$txt['smfarticles_search_advsearch'] = 'Avancerede søge muligheder';
$txt['smfarticles_searchresults'] = 'Søge resultater';
$txt['smfarticles_commentlist'] = 'Kommentarliste';
$txt['smfarticles_summary'] = 'Resume ';
$txt['smfarticles_summary2'] = 'Resume: ';
$txt['smfarticles_submittedby2'] = 'Indsendt af : ';
$txt['smfarticles_date2'] = 'Dato: ';
$txt['smfarticles_views2'] = 'Visninger: ';
$txt['smfarticles_err_articlenotapproved'] = 'Denne artikel er ikke godkendt endnu.';
$txt['smfarticles_perm_no_view_article'] = 'Du har ikke rettigheder til at se denne artikel.';
$txt['smfarticles_delarticle'] = 'Slet artikel';
$txt['smfarticles_warndel'] = 'Advarsel - Dette vil slette artiklen og du har ikke mulighed for at gendanne den!';
$txt['smfarticles_err_articleedit'] = 'Du har ikke rettigheder til at redigere denne artikel.';
$txt['smfarticles_err_articledelete'] = 'Du har ikke rettigheder til at slette denne artikel.';
$txt['smfarticles_comment_link'] = 'Kommentar link';
$txt['smfarticles_view_comment'] = 'Vis kommentar';
$txt['smfarticles_approveallcomments'] = 'Godkendt alle kommentarer';
$txt['smfarticles_error_no_search'] = 'Du har ikke indtastet noget i søgefeltet...';
$txt['smfarticles_error_ratingsdisabled'] = 'Bedømmelse er deaktiveret';
$txt['smfarticles_error_no_com_selected'] = 'Ingen kommentar valgt';
$txt['smfarticles_form_viewratings'] = 'Vis bedømmelse';
$txt['smfarticles_form_ratearticle'] = 'Bedøm artikel';
$txt['smfarticles_form_norating'] = 'Denne artikel er ikke blevet bedømt endnu.';
$txt['smfarticles_form_rating'] = 'Bedømmelse';
$txt['smfarticles_form_ratingby'] = ' af ';
$txt['smfarticles_form_ratingmembers'] = ' medlemmer.';
$txt['smfarticles_text_rating'] = 'Bedømmelse';
$txt['smfarticles_txtedit3'] = 'Rediger';
$txt['smfarticles_txtdel3'] = 'Slet';
$txt['smfarticles_text_comments'] = 'Kommentarer';
$txt['smfarticles_text_addcomment'] = 'Tilføj kommentar';
$txt['smfarticles_error_no_comment'] = 'Ingen kommentar indtastet';
$txt['smfarticles_text_commentwait'] = 'Din kommentar vil ikke blive vist før det er blevet godkendt.';
$txt['smfarticles_posts'] = 'Posts: ';
$txt['smfarticles_text_delcomment'] = '[Slet]';
$txt['smfarticles_nocattitle'] = 'Du har ikke indtastet en kategory titel';
$txt['smfarticles_nocatselected'] = 'Ingen kategori valgt';
$txt['smfarticles_error_search_small'] = 'Søgetekst er for lille. Skal være længere end 3 karakterer.';
$txt['smfarticles_txt_import'] = 'Importer';
$txt['smfarticles_txt_importtparticles'] = 'Importer TinyPortal artikler';
$txt['smfarticles_txt_importedarticles'] = 'Importerede artikler';
$txt['smfarticles_txt_recount_article_totals'] = 'Genoptæl antal artikler';
$txt['smfarticles_txt_image_settings'] = 'Billede indstillinger';
$txt['smfarticles_allow_attached_images'] = 'Tillad vedhæftelse af billeder';
$txt['smfarticles_max_num_attached'] = 'Antal af tilladte billeder pr. artikel';
$txt['smfarticles_max_filesize'] = 'Max filstørrelse for vedhæftede billede';
$txt['articles_url'] = 'Artikel URL';
$txt['articles_path'] = 'Artikel sti';
$txt['smfarticles_txt_upload_image'] = 'Upload billede';
$txt['smfarticles_error_invalid_picture'] = 'Ikke et godkendt billede filformat';
$txt['smfarticles_error_img_filesize'] = 'Billede overstiger mas filstørrelse på ';
$txt['smfarticles_error_max_attached_images'] = 'Overstiger max antal vedhæftede billeder for denne artikel. Denne begrænsning er ';
$txt['smfarticles_images_view_article'] = 'Vis billeder på vis artikel side';
$txt['smfarticles_err_article_not_found'] = 'Artikel ikke fundet';
?>
articles2.xml
<file name="$languagedir/Modifications.danish.php">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles Text Strings
$txt['smfarticles_menu'] = 'Artikler';
$txt['smfarticles_admin'] = 'Artikel konfiguration';
$txt['permissiongroup_smfarticles'] = 'SMF Articles';
$txt['permissionname_view_articles'] = 'Vis artikler';
$txt['permissionhelp_view_articles'] = 'Bestemmer om brugeren kan se artikler.';
$txt['cannot_view_articles'] = 'Du har ikke rettigheder til at se artikel siden.';
$txt['permissionname_add_articles'] = 'Tilføj artikel';
$txt['permissionhelp_add_articles'] = 'Bestemmer om brugeren kan tilføje artikler';
$txt['cannot_add_articles'] = 'Du har ikke rettigheder til at tilføje artikler.';
$txt['permissionname_edit_articles'] = 'Rediger egne artikler';
$txt['permissionhelp_edit_articles'] = 'Bestemmer om brugeren kan redigere artikler';
$txt['cannot_edit_articles'] = 'Du har ikke rettigheder til at redigere artikler.';
$txt['permissionname_delete_articles'] = 'Slet egne artikler';
$txt['permissionhelp_delete_articles'] = 'Bestemmer om brugeren kan slette artikler';
$txt['cannot_delete_articles'] = 'Du har ikke rettigheder til at slette artikler.';
$txt['permissionname_articles_comment'] = 'Tilføj kommentar';
$txt['permissionhelp_articles_comment'] = 'Bestemmer om brugeren kan tilføje en kommentar til en artikel.';
$txt['cannot_articles_comment'] = 'Du har ikke rettigheder til at tilføje en kommentar.';
$txt['permissionname_articles_auto_approve'] = 'Aumatisk godkendelse af artikel';
$txt['permissionhelp_articles_auto_approve'] = 'Bestemmer om brugeren artikel skal auto godkendes når den tilføjes.';
$txt['permissionname_articles_autocomment'] = 'Automatisk godkendelse af kommentarer';
$txt['permissionhelp_articles_autocomment'] = 'Bestemmer om brugerens kommentarer skal auto godkendes når den tilføjes.';
$txt['permissionname_rate_articles'] = 'Bedøm artikel';
$txt['permissionhelp_rate_articles'] = 'Bestemmer om bruger kan bedømme artikler';
$txt['cannot_rate_articles'] = 'Du har ikke rettigheder til at bedømme artikler.';
$txt['permissionname_articles_admin'] = 'Administrer artikler';
$txt['permissionhelp_articles_admin'] = 'Bestemmer om brugeren kan administrere artikler';
$txt['cannot_articles_admin'] = 'Du har ikke rettigheder til at administrere artikler.';
// END SMF Articles Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.danish.php">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles Text Strings
$txt['smfarticles_menu'] = 'Artikler';
$txt['smfarticles_admin'] = 'Artikel konfiguration';
$txt['permissiongroup_smfarticles'] = 'SMF Articles';
$txt['permissionname_view_articles'] = 'Vis artikler';
$txt['permissionhelp_view_articles'] = 'Bestemmer om brugeren kan se artikler.';
$txt['cannot_view_articles'] = 'Du har ikke rettigheder til at se artikel siden.';
$txt['permissionname_add_articles'] = 'Tilføj artikel';
$txt['permissionhelp_add_articles'] = 'Bestemmer om brugeren kan tilføje artikler';
$txt['cannot_add_articles'] = 'Du har ikke rettigheder til at tilføje artikler.';
$txt['permissionname_edit_articles'] = 'Rediger egne artikler';
$txt['permissionhelp_edit_articles'] = 'Bestemmer om brugeren kan redigere artikler';
$txt['cannot_edit_articles'] = 'Du har ikke rettigheder til at redigere artikler.';
$txt['permissionname_delete_articles'] = 'Slet egne artikler';
$txt['permissionhelp_delete_articles'] = 'Bestemmer om brugeren kan slette artikler';
$txt['cannot_delete_articles'] = 'Du har ikke rettigheder til at slette artikler.';
$txt['permissionname_articles_comment'] = 'Tilføj kommentar';
$txt['permissionhelp_articles_comment'] = 'Bestemmer om brugeren kan tilføje en kommentar til en artikel.';
$txt['cannot_articles_comment'] = 'Du har ikke rettigheder til at tilføje en kommentar.';
$txt['permissionname_articles_auto_approve'] = 'Aumatisk godkendelse af artikel';
$txt['permissionhelp_articles_auto_approve'] = 'Bestemmer om brugeren artikel skal auto godkendes når den tilføjes.';
$txt['permissionname_articles_autocomment'] = 'Automatisk godkendelse af kommentarer';
$txt['permissionhelp_articles_autocomment'] = 'Bestemmer om brugerens kommentarer skal auto godkendes når den tilføjes.';
$txt['permissionname_rate_articles'] = 'Bedøm artikel';
$txt['permissionhelp_rate_articles'] = 'Bestemmer om bruger kan bedømme artikler';
$txt['cannot_rate_articles'] = 'Du har ikke rettigheder til at bedømme artikler.';
$txt['permissionname_articles_admin'] = 'Administrer artikler';
$txt['permissionhelp_articles_admin'] = 'Bestemmer om brugeren kan administrere artikler';
$txt['cannot_articles_admin'] = 'Du har ikke rettigheder til at administrere artikler.';
// END SMF Articles Strings
]]></add>
</operation>
</file>
Hi...
When I uninstall articles the Title still remains in the forum menu bar and when I install with the danish translation everything is translation correct but the menu title is still Articles.
How can I correct this...
Best regards
Henrik Poulsen
Thank you Vbgamer45 so far for your responses. They've worked for me.
I use simpleportal on my forum as well as this article mod and download system. I'd like to create a block on the forum index where the latest articles will be displayed. Can i get a code for this? Creating the block is not the problem but how to make the recent articles show in the block. Thanks
My forum's breadcrumbs for articles are not working correctly. The breadcrumbs for a category will also pull the Forum category that matches the same number.
Normally the breadcrumbs for the forums are
[Site Index -> Forum -> Forum Category -> Topic]
The breadcrumbs when viewing an article are
[Site Index -> index.php?cat=# (Forum category for number #) -> Articles Home -> Article category -> Article subcategory (With number #) -> Article
This format only appears when I'm in a sub-category. If i'm in a normal category, replace index.php?cat=# with a link to the forum via index.php.
So if I'm in Article category #10, the forum category that corresponds to #10 will also appear in the breadcrumbs.
Does anyone know how to fix this?
PS: A preview function would be great to have added to this mod. :)
Good day, i'd like to add adsense to the top of every article but below the summary. That is the ads will be between the summary and the main article. I don't know much about coding. Please, where do i edit in the article template? Thank you
for smf 2, you would edit articles2.template.php
I use smf 1.1.11 and i'd like to know which part of the code to edit. I know which template i'd edit. I need that line of the code to insert adsense code.
Whatever mod i look for in this site, comes out as your creation.
You are the best!
I really appreciate your work! Thank you.
awsome mod!
also, let me suggest an improvement for the next release(s):
add the option to automatically create a post in a selected thread if a new article is approved (just like you did for the 'download system' mod). i suppose you'll have most of the coding done for this. ..and maybe, add the summary of the article to the body of the generated post.
Minor update
1.3.3
!Improved search results for multiple pages
Hi...
Attached Danish Translation.
Well i got a wierd question. I was about to install this mod in 1.1.12 but then i started thinking, what is gonna happen all of those articles when i switched to 2.0?
Will i be able to transfer/keep/convert them without any problems?
All data works with SMF 1.1.x and SMF 2.0 upgrading SMF causes no issues.
Quote from: ben sisko on January 18, 2011, 05:32:07 AM
also, let me suggest an improvement for the next release(s):
add the option to automatically create a post in a selected thread if a new article is approved (just like you did for the 'download system' mod). i suppose you'll have most of the coding done for this. ..and maybe, add the summary of the article to the body of the generated post.
@vbgamer45: yes / no / considering.. ?
thx.
Maybe in the future
It cant find the background images for these buttons.
It searches themes/pdx-dx/images/ <<< It doesnt look for the image but it looks for the directory only.
When i view it in default theme it looks and finds themes/default/images/maintab_back.gif
i get this on installing v1.3.3:
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
i'm using SMF 2.0 RC5
Quote from: ben sisko on February 14, 2011, 04:58:28 AM
i get this on installing v1.3.3:
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Fixed
i'm using SMF 2.0 RC5
vb, you know what i noticed?
I have a facebook fan page, when i try to attach a link to an article in my forum, facebook doesnt recognize the link. It attaches the main domain to my forum instead.
Have this been discussed?
There has been issues with SMF's url structure with the semi colons i think someone started a topic here on SMF.org and submitted the bug to facebook.
Quote from: vbgamer45 on February 19, 2011, 12:43:12 PM
There has been issues with SMF's url structure with the semi colons i think someone started a topic here on SMF.org and submitted the bug to facebook.
Thanx bro.
Can a notify feature be easily implemented in the articles? Notify of comments in articles. I think it'd be a great new feature if it can be easily done.
Possible in the future when ever I get free time which does not seem like anytime soon.
@vbgamer45
Had to fix the ShowArticlesBar on this mod in Sources/Articles2.php - (similar issue as with ezportal)
Current Code
<table class="table_list">
<tbody class="header">
<tr class="catbg">
<td align="center" colspan="4" class="catbg"><span class="left"></span>', $title, '
</td>
</tr>
</tbody>
</table>
Needed changing to
<table class="table_list">
<tbody class="header">
<tr class="catbg">
<td align="center" colspan="4">
<div class="cat_bar">
<h3 class="catbg">', $title, '</h3>
</div>
</td>
</tr>
</tbody>
</table>
I've attached the edited file to make life easy
Thanks will make the changes tonight.
Update!
1.3.3a
!Fixed style issue with ShowArticlesBar style for SMF 2.0 RC5 thanks to MrGrumpy
Hi all, i would like to show the main article page in the index page, after the boards, is this possible? Where I have to call the article function and how it have to be called? Thanks
Hi use smf 2_RC5 SMFArticles1.3.3a and I'm trying this mod but I found this little problem. When I go to edit a category does not return the text of the description. know how to fix?
Thanks
Editing doesn't change it or are you putting in a very large description?
Quote from: vbgamer45 on April 10, 2011, 01:46:56 PM
Editing doesn't change it or are you putting in a very large description?
The description is very short, but it reappears every time I write the editor and over again. But then saves it properly because it is visible
The text isn't visible? When you go to the editor?
Then the text is saved correctly, but not the editor ... The problem is that not only is reloaded in the editor and I have to rewrite it from scratch
Hi...
I love this mod, but I can't use the HTML BBCode tags in articles.
How do I fix this?
Thanks ;D
I would love to be able to add new articles to the RSS stream along with posts.
Any ideas??
New update:
1.4
+Added sharing icons: Facebook, Google +1, Twitter
Quote from: vbgamer45 on June 04, 2011, 10:03:47 PM
New update:
1.4
+Added sharing icons: Facebook, Google +1, Twitter
Just want to say this is a great mod and to keep up the good work!
If I may make a couple of suggestions for future updates?
1. It would be great if you would possibly include a "preview" button on the article submission page. A lot of my users have expressed a desire to preview their article before submitting it. However, this is not a major problem as they can use the normal post screen to preview it first. Simply a minor inconvenience.
2. Would it be possible to have some kind of "recent articles" list on the articles screen just below where the categories are listed, and with the option to also display on the home page next to/below the "recent posts" list? Just so everyone can see there's been some new additions.
Aside from those two minor suggestions, this is an excellent mod and my users are having a fun time writing articles for it.
Vb, it seems that when 'liking' an article and pasting an article link on facebook, it does not take you to the article itself, it posts the home page link instead.
Yeah bug with Facebook they don't like ; in the url will fix to use &
Hi, How can ı change to pictures' size in article.
Great mod - thank you!
I'd like to remove the date and views from the actual article header (but keep the 'Submitted By'). Is that possible? Which code should I remove or alter?
It would be in themes/default/Articles.template.php
Thanks, I found that, but unfortunately I'm not a coder; I need to be pointed to the actual code to remove.
I am planning on using this modification but for something other than articles. What file do I edit to change the "Articles" title to something else on my main navigation bar? I have already modified the Articles language files and that didn't change that one.
Themes/default/languages/modifications.english.php
Thank you for the quick response, that is EXACTLY what I wanted :)
Hello, let me start by saying thanks for this great mod, it's one of my favorites!
I have a question though, in some of my articles I'd like to add some HTML, specifically tables so I can make some of the layout a bit more interesting and less cluttered, however for some reason HTML doesn't seem to work in posts. Is there any way to enable it?
(Btw. HTML does seem to work in regular posts on my forum).
HTML was disabled for security reasons. Youcan remove the calls to htmlspecialcharacters which would allow the content to go though but not recommended.
Well only a handful of selected people I trust can submit articles right now so I suppose that would be safe enough right?
Which file would I need to edit in order to allow the HTML content?
I just don't know of any other way to format these articles properly without it.
Articles2.php the addarticle2 and editarticle2 function
Thanks!
Right now I'm running SMF 1.1.x bridged to joomla. I want to upgrade to 2.0, add a portal, and ditch joomla. Is there any way I can import my joomla articles to this without doing a lot of copying and pasting?
I did that... but I had to write a custom SQL script to do the import, and then have all my editorial staff manually correct anything else.
Unfortunately, before you ask, I no longer have the script that I used - I wrote it on the fly and never saved it.
I searched this thread and although I found links to sites using the mod I could not find info about the copyright links. I was wondering if there was a way to remove the creataforum link and just keep the SMF Articles link or are they both required to run this mod?
Thanks in advance.
Have option to remove at
http://www.smfhacks.com/copyright_removal.php
Is there anyway to include the Article content in an RSS output or in a sitemap XML?
Quote from: mageguild on October 18, 2011, 01:56:40 AM
Is there anyway to include the Article content in an RSS output or in a sitemap XML?
Not at the moment.
How do I set promessions? when I use the add promission in the promissions thing, and go back to the promissions settings in the articles settings, it doesn't list the member group/s who can edit/add articles.
Permissions are found under Admin -> Permissions -> Modify each group and choose SMF Articles
How come there's no "Preview" button when posting articles? This would definitely come in handy in my opinion.
Don't have it built yet.
Then do you think you could please add a Preview button in the next release? It would be greatly appreciated. :)
Jason
Maybe but unlikely not really adding new features to mods at this time.
Hello,
Thank you for this very good mod.
I have que question : is it possible to remplace "Articles" in the menu by an other world (I would like to use "Tutoriaux" for my forum) ?
Many thanks
Yes modify themes/default/languages/modifications.english.php
Many thanks vbgamer 8)
I still have a pb, my board is in french, I have done what you said, and it's working for SFM default theme, but not for an other :-\
Any ideas ?
Modify themes/customtheme/languages/modificaitions.english.php
Thank you for your answer, sorry for my questions, I am a "beginner" in smf :-[
It works, but not for all my tests... nevermind, I will try again ;)
Not sure if it is in this thread or not (I tried a search) but, If you want to reverse the order of comments on an article, simply remove "DESC" from the line:
WHERE c.ID_ARTICLE = " . $context['article']['ID_ARTICLE'] . " AND c.approved = 1 ORDER BY c.ID_COMMENT DESC");
it is in .sources/Articles2.php line 2459
Tom
Thanks for the tip should be helpful for people who need different orders
I've been administering the articles for a while. Now I'd like to hand this off to another user. I added a new membergroup called "articles", added my user to the membergroup, and added the full permission set in the articles configuration for that membergroup. However, when the user logs in, he sees nothing different than any guest sees - none of the admin functions are there. Seems straightforward enough, leading me to believe I've missed something obvious.
New Update:
2.0
+Added RSS feed icon/RSS feeds now support for the articles
+Added import from FAQ mod and Knowledge Base mod
hmmm.....
Ok, just installed a test forum with a ton of mods to see what I could break....
The Article System with SimpleSEF breaks.... 500 error on the server.
(BTW: Same thing happens with the downloads system)
essentially, default or basic configuration of all mods....
Any specific url? And anything in the error log?
http://test.turtleshellprod.com/
nothing in the SMF error logs... I have not checked the server logs yet
I'm not sure if this has been answered, but on the article display page (in the categories where you get the list of articles) is there any way it could show as
[title]
First 255 words
[Read More]
for the article set up please?
hi, thanks for mod ...
1- there is any way to know if there is any new article published from forum (maybe as recent post) or always have to come to know??
2- the Articles written increment users post count?
thanks
1. Currently just have to look at the articles section.
2. Not at the moment.
Quote from: Kindred on January 30, 2012, 01:42:36 AM
hmmm.....
Ok, just installed a test forum with a ton of mods to see what I could break....
The Article System with SimpleSEF breaks.... 500 error on the server.
(BTW: Same thing happens with the downloads system)
essentially, default or basic configuration of all mods....
Any Fix for this yet. I end up with a 500 on the server as well.
Check your apache error logs should say what is going on for the 500 error.
So sorry, it turned out to be unrelated. Just bad luck it happened at same time.
Hi. Great mod!
I have three questions:
(1) I am using the inline attachments mod (the mod that allows you to embed the attachments in message)... any way to get it to work with the articles editor?
(2) I am using the Advanded Reputation mod... when making comments to an article it shows the +Karma / -Karma of the stock system not the advanced rep options... and if you use +KARMA/-KARMA a database error pops up. Any way to completely REMOVE the "KARMA" options from the comments.
(3) Any way to incorporate a re-order option (like with categories) but for articles themselves?
Thanks!
I am running PortaMX 1.45 with PortaMX-SEF enabled, and SMF articles 1.4x. Everything has been working fine, until I updated to SMF Articles 2, and I got 500 error.
If I turn the the PortaMX-SEF to "off", then everything is work fine.
What is the problem? Please help
The worst case scenario, can I uninstall SMD articel 2, and re-install version 1.4x
Thanks much in advance
Anything in the error logs for the forum. Or apache server logs?
Nope! I didn't see any error that's related to Articles.
Quote from: saw on September 15, 2011, 04:03:10 AM
Great mod - thank you!
I'd like to remove the date and views from the actual article header (but keep the 'Submitted By'). Is that possible? Which code should I remove or alter?
Quote from: vbgamer45 on September 15, 2011, 09:07:26 AM
It would be in themes/default/Articles.template.php
Quote from: saw on September 15, 2011, 09:57:50 AM
Thanks, I found that, but unfortunately I'm not a coder; I need to be pointed to the actual code to remove.
I wanted to do the same thing.
I found and removed this code in themes/default/Articles.template.php
echo '<tr class="windowbg">
<td><span class="smalltext"><b>',$txt['smfarticles_submittedby2'],'</b>', '
<a href="',$scripturl, '?action=profile;u=',$context['article']['ID_MEMBER'],'">', $context['article']['real_name'], '</a>
<b>',$txt['smfarticles_date2'],'</b> ',
timeformat($context['article']['date']), '
<b>',$txt['smfarticles_views2'],'</b> ',
$context['article']['views'], '
</span>
</td>
</tr>';
I'm trying to learn how to remove the link tree and search button shown on the article page in the attachment.
I'm looking in themes/default/Articles2.template.php but can't seem to find the right code.
Any help would be greatly appreciated.
Thanks,
In the sources folder in articles.php
This code controls the linktree
// Setup the Link Tree
$context['linktree'][] = array(
'url' => $scripturl . '?action=articles',
'name' => $txt['smfarticles_title']
);
GetParentLink($cat);
For the top bar with search controlled by this call
ShowArticlesBar();
In the articles2.template.php in themes/default folder
To remove the link tree I found this code instead in Sources/articles.php
// Link Tree
$context['linktree'][] = array(
'url' => $scripturl . '?action=articles',
'name' => $txt['smfarticles_title']
);
GetParentLink($context['article']['ID_CAT']);
$dbresult = $smcFunc['db_query']('', "
SELECT
pagetext
FROM {db_prefix}articles_page
WHERE ID_ARTICLE = $article LIMIT 1");
$row2 = $smcFunc['db_fetch_assoc']($dbresult);
$context['article_page'] = $row2;
$smcFunc['db_free_result']($dbresult);
and commented out this part.
/*
$context['linktree'][] = array(
'url' => $scripturl . '?action=articles',
'name' => $txt['smfarticles_title']
);
GetParentLink($context['article']['ID_CAT']);
*/
I tried first playing around with the code you posted, but I could not seem to get the link tree removed by removing any of that code.
Should what I did above effect anything other then removing the article link tree?
Thanks for the help,
Edited to add:
Quote
For the top bar with search controlled by this call
ShowArticlesBar();
In the articles2.template.php in themes/default folder
That worked perfect for me.
Thanks again.
Update
2.0.1
!Fixed possible undefined error on the search page
+Added future integration support for Badge Awards
How do you publish articles to the front page of the site? I am using Simpleportal. Thanks.
Would require a custom php block to fetch article information.
I would like to uninstall this mod from my site. When I do, I get no errors. However, the Articles Configuration link in the admin remains behind and all articles errors start giving fatal errors (EG: http://www.thetennisbulletin.com/forums/articles/sa=view;article=13)
Fatal error: require_once() [function.require]: Failed opening required '/home/tbassett/webapps/thetennisbulletin/forums/Sources/Articles2.php' (include_path='.:/usr/local/lib/php') in /home/tbassett/webapps/thetennisbulletin/forums/index.php on line 371
Can anyone suggest anything to resolve this?
Quote from: mageguild on August 12, 2012, 07:52:06 PM
I would like to uninstall this mod from my site. When I do, I get no errors. However, the Articles Configuration link in the admin remains behind and all articles errors start giving fatal errors (EG: http://www.thetennisbulletin.com/forums/articles/sa=view;article=13)
Fatal error: require_once() [function.require]: Failed opening required '/home/tbassett/webapps/thetennisbulletin/forums/Sources/Articles2.php' (include_path='.:/usr/local/lib/php') in /home/tbassett/webapps/thetennisbulletin/forums/index.php on line 371
Can anyone suggest anything to resolve this?
I have had to re-install this mod to resolve all these fatal errors which is why my example link above now works. I have attached a screenshot of the error.
looks like ti's not completely uninstalling, obviously. :P
you'll have to manually check files to confirm removal of the code
2.0.2
!Fixed top articles bar layout issue in chrome for SMF 2.0
Thanks
when Update dont forget portuguese file
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles Text Strings translate by Candidosa2
$txt['smfarticles_menu'] = 'Artigos';
$txt['smfarticles_admin'] = 'Configuração dos artigos';
$txt['smfarticles_articlessettings'] = 'Definições';
$txt['smfarticles_approvearticles'] = 'Aprovar artigos';
$txt['smfarticles_form_approvecomments'] = 'Aprovar Comentários';
$txt['smfarticles_catpermlist'] = 'Lista de Permissão da categoria';
$txt['smfarticles_txt_import'] = 'Importar';
$txt['permissiongroup_smfarticles'] = 'SMF Artigos';
$txt['permissiongroup_simple_smfarticles'] = 'SMF Artigoss';
$txt['permissionname_view_articles'] = 'Ver artigos';
$txt['permissionhelp_view_articles'] = 'Define se o utilizador pode visualizar os artigos.';
$txt['cannot_view_articles'] = 'Você não pode exibir a página de Os artigos.';
$txt['permissionname_add_articles'] = 'Adicionar artigo';
$txt['permissionhelp_add_articles'] = 'Se o utilizador pode enviar artigos';
$txt['cannot_add_articles'] = 'Você não pode adicionar artigos.';
$txt['permissionname_edit_articles'] = 'Editar artigos próprios';
$txt['permissionhelp_edit_articles'] = 'Se o utilizador pode parar de editar os artigos';
$txt['cannot_edit_articles'] = 'Você não pode editar Os artigos.';
$txt['permissionname_delete_articles'] = 'Apagar artigos próprios';
$txt['permissionhelp_delete_articles'] = 'Se o utilizador pode apagar artigos';
$txt['cannot_delete_articles'] = 'Não é possível apagar Os artigos.';
$txt['permissionname_articles_comment'] = 'Deixe comentários';
$txt['permissionhelp_articles_comment'] = 'Permite ao utilizador deixar comentários em um artigo.';
$txt['cannot_articles_comment'] = 'Você não tem permissão para deixar comentários.';
$txt['permissionname_articles_auto_approve'] = 'Aprovados os artigos automaticamente';
$txt['permissionhelp_articles_auto_approve'] = 'Se os artigos dos utilizadores são auto aprovado quando submetidas.';
$txt['permissionname_articles_autocomment'] = 'Auto aprovar os comentários';
$txt['permissionhelp_articles_autocomment'] = 'Comentários não precisa esperar pela aprovação.';
$txt['permissionname_rate_articles'] = 'Artigos Classifique';
$txt['permissionhelp_rate_articles'] = 'Se o utilizador pode clasifcar Os artigos';
$txt['cannot_rate_articles'] = 'Você não tem permissão para classificar os artigos.';
$txt['permissionname_articles_admin'] = 'Administração de artigos';
$txt['permissionhelp_articles_admin'] = 'Utilizador pode gerir os artigos';
$txt['cannot_articles_admin'] = 'Você não tem permissão para gerir os artigos.';
// END SMF Articles Strings Support PT SMFPT
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation error="ignore">
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Begin SMF Articles Text Strings translate by Candidosa2
$txt['smfarticles_menu'] = 'Artigos';
$txt['smfarticles_admin'] = 'Configuração dos artigos';
$txt['smfarticles_articlessettings'] = 'Definições';
$txt['smfarticles_approvearticles'] = 'Aprovar artigos';
$txt['smfarticles_form_approvecomments'] = 'Aprovar Comentários';
$txt['smfarticles_catpermlist'] = 'Lista de Permissão da categoria';
$txt['smfarticles_txt_import'] = 'Importar';
$txt['permissiongroup_smfarticles'] = 'SMF Artigos';
$txt['permissiongroup_simple_smfarticles'] = 'SMF Artigoss';
$txt['permissionname_view_articles'] = 'Ver artigos';
$txt['permissionhelp_view_articles'] = 'Define se o utilizador pode visualizar os artigos.';
$txt['cannot_view_articles'] = 'Você não pode exibir a página de Os artigos.';
$txt['permissionname_add_articles'] = 'Adicionar artigo';
$txt['permissionhelp_add_articles'] = 'Se o utilizador pode enviar artigos';
$txt['cannot_add_articles'] = 'Você não pode adicionar artigos.';
$txt['permissionname_edit_articles'] = 'Editar artigos próprios';
$txt['permissionhelp_edit_articles'] = 'Se o utilizador pode parar de editar os artigos';
$txt['cannot_edit_articles'] = 'Você não pode editar Os artigos.';
$txt['permissionname_delete_articles'] = 'Apagar artigos próprios';
$txt['permissionhelp_delete_articles'] = 'Se o utilizador pode apagar artigos';
$txt['cannot_delete_articles'] = 'Não é possível apagar Os artigos.';
$txt['permissionname_articles_comment'] = 'Deixe comentários';
$txt['permissionhelp_articles_comment'] = 'Permite ao utilizador deixar comentários em um artigo.';
$txt['cannot_articles_comment'] = 'Você não tem permissão para deixar comentários.';
$txt['permissionname_articles_auto_approve'] = 'Aprovados os artigos automaticamente';
$txt['permissionhelp_articles_auto_approve'] = 'Se os artigos dos utilizadores são auto aprovado quando submetidas.';
$txt['permissionname_articles_autocomment'] = 'Auto aprovar os comentários';
$txt['permissionhelp_articles_autocomment'] = 'Comentários não precisa esperar pela aprovação.';
$txt['permissionname_rate_articles'] = 'Artigos Classifique';
$txt['permissionhelp_rate_articles'] = 'Se o utilizador pode clasifcar Os artigos';
$txt['cannot_rate_articles'] = 'Você não tem permissão para classificar os artigos.';
$txt['permissionname_articles_admin'] = 'Administração de artigos';
$txt['permissionhelp_articles_admin'] = 'Utilizador pode gerir os artigos';
$txt['cannot_articles_admin'] = 'Você não tem permissão para gerir os artigos.';
// END SMF Articles Strings Support PT SMFPT
]]></add>
</operation>
</file>
Thanks translation will include it in next one.
Hi, I'd like to allow users to have permission to post and edit articles based on post-count-based membergroups, not regular membergroups. Is there a way to do that? The only groups showing up in my permissions settings for this plugin are the regular membergroups.
Not at the moment.
So then, there's no way to automatically allow anyone to add or edit articles? An administrator has to add them to a membergroup manually before they can have that ability?
You would use the regular members permissions in the membergroup settings to setup the permissions for adding/editing articles etc.
Hello SMF Hacks,
Could you please fix the 'share on Facebook' button? It's not working correct (same issue as there was in the Gallery??).
It likes the website, not the article.
Thanks,
Vincent
Quote from: Vincent Volmer on February 12, 2013, 09:16:32 AM
Hello SMF Hacks,
Could you please fix the 'share on Facebook' button? It's not working correct (same issue as there was in the Gallery??).
It likes the website, not the article.
Thanks,
Vincent
What error are you getting?
I am not using the share button in the articles system but instead the like code.
Quote from: vbgamer45 on February 12, 2013, 12:45:42 PM
What error are you getting?
I am not using the share button in the articles system but instead the like code.
You are right (of course ;) ) it is the "Like" button.
Issue is, when I 'Like' an article it does not 'Like' the article ( in our case: digiscrap.nl/articles/overig-digitaal-scrappen/digiscrap-dutch-choice/65 ) but it Likes the website only (digiscrap.nl) on Facebook, not the article. Tweet on Twitter works OK!
Maybe you can change the Like button into the Share button? ....
Update!
2.5
+Updated styling for SMF 2.0 for main areas for a better experience
+Updated admin areas with alternating row styles to make reading easier
Great! Thanks for the update. I'll look at it tomorrow.
Thanks for the update.
I found 2 things not working correct.
(1) old issue;
Quote from: Vincent Volmer on February 12, 2013, 01:26:28 PM
Issue is, when I 'Like' an article it does not 'Like' the article ( in our case: digiscrap.nl/articles/overig-digitaal-scrappen/digiscrap-dutch-choice/65 ) but it Likes the website only (digiscrap.nl) on Facebook, not the article. Tweet on Twitter works OK!
Can this been fixed?
And the other issue;
I add an category description and save it. When I edit the category again the description disappears. This issue was also present in the previous version of SMF Articles. Sorry, didn't told you that.
I hope you can fix this too.
Thanks, Vincent
do note.... the category description is in the database. It just does not get read out to the edit page
Updated new release
2.5.1
!Fixed the Facebook like article to encode the full article url
!Fixed empty description field when editing category in SMF 2.0.x
!Cleaned up some more html/styles in SMF 2.0.x version
Quote from: SMFHacks.com Team on March 25, 2013, 12:21:05 PM
Updated new release
2.5.1
!Fixed the Facebook like article to encode the full article url
!Fixed empty description field when editing category in SMF 2.0.x
!Cleaned up some more html/styles in SMF 2.0.x version
Thanks for the update and fixing. The like button is still not working correct. It "likes" the URL of the website instead of the article URL.
btw... I'm using pretty url's. I don't know if that is important in this case.
It appears I'm running an outdated version of the mod and I'd like to upgrade.
Can I just install the new version on top of the old one or will I need to uninstall the old version first? Also will I lose any of my articles in the process?
you need to uninstall first.
no, you will not lose existing articles
Thanks!
I have a problem that I'm trying to figure out with this mod (please excuse the 'repeat' if this has already been brought up). I can't seem to get the ratings to show for everyone. It will be there for me (admin) but won't show for regular members to be able to rate the article? I have the enable ratings box checked off and permission set for everyone so not sure what is going on. I did upgrade to the latest version also. Any suggestions? I might just be overlooking something simple........Thanks
Under Admin -> Permissions -> Modify the membergroup then find the SMF Articles permission section and modify it there.
Thank you for your reply. I checked my permissions and group category and it all seems to be ok but I still can't get the rating boxes to show for anyone but me? As I mentioned I do have 'enable ratings' checked in the settings and have the latest version. Do you think uninstalling and then reinstalling might help?
I think I was a little behind in applying updates for this! I was still using 1.2.1!
Nice to see the RSS feed added, That's a great feature.
Quote from: Theatre Publicity on August 23, 2013, 09:44:55 AM
I think I was a little behind in applying updates for this! I was still using 1.2.1!
Nice to see the RSS feed added, That's a great feature.
Glad you enjoy it!
Hi VbGamer
I run 1.1.18, and on my test forum, Articles installed beautifully, and administration was intuitive...plus it added a feature that makes great sense....so congrats
I'm beginning to learn more about the plumbing of SMF, so I would like to know exactly how this mod affects the "plain vanilla" coding of SMF.
I know little php, so a "high level understanding is what I am looking for. ie, what SMF files are modified and what files are added and where.
Also, what happens when the mod is uninstalled, does it remove the coding that was initially modified and the files originally installed?
I expect the design principles would be the same for all mods, so any kind of insight you might be able to provide me with would help me on the road
The answers are important to me before I start rolling the mod out to another live forum because I don't want to wreck it and I want to know how to reverse it should I want to
On the mod page itself you can see the exact files the mod edits and code it changes.
Or you can upload the file to my package parser to file the files it edits
www.smfhacks.com/smf-package-parser.html
Sorry VB, I must be dense or something
on the mod page itself http://custom.simplemachines.org/mods/index.php?mod=1354 I do not see it the files it mods ot codes it changes, and I cannot find it on any Articles page from a menu at SMFhacks.com
By downloads you would click the "Manual Install Instructions for SMF "
Ahhhh, thanks. Another new thing learned
Thanks VB because it sent me to check out my server files where I decided I should manually delete the articles folder
Now when you uninstall the mod, does it actually reverse the changes to the files made on the install, comment them out etc?
I see (from going onto my server) that, for example, the first file ./Themes/default/languages/Modifications.english.php, was modified today when I uninstalled
Am I to assume that I can simply delete the backup version because it held the code used by Articles...and the same for the utf backup, and I guess all those shown in the parser?
It reverses the changes to the files made. But leaves copied files/folders/database tables/settings intact
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
Yes you can glad to help
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 :)
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 :)
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.
Ok :)
Just wanted to make sure it wasn't broken, or I couldn't find controls. ;)
Thank you very much!
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?
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 :)
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
You should be able to edit a category then change the category the article was placed under.
Oooh, ok! Yes, I've got it working now.
Thank you very much :)
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:
(http://www.access-o-mania.de/images/permissions.png)
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'] ,': <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.
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
It works for me.
I can set permissions for each Category.
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');
}
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)
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ículos';
$txt['smfarticles_admin'] = 'Configuración de Artículos';
$txt['smfarticles_articlessettings'] = 'Ajustes';
$txt['smfarticles_approvearticles'] = 'Aprobar Artículos';
$txt['smfarticles_form_approvecomments'] = 'Aprobar comentarios';
$txt['smfarticles_catpermlist'] = 'Lista de Permisos por Categorías';
$txt['smfarticles_txt_import'] = 'Importar';
$txt['permissiongroup_smfarticles'] = 'SMF Artículos';
$txt['permissionname_view_articles'] = 'Ver Artículos';
$txt['permissionhelp_view_articles'] = 'Define si los usuarios pueden ver los Artículos.';
$txt['cannot_view_articles'] = 'No puedes ver esta página.';
$txt['permissionname_add_articles'] = 'Añadir Artículos';
$txt['permissionhelp_add_articles'] = 'Si el usuario puede enviar Artículos';
$txt['cannot_add_articles'] = 'No puedes añadir Artículos.';
$txt['permissionname_edit_articles'] = 'Editar Artículos propios';
$txt['permissionhelp_edit_articles'] = 'Si el usuario puede editar Artículos';
$txt['cannot_edit_articles'] = 'No puedes editar Artículos.';
$txt['permissionname_delete_articles'] = 'Borrar Artículos propios';
$txt['permissionhelp_delete_articles'] = 'Si el usuario puede borrar Artículos';
$txt['cannot_delete_articles'] = 'No puedes borrar Artículos.';
$txt['permissionname_articles_comment'] = 'Dejar comentarios';
$txt['permissionhelp_articles_comment'] = 'Permite al usuario comentar Artículos.';
$txt['cannot_articles_comment'] = 'No puedes escribir comentarios.';
$txt['permissionname_articles_auto_approve'] = 'Auto-aprobación Artículos';
$txt['permissionhelp_articles_auto_approve'] = 'Si los Artí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ón.';
$txt['permissionname_rate_articles'] = 'Valorar Artículos';
$txt['permissionhelp_rate_articles'] = 'Si el usuario puede valorar Artículos';
$txt['cannot_rate_articles'] = 'No tienes permiso para valorar Artículos.';
$txt['permissionname_articles_admin'] = 'Administrar Artículos';
$txt['permissionhelp_articles_admin'] = 'El usuario puede administrar Artículos';
$txt['cannot_articles_admin'] = 'No tienes permiso para administrar Artí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).-
Mmm... hey Guys, please... how I can center the image in category
(http://s27.postimg.org/q8nhla4yr/imge_para_centrar_en_categorias_2.jpg)
Pleaseee....
Thanks & Regards 8).-
change td tag to td align="center"
Quote from: vbgamer45 on April 26, 2014, 12:55:31 AM
change td tag to td align="center"
Ufff!!!... Thanks
vbgamer45 please where... what file ::)
Ok..., I will search, but please in what file I have to do the change...
This tip don't work
Articles.template.php:
Find:
<td class="windowbg"><a href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '"><img src="', $row['imageurl'], '" border="0" alt="" /></a></td>
Replace:
<td class="windowbg" align="center"><a href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '"><img src="', $row['imageurl'], '" border="0" alt="" /></a></td>
Please!!!...
Thanks & Regards 8)
Have a Great Time.-
Please do not delete the original post and then repost the identical content...
I have noticed you doing this several times in several threads here and in the Spanish section. Doing that is the SAME THING as "double posting" and will get you marked for spam.
Mmm...Quote from: Kindred on April 27, 2014, 09:28:32 PM
Please not note delete the original post and then repost the identical content...
I have noticed you doing this several times in several threads here and in the Spanish section. Doing that is the SAME THING as "double posting" and will get you marked for spam.
Hey Please give to me a solution, I need a solution not advice... Thanks ;)
Thanks & Regards 8).-
and yet... You will be getting that advice from me - because - if you continue that sort of behavior, you will get marked as a spammer.
This is not my mod... and the mod author will (probably) respond at some point... but reposting content to "bump" the post is more likely to piss people off than to get an answer.
Quote from: Kindred on April 28, 2014, 06:56:42 PM
and yet... You will be getting that advice from me - because - if you continue that sort of behavior, you will get marked as a spammer.
This is not my mod... and the mod author will (probably) respond at some point... but reposting content to "bump" the post is more likely to piss people off than to get an answer.
Mmm... sorry, but you have nothing more important to do?, in the worst case the spammer is that Ref as me, I Need a Solution....
Thanks & Regards 8).-
Mmm... This quote WORKS
Quote from: Nibogo on September 24, 2008, 08:16:08 PM
Quote from: Spudgun on September 20, 2008, 08:19:55 AM
Does anyone know how to centre category images as talked about above?
Thanks for any help given...
Spudgun.
Articles.template.php:
Find:
Quote<td class="windowbg"><a href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '"><img src="', $row['imageurl'], '" border="0" alt="" /></a></td>
Replace:Quote<td class="windowbg" align="center"><a href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '"><img src="', $row['imageurl'], '" border="0" alt="" /></a></td>
In File "
Articles2.template.php"
Search:Quote<td class="windowbg"><a href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '"><img src="', $row['imageurl'], '" border="0" alt="" /></a></td>
Replace:Quote<td class="windowbg" align="center"><a href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '"><img src="', $row['imageurl'], '" border="0" alt="" /></a></td>
Caps... ;)
(http://s1.postimg.org/v1gne00kf/caps_artic_ing_centrada_scr_1_p_for_sop.jpg)
Works Fine 100% (http://media.simplemachinesweb.com/smf/default/images/post/thumbup.gif)
Thanks & Regards 8).-
Hi Friends,
First, I should say that I haven't read the entire 43 pages of this topic. So I apologize if I've missed a similar comment.
I wanted to suggest what I think would make a nice feature for this mod. I'll bet that a lot of admins use the Articles mod for things besides true articles. For example, I'm using as a way for members to contribute tutorials (for Inkscape, vector graphics editor). I would love it if I could change the tab to say Tutorials, instead of Articles. Maybe someone would used Articles to publish recipes, for another example. They might like the tab to say "Recipes". Maybe someone uses it to post movie reviews, or reviews about anything -- book reviews, software reviews, etc. They might like the tab to say "Reviews". And etc.
When I first started my SMF forum (with Tiny Portal), there was a mod that allowed the text on any tabs to be changed. But after an upgrade, it no longer worked. Then I found another mod that allows you to add new tabs, which is what I'm using now. But as many admins probably experience, I have more tabs than can fit on 1 screen. So the tabs sort of get wrapped around, although not in a way that looks nice (you can't read the text on the wrapped tabs, and you can hardly see the wrapped tabs at all - they're sort of a shadow). So it would be nice not to have the 2 tabs going to the same place. And if, as part of the Articles mod, the tab text could be changed, it would be really helpful.
Just a friendly suggestion. And certainly nothing urgent. Thanks for listening. :)
Edit -- Perhaps it would be more appropriate to request a mod where tabs' text can be changed, tabs can be rearranged, and tabs can be hidden. If you all think that would be more appropriate, I would be glad to post a request for such a mod. But I thought I would have a better chance of someone adding a feature to a mod that stays current, than someone writing a new mod. There used to be such a mod, but I can't find it anymore. TA
you can change the articles reference in the language file...
Is there a way to reorder the articles after they're submitted? I have this mod as a history section on my site that is currently arranged by year, but I want to be able to keep this order after other articles are added. The order will break if I can't control their arrangements. e.g., I don't want year 1985 showing after year 2014 if a user adds an article after it.
Quote from: jlt1 on June 19, 2014, 08:58:05 AM
Is there a way to reorder the articles after they're submitted? I have this mod as a history section on my site that is currently arranged by year, but I want to be able to keep this order after other articles are added. The order will break if I can't control their arrangements. e.g., I don't want year 1985 showing after year 2014 if a user adds an article after it.
Not at the moment.
Quote from: Kindred on June 11, 2014, 07:23:18 AM
you can change the articles reference in the language file...
Thanks Kindred :)
Hi again Friends,
If I recall, from having made a few posts in this thread (in the past year or 2) (in case this message gets moved, this is the thread: http://www.simplemachines.org/community/index.php?topic=259659.840) this mod hasn't be upgraded or changed in quite a while. Yet it appears to remain a popular mod!
In case it ever is upgraded, I just discovered something that I hope would be fixed. And actually, partly this affects all of SMF....somehow....although I don't understand how the program works from the coding perspective. Now that I think of it, maybe this would better be posted somewhere else, related to smileys. I'll have to leave it to your judgement where it should go.
Actually, maybe this is a bug, or something is broken in my forum? I'll have to leave that part up to you.
I love smileys and have 100s of them loaded into my forum -- nearly 100 in the editor, and maybe 250 more in the "(more)" pop-up. (half of them are related to the program which the forum supports, which is Inkscape, a vector graphic editor - lotta buttons!)
Even though the smileys are loaded and edited and managed from the admin panel, they show up in mods like this SMF Articles, in PMs (can't remember if PMs are a mod or not), and in SMFPacks ShoutBox. However, if I need to open the pop-up, to get a smiley to post in the forum, and later need to get a smiley from the popup for a PM or Shout or Article, I have to open the popup directly from wherever I am. I cannot get the smiley, to go in a shout, from the popup I opened in the forum. I have to open the pop-up from wherever I need to use it. And on a busy day, keeping 3 or 4 of those pop-ups open can get confusing!
So in that sense, maybe it's more related to how SMF makes the smileys work. I'm not sure about that part.
What I just noticed, while writing and editing an article from SMF Articles, is that if I already have the smiley pop-up open, because I already used a smiley from it in the article, and I save the article, it somehow disables the pop-up from working. Because if I re-open the article to edit again, and need another smiley from that pop-up, I have to open a fresh new pop-up!
Does this sound like something is broken, or a bug? Or normal and expected behavior? Any chance of avoiding having to open the smiley popup so many different times?
Let's see.... This is SMF 2.0.9, Tiny Portal 1.107, and a long list of other mods, something like 45. But I can list them if necessary. Not sure if you need it, but my forum http://forum.inkscapecommunity.com/index.php. Although you won't be able to.....well you can't post a message, shout, Pm or article, but there does seem to be a way to access my smileys without being a member, if that would help. I'm using with Firefox....haven't tested with IE - but I could, if it seems like this would be a browser issue?
Thanks for your help :D
That is how SMF works. When you close the editor in the first page, the internal reference from the pop up goes with it. By the time the second page is loaded, the pop up does not know where to send the smiley code you select. Not sure it is fixable either.
Hhmmm....well that's too bad.
As I said before, I know little to nothing about coding, in any language. I guess telling it to connect to any open editor isn't possible? Or maybe would take major work to accomplish?
Well, certainly not the end of the world!
Thanks for letting me know :)
If it is possible, which I doubt, it would be a fairly hefty change to the editor, I think.
I'm looking for a mod that would be suitable to create a recipe listing site. Do you think this mod would lend itself to that?
I'm willing to do modifications to make it "fit" the function of a recipe directory but I'm wondering if you think this mod would be a good candidate for a place to start?
not really...
I started on a recipe mod a while back. Have to search it out again.
Actually, the custom form mod might not be a bad start...
Depends you can relabel the text strings. It is generic enough
I am worked on a pro edition of this mod to still not sure on the feature set though.
Kindred, VBGamer,
Thanks for the replies. I've looked at a number of mods trying to see if they might lend themselves to a recipe directory but nothing jumps out at me.
The SMF Articles mod looks like it might work, it has categories and commenting which are two features that would be nice to have (actually, categories is a must-have, obviously).
The Custom Form Mod also looks good, but seems like it has a steep learning curve. It also seems like it's intended to post to a board and not to an individual page or entry- is that correct?
I also looked at the SA Knowledge Base (http://custom.simplemachines.org/mods/index.php?mod=3185) mod...in some ways it seems like it would lend itself nicely to a recipe directory but I'm not sure how easy it would be to change some of the basic layout items (like having the main page show the categories in columns, for example). But other than that it seems like it would work pretty well.
The alternative is to code one from scratch, which I could do, I'm just not wild about spending the time to do that.
Do either of you know if any of the portal mods (Simple Portal, ezPortal, etc) might have a block or plugin that would work for a recipe directory?
Well I use basiclly the same base for my mods. So SMF articles, Downloads System, SMF Link, SMF Gallery have basically the same base which just tweaks/updates made to each one.
Major new update
3.0
+Now works for SMF 2.1 Beta 1
+New manage categories area for SMF 2.0
+Improved styles for SMF 2.0
+Added new copyright removal system
Hi,
having a few issues with the image uploader on this mod. Drag and drop leads to just the thumbnail created being placed in the article. On click then heads off into oblivion :(
I have trawled back over the 44 pages this morning and seems way way back a few others had that issue but I couldn't find a resolution for it. No real problems for a few of the forum members but for the average user placing and formatting external images is above them.
Sample article here http://www.coffeenation.org.au/index.php?action=articles;sa=view;article=1 (http://www.coffeenation.org.au/index.php?action=articles;sa=view;article=1)
Site is running Dream Portal. Uninstalled currently are PrettyURL & Extras, Highslide Image Viewer, Simple Audio Video Embedder to try and help debug.
Any thoughts or clues?
found an issue with php 5.4 and htmlspecialchars in non utf-8 forums
in sourcedir/Articles2.php need to replace htmlspecialchars with $smcFunc['htmlspecialchars'] to make it work
3.0.1
!Better handling of utf8 characters for SMF 2.0.x
Quote from: SMFHacks.com Team on April 16, 2015, 11:01:14 AM
3.0.1
!Better handling of utf8 characters for SMF 2.0.x
ok, thanks... I just a replaced htmlspecialchars function in articles2.php, do I need to upgrade from 3.0?
No that's all I changed.
Greetings - I cannot find where to increase the number of characters allowed in an article description which results in not being able to post with the current settings and a long article.
Much appreciate the assistance,
All the best
Ron
The description max is default 65,000 characters
If you need more you need to increase the field size for description
SQL Command
alter table smf_articles change description description longtext;
Didn't thank you for the response vbgamer45 - so thank you very much, the info was very useful.
All the best
Ron
Greetings,
I am using SMF Articles 3.0 & SMF 2.0.10
I cannot find a setting to turn off the articles mod temporarily - does this function exist? If so may I ask for some guidance in how to go about it?
Great mod just need it off for a while.
Thanks for all the great mods you guys provide.
All the best
Ron
A function for that does not exist. You can hide it with permissions though
Thanks once again - I did look into that option after posting but was hoping that there was an "on/off" switch.
If I tweak the permissions there will no longer be an "articles" link on the menu, right?
I appreciate your quick reply very much.
All the best
Ron
Yeah for all membergroups other than admins
Thanks for that - I'll most likely run into you again pretty soon - looking at some of the paid mods that I'd like - some really great mods available.
All the best and thanks again
Ron
Is there a way to move forum posts to the article system? I want to use this as a blogging system and would like to move a couple of posts with all of their comments to it. :)
At the moment I do not have that feature in the Articles system.
Quote from: tbombaci on November 07, 2011, 12:45:45 PM
Not sure if it is in this thread or not (I tried a search) but, If you want to reverse the order of comments on an article, simply remove "DESC" from the line:
WHERE c.ID_ARTICLE = " . $context['article']['ID_ARTICLE'] . " AND c.approved = 1 ORDER BY c.ID_COMMENT DESC");
it is in .sources/Articles2.php line 2459
Tom
Thanks mate, this was driving me mad! lol
Quote from: vbgamer45 on June 07, 2015, 12:50:43 PM
At the moment I do not have that feature in the Articles system.
Okay, thanks for the fast response :)
Quote from: amko_sa on March 07, 2010, 12:33:52 PM
Quote from: Kindred on March 07, 2010, 09:27:13 AM
well, submit article is not available in a module, but EZPortal (also written by vbgamer) has a recent articles block
Sorry my mistake.I think about add article button and little preview.Simple portal also have a recent or random article block but I cant connect that options with SMF Articles.
I found this solution on one site:
global $smcFunc, $scripturl;
isAllowedTo('view_articles');
$dbresult = $smcFunc['db_query']('', "
SELECT a.ID_ARTICLE, a.title
FROM {db_prefix}articles AS a
WHERE a.approved = 1
ORDER BY RAND()
LIMIT 5
");
echo'
<div class="smalltext" style="text-align: center; color: #f9e9ac;">
<strong>5 Random Articles</strong>
</div>
<hr />';
echo'
<table>';
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
{
echo '
<tr>
<td align="center">', sp_embed_image('topic'), ' </td>
<td><span class="smalltext"><a href="' . $scripturl . '?action=articles;sa=view;article=' . $row['ID_ARTICLE'] . '">' . $row['title'] . '</a></span></td>
</tr>';
}
$smcFunc['db_free_result']($dbresult);
echo'
</table><hr />
', sp_embed_image('dot'), ' <span class="smalltext"><font color="#000000"><b><a href="' . $scripturl . '?action=articles;sa=addarticle;cat=1">Add Articles</a></b></span>';
ant this is currently the best solution for me.If someone have better proposal please write it here.
This is great, thank you! :D
It is possible to make it opengraph and facebook compliant?
if i fetch the url www.mydomain.com/index.php?action=articles&sa=view&article=1
in
https://developers.facebook.com/tools/debug/og/object/
it takes og metadata from main page
Possible to do but you would need to modify the code of the articles system using $context['html_headers']
Quote from: vbgamer45 on June 16, 2015, 11:16:37 AM
Possible to do but you would need to modify the code of the articles system using $context['html_headers']
i added og metadata in index.template.php of my theme:
<title>', $context['page_title_html_safe'], '</title>';
// facebook and OG
if ($context['current_action'] != 'admin'){
if (isset($context['article']['title']))
echo '
<meta property="og:url" content="', $scripturl ,'/action,articles/sa,view/article,' , $context['article']['ID_ARTICLE'] , '.html" />';
elseif(empty($context['current_topic']))
echo '
<meta property="og:url" content="', $scripturl ,'" />';
else
echo '
<meta property="og:url" content="', $scripturl ,'?topic=',$context['current_topic'],'.0" />';
echo '
<meta property="og:type" content="article" />
<meta property="og:title" content="',$context['page_title_html_safe'], '" />
<meta property="og:description" content="' , !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_data_description_text'], '" />';
echo '
<meta property="og:image" content="http://www.mydomain.com/logofb.jpg" />';
echo '
<meta property="og:site_name" content="',$context['forum_name'],'" />
<meta property="fb:app_id" content="myapp_id" />';
} // facebook and OG
it's working good for topic pages, but not for smf articles. what's wrong?
Maybe $context['article'] isn't set?
$context['article'] is set, and 'property="og:url"' is correctly compiled in html page
but when i test page in https://developers.facebook.com/tools/debug/og/object/ it fetches home page instead of article page
can't figure why
Because you have this set
echo '
<meta property="og:image" content="http://www.mydomain.com/logofb.jpg" />';
It's an image that is shown when the link is shared with Facebook. Required in og guidelines for fb
I opened a ticket in facebook help,
they say PHPSESSID is the problem:
QuoteHi David,
When our crawler accesses your page your server is injecting a PHPSESSID into the url and in turn you are displaying it in your og:url. This is what the crawler sees when it accesses your site.
<meta property="og:url" content="http://www.mydomain.com/index.php?PHPSESSID=44khamiod3qpj5sgr38pscvmv0&%3B%2Faction%2Carticles%2Fsa%2Cview%2Farticle%2C93.html" />
As this is the url that the crawler believes you want to be used as the canonical it redirects to that location and scrapes it. If you visit that url you will see that the og tags on that page match your index page.
To rectify this you will need to ensure that you are not using this url with PHPSESSID in your og:url.
Thanks,
Darren
any idea?
No idea on session id but search the general smf support forums might be workarounds
ok, now i made it work using single quotes for og:url content, and phpsessid is not shown, but i have to use urls without quests and ecommercial and equals, if i put variables in querystrings (?action=articles;sa=view&article=92) it stops working, while using slashes and commas (index.php/action,article/sa,view/article,92.html) it works
now i need to change all urls in articles2.php and articles.template.php to :o
that would be because facebook is a decade behind the times in parsing valid URLs
Bascilly replace any ; in the url with an &
Update
3.0.2
!Delete invalid pictures when they fail to upload
I am using 3.0 of your Article system. I had someone post an article last night to test it (un-modded) in any shape way or form and now every time someone goes to the article portion whatsoever. It loops with an approve request for the article, we had about 10 last night and 2 today. He isn't even home.
When trying to view the article?
Like what does it do?
I have no clue. For some reason everytime you clicked on the Articles page, it would disapprove the article but the article was still live. So it did it like 8 times, we just reinstalled and it was fine.
Glad you have it working now
Anyone know if there is a way to get Simple Thread Tags mod working with Articles ?
I am not aware of any mods for that at this time.
OK thanks
I'm sorry to have to ask, but will the 3.0 zip be put back on the modification link for this mod, or is this officially unsupported? I'm just trying to build my SMF forum and am picking my way through the mods and am just a bit confused. :)
I think I just had it mislabeled.
Hi, vbgamer45 and thanks. I did upload the zip and installed, all just fine, but when it took me to the settings page, there was a warning that said "Your Version 2.0.2. Is Outdated" and mentioned that I should upgrade to 3.0. So, I opened the zip and read the package-info.xml and it says it's 2.0.2. But it's the only one on the mod link. :-\
Fixed reuploaded that version.
Oh, thanks so much! I hear this is a great mod, so I'm eager to try it. Thanks again. :)
Forgive me for asking, vbgamer45, because I know you guys are busy with other things, but I was wondering if it's possible to be able to preview an article before posting, as one can with a regular post (as we can here, for instance)? I've just tried a test article and, while there is an "Add Article" button, I'm sort of working blind, because there's no way to know how it will look before I commit it.
It it's a lot of trouble, no worries, but one has to ask. :)
Not at the moment my time is very limited.
Quote from: vbgamer45 on May 06, 2016, 12:46:08 PM
Not at the moment my time is very limited.
Yes, I realize you're busy, but I rolled the dice, and asked, anyway. :)
Thanks so much for the mod.
Thanks @vbgamer45 for this mod!
I've just started using this and have some questions. First I'm looking for the code I should change to make the sub categories titles in index table bold. I could make main categories titles bold by changing the following piece of code in Articles2.template file but could not find the code for sub categories there. I'll wait for your kind advices as always! Thanks in advance.
foreach ($context['articles_cat'] as $row)
{
$totalarticles = GetArticleTotals($row['ID_CAT']);
echo '<tr>';
if ($row['imageurl'] == '')
echo '<td class="windowbg" width="10%"></td><td class="windowbg2"><b><a style="font-weight:bold;" href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '">',parse_bbc($row['title']), '</a></b> ' . (!empty($modSettings['smfarticles_showrss']) ? '<a style="font-weight:bold;" href="' . $scripturl . '?action=articles;sa=rss;cat=' . $row['ID_CAT'] . '"><img src="' . $modSettings['articles_url'] . 'rss.png" alt="rss" /></a>' : '') . '<br />', parse_bbc($row['description']), '</td>';
else
{
echo '
<td class="windowbg"><a style="font-weight:bold;" href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '"><img src="', $row['imageurl'], '" border="0" alt="" /></a></td>
<td class="windowbg2"><b><a style="font-weight:bold;" href="', $scripturl, '?action=articles;cat=', $row['ID_CAT'], '">', parse_bbc($row['title']), '</a></b> ' . (!empty($modSettings['smfarticles_showrss']) ? '<a style="font-weight:bold;" href="' . $scripturl . '?action=articles;sa=rss;cat=' . $row['ID_CAT'] . '"><img src="' . $modSettings['articles_url'] . 'rss.png" alt="rss" /></a>' : '') . '<br />', parse_bbc($row['description']), '</td>';
}
That would be over here but looks like they are already bold...
// Show child Boards
if ($subcats_linktree != '')
echo '<tr>
<td colspan="',($context['m_cats'] == true ? '5' : '3'), '" class="windowbg3">
<span class="smalltext">',($subcats_linktree != '' ? '<b>' . $txt['smfarticles_sub_cats'] . '</b>' . $subcats_linktree : ''),'</span>
</td>
</tr>';
Thanks for your quick replay. Due to my poor English, I think I could't explain my request well. When I say I'd like to make titles of sub categories bold, I mean the second page which is load after clicking on one of the main categories in main category list. The page which contains the index table of sub categories on top followed by the list of articles not the small text link tree like row that is below the description of each category in main category list of articles main page. Although I can see <b> tags there but I don't know why they don't work! I'm pretty newbie in coding so could you please tell me if there is the proper name id or class that I can use in a css file for this matter? I mean some thing like this:
#smfarticles_subcats a:link { font-weight: bold; }
I'm sorry if this sounds silly question and thanks again for kind support!
Sorry but I'm still seeking answer!
I am not sure what to do. There is no css with this mod.
Never mind, finally I could sort that out! The cods needed for table of categories was in Articles2.template.php but cods of the table of sub categories was in Articles2.php. thanks anyway.
hi all,
hope everyone is doing well.
i'm liking SMF Articles mod so far. Coodos to the author.
Question: Does anyone know if the Breadcrumbs could show:
"Home >> Articles" when its just "?action=articles". No "cat=#" or "subaction=*".
Some Mod's show it, others don't. If i need to hack the code, i'll do it. As long as it shows the Mod's root node in the Breadcrumbs.
Any hints?
Thanks.
It shows the root node.
Then when viewing an article it shows the category breadcrumb
thanks for replying fast. :)
link to page: http://kissui.izzysoft.com/support/index.php?action=articles
i'm wondering how to always show `Articles`, which i can't see at this moment.
ex:
(http://image.prntscr.com/image/8c44db7a3c0e433a8f0affe1811f960b.png)
thanks for any help, Izzy.
edit:
even if i'm a n00blet to PHP, SMF, i tried looking at ./Sources/Articles2.php
i though perhaps the section that sets the page title to this code (below), was the section to focus on?
// Set page title
$context['page_title'] = $mbname . ' - ' . $txt['smfarticles_title'];
so i looked and looked and maybe mistakenly thought that this code (below) would force the "$ >> Articles" to show now, addd this just below the code that Sets the Page Title (from above)
// Set Breadcrumbs
$context['linktree'][] = array(
'url' => $scripturl . '?action=articles',
'name' => $txt['smfarticles_title']
);
but nope. :[
Could it be a Template?
The Display script that's the culprit instead? :p
SFM version 2.0.11?
i'm not sure. brain overload. :{
i think i have what i wanted... thanks. :D
ex:
(https://i.imgur.com/kkYNFl7.png)
That looks good.
I have no idea if anyone else caught this, but urls in RSS feeds were not working.
Inside Articles2.php I changed this:
?action=articles;sa=view&id=
to this:
?action=articles;sa=view;article=
I'm using this to populate a SimplePortal Block, given I couldn't find any native support for this mod.
Cheers
another minor thing...
Description disappears when i press [Edit]
(http://i.giphy.com/3oEjHTpU7WKPxVqvh6.gif)
Is this just happening for me? :p
Any hacks you already added to address the Description not showing would be great. :)
Thanks.
What SMF version and what browser?
Quote from: vbgamer45 on July 03, 2016, 09:33:01 PM
What SMF version and what browser?
SMF ver 2.0.11
(https://i.imgur.com/3Z8pyeZ.png)
(https://i.imgur.com/qtuPbWy.png)
I think the culprit lies here?
(https://i.imgur.com/P535NR6.png)
Wait... where is the 'title'?
Doesn't the title go into the 'id'?
// 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?! :)
Wait.. i think i got it.
function i updated in Articles2.php
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
What did you update changing to get it to work?
// 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'],
:)
ok good to know
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
Strange I checked my mod code and I had
'value' => $row['description'],
In the code so maybe you changed some files?
(https://i.imgur.com/v8iOVIu.png)
you might be right. I installed most Mods from the SMF Package Manager. ;)
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
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
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
Hello,
first thank you for this mod.
Does anybody has a german translation of this mod?
Thanks!
Andreas
Not sure you can try searching this topic.
Quote from: Hondo on August 04, 2016, 01:36:31 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 (http://linguaholic.com) that can help you with translations.
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
Quote from: Hondo on August 04, 2016, 03:41:06 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.
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 :)
If the my articles link has no userid included, of course you would see YOUR articles (and guests would see none)
This is correct and appropriate - just like the user profile
In order to share a user's list of articles, he/you would need to include the userid in the URL
Thanks Kindred :)
Well this is the link to his My Articles: http://forum.inkscapecommunity.com/index.php?action=articles;sa=myarticles;u=14
When I follow it, I see my articles.
This is the link to my My Articles: https://forum.inkscapecommunity.com/index.php?action=articles;sa=myarticles;u=1
When he follows it, he sees his articles.
Edit
We've pretty much concluded that a guest would not be able to see the articles using My Articles link, in any case. What we need is a way to display a list of a member's articles.
Can anyone think of a way?
Thanks again :)
Running 2.0.14, php7, default theme
After successful installion there was no link in the menu bar for Articles. Couldn't add an article.
I created a Category, set permissions but no navigation link for Articles as shown in mod images.
Uninstalleld, reinstalled, no navigation bar.
Any idea what went wrong?
Are you using the default language? You can't see the menu item asn admin?
I'm using the default English language for smf and default core theme.
From the Admin menu area I can see the Articles Configuration and its sub-items. There is the Settings which has an Articles url and an Articles Path.
I suppose I can take the Articles URL and make my own link in the main menu bar, but I thought the program would make the menu bar link automatically.
It does add it to the menu by default
You can upload the mod to http://smfhacks.com/smf-package-parser.html and follow the edits and make sure they were applied. Mainly the ones to Subs.php
The code was added properly to the subs.php.
I'll check the rest later. I'll be in meetings for about 4 hours from now.
Thanks for your help. Much appreciated.
hmm yeah i would check your themes languges modifications.english.php file as well.
Found the problem.
Menu Editor Lite was in conflict somehow with SMF Articles. I uninstalled MEL, reinstalled SMFArtiicles and it worked like a charm.
Now I just have to find another Menu editor.
Thanks for your help, vbgamer45. I appreciate it. Looking forward to enjoying your Articles mod.
Glad you have it working!
I hope that I am in the right place. Using Forum version: SMF 2.0.14. with SMF Articles 2.5.1a
Is there a way to hide the Edit and the Delete buttons from guest?
They shouldn't be visible unless you gave guests those permissions.
Here is my print screen of permissions for guest and an Article page.
Is there a way to show a list of articles from one category on a page or a SP block?
I don't have one for SP I did wirite block for ezPortal.
Code i used
$rows = (int) 1;
$articles = (int) 3;
$category = (int) 1;
// Check if articles system is installed
// Load the language files
if (loadlanguage('Articles') == false)
loadLanguage('Articles','english');
$maxrowlevel = $rows;
echo '<table cellspacing="0" cellpadding="5" border="0" align="center" width="100%">
';
//Check what type it is
$query = ' ';
switch($type)
{
case 'recent':
$query = "SELECT a.ID_ARTICLE, a.title, a.date, a.rating, a.totalratings, m.real_name, a.ID_MEMBER, a.description, a.views, a.commenttotal
FROM {db_prefix}articles AS a
LEFT JOIN {db_prefix}members AS m ON (a.ID_MEMBER = m.ID_MEMBER)
WHERE a.approved = 1 ORDER BY a.ID_ARTICLE DESC LIMIT $articles";
break;
case 'viewed':
$query = "SELECT a.ID_ARTICLE, a.title, a.date, a.rating, a.totalratings, m.real_name, a.ID_MEMBER, a.description, a.views, a.commenttotal
FROM {db_prefix}articles AS a
LEFT JOIN {db_prefix}members AS m ON (a.ID_MEMBER = m.ID_MEMBER)
WHERE a.approved = 1 ORDER BY a.views DESC LIMIT $articles";
break;
case 'mostcomments':
$query = "SELECT a.ID_ARTICLE, a.title, a.date, a.rating, a.totalratings, m.real_name, a.ID_MEMBER, a.description, a.views, a.commenttotal
FROM {db_prefix}articles AS a
LEFT JOIN {db_prefix}members AS m ON (a.ID_MEMBER = m.ID_MEMBER)
WHERE a.approved = 1 ORDER BY p.commenttotal DESC LIMIT $articles";
break;
case 'toprated':
$query = "SELECT a.ID_ARTICLE, a.title, a.date, a.rating, a.totalratings, m.real_name,
a.ID_MEMBER, a.description, a.views, a.commenttotal,
(a.rating / a.totalratings ) AS ratingaverage
FROM {db_prefix}articles AS a
LEFT JOIN {db_prefix}members AS m ON (a.ID_MEMBER = m.ID_MEMBER)
WHERE a.approved = 1 ORDER BY ratingaverage DESC LIMIT $articles ";
break;
}
// Execute the SQL query
$dbresult = $smcFunc['db_query']('', $query);
$rowlevel = 0;
while($row = $smcFunc['db_fetch_assoc']($dbresult))
{
if ($rowlevel == 0)
echo '<tr class="windowbg2">';
echo '<td align="center"><a href="' , $scripturl , '?action=articles;sa=view;article=', $row['ID_ARTICLE'], '">', $row['title'], '</a><br />';
echo '<span class="smalltext">';
if (!empty($modSettings['smfarticles_disp_rating']))
{
echo $txt['smfarticles_crating'],' ' , EzGetStarsByPrecent(($row['totalratings'] != 0) ? ($row['rating'] / ($row['totalratings']* 5) * 100) : 0),'<br />';
}
if (!empty($modSettings['smfarticles_disp_totalcomment']))
echo $txt['smfarticles_txt_comments'], ' ', $row['commenttotal'], '<br />';
if (!empty($modSettings['smfarticles_disp_views']))
echo $txt['smfarticles_cviews'], ' ', $row['views'], '<br />';
// Check if it was a guest article
if (!empty($modSettings['smfarticles_disp_membername']))
if ($row['real_name'] != '')
echo $txt['ezp_gallery_text_by'],' <a href="', $scripturl, '?action=profile;u=', $row['ID_MEMBER'], '">', $row['real_name'], '</a><br />';
else
echo $txt['ezp_gallery_text_by'],' ', $txt['smfarticles_txtguest'], '<br />';
if (!empty($modSettings['smfarticles_disp_date']))
echo $txt['smfarticles_cdate'],' ', timeformat($row['date']), '<br />';
echo '</span></td>';
if ($rowlevel < ($maxrowlevel-1))
$rowlevel++;
else
{
echo '</tr>';
$rowlevel = 0;
}
}
if ($rowlevel !=0)
{
echo '</tr>';
}
echo '
</table><br />';
Thanks for the code but I get a fatal error when trying this by adding a page to the portal or a block.
/community/Sources/Subs-Portal.php(1167) : eval()'d code on line 55
Before that code try adding
global $smcFunc, $txt, $scripturl;
Ok. I'll give it a try tomorrow. Thanks for the help.
No more errors but it also doesn't show the article list.
Get the following error now.
http://www.segnette.com/community/index.php?/page,hunting_articles.html
Apply Filter: Only show the errors with the same message
2: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given
Apply Filter: Only show the errors from this file
File: /Sources/Subs-Portal.php(1167) : eval()'d code
Line: 58
Also set above it
$type = 'recent'';
An error has occurred:
Syntax error in block code. Please check the code.
I noticed it looked like there was a typo...
$type = 'recent'';
Changed to $type = 'recent'; but no luck.
I am getting a error when using the rss feature.
https://n6aq.com/index.php?action=articles;sa=view&id=2 (Produces Error)
https://n6aq.com/index.php?action=articles;sa=view;article=2
This happens when you either click on the source of the rss feed or on the Title link of the rss feed. Any help on this is appreciated.
Thanks
I found the fix
Quote
Re: SMF Articles
« Reply #919 on: Korrik 02, 2016, 10:50:54 PD »
Quote
I have no idea if anyone else caught this, but urls in RSS feeds were not working.
Inside Articles2.php I changed this:
Code: [Select]
?action=articles;sa=view&id=
to this:
Code: [Select]
?action=articles;sa=view;article=
I'm using this to populate a SimplePortal Block, given I couldn't find any native support for this mod.
Cheers
Update
3.0.3
!Fixed article RSS feed url for article view
Thanks, the only one I can find is SMFArticles3.0.2a.zip
It is on https://custom.simplemachines.org/mods/index.php?mod=1354
Is there some code to adapt it to responsive to smf ?.
It's a shame, but adapted to mobile is the present.
thanks, good mod. Congratulations
Tenebroso
Saludos
There is not.
Thanks, I will try to eliminate a line from side to side, maybe it will fit.
I will look what I can do.
Thank you artist
How can I change the name from articles to something different?
Change the language files in themes/default/languages/modifications.english.php
ok thank you will give it a go after work today.
Quote from: vbgamer45 on March 04, 2018, 08:49:06 PM
Change the language files in themes/default/languages/modifications.english.php
VB do I change all the words that have 'article' to the new word or just particular ones?
Anything in = ''Articles';
do not change anything in $txt[]
Thank you once again.
Glad to help
I have changed all the text, changed on the menu only but nothing inside the article area, here is link http://yummieinmytummie.com/smf/index.php?action=articles
You also need to change text in articles.english.php if you want those to change as well.
Thank you again that was able to change everything that I needed. I appreciate you taking the extra time to help.
Branch: SMF 2.1
I just briefly tested this mod for someone that was having an issue.
The installer adds both manual parsing edits & hooks that have the same purpose.
The redundant file edits need to be removed and perhaps add an icon (& path in its hook) for the navigation menu.
Thanks for the report had a bug with the package-info.xml
3.0.3a
!Fixed install for SMF 2.1 Beta editions
!Fixed some https links for social media
A nice system, but the permissions don't really play like SMF permissions usually do. I can not seem to be able to make a category that is viewable only by one membergroup.
At least I haven't found a way to do that.
To explain a bit further:
My permissions on the forum use allow, disallow and deny.
The membergroup permission to view in forum wide permissions is allowed for everyone, because this is a master setting for the articles page.
I have a membergroup X that I would like to give exclusive access to a category, regardless of that group being in primary or secondary group for the member.
So far I have not been able to find a combination of the permissions that would allow this. Either everyone gets in, or no one gets in. ( Well, I can limit out groups completely, like guests - but if I limit say group Y, and a member is in both Y and X he will not get in because Y is denied. )
re. permissions
Edit the hooks file & replace the articles_load_permissions function with the following:
function articles_load_permissions(&$permissionGroups, &$permissionList, &$leftPermissionGroups, &$hiddenPermissions, &$relabelPermissions)
{
global $context, $modSettings;
$permissionList['membergroup'] += array(
'view_articles' => array(false, 'smfarticles', 'smfarticles'),
'add_articles' => array(false, 'smfarticles', 'smfarticles'),
'edit_articles' => array(false, 'smfarticles', 'smfarticles'),
'delete_articles' => array(false, 'smfarticles', 'smfarticles'),
'rate_articles' => array(false, 'smfarticles', 'smfarticles'),
'articles_comment' => array(false, 'smfarticles', 'smfarticles'),
'articles_auto_approve' => array(false, 'smfarticles', 'smfarticles'),
'articles_autocomment' => array(false, 'smfarticles', 'smfarticles'),
'articles_admin' => array(false, 'smfarticles', 'smfarticles'),
);
// SMF 2.1 branch behavior will differ
$version = version_compare((!empty($modSettings['smfVersion']) ? substr($modSettings['smfVersion'], 0, 3) : '2.0'), '2.1', '<') ? 'v2.0' : 'v2.1';
if ($version === 'v2.0')
{
$permissionGroups['membergroup']['simple'] += array(
'smfarticles',
);
$permissionGroups['membergroup']['classic'] += array(
'smfarticles',
);
}
else
$permissionGroups['membergroup'] += array(
'smfarticles',
);
}
Thanks Chen Zhen, that looks like a promising suggestion - but sadly, the 2.0 install doesn't seem to use the hooks file..
re. permissions
I'll give you a modified install file.
It's not my mod therefore I will not upload an updated package.
You'll have to unzip the package and replace the articles2.xml file with what is attached then re-zip the package and install it on your forum.
Report back and let us know if it resolves your issue.
If it does perhaps vbgamer will update his package with the fix.
Permissions I want to redo one day. Right now everything is allow all. And the only way to deny is deny each member group
I'll take a look at it, thanks.
Quote from: Chen Zhen on May 06, 2018, 01:01:08 PM
re. permissions
Okay, thanks for the effort - but comparing the original and your file, I'd be willing to guess this will have no effect.
That would only edit the part where ManagePermissions.php specifically states that it's completely optional to use.
Quote
// List of all the groups dependant on the currently selected view - for the order so it looks pretty, yea?
// Note to Mod authors - you don't need to stick your permission group here if you don't mind SMF sticking it the last group of the page.
The permissions for article categories have a unique table.
File: ../Sources/Articles2.php
function: MainView()
find:
if ($context['user']['is_guest'])
$groupid = -1;
else
$groupid = $user_info['groups'][0];
// Set page title
$context['page_title'] = $mbname . ' - ' . $txt['smfarticles_title'];
$dbresult = $smcFunc['db_query']('', "
SELECT
c.ID_CAT, c.title, c.imageurl, c.filename, c.roworder, c.description, p.view
FROM {db_prefix}articles_cat AS c
LEFT JOIN {db_prefix}articles_catperm AS p ON (p.ID_GROUP = $groupid AND c.ID_CAT = p.ID_CAT)
WHERE c.ID_PARENT = 0 ORDER BY roworder ASC");
$context['articles_cat'] = array();
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
{
// Skip category if they do not have permission to view it
if ($row['view'] == '0')
continue;
$context['articles_cat'][] = $row;
}
$smcFunc['db_free_result']($dbresult);
replace with:
if ($user_info['is_guest'])
$groupid = array(-1);
else
$groupid = $user_info['groups'];
// Set page title
$context['page_title'] = $mbname . ' - ' . $txt['smfarticles_title'];
$dbresult = $smcFunc['db_query']('', '
SELECT
c.ID_CAT, c.title, c.imageurl, c.filename, c.roworder, c.description, p.view, p.ID_GROUP
FROM {db_prefix}articles_cat AS c
LEFT JOIN {db_prefix}articles_catperm AS p ON (p.ID_CAT = c.ID_CAT)
WHERE c.ID_PARENT = 0
ORDER BY roworder ASC'
);
$context['articles_cat'] = array();
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
{
// List category if they have permission to view it
if ($row['view'] != '0' && ($user_info['is_admin'] || in_array($row['ID_GROUP'], $groupid)))
$context['articles_cat'][] = $row;
}
$smcFunc['db_free_result']($dbresult);
Quote from: Mick. on August 15, 2011, 05:28:09 PM
Vb, it seems that when 'liking' an article and pasting an article link on facebook, it does not take you to the article itself, it posts the home page link instead.
I just recently noticed that pasting a link to an article in Facebook actually posts a link that brings up the home page also.
I searched through but didn't see a solution, unless I missed it.
It is probably do the url having a ; which SMF uses by default and Facebook does not like those characters.
Quote from: vbgamer45 on June 20, 2018, 09:45:33 PM
It is probably do the url having a ; which SMF uses by default and Facebook does not like those characters.
Ok thanks. I saw you had said that but didn't know if a work around had been discovered.
Basically change the links to use & instead of ;
Quote from: vbgamer45 on June 20, 2018, 10:52:58 PM
Basically change the links to use & instead of ;
How would one go about doing that?
It would require opening the template files for articles and changed the url passed in the facebook code I believe
3.0.3b
+Added install support for SMF 2.1 RC1
I think this mod needs to be updated.
In SMF 2.1 RC2+, when I write an article, I get an error message directly in the editor window:
Notice: Undefined index: show_bbc in /home/bulataka/public_html/test/Themes/default/Articles2.1.template.php on line 853
Click => (https://i.postimg.cc/Xpcgrd6y/Error-Articles.jpg) (https://postimg.cc/Xpcgrd6y)
Also, when I try to import Tinyportal articles (I use Tinyportal 1.6.5), I get two error messages:
- first error message at the top:
Notice
: Undefined index: admin_menu_name in
/home/bulataka/public_html/test/Sources/Articles2.php
on line
1829
- second error message, as message box:
Database Error
Unknown column 'authorID' in 'field list'
File: /home/bulataka/public_html/test/Sources/Articles2.php
Line: 2912
Update
3.0.4
!Fixed importing new versions of TinyPortal article system
!Fixed some undefined errors for SMF 2.1.x
Quote from: SMFHacks.com Team on April 15, 2020, 10:33:02 AM
Update
3.0.4
!Fixed importing new versions of TinyPortal article system
!Fixed some undefined errors for SMF 2.1.x
Thanks, problems solved :)
I tested SMF Articles 3.04 in SMF 2.0.17 and 2.1 RC. There is no way to add a new article. I added a category at first. Changed permissions to global moderator. There is no place can find add article button for any members (even if administrator, global moderator).
SMF Articles 3.03b can add a new article.
I do not if it is bug or there is any trick to add a new article.
Inside the category do you have this near the bottom
"Add Sub Category - Add Article - Return to Article Index"
Also, do you have any permissions setup on the category. If so can you take a screenshot of what you have setup.
Thank you very much for your reply. I attached three pictures, I am not for sure they can be shown. The SMF 2.017, SMF-Articles 3.0.3b works, but 3.0.4 does not. I attached the screenshot when 'Articles' button is selected, and screenshot of permissions (3.0.4 at SMF 2.0.17).
For SMF version 2.1 RC, 3.0.4 did not work at first, after I installed 3.0.3b and created two categories, then uninstall 3.0.3b, reinstalled 3.0.4, 3.0.4 works.
Both logged in users are administrator. ( I tested global moderator, got the same results.)
For permissions was asking about the permissions on the category level
Here is a quick video https://softwaredemos.tinytake.com/tt/NDYzMjA0MV8xNDY4MTY4Mw
The SMF-Articles is the only package installed.
3.0.3b version, there is:
Add Category - Add Article - Settings - Permissions
but 3.0.4 ( installed at SMF 2.0.17) there is no such thing.
In Admin, "Articles Configuration" is missing at 3.0.4 (installed in SMF 2.0.17).
There is no way to add a category.
The first picture showed what happened after "Articles" button was clicked in my last reply.
Thank you so much for your reply and video.
Ok looks like an edit failed to the index.php file for SMFarticle3.04.jpg
It should not redirect back to the board index
Upload the package to https://www.smfhacks.com/smf-package-parser.html to find the edits and make sure the files are copied to the right places.
This time it works.
I downloaded SMF-articles 3.0.4 again, and reinstalled it to SMF 2.0.17.
I checked my PC's file manager, it showed my old SMF-articles 3.0.4 was downloaded on April 17th, this year.
SMF-articles 3.0.3b was downloaded on March 29th, this year.
Thank so much.
Glad you have it working.
Your helps is really in time, thanks again.
Found some bugs
QuoteVersion Information:
Forum version: SMF 2.1 RC3
Current SMF version: SMF 2.1 RC3
GD version: 2.3.0
ImageMagick version: 6.9.10-23 Q16 x86_64 20190101 imagemagick.org (Imagick 3.4.4)
MySQL engine: MySQL
MySQL version: 5.7.32
SMF file based caching: 2.1 RC3
PHP: 7.4.13 (more detailed)
Server version: Apache/2.4.41 (Ubuntu)
SMFArticles version: 3.0.4
1) Which version is the current?
QuoteYour Version: 3.0.1 Latest Version: 3.1 Your article system version is not up to date!
2) In version 3.0.4, a white page is displayed in the category management. Error is a forgotten s
Articles2.php line 75
'admincat' => 'ArticleAdminCats',
Solution, change to
'admincat' => 'ArticlesAdminCats',
Only no categories are displayed, although there are some
The error is that there is no database query in this function
function ArticlesAdminCats()
{
global $context, $mbname, $txt;
isAllowedTo('articles_admin');
$context['page_title'] = $mbname . ' - ' . $txt['smfarticles_title'] . ' - ' . $txt['smfarticles_managecats'];
$context['sub_template'] = 'manage_cats';
}
I find the database query in function Articles_AdminCat
Solution. First delete the function ArticlesAdminCats() and change
function Articles_AdminCat()
change to
function ArticlesAdminCats()
Thanks wintstar. I am guessing some code got mixed between updates/versions have rolled out fixes
Update!
3.1
!Fixed bug with the manage categories link
!Removed google+ code
!Updated social sharing links to https for SMF 1.1.x
Many thanks vbgamer45 :)
QuoteMod Name:
SMF Articles
Created By:
SMFHacks.com Team
Type:
New Feature
First Created:
August 26, 2008, 12:33:30 AM
Last Modified:
Today at 12:46:16 PM
Latest Version: 3.0.4
Compatible With:
1.1.13, 1.1.14, 1.1.15, 1.1.16, 1.1.17, 1.1.18, 1.1.19, 1.1.20, 1.1.21, 2.0, 2.0.9, 2.0.10, 2.0.11, 2.0.12, 2.0.13, 2.0.14, 2.0.15, 2.0.16, 2.0.17, 2.1 Beta 3, 2.1 RC1, 2.1 RC2, 2.1 RC3
Total Downloads: 25208
On the Mod Site (https://custom.simplemachines.org/mods/index.php?mod=1354) must change Latest Version to 3.1.
Thanks for heads up getting error on modsite right now.
Fixed now.
running SMF Articles 3.1 on SMF 2.0.18
.../index.php?action=articles;sa=view&id=286
No article selected
getting these errors filling the log.... (a variety of different IDs)
SMF 2.0.18???
Is 2.0.18 released?
no. I am beta testing
Fixed with new update posted.
Looks like those were coming from an old url format. I check for that format now and in either case don't log that error.
I'm really liking SMF Articles 8)
I'd like to improve the layout on mobiles by trimming down the member info displayed on the left.
In comments, I'd like to keep/display: the member name, date/time and avatar.
But I'd like to remove/not display: member group, Posts count, and all the view profile, PM etc icons.
Hope you can help, or point me in the right direction.
Cheers
Mike
It is possible the html is all in Aritcles2.template.php in the themes default folder.
But keep in mind if you change it will also affect the desktop version as well.
Thanks vbgamer45, I'm happy to remove them from the desktop version as well.
Any pointers as to what to look for and change in Articles2.template.php?
Can I simply remove things, or is it best to use something like display = none?
Cheers
Mike
You can simply remove things that is better than display:none
There is what I believe a section that displays the members profile information in that file and you can just remove those files.
Thanks again, I'll have a go later 8)
Getting there, very pleased with the results thanks :)
It would be great if we could add permissions for 'edit own comments' and 'delete own comments'?
Cheers
Mike
Dutch translation in attach.
I can't change the word "Articles" in the main menu of the forum... :) Articles.dutch.php
Thanks for the translation.
The menu is in modifications.english.php
Quote from: vbgamer45 on March 13, 2022, 09:05:27 PMThanks for the translation.
The menu is in modifications.english.php
Thank you. I'll edit it there.
modifications.dutch.php
// Begin SMF Articles Text Strings
$txt['smfarticles_menu'] = 'Artikelen';
$txt['smfarticles_admin'] = 'Artikel configuratie';
$txt['smfarticles_articlessettings'] = 'Instellingen';
$txt['smfarticles_approvearticles'] = 'Artikelen goedkeuren';
$txt['smfarticles_form_approvecomments'] = 'Reacties goedkeuren';
$txt['smfarticles_catpermlist'] = 'Lijst met categorie goedkeuringen';
$txt['smfarticles_txt_copyrightremoval'] = 'Copyright Verwijdering';
$txt['smfarticles_txt_managecategories'] = 'Beheer categorieën';
$txt['smfarticles_txt_import'] = 'Importeren';
$txt['permissiongroup_smfarticles'] = 'SMF Articles';
$txt['permissiongroup_simple_smfarticles'] = 'SMF Articles';
$txt['permissionname_view_articles'] = 'Artikelen bekijken';
$txt['permissionhelp_view_articles'] = 'Stelt in of de gebruiker de artikelen kan bekijken.';
$txt['cannot_view_articles'] = 'U kunt de pagina met artikelen niet bekijken.';
$txt['permissionname_add_articles'] = 'Artikel toevoegen';
$txt['permissionhelp_add_articles'] = 'Als de gebruiker artikelen mag indienen';
$txt['cannot_add_articles'] = 'Je kunt geen artikelen toevoegen.';
$txt['permissionname_edit_articles'] = 'Bewerk eigen artikelen';
$txt['permissionhelp_edit_articles'] = 'Als de gebruiker artikelen mag bewerken';
$txt['cannot_edit_articles'] = 'U kunt geen artikelen bewerken.';
$txt['permissionname_delete_articles'] = 'Eigen artikelen verwijderen';
$txt['permissionhelp_delete_articles'] = 'Als de gebruiker artikelen mag verwijderen';
$txt['cannot_delete_articles'] = 'Je kunt geen artikelen verwijderen.';
$txt['permissionname_articles_comment'] = 'Laat reacties achter';
$txt['permissionhelp_articles_comment'] = 'Stelt de gebruiker in staat om reacties op een artikel achter te laten.';
$txt['cannot_articles_comment'] = 'Het is niet toegestaan om reacties achter te laten.';
$txt['permissionname_articles_auto_approve'] = 'Artikelen automatisch goedgekeurd';
$txt['permissionhelp_articles_auto_approve'] = 'Als de artikelen van leden automatisch worden goedgekeurd wanneer ze worden ingediend.';
$txt['permissionname_articles_autocomment'] = 'Opmerkingen automatisch goedkeuren';
$txt['permissionhelp_articles_autocomment'] = 'Opmerkingen hoeven niet op goedkeuring te wachten.';
$txt['permissionname_rate_articles'] = 'Beoordeel artikelen';
$txt['permissionhelp_rate_articles'] = 'Als de gebruiker artikelen mag beoordelen';
$txt['cannot_rate_articles'] = 'Je mag geen artikelen beoordelen.';
$txt['permissionname_articles_admin'] = 'Admin artikelen';
$txt['permissionhelp_articles_admin'] = 'Forumlid kan de artikelen beheren';
$txt['cannot_articles_admin'] = 'Je mag de artikelen niet beheren.';
// END SMF Articles Strings
When I add a comment to an article, I get error messages:
Warning: Undefined array key "image_href" in /home/bulataka/public_html/test/Themes/default/Articles2.1.template.php on line 2305
Warning: Undefined array key "icq" in /home/bulataka/public_html/test/Themes/default/Articles2.1.template.php on line 2330
Warning: Trying to access array offset on value of type null in /home/bulataka/public_html/test/Themes/default/Articles2.1.template.php on line 2330
Warning: Undefined array key "msn" in /home/bulataka/public_html/test/Themes/default/Articles2.1.template.php on line 2330
Warning: Trying to access array offset on value of type null in /home/bulataka/public_html/test/Themes/default/Articles2.1.template.php on line 2330
Warning: Undefined array key "aim" in /home/bulataka/public_html/test/Themes/default/Articles2.1.template.php on line 2330
Warning: Trying to access array offset on value of type null in /home/bulataka/public_html/test/Themes/default/Articles2.1.template.php on line 2330
Warning: Undefined array key "yim" in /home/bulataka/public_html/test/Themes/default/Articles2.1.template.php on line 2330
Warning: Trying to access array offset on value of type null in /home/bulataka/public_html/test/Themes/default/Articles2.1.template.php on line 2330
Warning: Undefined array key "show_profile_buttons" in /home/bulataka/public_html/test/Themes/default/Articles2.1.template.php on line 2333
Also, there is a missing "Online" image below the username:
Click => (https://i.postimg.cc/B8WzBPw7/2022-05-11-5.png) (https://postimg.cc/B8WzBPw7)
I'm using 3.1a version
Forum details:
Forum version: SMF 2.1.2 (more detailed)
Current SMF version: SMF 2.1.2
GD version: bundled (2.1.0 compatible)
ImageMagick version: 6.9.10-68 Q16 x86_64 2021-10-13 https://imagemagick.org (Imagick 3.7.0)
MySQL engine: MariaDB
MySQL version: 10.3.34-MariaDB-log
SMF file based caching: 2.1.2
SQLite3 database based caching: 3.7.17
PHP: 8.1.5 (more detailed)
Server version: Apache
Haven't updated the mod yet for 2.1 final
Can this modified to take pdf's also in the upload
Keith
It could be but not something I have planned.