| help with virtual pages |
| Author | Text |
carllawl Just arrived

Posts: 8

Gender:  Online: No |
Date: 07/10/2008 20:40 help with virtual pages | #post13209 | How do i get these working?
I titled it, gave it a name, wrote in my content and i get this error
Parse error: syntax error, unexpected $end in /home/rotandro/public_html/index.php(252) : eval()'d code on line 1
http://rotandroll.net/index.php?page=test
|
|
 |
| |
paulo89 Moderator Developer

Posts: 1091

Gender:  Online: No
Version: 3.8.1 Country: Portugal Languages: Portuguese, Portuguese and little english ^^ |
Date: 07/10/2008 20:47 Re: help with virtual pages | #post13213 | Maybe u don´t close some loop, show me u code. |
|
 |
| |
mem MemHT's Dad Admin & Developer

Posts: 4642

Gender:  Online: No |
Date: 07/10/2008 20:47 Re: help with virtual pages | #post13214 | Virtual addons feature supports PHP code only, so the content of the addon must be a working PHP script |
|
 |
| |
carllawl Just arrived

Posts: 8

Gender:  Online: No |
Date: 07/10/2008 20:56 Re: help with virtual pages | #post13215 | So how do I go about making a page with my own content on? |
|
 |
| |
mem MemHT's Dad Admin & Developer

Posts: 4642

Gender:  Online: No |
Date: 07/10/2008 21:11 Re: help with virtual pages | #post13218 | Use PHP code...
or if you want pure HTML, use MyPages |
|
 |
| |
carllawl Just arrived

Posts: 8

Gender:  Online: No |
Date: 07/10/2008 21:23 Re: help with virtual pages | #post13220 | But you cant add seperate mypages to the navigator :s
so instead of typing out all my content i have to type echo or print inorder to get something displayed :s
wouldnt it just be easier to have it so you can make html pages but also use php if needed? |
|
 |
| |
mem MemHT's Dad Admin & Developer

Posts: 4642

Gender:  Online: No |
Date: 07/10/2008 21:46 Re: help with virtual pages | #post13224 | It's impossible. PHP code is executed server side, html code in the client side... you cannot do whatever you want. Virtual pages uses eval() that supports php only. If you want to print html code use echo "<table width='100%'..."; very simple. With mypages you can use the html wysiwyg editor, but html only. There is no way to mix pure php and html |
|
 |
| |
carllawl Just arrived

Posts: 8

Gender:  Online: No |
Date: 07/10/2008 22:07 Re: help with virtual pages | #post13227 | ill have to echo it then because you cant have different mypages on the navigator  |
|
 |
| |
mem MemHT's Dad Admin & Developer

Posts: 4642

Gender:  Online: No |
Date: 07/10/2008 22:14 Re: help with virtual pages | #post13230 | Ehm, you can create even 1000000000000000000000000 mypage entries. Just add links manually, not as "page" but as "link" |
|
 |
| |