• Welcome to Simple Machines Community Forum. Please login or sign up.
January 17, 2022, 09:19:02 PM

News:

Check out the SMF Function DB!


SMF Articles

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

Previous topic - Next topic

KidCactus

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

qubbah

hope there is a code to show latest article in block for portal. tq

Arantor

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?
No good deed goes unpunished
All helpful urges should be circumvented

~DS~

Does this article mod act like a review? Because I know there is no review mod. (Yes, it's for games reviews)
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

vbgamer45

I think it it has ratings built in so I think you can use it that way.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

KidCactus

March 04, 2010, 06:55:37 AM #585 Last Edit: March 04, 2010, 09:32:09 AM by KidCactus
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.

vbgamer45

Would require some work about a half hour to hour.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

amko_sa

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

Kindred

well, submit article is not available in a module, but EZPortal (also written by vbgamer) has a recent articles block
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

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

amko_sa

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.

vbgamer45

Updated mod for SMF 2.0 RC3!

1.3
+Added SMF 2.0 RC3 Support
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Sic0

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?

vbgamer45

I belive that's what it does by default adds the thumbnail with a link to the larger image.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Sic0

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)

BLueSS

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?

vbgamer45

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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

vbgamer45

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?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Granular

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

vbgamer45

Go inside the parent category. The subcategories should be listed above and you can find the edit/delete links there.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Granular

@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

Advertisement: