Custom Action Mod

Started by Norv, May 09, 2006, 08:35:29 PM

Previous topic - Next topic

Dannii

As it says in the description, you can use either html, BBCode or php.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Garry

#21
I guess I am a total idiot and cant simplly express the concept of

do you have an example of the code that I am to use

I am really trying to learn some things here and I feel like a total idiot becuase I think I am asking the correct questions , but I dont seem to be getting anywhere



Can someone tell me what goes in each area and where do I learn more about what I would need to know to put in the code area

In example.....

What code would I put in the code box to do this

http://www.simplemachines.org/community/index.php?action=mlist


mforum

I understand now what this mod does, thanks a lot eldacar ..!!

Garry, i think you must be a coder to make an action, you put html or php code in this box  ::)

Overall, NICE MOD !!!!!!!!!!!

Garry

Quote from: mforum on May 13, 2006, 09:47:31 AM
I understand now what this mod does, thanks a lot eldacar ..!!

Garry, i think you must be a coder to make an action, you put html or php code in this box  ::)

Overall, NICE MOD !!!!!!!!!!!

Yes I see that youu need to put some code in the box

what I am hoping is that someone will post what needs to go in the box so I can see it work on my own forum and start to understand it


mforum

What goes into the box depends from the action you wanna make  ;)
It would be usefull for us newbies someone post the code of a certain action  :)

Garry

Quote from: mforum on May 13, 2006, 10:11:01 AM
What goes into the box depends from the action you wanna make  ;)
It would be usefull for us newbies someone post the code of a certain action  :)

This is what I have been trying to say for over 12 hours

Like a quick copy and paste into the code function in a post and we could see and use it to understand what it is all about

winrules

what type of example would you like to see?
You don't need this mod to use the default smf features, link the memberlist (?action=mlist)


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Garry

Any example would be great

and any help in using the
Quotedefault smf features, link the memberlist (?action=mlist)

would be greatly appreciated

Like where would I find all the actions  that are available




Im just an old guy trying to learn something new for the fun of it

thanks for the reply

winrules

Quote from: Garry on May 13, 2006, 10:13:31 PM
Any example would be great

and any help in using the
Quotedefault smf features, link the memberlist (?action=mlist)

would be greatly appreciated

Like where would I find all the actions  that are available




Im just an old guy trying to learn something new for the fun of it

thanks for the reply
there is a long list of theme in the actionArray in index.php.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


woden

You can use this mod to make a rules page or you can make article pages etc. You can put any kind of info you want in there and it will be surrounded by the forums format. It doesn't have to be some kind of forum code.

Its very handy.

Garry

#30
Quote from: woden on May 14, 2006, 12:20:11 AM
You can use this mod to make a rules page or you can make article pages etc. You can put any kind of info you want in there and it will be surrounded by the forums format. It doesn't have to be some kind of forum code.

Its very handy.

Thanks woody

Can you copy what you have in one of the action boxes  " such as a Rules page " and paste it in to a post  , so I can see what your talking about

along with the name  and other stuff that the action mod calls for




also

what goes in the other boxes  and where do I find " The Output " this action makes  and how do you call it


Like all I am looking for is someone to show me what they have put into to data imput areas

and tell me where I find the output from the action Mod

I really cant believe how hard this has been to get someone to show me what to do









woden

when you fill in the form:

name is the name of the action (or webpage), if you put rules, then when you get ready to link to it use forum/index.php?action=rules

type is either HTML, BBC or PHP, you pick which one you'll be using

page title is what will show in the browser window as the page title, not the file name


code is where you type in your info, webpage stuff, pictures etc, your content for the page

for instance

<h3>This page was made with the custom action mod</h3>
Ain't it nifty


for a real example see http://www.shelldwellers.com/index.php?action=articles

ikbenivo


Garry

#33
A thank You to all who had the patients with me to get me through learning how to run this mod

As a newbie , I find many MODS on here hard to understand as there are no real instructions with them for us old Farts that are PHP Forum Challenged

Thank you all again

Woden

If I may ask you a couple of questions ?

On that forum you sent me to to see a real example

  • How did you change the Menu Choices to what you wanted
  • Do you know anything about the AD Mod

  • Would know how to write the code to show a simple JPEG in the AD Mod




digit

Great mod!

I did notice on thing though - when looking at Who's Online all the actions appear to be "Unknown Action"  Is this normal?

Thanks!
Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

lj

When I try to install this I get
Quote500 USER: command requires a parameter.
any ideas what it means?

Jorin

#36
Great mod! Use it to show my forum rules in the menü. But one question about it:

I get a lot of errors like this:

8: Use of undefined constant rules - assumed 'rules'
Datei: /srv/www/htdocs/web78/html/smfport/Themes/default/Admin.template.php (eval?)
Zeile: 492

8: Use of undefined constant rules - assumed 'rules'
Datei: /srv/www/htdocs/web78/html/smfport/Themes/default/PersonalMessage.template.php (eval?)
Zeile: 492


...And so on. That were about 40 sites of error messages like this one day! How can I fix this? I'm using 1.1RC2 with default theme. These mods are installed: Custom Action Mod, Security Patch, Custom Profile Field, Sticky First Post.

Silence

#37
Installed with no errors ...
But if i add a action ....(php)

Parse error: parse error in Sources\Load.php(1623) : eval()'d code(7) : eval()'d code on line 1


how to solve?

And i thought the added action woulld be in a table in same layout... its now shown UNDER excisting layout ...(when adding BBC or html)

Here my html action:



winrules

Quote from: digit on May 14, 2006, 02:13:38 PM
Great mod!

I did notice on thing though - when looking at Who's Online all the actions appear to be "Unknown Action"  Is this normal?

Thanks!
You have to define what the action is, so in who.yourlanguage.php in themes/default/languages you would have to add a string for $txt['whoall_youraction']


Quote from: lj on May 14, 2006, 08:33:20 PM
When I try to install this I get
Quote500 USER: command requires a parameter.
any ideas what it means?
Have you successfull installed any other mods?


Quote from: nehcregit on May 15, 2006, 05:45:33 AM
Great mod! Use it to show my forum rules in the menü. But one question about it:

I get a lot of errors like this:

8: Use of undefined constant rules - assumed 'rules'
Datei: /srv/www/htdocs/web78/html/smfport/Themes/default/Admin.template.php (eval?)
Zeile: 492

8: Use of undefined constant rules - assumed 'rules'
Datei: /srv/www/htdocs/web78/html/smfport/Themes/default/PersonalMessage.template.php (eval?)
Zeile: 492


...And so on. That were about 40 sites of error messages like this one day! How can I fix this? I'm using 1.1RC2 with default theme. These mods are installed: Custom Action Mod, Security Patch, Custom Profile Field, Sticky First Post.
Have you added any other code (ie in the menu bar), if so can you post it?


Quote from: Silence on May 15, 2006, 10:28:43 AM
Installed with no errors ...
But if i add a action ....(php)

Parse error: parse error in Sources\Load.php(1623) : eval()'d code(7) : eval()'d code on line 1


how to solve?

And i thought the added action woulld be in a table in same layout... its now shown UNDER excisting layout ...(when adding BBC or html)

Here my html action:



With the parse error, that's an error in the code you're entering, not with the mod. If you post the code you're using I can help you fix it. With the layout, I don't get what you mean, isn't that what it's supposed to do?


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Silence

i tried this in php action box :

<?

echo"JUST A TEST FOR PHP ACTION"
."";

?>


this gives error ...

Advertisement: