This topic is locked

Snippet does not work?

7/27/2008 10:18:19 PM
PHPRunner General questions
D
Default author

Hi all,

It seems snippets do not work for me. I have inserted it as shown in tutorial, didn't even change initial code. It must write something like "hello world", but I can see nothing on my page. What may be wrong?

S
swanside 7/28/2008

Hi all,

It seems snippets do not work for me. I have inserted it as shown in tutorial, didn't even change initial code. It must write something like "hello world", but I can see nothing on my page. What may be wrong?


What was the snippet you put in, Can you copy and paste it here?

D
Default author 7/28/2008

What was the snippet you put in, Can you copy and paste it here?



very basic indeed (default one):

function citizenship_Event1(&$params)

{

echo "Your message";
}

It adds to custom events (citizenship_Event1), but as it seems that event does not work. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=31463&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />

P.S. I have examined html code, and there is following code: {doevent name="citizenship_Event1"}

J
Jane 7/28/2008

It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.

D
Default author 7/28/2008

It was my fault, sorry. You see, when installing PHPRunner 4.2 I didn't remove previous version.

Now I uninstalled everything, installed 4.2 again and it works fune.