Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 22, 2013, 11:26:35 pm

Login with username, password and session length
Members
Total Members: 10766
Latest: Heater Sajid
Stats
Total Posts: 32387
Total Topics: 5479
Online Today: 67
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 41
Total: 42
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 [2] 3 4 5 Go Down Print
Author Topic: [Mod] SMF Articles  (Read 27088 times)
davieb
Inline PM Customer
*****
Offline Offline

Posts: 44


View Profile
« Reply #15 on: March 10, 2009, 02:35:58 pm »

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.
Logged
zerog12avity
Inline PM Customer
*****
Offline Offline

Posts: 1


View Profile
« Reply #16 on: March 14, 2009, 04:59:04 pm »

I would like to have the option to display select articles on my simple portal page.

Also, got a bug.
SMF Articles and SimplePortal Articles are conflicting with each other. When I go to SimplePortal / Articles it redirects me to the SMF Article Admin Panel. 
Got a fix?
Logged
Cowboy Logic
Inline PM Customer
*****
Offline Offline

Posts: 12


View Profile
« Reply #17 on: March 21, 2009, 07:12:49 pm »

What ended up solving it for me was editing the index template file for the Babylon theme to add another function button and creating a button for the Articles section.

I was hoping this would solve my problem too, but all I can get is a square with a red x and "home" text because I copied the code from my "home" button and installed in the array.

I too created the new "Articles" button, named it like the download, and dropped it into the "English" bucket with the rest of my buttons. I'm using the Extreme6 theme, so that's where I made my adjustments.
No luck. Even though I have the Articles Configuration page, and the Page Management Mod to add another page, I'm having trouble connecting the dots.

I would sure appreciate some pointers.

Thanks in advance.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« Reply #18 on: March 21, 2009, 08:52:39 pm »

Can you post the code that are using to add this button?
Logged
Cowboy Logic
Inline PM Customer
*****
Offline Offline

Posts: 12


View Profile
« Reply #19 on: March 24, 2009, 03:50:09 pm »

This is the code I copied from my first button:

Quote
        // Show the [home] button.
                  echo '<li><a href="', $scripturl, '" class="kwick opt1">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.png" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[103]), '</span></a></li>';

I edited to look like this:

Quote
        // Show the [Atricles] button.
                  echo '<li><a href="', $scripturl, '" class="kwick opt1">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/article.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[103]), '</span></a></li>';

The results are a box with a red x, and an alternate text of "home" instead of Articles.

Also, if simply try to view the page via URL, I get a "Hacking Attempt" message.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« Reply #20 on: March 24, 2009, 06:52:19 pm »

Should be
Code:
  echo '<li><a href="', $scripturl, '?action=articles" class="kwick opt1">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/article.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" /><span>' : 'Articles'), '</span></a></li>';

You also need to create an image called articles.gif in themes/default/images/english
Logged
Cowboy Logic
Inline PM Customer
*****
Offline Offline

Posts: 12


View Profile
« Reply #21 on: March 24, 2009, 07:27:01 pm »

 Grin Perfect. Thank you. I already had the image created, but only in the theme folder, I dropped it into the default folder and my new Articles section is steaming on.

I did rename the image to a PNG to match the rest however, and changed it in your code sample.

Thanks again.

... I'll be back. I need a store.
Logged
futts
Inline PM Customer
*****
Offline Offline

Posts: 1


View Profile
« Reply #22 on: April 08, 2009, 01:33:21 pm »

How would the anchor bbcode work with this? I'm attempting to interlink between articles, specifically anchored portions of others, using:

[anchor=*test]test[/*anchor]

and

[url*=http://www.simplemachines.org/community/index.php?topic=303586.0#post_test]go to test[/*url]

What would be the substitute for post or am I reading this wrong? (Ignore the astericks.)

ETA: Ah, nevermind, it is treated as regular posts. Smiley

« Last Edit: April 08, 2009, 09:01:17 pm by futts » Logged
ScaryJerry
Inline PM Customer
*****
Offline Offline

Posts: 1


View Profile
« Reply #23 on: July 05, 2009, 10:27:42 pm »

This has had me going in circles for a couple of days. I'm sure I'm just overlooking the most simple of things, but I would really appreciate the help. I am simply trying to embed a code, the I use in the forum and other places in the site, for a media player in an article. I use articles for posting interviews, and this is an audio interview with Lloyd Kaufman. It's a bit of a pointless page when the roughly 40 visitors, so far, can only see a white box and a description of what's supposed to be there Cheesy The video(which is actually just audio here, but it's used other places for video) just isn't loading or something. The code will embed on any other site, just not SMF Articles. All I get is a white box where a media player should be. Any ideas?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« Reply #24 on: July 08, 2009, 07:49:15 am »

If it is an html code it will not work. The articles system supports bbc code only. There are mods for SMF that allow embedded bbc code of movies/videos that would work with the articles.
Logged
dimdom
Inline PM Customer
*****
Offline Offline

Posts: 21


View Profile
« Reply #25 on: September 28, 2009, 12:01:39 pm »

Is there a Tiny Portal block (or any other code) to show most recent articles in front page?

I have search in Tiny Block site but found nothing.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« Reply #26 on: September 28, 2009, 07:10:41 pm »

Not at the moment I might make one at a future date
Logged
Eddy Matthews
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #27 on: October 27, 2009, 03:48:48 pm »

I'd like to use SMF Articles, but for a different purpose....  I'd like to have an online listing of books.

Would it be possible to add 4 or 5 Admin definable fields that could be used for the Book title, Author, Publisher, ISBN number etc.

And also would it be possible to add the ability to add one or two photos so that the book covers could be shown?

Although I specifically want to list books, I'm sure these additions would make it much more flexible for all sorts of uses...

Regards
Eddy
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11000


View Profile
« Reply #28 on: October 28, 2009, 02:03:35 pm »

Possible. I am going to get a lot free time in early January of 2010 so hoping I can go though these requests maybe also add a link in the mod tracker as well so I remember
Logged
Eddy Matthews
Full Member
***
Offline Offline

Posts: 158


View Profile
« Reply #29 on: October 28, 2009, 03:40:04 pm »

Thanks SMF, as requested I've added it to the Mod Tracker....

Many thanks
Eddy
Logged
Pages: 1 [2] 3 4 5 Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 10:03:30 pm]

[Today at 03:00:09 pm]

[Today at 03:03:31 am]

[May 21, 2013, 03:27:16 pm]

[May 21, 2013, 02:11:10 pm]

[May 21, 2013, 01:18:58 pm]

[May 21, 2013, 12:22:02 am]

[May 21, 2013, 12:20:41 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 08:18:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.332 seconds with 22 queries.