The real way to check the forum

Here you can just talk about MX or post interesting topics about what you have done in MX that you want to share with others. Other non-MX topics can be discussed within the Rules of the Forum.
Message
Author
User avatar
Nite Coder
Developer
Posts: 61
Joined: Fri Dec 21, 2018 2:28 pm

Re: The real way to check the forum

#11 Post by Nite Coder »

richb wrote: Thu Aug 08, 2019 12:12 pm One could also set up a desktop or panel launcher
I thought that was such a good idea that I did it!
Here are some images of how it looks:

Desktop Launchers:
MX Forum Top:

Code: Select all

[Desktop Entry]
Categories=Internet;
Exec=xfce4-terminal -e "mxforum-query https://forum.mxlinux.org/index.php" --hold --title "Top MX Forum Topics"
Name=MX Forum Top
GenericName[en_US]=MX Forum Top
GenericName=MX Forum Top
Icon=/boot/grub/themes/mx_elegant/icons/mx.png
MimeType=
Comment=Show unanswered topics
NoDisplay=false
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
MX Forum Unanswered:

Code: Select all

[Desktop Entry]
Categories=Internet;
Exec=xfce4-terminal -e "mxforum-query https://forum.mxlinux.org/search.php?search_id=unanswered" --hold --title "Unanswered MX Forum Topics"
Name=MX Forum Unanswered
GenericName[en_US]=MX Forum Unanswered
GenericName=MX Forum Unanswered
Icon=/boot/grub/themes/mx_elegant/icons/mx.png
MimeType=
Comment=Show unanswered topics
NoDisplay=false
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
MX Forum Unread: Notice it needs your username and password

Code: Select all

[Desktop Entry]
Categories=Internet;
Exec=xfce4-terminal -e "mxforum-query https://forum.mxlinux.org/search.php?search_id=unreadposts --username 'Your Username' --password 'Your Password'" --hold --title "Unread MX Forum Topics"
Name=MX Forum Unread
GenericName[en_US]=MX Forum Unread
GenericName=MX Forum Unread
Icon=/boot/grub/themes/mx_elegant/icons/mx.png
MimeType=
Comment=Show unread topics
NoDisplay=false
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
https://i.imgur.com/fn99uNS.png
https://i.imgur.com/JttDrsi.png
asqwerth wrote: Thu Aug 08, 2019 12:06 pm I'm sure one could use the script in a conky....

But I haven't even tested the script, so I don't know how it looks. I'll check it out over the weekend.
I tried, it doesn't look good. but it is functional.

https://i.imgur.com/e5z5Avc.png

User avatar
richb
Administrator
Posts: 10898
Joined: Wed Jul 12, 2006 2:17 pm

Re: The real way to check the forum

#12 Post by richb »

Nice!
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

SwampRabbit
Posts: 3602
Joined: Tue Jun 14, 2016 2:02 pm

Re: The real way to check the forum

#13 Post by SwampRabbit »

That is really awesome.

I know this was a fun "pet project", but this would make for a really cool xfce panel plugin.
NEW USERS START HERE FAQS, MX Manual, and How to Break Your System - Don't use Ubuntu PPAs! Always post your Quick System Info (QSI) when asking for help.

User avatar
richb
Administrator
Posts: 10898
Joined: Wed Jul 12, 2006 2:17 pm

Re: The real way to check the forum

#14 Post by richb »

Another GUI method that will popup the results in a browser tab or open the browser and display the results.
1. Click on quick links and click to the post type you want, Unread, New , etc.
2. Drag the address from the browser address bar to the desktop. You will be asked to create a link
3. It will appear on the desktop
4. Click on the Link. You will get a message that it is an untrusted link launcher, You trust it because you made it. Click Mark Executable.

You can now click on it to access the function you chose.For example Unread Posts.
You can further add it to the panel or an auxiliary panel by right clicking on it and choosing Open with create a launcher on the panel"

Is it easier to access this way than with the Index page of the browser? Maybe not, but shows the abilities of XFCE.

This was doen in MX 19 Beta 2. Probably will work in MX 18 as well.

After all that a simpler method: Just create a launcher directly on the desktop, right click>Create a URL Link, or panel by providing the appropriate url in the launcher field.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

User avatar
Adrian
Developer
Posts: 8977
Joined: Wed Jul 12, 2006 1:42 am

Re: The real way to check the forum

#15 Post by Adrian »

Also, another idea (I saw you used that in your first versions of the script) if you use Xfce menu items maybe it would be best to pop up a notify-send message instead of terminal.

MichaelPV

Re: The real way to check the forum

#16 Post by MichaelPV »

I've entered my username and password where it says "none" in the beginning of the script and I ran the script by entering "python MXforumscript". I get a SytnaxError: invalid syntax. My password has a colon in it and there was an arrow pointing to the colon in the error message. Do you know what I'm doing wrong?

User avatar
Nite Coder
Developer
Posts: 61
Joined: Fri Dec 21, 2018 2:28 pm

Re: The real way to check the forum

#17 Post by Nite Coder »

Try putting single or double quotes around your password

Code: Select all

./mxforum-query --password 'password:with:many:colons' --username 'someusername' https://forum.mxlinux.org

User avatar
BitJam
Developer
Posts: 2303
Joined: Sat Aug 22, 2009 11:36 pm

Re: The real way to check the forum

#18 Post by BitJam »

It would be handy to have an easy way to post to the forums from the command line. This would help people when X stops working or does not work. Ideally, quick system info could be easily added to the post.
"The first principle is that you must not fool yourself -- and you are the easiest person to fool."

-- Richard Feynman

User avatar
Nite Coder
Developer
Posts: 61
Joined: Fri Dec 21, 2018 2:28 pm

Re: The real way to check the forum

#19 Post by Nite Coder »

Hmm. Cool idea! I'll look into it. Tricky thing is the testing. Got to actually try posting

User avatar
Nite Coder
Developer
Posts: 61
Joined: Fri Dec 21, 2018 2:28 pm

Re: The real way to check the forum

#20 Post by Nite Coder »

Adrian wrote: Mon Sep 23, 2019 5:55 pm Also, another idea (I saw you used that in your first versions of the script) if you use Xfce menu items maybe it would be best to pop up a notify-send message instead of terminal.
I think you are right about that one, don't know want inspired me to use the terminal but here is an example desktop file

Code: Select all

[Desktop Entry]
Categories=Internet;
Exec=bash -c 'notify-send "$(/path/to/mxforum-query https://forum.mxlinux.org)"'
GenericName[en_US]=Forum
GenericName=Forum
Icon=mxfcelogo-rounded
MimeType=
Name=MX Forum
Comment=MX Forum
NoDisplay=false
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

Post Reply

Return to “Community Fun”