0 Members and 1 Guest are viewing this topic.

*

blacksmoke90

  • *
  • 37
  • Keep Calm and listen to devildriver \m/
    • Dating Site
  • osDate Version: osDate v2.6.5
Create a new page
« on: July 24, 2015, 05:40:58 PM »
Good Evening

I would like to create a new page, like when the user clicks the registration button, I would like the user to be directed to a new page, any suggestions? Does it have to be a php page? or can I make new tpl files and redirect the user to tpl pages? I've already discovered how to add "tpl modules" creating the new page is no problem, so basically I want to know if I create a new page, does it matter whether its tpl, html, or php?
« Last Edit: July 24, 2015, 05:43:56 PM by blacksmoke90 »
Osdate 2.65 PHP Version 5.3.x

Re: Create a new page
« Reply #1 on: July 24, 2015, 07:00:22 PM »
I do this alot in custom template that require extra pages. Here is the simplate way to make a new page.

In your template create a new tpl page linr mynewpage.tpl and then insert your html or coding.

Now go into the root were the php files are and create a new php file and name it something like mynewpage.php

No open the index.php file and copy the content into your new php file.

Now in your new file scroll to about line 447 and find:
$t->assign('rendered_page', $t->fetch('homepage.tpl') ); and change homepage.tpl to your new tpl page.

Now if you need a custom look different than your regular index page you go create a new index.tpl page something like index_mynewpage.tpl and copy the content from your index.tpl page and then edit what content you want in the page like custom menus ect...

Now go back to your new php file you made and on about line 461 find:
$t->display( 'index.tpl' );
Now change index.tpl to your new index_mynewpage.tpl or whatever you named it and that is it.

*

blacksmoke90

  • *
  • 37
  • Keep Calm and listen to devildriver \m/
    • Dating Site
  • osDate Version: osDate v2.6.5
Re: Create a new page
« Reply #2 on: July 24, 2015, 07:33:28 PM »
Thanks a lot for your advice! I really do appreciate it! It seems you are the only web developer - or the only dev that will give me advice! I tried adding your ideas from the less thread I opened, but it seems it does not want to work(maybe I am making some mistakes) but I saw on another post you have different stylesheets for different devices, in this case I will use media queries as it seems to be the most efficient case. Also I see there's a lot of styling to be done we should design templates together, although I do this in my extra time apart from my job that's if you are interested! Do you perhaps have any expertise on plugin development? as I have to update some plugins like paypal in order for this template to work right!
Osdate 2.65 PHP Version 5.3.x

*

blacksmoke90

  • *
  • 37
  • Keep Calm and listen to devildriver \m/
    • Dating Site
  • osDate Version: osDate v2.6.5
Re: Create a new page
« Reply #3 on: July 24, 2015, 07:36:55 PM »
I am doing the changes in the default-3-column index.tpl, I have noticed that most of the other tpl layouts are inherited from the base template 'default' but it has to be included in the index.tpl but I make regular backups to ensure if I make mistakes I have some sort of fallback.
Osdate 2.65 PHP Version 5.3.x

*

Pharg

  • *****
  • 3,153
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Create a new page
« Reply #4 on: July 25, 2015, 12:26:01 AM »
Hi blacksmoke90,

Quote
It seems you are the only web developer - or the only dev that will give me advice!

You have been helped by others here, don't start remarks like that here, you have already been issued a warning!!!

I have also removed all your other posts where you seem to think this is a Dev's Recruitment site, work with us not
against us....
« Last Edit: July 25, 2015, 12:29:05 AM by Pharg »
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

*

blacksmoke90

  • *
  • 37
  • Keep Calm and listen to devildriver \m/
    • Dating Site
  • osDate Version: osDate v2.6.5
Re: Create a new page
« Reply #5 on: July 25, 2015, 02:27:10 AM »
If anyone feels insulted, I really do apologize and I wasn't recruiting anyone I simply suggested that we could CONTRIBUTE to the community and if anyone would like to help test for bugs, I would simply help them out. But I won't ask for help again I apologize sincerely.
Osdate 2.65 PHP Version 5.3.x

*

