Jump to content


Photo
- - - - -

Add Custom Pages.


  • Please log in to reply
9 replies to this topic

#1 pornhub

pornhub

    Junior Member

  • Members
  • Pip
  • 19 posts

Posted 14 August 2009 - 08:16 PM

Umm on the top where is says, Pictures, Videos etc..

Via siteadmin have a area to add pages.

Example.

Donate link. that links to your donate page!

#2 NYC

NYC

    Junior Member

  • Members
  • Pip
  • 6 posts

Posted 13 December 2009 - 06:18 AM

OMG this would be awesome I'm surprised we do not have that ability still. Anyone else think this is a great idea. It would help me link to friends websites easier I know that much!

#3 easyjizz.com

easyjizz.com

    Senior Member

  • Members
  • PipPipPipPip
  • 342 posts

Posted 13 December 2009 - 07:08 AM

You can manually do it like so:

Lets say I want to make a donate page first make a file and call it donate.tpl in AVSROOT/templates/frontend/*/static/ and put whatever you want there. Then you open AVSROOT/static.php and find:

$pages_allowed  = array('terms', 'privacy', 'dmca', '_2257', 'webmasters', 'advertise', 'faq');


change to:
$pages_allowed  = array('terms', 'privacy', 'dmca', '_2257', 'webmasters', 'advertise', 'faq', 'donate');


then find add the following:
    case 'donate':
$self_title = 'Donate to us';
break;


You can then do the same thing in the admin panel to be able to edit the page. You can add the link to the top navbar by editing your header.tpl and adding the following:

<li><a href="{$relative}/static/donate"><span>Donate</span></a></li> 


#4 tripleX

tripleX

    Junior Member

  • Members
  • Pip
  • 14 posts

Posted 19 December 2009 - 03:04 AM

You can then do the same thing in the admin panel to be able to edit the page.


When you say do the same thing in the admin to edit the page what exactly were you referring to? I was able to get the link in the admin for my new static page but when I go to save my changes it says "Changes failed to save". Is there another page that I need to edit other then index_static.tpl to make this work? Thanks in advance

#5 easyjizz.com

easyjizz.com

    Senior Member

  • Members
  • PipPipPipPip
  • 342 posts

Posted 19 December 2009 - 07:09 AM

Edit AVSROOT/siteadmin/modules/index/static.php

#6 donthave

donthave

    Junior Member

  • Members
  • PipPip
  • 22 posts

Posted 20 January 2011 - 12:06 PM

Edit AVSROOT/siteadmin/modules/index/static.php


I am getting the saem "Failed to save static page!" in the admin, so what it is I do to the static.php to get it to work?

#7 Jodie

Jodie

    Junior Member

  • Members
  • Pip
  • 2 posts

Posted 10 July 2011 - 10:31 AM

you need to add a file called "donate.php" or "donate.tpl".. This tutorial will only add link tab to the top of the page.
:) :D :P ;)

#8 migell06

migell06

    Member

  • Members
  • PipPip
  • 46 posts

Posted 25 August 2011 - 05:02 AM

never mind...

Edited by migell06, 25 August 2011 - 05:12 AM.


#9 firionicable

firionicable

    Junior Member

  • Members
  • PipPip
  • 20 posts

Posted 20 March 2012 - 03:43 AM

Good idea! This would give us the ability to work more for our sites. A bit motivation would be awesome.

___________________
Keep self happy with Fleshlights!! Posted Image

#10 supperman

supperman

    Junior Member

  • Members
  • Pip
  • 1 posts

Posted 20 March 2012 - 11:50 AM

Thank you for sharing i like your post you are a great author......!
__________________
Visual Impact Muscle Building