Blank Page Template

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
72
64%
Very Good
21
19%
Good
10
9%
Fair
2
2%
Poor
8
7%
 
Total votes: 113

Wyldb
Registered User
Posts: 133
Joined: Sat Jan 03, 2004 1:42 am
Location: Colorado

Re: [2.0.6] Blank Page Template

Post by Wyldb »

MOD Version: 1.0.2 (old and out-dated) - Page 1

Code: Select all

<HTML>
CONTENT GOES HERE
<HTML>
MOD Version: 2.0.0 (updated same MOD) - Page 37

Code: Select all

{PAGE_CONTENT}
The 2nd Link found on Page 37 is an updated version of this MOD.
That is where {PAGE_CONTENT} Came from.

IF They are two different MODS, then why are they listed on the same MOD Thread? - gets confusing fast :mrgreen:
When it was updated, the link on page 1 was not available for download... which is about the time I started toying with this MOD.
Last edited by Wyldb on Mon Mar 31, 2008 10:07 pm, edited 2 times in total.
Wyldb
Registered User
Posts: 133
Joined: Sat Jan 03, 2004 1:42 am
Location: Colorado

Re: [2.0.6] Blank Page Template

Post by Wyldb »

Brf wrote:Try this.....
In your template.php, try:

replace:

Code: Select all

'PAGE_CONTENT' => $page_content

with

Code: Select all

'PAGE_CONTENT' => $template->compile($page_content)
Tried, didn't work, as now this is what the "newpage" looks like, after adding the above to the template.php file that's found in the root directory of the forum.

Image
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52288
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [2.0.6] Blank Page Template

Post by Brf »

Ah cool.
Well, someone who knows the template object better could help you....

With the "handle" version, you put your inner template in a file and then compile it into a variable. I am not sure how you would do it with the template already in a variable string.....
Wyldb
Registered User
Posts: 133
Joined: Sat Jan 03, 2004 1:42 am
Location: Colorado

Re: [2.0.6] Blank Page Template

Post by Wyldb »

....well shoot, back to square one....

How to make any new page display tags properly within itself using the updated MOD 2.0.0., Or is all new pages strictly built for HTML only tags?

Should I start a new thread... :lol: :|

Is there a way we can update the first post to show the "updated version" of this mod instead of the old out-dated version.... since this is in the MOD Database Cleanup section?

I just don't know where to go from here....... upgrading to phpbb3 is out of the question for this site atm, and I'd really like to have certain features on different "new pages" like who's on line, or check messages, or ....

I've already figured out how to add an overall_header and overall_footer to the template.tpl file so that each "new page" will have the same unique header and footer (that's different from the normal overall_header and overall_footer in the template directory). By surrounding the {PAGE_CONTENT} with codes that will appear on all "new pages". Even though the normal overall_header and overall_footer.tpl files are still used which is actually part of the template that's being used.

Code: Select all

<table width="100%" border="0" cellpadding="0" cellspacing="0" id="bodytable">
<tr>
<td width="44"><img src="templates/SMC2008/images/L_R1_a.gif" width="44" height="27" /></td>
<td background="templates/SMC2008/images/L_R1_b.gif"></td>
<td width="43"><img src="templates/SMC2008/images/L_R1_c.gif" width="43" height="27" /></td>
</tr>
<tr>
<td width="44" background="templates/SMC2008/images/L_R2_a.gif"></td>
<td background="templates/SMC2008/images/L_body_bk.gif">

<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr>
   <td align="left" valign="bottom"><span class="gensmall">
  <!-- BEGIN switch_user_logged_in -->
   {LAST_VISIT_DATE}<br />
   <a href="{U_PRIVATEMSGS}" class="viewlinks">{PRIVATE_MESSAGE_INFO}</a></span><br />
  <!-- END switch_user_logged_in -->
   <span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
   <td align="right" valign="bottom" class="gensmall">
  <!-- BEGIN switch_user_logged_in -->
   <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
  <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a>
  <!-- END switch_user_logged_in -->
  </td>
  </tr>
</table>

{PAGE_CONTENT}

</td>
<td width="43" background="templates/SMC2008/images/L_R2_c.gif"></td>
</tr>
User avatar
BizimPencere
Registered User
Posts: 396
Joined: Sat Aug 25, 2007 8:31 pm

Re: [2.0.6] Blank Page Template

Post by BizimPencere »

I search this mod for phpbb3 :(
www.phpbbturkiye.net | Turkish phpBB3 support and development
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 27157
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Blank Page Template

Post by Paul »

MOD Updated to version 1.0.3
See first post for Download Link
aosfyc
Registered User
Posts: 58
Joined: Tue Jul 19, 2005 6:21 pm

Re: Blank Page Template

Post by aosfyc »

Has a variation of this mod been developed for phpbb3? I know that I saw code for phpbb3 earlier in this thread at
http://www.phpbb.com/community/viewtopi ... &start=570

but I just wanted to see if a fully packaged version of the mod existed.

Thanks!
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: Blank Page Template

Post by Raimon »

aosfyc wrote:Has a variation of this mod been developed for phpbb3? I know that I saw code for phpbb3 earlier in this thread at
http://www.phpbb.com/community/viewtopi ... &start=570

but I just wanted to see if a fully packaged version of the mod existed.

Thanks!
Not yet, but I'm going to create it for phpBB3 , on the mine wile you could check this article : http://www.phpbb.com/kb/article/add-a-n ... -to-phpbb/ :)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!
Post Reply

Return to “[2.0.x] MOD Database Releases”