How to insert this code in tag

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
MichaelK

How to insert this code in tag

Post by MichaelK »

Question.

I have an fansysteem and I wanna put this into a tag but won't work.
This is my php file:




Untitled Document






 
   
    FanLijst
      A
        - B - C
        - D - E
        - F - G
        - H - I
        - J - K
        - L - M
       
        N - O
        - P - Q
        - R - S
        - T - U
        - V - W
        - X - Y
        - Z
     
       
          Gebruikersnaam
          Echte naam
          Leeftijd
       
       
       
          ">
         
         
           
         
       
       
     
       
       
   
 



How can I insert this code above?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How to insert this code in tag

Post by calguy1000 »

put {literal} and {/literal} tags around your php stuff.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
MichaelK

Re: How to insert this code in tag

Post by MichaelK »

calguy1000 wrote: put {literal} and {/literal} tags around your php stuff.

http://www.kane-fansite.nl/index.php?page=fanprofiel

That works fine but when I click on the letter A it won't work anymore.
Also with index.php?page=fanprofiel?beginletter=A won't work. How can I fix this?

Kind Regards,
Michael


PS
My output show this
and more of that stuff??? ???
streever

Re: How to insert this code in tag

Post by streever »

having a similar problem with php...

here is my code:

which is pulling from a database into an tag to set the path.

Now, it has to be done that way, this is vital.

My question is why won't it work?

I did do this:
{literal}{/literal}

that just causes the SOURCE to show this:


so, I need a way for PHP to be put on the page, that is then rendered on the server (which can--and does--render it elsewhere that's not within the templates)

IF you go here: http://boc.355warrenstreet.com/--and pick "ridesheets" you'll see all the source code.

Thank you!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How to insert this code in tag

Post by calguy1000 »

make sure that this is set in your config.php file:

Code: Select all

$config['use_smarty_php_tags'] = true;
Then

Code: Select all

{php}echo $rimg;{/php}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
streever

Re: How to insert this code in tag

Post by streever »

thank you, i appreciate it!
Locked

Return to “CMSMS Core”