Forum

Question reguarding...
 
Notifications
Clear all

Question reguarding custom page

Page 2 / 4
Methen
(@methen)
Trusted Member

Hello ?

Somebody is asking for a Hinne Whooping!

ReplyQuote
Topic starter Posted : 01/11/2009 3:50 pm
Elle
 Elle
(@jenny)
Honorable Member

To be honest, I'm not really sure what you're asking. Do you want a link to a custom page be shown? I assume the block section is the menu block?

archive: dramione.org
site: accio.nu

Available for skin/mod commission! 🙂

ReplyQuote
Posted : 01/11/2009 4:09 pm
Tammy
(@tammy)
Member Moderator

What exactly did you put in your test page as name and title? EXACTLY.  Capitalization does matter.

ReplyQuote
Posted : 01/11/2009 4:39 pm
Methen
(@methen)
Trusted Member

test on both

Somebody is asking for a Hinne Whooping!

ReplyQuote
Topic starter Posted : 01/11/2009 6:36 pm
Lyndsie
(@lyndsie)
Member Moderator

So your page is this: http://allbridges.info/test/viewpage.php?page=test Looks like it's working fine. To add it to the site menu, just follow the instructions for variables.php like I gave before. In fact, since I used the name test in my example, you could copy and paste that exact example.

ReplyQuote
Posted : 01/11/2009 7:03 pm
Methen
(@methen)
Trusted Member

Ok here is a copy of the file after iedited it goto my site and you will see what iam am talking about:

http://allbridges.info/test/<?php

$blocks["categories"]["status"] = 2;
$blocks["categories"]["template"] = "{image} {link} [{count}]";
$blocks["categories"]["columns"] = 0;
$blocks["featured"]["status"] =  '0';
$blocks["info"]["status"] = 2;
$blocks["menu"]["status"] = '1';
$blocks["menu"]["content"] = array (
0 => 'adminarea',
1 => 'logout',
2 => 'login',
3 => 'search',
4 => 'tens',
5 => 'browse',
6 => 'members',
7 => 'home');
                    8 =>'test_link');
$blocks["menu"]["style"] = 0;
$blocks["footermenu"] = array(
"title" => "",
"status" => "1",
"file" => "menu/menu.php",
"style" => 0,
"content" => array (
0 => 'help',
1 => 'rules',
2 => 'contactus'
)
);
$blocks["login"]["status"] = 1;
$blocks['login']['acctlink'] = 0;
unset($blocks["login"]["template"]);
$blocks["login"]["form"] = 1; // Long form with register and lost password options
$blocks["random"]["status"] = 0;
$blocks["recent"]["status"] = 2;
$blocks["recent"]["tpl"] = 1;
$blocks["skinchange"]["status"] = '1';
$blocks["news"]["status"] = 2;
$blocks['news']['num'] = 3;
$new = "<span class='new'>New!</span>";
$displayprofile = 0;
$linkstyle = 0;
$displayindex = 1;
?>

Somebody is asking for a Hinne Whooping!

ReplyQuote
Topic starter Posted : 01/11/2009 8:16 pm
Methen
(@methen)
Trusted Member

Note the forum here is doing this
=> 'members',
  7 => 'home');
                    8 =>'test_link');
mine is not out of alignment

Somebody is asking for a Hinne Whooping!

ReplyQuote
Topic starter Posted : 01/11/2009 8:17 pm
Elle
 Elle
(@jenny)
Honorable Member

Try this:

  7 => 'home',
  8 =>'test_link');

Note the removal of the bracket and semicolon after home. 🙂 (And change test_link to test? :S)

archive: dramione.org
site: accio.nu

Available for skin/mod commission! 🙂

ReplyQuote
Posted : 01/11/2009 8:48 pm
Lyndsie
(@lyndsie)
Member Moderator

Elle's exactly right. When I said to copy and paste, I meant to copy the entire thing and paste over the original section.

I believe it should be test_link. According to the Custom Page control panel, when you create a page, it appends _link to the end of the name to make a skin variable. I think it might also make a Page Link so the name there could be used too.

The name you assign to your custom page will be the {NAME_link} variable for you to use in your skins. The script will append "_link" to the name to help prevent naming conflicts with other variables. The title will be the title of the page. For the URL of your custom page, you may use either viewpage.php?id=ID or viewpage.php?page=NAME where ID is the ID number of the page or NAME is the name of the page.

Note: The name for your page should contain letters, numbers, and the underscore character ONLY.

ReplyQuote
Posted : 01/11/2009 9:45 pm
Tammy
(@tammy)
Member Moderator

I suggest as you're working with this stuff you turn debug on in your site settings.  That will give you feedback when you've got errors like that in your code.

ReplyQuote
Posted : 01/11/2009 10:01 pm
Methen
(@methen)
Trusted Member

Ok  I did what you said and copy any pasted the whole thing but now its showing all all the code please go look
I think I have the debug on but iam not certain wher to access it at

here is the way the code that i pasted looks now mius the way the 8 is out of alignment
( how do you copy and paste code here ?)

$blocks["menu"]["content"] = array (
0 => 'adminarea',
1 => 'logout',
2 => 'login',
3 => 'search',
4 => 'tens',
5 => 'browse',
6 => 'members',
7 => 'home'
                    8 =>'test_link');
$blocks["menu"]["style"] = 0;
$blocks["footermenu"] = array(
"title" => "",
"status" => "1",
"file" => "menu/menu.php",
"style" => 0,
"content" => array (
0 => 'help',
1 => 'rules',
2 => 'contactus'
)
);

$blocks["login"]["status"] = 1;
$blocks['login']['acctlink'] = 0;
unset($blocks["login"]["template"]);
$blocks["login"]["form"] = 1; // Long form with register and lost password options
$blocks["random"]["status"] = 0;
$blocks["recent"]["status"] = 2;
$blocks["recent"]["tpl"] = 1;
$blocks["skinchange"]["status"] = '1';
$blocks["news"]["status"] = 2;
$blocks['news']['num'] = 3;
$new = "<span class='new'>New!</span>";
$displayprofile = 0;
$linkstyle = 0;
$displayindex = 1;
?>

Somebody is asking for a Hinne Whooping!

ReplyQuote
Topic starter Posted : 01/11/2009 10:34 pm
Methen
(@methen)
Trusted Member

I can provide full access to my site including ftp access if you would like to do it that way just let me know who to pm the info to

Somebody is asking for a Hinne Whooping!

ReplyQuote
Topic starter Posted : 01/11/2009 10:41 pm
Tammy
(@tammy)
Member Moderator

$blocks["menu"]["content"] = array (
  0 => 'adminarea',
  1 => 'logout',
  2 => 'login',
  3 => 'search',
  4 => 'tens',
  5 => 'browse',
  6 => 'members',
  7 => 'home',
  8 =>'test_link');

You removed too much.  You took out the comma after 'home'.  A comma at the end of every item except the last which closes the array with );

ReplyQuote
Posted : 01/11/2009 10:44 pm
Methen
(@methen)
Trusted Member

I copy pasted exactly what I was told to do on page one of this topic I just re did it same results.

Somebody is asking for a Hinne Whooping!

ReplyQuote
Topic starter Posted : 01/11/2009 10:58 pm
Tammy
(@tammy)
Member Moderator

Just edit the ONE line.  The full file should look like this:


<?php
$blocks["categories"]["status"] = 2;
$blocks["categories"]["template"] = "{image} {link} [{count}]";
$blocks["categories"]["columns"] = 0;
$blocks["featured"]["status"] =  '0';
$blocks["info"]["status"] = 2;
$blocks["menu"]["status"] = '1';
$blocks["menu"]["content"] = array (
  0 => 'adminarea',
  1 => 'logout',
  2 => 'login',
  3 => 'search',
  4 => 'tens',
  5 => 'browse',
  6 => 'members',
  7 => 'home',
  8 =>'test_link');
$blocks["menu"]["style"] = 0;
$blocks["footermenu"] = array(
  "title" => "",
  "status" => "1",
  "file" => "menu/menu.php",
  "style" => 0,
  "content" => array (
      0 => 'help',
      1 => 'rules',
      2 => 'contactus'
  )
);
$blocks["login"]["status"] = 1;
$blocks['login']['acctlink'] = 0;
unset($blocks["login"]["template"]);
$blocks["login"]["form"] = 1; // Long form with register and lost password options
$blocks["random"]["status"] = 0;
$blocks["recent"]["status"] = 2;
$blocks["recent"]["tpl"] = 1;
$blocks["skinchange"]["status"] = '1';
$blocks["news"]["status"] = 2;
$blocks['news']['num'] = 3;
$new = "<span class='new'>New!</span>";
$displayprofile = 0;
$linkstyle = 0;
$displayindex = 1;
?>
ReplyQuote
Posted : 01/11/2009 11:17 pm
Page 2 / 4
Share: