• Welcome to Simple Machines Community Forum. Please login or sign up.
December 06, 2021, 04:59:55 PM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


Custom Action Mod

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

Previous topic - Next topic

kat

I thought this'd be useful to make a single, one-click link to the theme change page.

I've tried putting:

http://www.tlakoc.org.uk/index.php?action=theme;sa=pick;u=1;sesc=8fa8a3d0734ebbfc98f1e4cd8f195874

in the "Code" box. That's obviously stoopid, though, because of sessions and things.

Anyone know what I SHOULD be putting in there, please?

Kettu

You can use .../index.php?action=profile;sa=theme.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

kat

I'll give it a try.

Thanks!

kat

Oh, dear.

That gives me:

Parse error: syntax error, unexpected ':' in /home/tlakoco/public_html/Sources/Load.php(1734) : eval()'d code(9) : eval()'d code on line 1

THAT, I didn't expect...  

Kettu

What have you added exactly?
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

kat

Just what you typed.

I tried it with "sa=theme" as a sub-action, too.

Got the same error.

Kettu

Quote from: kat on March 24, 2007, 05:12:39 PM
Just what you typed.

I tried it with "sa=theme" as a sub-action, too.

Got the same error.
With the ...? Or did you change it to your board address?
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

kat

Sorry...

Yeah. My board's address, naturally. Odd that the error's coming from load.php, innit?

Kettu

I don't know. Check you own profile at your board and copy the link under "Design & Layout" or similar. Have German activated here. This is the link you should use.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

kat

This one?

http://www.tlakoc.org.uk/index.php?action=theme;sa=pick;u=1;sesc=78abb52ab60b3ca3fec7d89a2a8ba3b4

That gives me "Session timed out" errors, because of the session ID.

Kettu

Quote from: kat on March 26, 2007, 05:11:35 AM
This one?

http://www.tlakoc.org.uk/index.php?action=theme;sa=pick;u=1;sesc=78abb52ab60b3ca3fec7d89a2a8ba3b4

That gives me "Session timed out" errors, because of the session ID.
No! That one. Take a look at the picture.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

kat

With you!

I'm getting that load.php error, with that.

Parse error: syntax error, unexpected ':' in /home/tlakoco/public_html/Sources/Load.php(1734) : eval()'d code(9) : eval()'d code on line 1

which I find rather peculiar, to be honest.

Kettu

How do you include it at Custom Action Mod?
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

kat


Kettu

Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

kat

March 27, 2007, 01:17:25 PM #195 Last Edit: March 27, 2007, 01:19:28 PM by kat
I'd thought it was down to that. Session ID causing the problems, I suspect.

Problem is, I'm still getting:

Parse error: syntax error, unexpected ':' in /home/tlakoco/public_html/Sources/Load.php(1734) : eval()'d code(9) : eval()'d code on line 1

Which I find most odd.

Kettu

Did you already include links through custom action mod?
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

kat

If I make a clickable link, in the way you described, it works, fine.

For some odd reason, though, using exactly the same link, as a "Custom action" gives that error.

Most odd, huh?

Kettu

I am not familiar with the code of the Custom Action Mod, but I think that it is caused by it. Maybe if you make a php code frame around the link. I think the : from http:// causes the error.
Main Forum: SMF 2.0.6
Co-Forum: SMF 2.0.6

kat

I'm extremely grateful for the help you've given me, Kettu.

I'll give it a go and let you know how it goes.

Advertisement: