How can I..

  • Thread starter Thread starter Deleted member 5665
  • Start date Start date
D

Deleted member 5665

How can I add this: http://i45.tinypic.com/1glybt.png

Look: www.topsite101.com

I used the custom page tutorial that you guys posted here and I need to know how I can add one similar to that. But it works for news, announcements, etc.

I tried thehazey but rich won't do it unless I pay him money.. I have no paypal anymore.. 🙁
 
Can you open up your site so I can see the custom page please? If you basically want the stats on this custom page it's very easy. Do you simply want some text in a box and then some stats under neath it?
 
Limited Luck said:
Can you open up your site so I can see the custom page please? If you basically want the stats on this custom page it's very easy. Do you simply want some text in a box and then some stats under neath it?

The site is open 😛

Click 'forum' on the navbar it goes to the forum. The homepage is just a PHP code off a tut off thehazey and the under construction part is in simple html. :lol:
 
I can give me a direct link to this page, or is it the index.php page your referring to? I'm getting confused xD

Also can I have a link to the tutorial you used?
 
Oh right okay. I'll help you out with this later as it's quite a long process as he left of the actual code of your page.
 
Alright I am going to bed I will talk to you tommorow gotta get a new mouse my current one died on me ;( So I can't do well with my labtop pad..
 
Nathan said:
http://forumpromotion.net/viewtopic.php?p=246463#p246463 :great:

I don't know PHP so I don't know where you want me to add this.. 😕
 
The link Nathan posted is needed on the .PHP page, but it's not all you need. Create a .PHP file and copy and paste the following in it.

Code:
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();

// shows site statistics
$total_posts	= $config['num_posts'];
$total_topics	= $config['num_topics'];
$total_users	= $config['num_users'];

page_header('{L_HOMEPAGE}');

$template->set_filenames(array(
    'body' => 'homepage.html',
));

make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>

Now you need to create a page in a html document with the following in it and save it as whatever you want, but make sure you change homepage.html in the php code to the name of your html page.

Right now in your html code you need to put the following in plus the extra text.

Code:
<!-- INCLUDE overall_header.html -->
<h2>{L_HOMEPAGE}</h2>

<!-- enter your basic text here with stuff -->

<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->

Now you need to enter in the following into the language/en/common.php file. You should add the following after 'HOME' which appears on line 275 in the file.

Code:
	'HOMEPAGE'				=> 'Site Homepage',

I hope this helps, if you need anymore help post back 🙂
 
the .php file what should I name it also where should I upload it?
 
It should be in the phpBB root with all the other files like index.php, memberlist.php, viewonline.php etc. I'm not sure what you should call it, if the page you have at http://www.topsite101.com/index.php is the page you want the stats on then you should add everything in first bit of PHP code that isn't already in their, then simply edit the existing .html page you already have set up for it.
 
Right okay keep a backup of your original home.html file!!!

Right create a new file called home.html and change your current one to home2 or something so you still have it.

Then put this inside your new file:

Code:
<!-- INCLUDE overall_header.html -->

   <div class="forumbg"> 
      <div class="inner"><span class="corners-top"><span></span></span> 
      <table class="table1" cellspacing="1"><thead><tr> 
         <th class="name">News</th></tr></thead> 
      <tbody><tr class="bg1"><td align="center"> 
<p>The homepage is under construction! <b>But the forum is still online!</b> You can visit the forum <u><a href="forum.php">here!</a></u></p>
</td></tr></tbody> 
</td></tr></tbody></table> 
   <span class="corners-bottom"><span></span></span></div> 
</div> 
 
</div> 
 <div class ="forumbg" style="max-width: 450px;">
 <td align="top-left">{TOTAL_USERS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_POSTS}</td>
</div>

<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->

Right, what did you do with the original index.php that was in the root of your forum? Did you remove it and replace with the index.php stuff you sent to me over MSN?
 
Right okay a simply compromise.

Copy and paste everything in the forum.php file into the index.php file, then...

FIND:
Code:
$template->set_filenames(array(
	'body' => 'index_body.html')
);

REPLACE WITH:
Code:
$template->set_filenames(array(
	'body' => 'home.html')
);

Now with home.html, change the content on the page to whatever you want to show. (The current one your using not the modified one I sent you).

See if that works at all, if it doesn't I'll bang me head against a wall and you can post back here 🙂

BACKUP YOUR FILES!!!
 
Code:
  <div class="forumbg" style="max-width: 200px;"> 
      <div class="inner"><span class="corners-top"><span></span></span> 
      <table class="table1" cellspacing="1"><thead><tr> 
         <th class="name">Statistics</th></tr></thead> 
      <tbody><tr class="bg1"><td align="center"> 
{TOTAL_POSTS} <br>{TOTAL_TOPICS}<br>  {TOTAL_USERS}
	  </td></tr></tbody> 
</td></tr></tbody></table> 
   <span class="corners-bottom"><span></span></span></div> 
</div> 

  <div class="forumbg" style="max-width: 700px;"> 
      <div class="inner"><span class="corners-top"><span></span></span> 
      <table class="table1" cellspacing="1"><thead><tr> 
         <th class="name">News</th></tr></thead> 
      <tbody><tr class="bg1"><td align="center"> 
	  <h3>Bundle Price Drop!</h3>
<p>We have dropped the price of Bundle Packages drastically for a limited time! We won't tell you for how long cause it could be for a really long time or a short amount of time   

So go check out our new prices!

<u><a href="http://topsite101.com/viewtopic.php?f=31&t=133&p=833#p833">The Prices for Bundle Packages!</a></u>
	  </td></tr></tbody> 
</td></tr></tbody></table> 
   <span class="corners-bottom"><span></span></span></div> 
</div> 
<br>

I can't seem to get the boxes to go side to side see: http://www.topsite101.com/index.php
 
Right try this, if it doesn't work then the CSS in the style files are stopping it from doing so.

Code:
  <div class="forumbg" style="max-width: 45%;"> 
      <div class="inner"><span class="corners-top"><span></span></span> 
      <table class="table1" cellspacing="1"><thead><tr> 
         <th class="name">Statistics</th></tr></thead> 
      <tbody><tr class="bg1"><td align="center"> 
{TOTAL_POSTS} <br>{TOTAL_TOPICS}<br>  {TOTAL_USERS}
     </td></tr></tbody> 
</td></tr></tbody></table> 
   <span class="corners-bottom"><span></span></span></div> 
</div> 

  <div class="forumbg" style="max-width: 45%;"> 
      <div class="inner"><span class="corners-top"><span></span></span> 
      <table class="table1" cellspacing="1"><thead><tr> 
         <th class="name">News</th></tr></thead> 
      <tbody><tr class="bg1"><td align="center"> 
     <h3>Bundle Price Drop!</h3>
<p>We have dropped the price of Bundle Packages drastically for a limited time! We won't tell you for how long cause it could be for a really long time or a short amount of time   

So go check out our new prices!

<u><a href="http://topsite101.com/viewtopic.php?f=31&t=133&p=833#p833">The Prices for Bundle Packages!</a></u>
     </td></tr></tbody> 
</td></tr></tbody></table> 
   <span class="corners-bottom"><span></span></span></div> 
</div> 
<br>
 
Okay well I'll have a look for you tomorrow, a big re-work of the css is needed so I'll do this tomorrow for you 🙂
 
Its not a big re-work of the css code at all in fact is about four lines you add to the html code :lol:
 
Not with the code he is using, the class is using the forumbg css which is set up to be displayed line by line 😛 Let me just do my stuff Rich 😛 😀
 
Back
Top Bottom