Advertisement:

Author Topic: SMF Articles  (Read 307587 times)

Offline Grammy

  • Full Member
  • ***
  • Posts: 503
  • Gender: Female
  • Tire Kicker
Re: SMF Articles
« Reply #900 on: May 05, 2016, 08:47:20 PM »
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.   :)

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,469
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #901 on: May 05, 2016, 09:05:00 PM »
I think I just had it mislabeled.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Offline Grammy

  • Full Member
  • ***
  • Posts: 503
  • Gender: Female
  • Tire Kicker
Re: SMF Articles
« Reply #902 on: May 05, 2016, 10:03:16 PM »
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.   :-\

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,469
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #903 on: May 05, 2016, 10:08:59 PM »
Fixed reuploaded that version.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Offline Grammy

  • Full Member
  • ***
  • Posts: 503
  • Gender: Female
  • Tire Kicker
Re: SMF Articles
« Reply #904 on: May 05, 2016, 10:13:13 PM »
Oh, thanks so much!  I hear this is a great mod, so I'm eager to try it.  Thanks again.   :)

Offline Grammy

  • Full Member
  • ***
  • Posts: 503
  • Gender: Female
  • Tire Kicker
Re: SMF Articles
« Reply #905 on: May 06, 2016, 08:27:12 AM »
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.   :)

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,469
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #906 on: May 06, 2016, 12:46:08 PM »
Not at the moment my time is very limited.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Offline Grammy

  • Full Member
  • ***
  • Posts: 503
  • Gender: Female
  • Tire Kicker
Re: SMF Articles
« Reply #907 on: May 06, 2016, 06:04:37 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. 

Offline roza

  • Semi-Newbie
  • *
  • Posts: 45
Re: SMF Articles
« Reply #908 on: June 04, 2016, 06:41:51 AM »
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.
Code: [Select]

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>';
}

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,469
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #909 on: June 04, 2016, 08:39:30 AM »
That would be over here but looks like they are already bold...
Code: [Select]
// 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>';

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Offline roza

  • Semi-Newbie
  • *
  • Posts: 45
Re: SMF Articles
« Reply #910 on: June 04, 2016, 05:29:01 PM »
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!

Offline roza

  • Semi-Newbie
  • *
  • Posts: 45
Re: SMF Articles
« Reply #911 on: June 07, 2016, 09:39:29 AM »
Sorry but I'm still seeking answer!

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,469
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #912 on: June 07, 2016, 10:45:07 AM »
I am not sure what to do. There is no css with this mod.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Offline roza

  • Semi-Newbie
  • *
  • Posts: 45
Re: SMF Articles
« Reply #913 on: June 08, 2016, 07:21:46 AM »
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.

Offline IzzySoft

  • Semi-Newbie
  • *
  • Posts: 11
Re: SMF Articles
« Reply #914 on: June 27, 2016, 07:25:39 AM »
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.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,469
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #915 on: June 27, 2016, 08:00:40 PM »
It shows the root node.
Then when viewing an article it shows the category breadcrumb
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Offline IzzySoft

  • Semi-Newbie
  • *
  • Posts: 11
Re: SMF Articles
« Reply #916 on: June 27, 2016, 11:08:16 PM »
thanks for replying fast. :)

link to page: http://kissui.izzysoft.com/support/index.php?action=articles [nofollow]

i'm wondering how to always show `Articles`, which i can't see at this moment.
ex:


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?
Code: [Select]
// 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)
Code: [Select]
// 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. :{
« Last Edit: June 27, 2016, 11:59:34 PM by IzzySoft »

Offline IzzySoft

  • Semi-Newbie
  • *
  • Posts: 11
Re: SMF Articles
« Reply #917 on: July 02, 2016, 05:01:47 AM »
i think i have what i wanted... thanks. :D

ex:


Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,469
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Articles
« Reply #918 on: July 02, 2016, 08:19:07 AM »
That looks good.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

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

Offline acsieben

  • Semi-Newbie
  • *
  • Posts: 88
Re: SMF Articles
« Reply #919 on: July 02, 2016, 10:50:54 AM »
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