Jump to content
TNG Community

Upgrading User Pages to V12


Merv

Recommended Posts

Hi All,

I am having difficulty upgrading my user pages. 

They come up blank. This may have something to do with most my pages being on the top level rather than in a folder but I think I have that part of the code sorted.

If anyone has a working V12 user page, could you please post the file here so I could dissect where I may be going wrong?

I just need the top part of the file before the body part.

Much thanks,

Merv

This is my edited historytemplate file thus far...

historytemplateV12.php

Link to comment
Share on other sites

With help from Randal, we came up with this...

<?php

//Delete or comment out the following line if your page requires login to view - ie. is NOT a public page
$nologin = 1;

$cms['tngpath'] = "";
include("tng_begin.php");

//Replace "Your Title Here" in the next line with the title of your page. Keep it surrounded with double quotes. 
$yourtitle = "Your Title Here";
//Replace "/newuserpage.php" in the next line with the path and file name of your new page. 
$yourlink = "/newuserpage.php";

$logstring = "<a href=\"$yourlink\">$yourtitle</a>";

writelog($logstring);
preparebookmark($logstring);

tng_header( $yourtitle, $flags ); 
?>

Your body text and coding goes here

<?php
tng_footer( "" );
?>

Works fine except that my birthday lists don't display when logged out. They do display when logged it though.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...