Pharg

  • *****
  • 3,153
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Create a new page
« Reply #6 on: July 25, 2015, 04:41:14 AM »
Hi blacksmoke90,

Don't take me wrong, your welcome to share your code so some of us can check it for bugs, really like what your
doing with the templates, would be great to see how it goes.

I have other script's that use bootstrap that work well, just have not seen a good bootstrap template made for osDate yet.
« Last Edit: July 25, 2015, 04:43:15 AM by Pharg »
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

*

blacksmoke90

  • *
  • 37
  • Keep Calm and listen to devildriver \m/
    • Dating Site
  • osDate Version: osDate v2.6.5
Re: Create a new page
« Reply #7 on: July 25, 2015, 05:20:29 AM »
They say great minds think alike, I want to implement something like this http://demo.rockettheme.com/live/joomla/hadron/features/module-positions in the future so that templates can have many different type of layouts and instead of modifying css, I would like to implement pre-defined classes so that it would be easier for non coders to make changes to templates you can see what I mean here http://demo.rockettheme.com/live/joomla/hadron/features/typography I'm an experienced gantry template developer for Joomla! Cms, that's what I meant with I would need someone or people to test for bugs and the reason I approached scvoyager is because it seems he is the only that develops content without asking money - I wouldn't charge a cent for the things I develop because OsDate is built on the ideology of 'Being able to give something so awesome away for free' I just meant we as developers have a responsibility to contribute (the fact is only scvoyager - helped me and you tried to help me not any other MEMBERS) and I quote
Quote
You have been helped by others here, don't start remarks like that here, you have already been issued a warning!!!

I have also removed all your other posts where you seem to think this is a Dev's Recruitment site, work with us not
against us....
What I had in mind was a collaborative idea - where a bunch of developers could develop together and communicate with each other through an IM, I never had the intention of recruiting{stealing members} from this site, maybe now you understand better!
« Last Edit: July 25, 2015, 05:23:17 AM by blacksmoke90 »
Osdate 2.65 PHP Version 5.3.x

*

blacksmoke90

  • *
  • 37
  • Keep Calm and listen to devildriver \m/
    • Dating Site
  • osDate Version: osDate v2.6.5
Re: Create a new page
« Reply #8 on: July 25, 2015, 05:25:38 AM »
So if it is appropriate and you see things from my point of view, could you please remove the warning? PLEASE
Osdate 2.65 PHP Version 5.3.x

*

Pharg

  • *****
  • 3,153
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Create a new page
« Reply #9 on: July 25, 2015, 05:46:46 AM »
Hi blacksmoke90,

It was a Admin warning that stays in the log, it can't be removed sorry to say, it wont affect your posts.

I was full aware what you wanted to do from the start ;)
 
If you want to work on mods, templates etc just start a topic share the code and chat in here so everyone can help, that way
everything is logged and without having to lookup IM history.

If this isn't the way want to do it, them you better read our rules of the forum, we are all here to share idea's and help :P
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

*

blacksmoke90

  • *
  • 37
  • Keep Calm and listen to devildriver \m/
    • Dating Site
  • osDate Version: osDate v2.6.5
Re: Create a new page
« Reply #10 on: July 25, 2015, 06:02:23 AM »
Ok that's good enough for me, where is the right place to post module development? I suppose modules and addons? Another thing is, since OsDate is opensource I would really like to implement different types of "modules" like if a user wants to have an image gallery he can publish the "module" in a specific position instead of having to learn a bunch of stuff (this system really confused me in the beginning - I see the plugins are built on the object oriented principle and some of the files in the templates, but I want to put an emphasis on Code-re-usability, like there's a bunch of code being used in the procedural programming methodology - I'm not saying anything is wrong with osdate, just I found that a bunch of different versions and people complain they have to port their themes or plugins. So I was wondering, could I have access to the original source code of osdate - hopefully it has comments?

I like contributing, learning new things, knowledge is something that can never be taken away!
Osdate 2.65 PHP Version 5.3.x

*

Pharg

  • *****
  • 3,153
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Create a new page
« Reply #11 on: July 25, 2015, 06:11:23 AM »
Hi

Yes you would be right, post module development in our Addons & Modules section.

You can get the full code osDate v2.6.5 in our Download section of the forum.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35