News:

Wondering if this will always be free?  See why free is better.

Main Menu

How to create custom 'action'

Started by Owdy, January 09, 2005, 05:01:30 PM

Previous topic - Next topic

sebz2005

Owdy: Have you got that theme on your SMF forum avaliable?
Make Lba3 Happen! - http://www.magicball.net/

Owdy

If you saw that brown theme, its for ubuntu finland site: http://forum.ubuntu-fi.org/
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

sebz2005

Have you got it as in, packaged? or will I have to create it myself?
Make Lba3 Happen! - http://www.magicball.net/

Owdy

No, that theme is not shared. Its for Ubuntu site only.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

sebz2005

#24
Oh... Ok! :)

Edit: I'm following your instuctions, but how do I make the id= part:

http://localhost/LbaX/forum/downloads.php?id=04

instead of:

http://localhost/LbaX/forum/downloads.php?04

???
Make Lba3 Happen! - http://www.magicball.net/

McNeo2

Quote from: Owdy on January 09, 2005, 05:01:30 PM
If you need your custom action, here's howto. Lets say you want own dowload area. /../

Thnx Owdy. I got it to work.

But now another question. I want that script to open inside the same page, where from I called it out. Like shoutbox. Example; if I include shoutbox to main template and then shout, it does not open page only with shoutbox, but with (within) page where it was. I tryed to look into shout.php and shout.template.php, but I did'nt get, how it works. How it remembers the page, where from it was called out.

Hopefully I explained my problem enough clear.

ps. okidoki.. i made picture about I want:

Gregory

I have used your instructions sucessfully and I'm now very happy with my result.
Just 1 point to improve my 'static' page further: How can I get so on the Who's Online page it says 'Viewing downloads' or something rather than 'Unknown Action' ?
Ant's Life - My morpg that is integrated with SMF for good communications between players and staff.

JayBachatero

Quote from: Owdy on February 01, 2005, 04:26:42 PM
Ad this to Modifications.english.php
$txt['whoall_customaction'] = 'Do something in <a href="' . $scripturl . '?action=customaction">custom area</a>.';
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Gregory

Quote from: JayBachatero on January 18, 2006, 08:13:00 PM
Quote from: Owdy on February 01, 2005, 04:26:42 PM
Ad this to Modifications.english.php
$txt['whoall_customaction'] = 'Do something in <a href="' . $scripturl . '?action=customaction">custom area</a>.';
thanks, I must of missed it by mistake  :P

Erm, this may be going off topic too much but could someone tell me if/how I can also show the user is viewing a page that isn't a forum page, it's a seperate page.php not using ?action=  anything, but it is only showing them the content if they're logged in. Or pointing me to the right direction I'd be grateful for as searching hasn't helped.
Ant's Life - My morpg that is integrated with SMF for good communications between players and staff.

JayBachatero

Search for who action and you will see a few posts about this.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Stuart

#30
Edit  :-[

Didn't realise the templates were case sensitive  :-[

I figured it out and my own integrated FAQ page is a fact from now on  :D

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Stuart

I actually managed to create 2 custom actions and you can see them on my website:

http://www.astmaforum.nl/index.php?action=links

http://www.astmaforum.nl/index.php?action=faq

I'm quite proud I was able to create these pages. But I couldn't have done it without the clear and easy instructions which were given in this topic. Thanks ever so much for that  :D

SleePy

How would i do Sub-Actions? I can't seem to figure it out.. and profile.php in sources is to confusing to try to figure out how it is doing it.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

InterxWeb

does this automatically create a button on the 1.1rc2 forum index? and can it be set by permissions?
or does this even work in 1.1 rc2 lol.

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

InterxWeb

ok well, im new to the smf scene here (sorry :P ) so if you could teach me how to add a button at the top for my new custom action. But i only want it to show if they are logged in (if possible)

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

tarkhorani

if the file is download.htm instead of download.phpthen what we must do?
Get a Free SMForum on http://www.myboards.com (Ver 1.1.1)



Delayed

What if I want to include a PHP file in the example "download.template.php" file?  Can I use an include method or do I need to paste the entire PHP file? 

It is a tell a friend PHP script that I want to put in the action.

Thanks


Advertisement: