Sub Menu
Links Menu
Online Users

In total there are 308 users online :: 3 registered, 0 hidden and 305 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot] based on users active over the past 60 minutes

Blank Page Template Mod For PCP

This forum contains member submitted mods and hacks for IntegraMOD/IM Portal versions

*please read the "Read Me" post*

Moderator: Integra Moderator

Blank Page Template Mod For PCP

PostAuthor: MWE_001 » Wed Jan 09, 2008 12:19 pm

MOD Title: Blank Template MOD
MOD De.scription: A system for adding pages to your phpBB that uses sessions as well. No longer do we have to have standalone mods. We can now easily integrate them into our Integramod websites.
MOD Version: 1.0.3

MOD Download: Blank Template Mod
Last Stable version: 1.03

Demo Board: None Available yet
Demo Username: n/a
Demo Password: n/a

Download: [url=http]Test Site Download location[/url]

Please note: due to recent abuse on the website, I have made it required to register to download so I can keep track of who is on site and who is not. My apologies. In the near future, I plan to make it available to all without registration.

Credits:
psychowolfman: For creating the original system for phpBB2.
MWE_001 AKA DjPorkchop: For integrating to Integramod for easy install and use.

Current Features: NO ACP Control

In the Works: ACP Control

Note: I will have a demo page of this up on the test site that the file is located at soon.

Upgrade: There is the regular version of this mod for standard phpBB and as well, I have included
an upgrade to use with Integramod 1.4.0 and 1.4.1. Im not so sure this will work with
other version of PCP as Integramods is a different version then the others...So I have been told.


I lay no claim to the mod. It is NOT mine! I have only made it work with Integramod 1.4.0 as well as the latest release.

##############################################################
## MOD Title: Blank Template MOD
## MOD Author: psychowolfman <admin> (Brent Upton) N/A
## Modified for integramod use by MWE_001 (Please contact mod author for support).
## This is not my mod. I do not lay any ownership to it at all.
## MOD De.scription: An easy way to add a blank page to your forum that uses session ## management
## MOD Version: 1.0.2
##
## Installation Level: (Easy)
## Installation Time: 5 Minutes
## Files To Edit: includes/page_header.php
## profilcp/def/def_userfuncs_viewonline.php
## admin/index.php
## admin/modules/index.php
## language/lang_english/lang_main.php
## includes/constants.php
##
## Included Files: templates/subsilver/template.tpl
## template.php
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: Wherever you see TEMPLATE or Template or template, replace with whatever you
## want to call your new page. Add a link to the page if you want to in your overall header.
## TO DO: Add a page in ACP to add/edit/remove new pages automatically. I have no clue how this
## would be done, so if someone that actually KNOWS php and the phpbb standard coding practices
## wants to take this and run, that would be stellar cool.
##
##############################################################
## MOD History:
##
## 2003-10-06 - Version 1.0.0 MOD Submitted and denied based on improper syntax
## 2003-10-09 - Version 1.0.1 Syntax corrected
## 2008-01-09 - Fixed install to work with PCP adon (MWE_001)
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

I can not stress enough how great of a mod this is for use on our Integramod boards. Works very well with ImPortal as well with a couple changes to the install.

With this mod, You can take a stand alone mod and make it work within your phpbb and it uses sessions and your current template in use instead of being a standalone page.
Last edited by MWE_001 on Mon Mar 10, 2008 6:02 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Blank Page Template Mod For PCP

PostAuthor: clay3482 » Sat Mar 08, 2008 10:04 am

hello

thanks for the heads up.

I have the mod downloaded - how do i use it?

Thanks for the help.

Clay
Last edited by clay3482 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

clay3482
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 23, 2008 5:51 pm
Cash on hand: 0.00

Re: Blank Page Template Mod For PCP

PostAuthor: obiku » Sat Mar 08, 2008 12:45 pm

this one got my interest, where can I download?
Last edited by obiku on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 10:22 am
Cash on hand: 0.00
Location: level 8

Re: Blank Page Template Mod For PCP

PostAuthor: clay3482 » Sat Mar 08, 2008 6:52 pm

here is the link

please let me know how you got it to work if you figure it out

[url=http]link to mod[/url]
Last edited by clay3482 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

clay3482
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 23, 2008 5:51 pm
Cash on hand: 0.00

Re: Blank Page Template Mod For PCP

PostAuthor: obiku » Sun Mar 09, 2008 12:05 am

Thnx, but that one I already knew. I was looking for the one MWE_001 edited.
Last edited by obiku on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 10:22 am
Cash on hand: 0.00
Location: level 8

Re: Blank Page Template Mod For PCP

PostAuthor: MWE_001 » Sun Mar 09, 2008 12:26 am

Ill have to take a look at my files and see. I know I have it and my edit notes. Ill get back to you guys on this one
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Blank Page Template Mod For PCP

PostAuthor: MWE_001 » Mon Mar 10, 2008 5:49 pm

The download is now available on my webiste. Registration is required however. Sux I know, but thats the way it is. <img>

I have addede a read me file with instructions on what to do. If any further support is needed I can help, ONLY if it posted in this thread. I dont want to chase around 20 different threads to answer the same question, as Im sure we all can easily understand my point.

enjoy!


Ray

EDIT

I updated the first post with details and where to go info.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Blank Page Template Mod For PCP

PostAuthor: clay3482 » Wed Mar 12, 2008 9:10 am

Thank you so much for posting this as well as hosting the blank_page mod on your site.

A couple of questions please

In the readme.txt file you said
"Basically, anywhere that you see the words template, you need to change it to the name of the page. The template file template.tpl needs to be changed. Say for example you were making a page called weather. You would change the name of the file to weather.tpl "

I did that - renamed
template.tpl to weather.tpl
template.php to weather.php

I was able to make the edits to
includes/page_header.php
profilcp/def/def_userfuncs_viewonline.php

admin/index.php

language/lang_english/lang_main.php

includes/constants.php


Now the problem I had were the file
admin/modules/index.php

does not seem to be in my integramod 1.41 install - so I can not edit that.

also

copy templates/subSilver/template.tpl to templates/subSilver/template.tpl

My Integramod 1.41 does not include a subsilver sub-folder

So after I have complete all of the edits except the 2 exceptions and I run the file weather.php (i actually have it named blog.php) I get this error message

Template->make_filename(): Error - template file not found: blog.tpl

you can see the error by going to
[url=http]Error page[/url]

Any idea how I can fix this?

Thanks
Last edited by clay3482 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

clay3482
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 23, 2008 5:51 pm
Cash on hand: 0.00

Re: Blank Page Template Mod For PCP

PostAuthor: MWE_001 » Wed Mar 12, 2008 11:26 am

I just woke up. Let me gather my thoughts and some coffee and Ill come back and post a how to. This is a nice mod. I wonder if Helterskelter will let me submit it to this website. If so, I will write up a nice KB article on how to use it as well.

Oh and for the record, I was using weather as a example. <img> If you want a page called movies, it would have been movie.php and movie.tpl if it was to be called mysite, it would have mysite.php and mysite.tpl .
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: clay3482 » Wed Mar 12, 2008 11:33 am

"MWE_001";p="32180" wrote:I just woke up. Let me gather my thoughts and some coffee and Ill come back and post a how to. This is a nice mod. I wonder if Helterskelter will let me submit it to this website. If so, I will write up a nice KB article on how to use it as well.

Oh and for the record, I was using weather as a example. <img> If you want a page called movies, it would have been movie.php and movie.tpl if it was to be called mysite, it would have mysite.php and mysite.tpl .


Yep - I used blog.tpl and blog.php

Thanks again for your help it is greatly appreciated.

Thanks
Clay
Last edited by clay3482 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

clay3482
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 23, 2008 5:51 pm
Cash on hand: 0.00

Re: Blank Page Template Mod For PCP

PostAuthor: MWE_001 » Wed Mar 12, 2008 12:16 pm

Ok I have some coffee in me and am ready for another day of code. NOT! lol but Ill give it a go anyhow. :D

The way this mod dits now, users have to be logged in to see the pages. It has no checks installed at all. I had planned on adding this feature, but really it is user preference. Just because I want a user logged in to view the page doesnt mean that the next guy/gal will want them logged in.

In my KB article Im going to do, I will include details on how to add checks for users logged in and out.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Blank Page Template Mod For PCP

PostAuthor: clay3482 » Wed Mar 12, 2008 3:00 pm

I am now getting the error

Template->loadfile(): No files found for handle blog
Last edited by clay3482 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

clay3482
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 23, 2008 5:51 pm
Cash on hand: 0.00

Re: Blank Page Template Mod For PCP

PostAuthor: MWE_001 » Wed Mar 12, 2008 3:21 pm

Did you read the thread at phpBB.com that i sent you in the PM? I can do it for you but every time you try to add a page, Im gonna have to do it for you. There is an old saying and it goes like this. Give a man a fish and he will eat for a day, teach the man how to fish and he will eat for life. So in other words I'd rather teach you then do it for you.

That thread should explain it all. like I said, Im working on a KB article, but am right in the middle of a installation for someone right atm. I will get back on this tonight.

I stress, do NOT use the emample edits I provided in this thread. I just edited it for a fake page. Example only.

PM me exactly what you did edits and all and I will find your error. I had that error once and it was when I first started using the mod. Once I got it figured out it went smooth. Oh and PM me a copy of the original php file that you are wanting to add. NOT from the blank page mod, but the original from the mod you wish to use with the blank page mod.

PS and why dont you just send me a link tot he mod you wish to use and Ill do all of the edits in the instructions for you and send it back to you. That way all you will need to do is follow the install. As well, I will make a hidden link on my website for you to download it and use it. BUT as before, i strongly suggest reading and looking cloasely at what edits I made so if you decide to add another page, you can do it. <img>

No worries, we will get it right for you.
Last edited by MWE_001 on Wed Mar 12, 2008 3:25 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: clay3482 » Wed Mar 12, 2008 3:25 pm

also no files to edit in

admin/modules/index.php
Last edited by clay3482 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

clay3482
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 23, 2008 5:51 pm
Cash on hand: 0.00

Re: Blank Page Template Mod For PCP

PostAuthor: clay3482 » Wed Mar 12, 2008 10:29 pm

I finally got this to work

sort of

Afte reading through 30 of the 39 pages on the phpbb post of the original mod there was a link to an updated mod

[url=http]updated blank page mod[/url]

After you add the mod if you then go to the admin section of your site - you will not see a link - instead just use the filename of

yoursite.com/admin/admin_npm_new_page.php

press enter and the mod comes up.

You have to change a few things

in the npm.mod instructions you have to set the db prefix to the correct one (if you are not using phpbb)

also in the 4 files that you copy over from the root folder you will need to change the db prefix in those and of course alter the destination from templates/subsilver to your template - I just used templates/ as my destination and then copied the newpage.tpl file all of the template folders.

Other than that - it works like a charm.

Thanks for the help.
Clay
Last edited by clay3482 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

clay3482
Newbie
Newbie
 
Posts: 15
Likes: 0 post
Liked in: 0 post
Joined: Wed Jan 23, 2008 5:51 pm
Cash on hand: 0.00

Next

Return to Mods/Hacks

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]

cron