Mys v 1.3.2 - own created pages

Forum
Last Post
Threads / Messages

draugluin

Member
Member
Joined
Oct 26, 2011
Messages
120
Points
16
Location
germany
Mysidian Dollar
7,683
in Mys 1.3.1 I have pages with a structure like this
PHP:
<?php
include("functions/functions.php");
include("functions/functions_users.php");
include("functions/functions_adopts.php");
include("inc/lang.php");

if($isloggedin == "yes") 	

$article_title = "Title";
$article_content = " and more text...<br>
    <img src=http://site.com/pic/pic.gif> 
		<a href=http://thissite.com>
		          <img src=http://picutres.com/nature/wood.gif  ></a>
";
 
echo showpage($article_title, $article_content, $date);
?>

I would like to generate a map with coords, mouseovereffects and so on.

Is there a ability to create this in Mys 1.3.2 and if so ... how ?

:smile:
 
umm it isnt that much different from Mys v1.3.1, I'll convert your sample code to Mys v1.3.2 compatible format:

PHP:
 <?php 
require("inc/init.php"); 

if($mysidia->user->isloggedin){      

$title = "title";  
$content = " and more text...<br> 
    <img src=http://site.com/pic/pic.gif>  
        <a href=http://thissite.com> 
                  <img src=http://picutres.com/nature/wood.gif  ></a> 
"; 
$mysidia->page->settitle($title);
$mysidia->page->addcontent($content);

$mysidia->output();  
}
?>
Note you need to create a lang file in the folder /lang with the name lang_{$scriptname}.php. Otherwise the script will show a lang file not found error message.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,130
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top