Advertisement:

Author Topic: How to create custom 'action'  (Read 209966 times)

Offline sebz2005

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • Make LBA3 Happen!!!!
Re: How to create custom 'action'
« Reply #20 on: December 09, 2005, 04:04:33 AM »
Owdy: Have you got that theme on your SMF forum avaliable?
Make Lba3 Happen! - http://www.magicball.net/

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,590
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: How to create custom 'action'
« Reply #21 on: December 09, 2005, 02:35:52 PM »
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

Offline sebz2005

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • Make LBA3 Happen!!!!
Re: How to create custom 'action'
« Reply #22 on: December 10, 2005, 01:55:02 AM »
Have you got it as in, packaged? or will I have to create it myself?
Make Lba3 Happen! - http://www.magicball.net/

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,590
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: How to create custom 'action'
« Reply #23 on: December 10, 2005, 03:17:38 AM »
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

Offline sebz2005

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • Make LBA3 Happen!!!!
Re: How to create custom 'action'
« Reply #24 on: December 11, 2005, 02:07:28 AM »
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

 ???
« Last Edit: December 11, 2005, 04:31:57 AM by sebz2005 »
Make Lba3 Happen! - http://www.magicball.net/

Offline McNeo2

  • Semi-Newbie
  • *
  • Posts: 18
  • Gender: Male
Re: How to create custom 'action'
« Reply #25 on: January 12, 2006, 07:10:01 AM »
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:

Offline Gregory

  • Semi-Newbie
  • *
  • Posts: 76
Re: How to create custom 'action'
« Reply #26 on: January 18, 2006, 07:33:11 PM »
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.

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: How to create custom 'action'
« Reply #27 on: January 18, 2006, 08:13:00 PM »
Ad this to Modifications.english.php
Code: [Select]
$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

Offline Gregory

  • Semi-Newbie
  • *
  • Posts: 76
Re: How to create custom 'action'
« Reply #28 on: January 19, 2006, 08:33:23 AM »
Ad this to Modifications.english.php
Code: [Select]
$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.

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: How to create custom 'action'
« Reply #29 on: January 19, 2006, 09:04:38 AM »
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

Offline Stuart

  • Full Member
  • ***
  • Posts: 421
Re: How to create custom 'action'
« Reply #30 on: January 21, 2006, 06:46:26 AM »
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
« Last Edit: January 21, 2006, 04:35:11 PM by Stuart »

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,590
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: How to create custom 'action'
« Reply #31 on: January 21, 2006, 01:48:38 PM »
Stuart, i moved your post because its another issue http://www.simplemachines.org/community/index.php?topic=66969.0
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

Offline Stuart

  • Full Member
  • ***
  • Posts: 421
Re: How to create custom 'action'
« Reply #32 on: February 04, 2006, 05:32:07 PM »
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

Offline SleePy

  • Site Team Lead
  • SMF Master
  • *
  • Posts: 29,931
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: How to create custom 'action'
« Reply #33 on: February 19, 2006, 04:25:12 PM »
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
Support the SMF Support team!
Profiles:
GitHub

Offline InterxWeb

  • Semi-Newbie
  • *
  • Posts: 26
  • Gender: Male
  • HabboHotel User
    • RareCasino
Re: How to create custom 'action'
« Reply #34 on: March 01, 2006, 01:00:19 PM »
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.

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,590
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: How to create custom 'action'
« Reply #35 on: March 01, 2006, 01:15:38 PM »
It dosnt create any buttons.
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

Offline InterxWeb

  • Semi-Newbie
  • *
  • Posts: 26
  • Gender: Male
  • HabboHotel User
    • RareCasino
Re: How to create custom 'action'
« Reply #36 on: March 01, 2006, 01:23:13 PM »
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)

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: How to create custom 'action'
« Reply #37 on: March 01, 2006, 03:07:34 PM »
Follow me on Twitter

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

Offline tarkhorani

  • Jr. Member
  • **
  • Posts: 152
  • Gender: Female
    • A Forum for Discuss About Payment systems
Re: How to create custom 'action'
« Reply #38 on: March 06, 2006, 04:54:59 PM »
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)

 

Offline Delayed

  • Semi-Newbie
  • *
  • Posts: 21
Re: How to create custom 'action'
« Reply #39 on: March 10, 2006, 05:08:22 AM »
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