News:

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

Main Menu

Order News

Started by 青山 素子, April 04, 2007, 02:24:12 AM

Previous topic - Next topic

C4G-TK

This is another one of those mods that should be standard in SMF.  In fact, most ALL of the re-ordering mods should be standard.  (News, Stickied Topics, Profile Fields)  Can't wait for you to update.  It really does make things easier for Admins. :)

-img removed-

PalmBeachPreps

Any chance that this will be updated for RC2?

gbsothere

Motoko-chan, I have a question (and no hurry on the answer; just when you find time):

My main forum is 1.1.11, Default theme and I would like, very much, to be able to use your mod to change the order of the news, since we use the news fader probably more than most features.  Here is my problem:

I wanted to be able to incorporate some BBC drop down menus (as one finds in the posting area) in the news area and finally was able to achieve that here:

http://www.simplemachines.org/community/index.php?topic=337912.msg2276542#msg2276542

I find that your mod uses some of the same blocks of code I use in the ManageNews.template.php.  The main one I'd like to ask you about is here:


<td align="center">
<a href="#" onclick="newsMove(\'newsarticle', $admin_news['id'], '\', \'newsarticle' , $admin_news['id'] - 1 , '\'); return false;"><img src="', $settings['images_url'], '/sort_up.gif" alt="', $txt['news_move_up'], '" /></a>
</td><td align="center">
<a href="#" onclick="newsMove(\'newsarticle', $admin_news['id'], '\', \'newsarticle' , $admin_news['id'] + 1 , '\'); return false;"><img src="', $settings['images_url'], '/sort_down.gif" alt="', $txt['news_move_down'], '" /></a>
</td><td align="center">
<div style="margin-bottom: 2ex;"><textarea rows="3" cols="65" name="news[]" id="newsarticle', $admin_news['id'], '" style="width: 85%;">', $admin_news['unparsed'], '</textarea></div>


The id="newsarticle"

In my BBC drop down code, in that particular block of code, id must be id="box'.$count.'".  Am I right in thinking that, since that's the case, I cannot use this mod, if I want to keep my BBC drop down menus functioning as they should?  There is no way for two mods (mine really isn't a mod) to have their own id in the same block of code?

Here's a sample of what I'm trying to preserve:




Thank you for any insight and, again, absolutely no hurry.   :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

C4G-TK

Tried to install the lastest update on my RC2 forum and got the following error.
I understand when it says TEST FAILED< but what is a MODIFICATION PARSE ERROR?

Image below:

-img removed-

青山 素子

It means it didn't understand the modification instructions, possibly due to some formatting problem. I've seen issues in some cases with bad extraction of mods. Try manually extracting the modification to its own folder in the Packages directory and see if it works properly.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


C4G-TK

#45
I tried to take another look at it and parsed it to do it manually.

There is only one edit showing to do when I parse and I did it which is the Modifications.english file edit.

What happened to the ManageNews.template.php edit?  Look at the package when you parse it in on the mod site.  There is only the above edit showing to do that is required.  All the rest are simply language edits that are not needed.  It says nothing to do currently as ManageNews.template.php like it did previously.

Your XML file shows to do the ManageNews.template.php edit though.  I don't think it is in my end or else the package would parse correctly on this site.

-img removed-

青山 素子

Odd. I'll look into it. I confirmed it applied cleanly on my test environment.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


C4G-TK

I parsed it here by selecting RC2 and it doesn't show the ManageNews.template edit.

http://custom.simplemachines.org/mods/index.php?mod=745

-img removed-

C4G-TK

Quote from: C4G-TK on January 02, 2010, 06:10:45 PM
Tried to install the lastest update on my RC2 forum and got the following error.
I understand when it says TEST FAILED< but what is a MODIFICATION PARSE ERROR?

Ok, I tried this on a second forum on a different server and I still get the same error.
Has anyone gotten this to install on an RC2 forum?

-img removed-

青山 素子

I haven't been able to reproduce the issue. It might be an issue with gzip handling on some servers.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


[unplugged]

I tried to install it on my test site and get the same error as above. I have a screenshot here if it helps at all:

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



青山 素子

Quote from: SunKing on February 21, 2010, 02:58:30 PM
I tried to install it on my test site and get the same error as above. I have a screenshot here if it helps at all:

Specs on that please. Also, x86_64 or i3/4/5/686? Oh, and platform (since you can run PHP on Windows).
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


[unplugged]

It's calling install-20.xml from the package-info.xml, but that file is not in the package, only the install.xml is, resulting in that error.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



青山 素子

#53
Hmmm. I do have install-20.xml in my source tree, but it seems I forgot to check it in to version control (I'm at my desktop for a few minutes this morning). I'll try and get a patch release out tomorrow (Tuesday) when I'm home.

Edit: For those really itching to get something done today, I'm attaching install-20.xml. Extract the mod to an empty directory, then place into the same directory as install.xml and archive the mess back up.

Edit: Released 1.0.9, removed attachment.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


C4G-TK

Thanks for taking a look at it, Motoko-chan!

After you get the updated version done, nudge them to make this standard in SMF.  This really is a great tool that should be standard!

-img removed-

青山 素子

1.0.9 has been released with the missing file for SMF 2.0.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


C4G-TK

Cool deal!  I would update my site now, but the connection sucks here in Aruba.  Luckily, the drinks, beach, weather, water, and everything else is FANTASTIC though!  Was just signing in to check on things at SMF before going to bed.  This was a cool bit of good news to see.  Thanks MOTOKO!!

-img removed-

Bugo

Russian text:

//Order News
$txt['news_move_up'] = 'Переместить вверх';
$txt['news_move_down'] = 'Переместить вниз';
$txt['news_warn_header'] = 'Предупреждение:';
$txt['news_warn_body'] = 'Вы изменили порядок новостей. Для принятия изменений нажмите кнопку "Сохранить".';



TurtleKicker

Thanks for updating this for RC3, Motoko. One of those "duh" cricial features that should be in SMF by default.

FireDitto

Will this be updated for RC4?
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Advertisement: