Question reguarding...
 
Notifications
Clear all

Question reguarding custom page

51 Posts
6 Users
0 Likes
6,308 Views
(@methen)
Posts: 77
Estimable Member
Topic starter
 

Hello ?

Somebody is asking for a Hinne Whooping!

 
Posted : 01/11/2009 4:50 pm
 Elle
(@jenny)
Posts: 594
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! πŸ™‚

 
Posted : 01/11/2009 5:09 pm
(@tammy)
Posts: 2577
Member Moderator
 

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

 
Posted : 01/11/2009 5:39 pm
(@methen)
Posts: 77
Estimable Member
Topic starter
 

test on both

Somebody is asking for a Hinne Whooping!

 
Posted : 01/11/2009 7:36 pm
(@lyndsie)
Posts: 1263
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.

 
Posted : 01/11/2009 8:03 pm
(@methen)
Posts: 77
Estimable Member
Topic starter
 

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!

 
Posted : 01/11/2009 9:16 pm
(@methen)
Posts: 77
Estimable Member
Topic starter
 

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!

 
Posted : 01/11/2009 9:17 pm
 Elle
(@jenny)
Posts: 594
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! πŸ™‚

 
Posted : 01/11/2009 9:48 pm
(@lyndsie)
Posts: 1263
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.

 
Posted : 01/11/2009 10:45 pm
(@tammy)
Posts: 2577
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.

 
Posted : 01/11/2009 11:01 pm
(@methen)
Posts: 77
Estimable Member
Topic starter
 

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!

 
Posted : 01/11/2009 11:34 pm
(@methen)
Posts: 77
Estimable Member
Topic starter
 

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!

 
Posted : 01/11/2009 11:41 pm
(@tammy)
Posts: 2577
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 );

 
Posted : 01/11/2009 11:44 pm
(@methen)
Posts: 77
Estimable Member
Topic starter
 

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!

 
Posted : 01/11/2009 11:58 pm
(@tammy)
Posts: 2577
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;
?>
 
Posted : 02/11/2009 12:17 am
Page 2 / 4
Share: