You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 64 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Forums on Home [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
stcloudscoots
Nuke Soldier
Nuke Soldier


Joined: Feb 03, 2006
Posts: 26


PostPosted: Fri Feb 03, 2006 11:56 am Reply with quoteBack to top

I am having an issue when I put the forums on the home instead of the News.

I have searched but I either don't find the same exsact issue or I am just not understanding the sollution.

When I stick the Forums as the home and Click on Log In from any site stats/user block and even the log in on the forums them self, I log in just fine. But when I click on home or type in the address to the site it does not show me as logged in. But if I click on a link to the forums it shows me as logged in.

So I am guessing that if I want to see if there are any new posts the lights will not be lit and I would have to still click on forums?

Is there a sollution for this.

http://www.stcloudscoots.com

Thanks
Find all posts by stcloudscootsView user's profileSend private messageVisit poster's website
stcloudscoots
Nuke Soldier
Nuke Soldier


Joined: Feb 03, 2006
Posts: 26


PostPosted: Mon Feb 06, 2006 12:52 pm Reply with quoteBack to top

No one knows the answer to this?
Find all posts by stcloudscootsView user's profileSend private messageVisit poster's website
bugsTHoR
Private
Private


Joined: Jan 31, 2006
Posts: 40


PostPosted: Tue Feb 07, 2006 1:53 pm Reply with quoteBack to top

to me iand i know next to nothing on php , but im getting same probs with 7.8
2.0.17

beacuse i`ve just uploaded and i presume not all my links have been set in the mysite.com/admin.php this is were all the links need updating to connect them modules /blocks together when u click them

if i go to home and read the standard message thats there the word administration links me and logs me into the admin.php site but if i click the log in any where else i`m not so i presume this is the problem go through all the blocks modules and stuff in administration pages and read everything so we both get all the links sorted , yes its a long job reading wise but it will fix it i hope for us both best a luk
Find all posts by bugsTHoRView user's profileSend private messageSend e-mailVisit poster's website
stcloudscoots
Nuke Soldier
Nuke Soldier


Joined: Feb 03, 2006
Posts: 26


PostPosted: Wed Feb 08, 2006 3:49 pm Reply with quoteBack to top

I tried adding

define('INDEX_FILE', true);
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);

that to the forums index.php. I got that snippet from the News module. But no luck.
Find all posts by stcloudscootsView user's profileSend private messageVisit poster's website
stcloudscoots
Nuke Soldier
Nuke Soldier


Joined: Feb 03, 2006
Posts: 26


PostPosted: Fri Feb 10, 2006 7:29 pm Reply with quoteBack to top

I found a block that allows my forums to display decent enough in the home.

I was wondering how I would add html into it.

Code:
<center><div align="center"><img alt="Image hosted by Photobucket.com" src="http://i20.photobucket.com/albums/b234/guildtastic/Misc/vespanew3.png" align="left" border="0" /></div><br /><div align="left">My reason/plan for this site is the following:<br /><br />1) To gather people who own or want more info <br />    on scooters.<br /><br />2) To give people from the St. Cloud, MN area  <br />    that own scooters a place to talk about scooters,<br />    plan rides and get to gethers.<br /><br />3) To give other scooter groups in the state a place<br />    to notify this group if they are passing by, and to<br />    see if any of us want to tag along with them to <br />    finish out the ride with them.</div></center>


Thats what I want to enter into this.
Code:

<?php

########################################################################
# PHP-Nuke Block: fiapple Center Forum Block v.9              #
# Made for PHP-Nuke 6.5 ONLY!!                                         #
#                                                                      #
# Made by mikem http://www.nukemods.com                                #
# Edited by William Wickings http://www.amateur-online.net             #
########################################################################
# This program is free software. You can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License.       #
# If you modify this, let me know for fun. =)                          #
########################################################################

if (eregi("block-fiapple-Forum.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

global $prefix, $dbi, $sitename, $admin;
$HideViewReadOnly = 1;

$Last_New_Topics  = 10;
$show = "  <tr>
    <td height=\"28\" colspan=\"6\" align=\"center\" class=\"catbottom\" background=\"themes/Charcoal2/forums/images/dkback.gif\">&nbsp;</td>
  </tr>
</table></td>
        </tr>
      </table></td>
  </tr>
</table>";

$Count_Topics = 0;
$Topic_Buffer = "";
$result = sql_query( "SELECT topic_id, forum_id, topic_last_post_id, topic_title, topic_poster, topic_views, topic_replies, topic_moved_id FROM ".$prefix."_bbtopics ORDER BY topic_last_post_id DESC", $dbi );
while( list( $topic_id, $forum_id, $topic_last_post_id, $topic_title, $topic_poster, $topic_views, $topic_replies, $topic_moved_id ) = sql_fetch_row( $result, $dbi ) )

{
   $skip_display = 0;
   if( $HideViewReadOnly == 1 )
   {
      $result1 = sql_query( "SELECT auth_view, auth_read FROM ".$prefix."_bbforums where forum_id = '$forum_id'", $dbi );
      list( $auth_view, $auth_read ) = sql_fetch_row( $result1, $dbi );
      if( ( $auth_view != 0 ) or ( $auth_read != 0 ) ) { $skip_display = 1; }
   }

   if( $topic_moved_id != 0 )
   {
     // Shadow Topic !!
      $skip_display = 1;
   }

   if( $skip_display == 0 )
   {
     $Count_Topics += 1;

$result2 = sql_query("SELECT username, user_id FROM ".$prefix."_users where user_id='$topic_poster'", $dbi);
list($username, $user_id)=sql_fetch_row($result2, $dbi);
$avtor=$username;
$sifra=$user_id;

$result3 = sql_query("SELECT poster_id, FROM_UNIXTIME(post_time,'%m/%d/%Y at %H:%i') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'", $dbi);
list($poster_id, $post_time)=sql_fetch_row($result3, $dbi);

$result4 = sql_query("SELECT username, user_id FROM ".$prefix."_users where user_id='$poster_id'", $dbi);
list($username, $user_id)=sql_fetch_row($result4, $dbi);

                         $viewlast .="  <tr>
    <td height=\"30\" nowrap bgcolor=\"#f5f5f5\" class=\"row1\"><img src=\"themes/Charcoal2/forums/images/folder_new.gif\" border=\"0\" /></td>
    <td width=\"100%\" bgcolor=\"#969494\" class=\"row1\">&nbsp;<a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id\">$topic_title</a></td>
    <td align=\"center\" bgcolor=\"#969494\" class=\"row2\">$topic_replies</td>
    <td align=\"center\" bgcolor=\"#969494\" class=\"row3\"><a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$sifra\">$avtor</a></td>
    <td align=\"center\" bgcolor=\"#969494\" class=\"row2\">$topic_views</td>
    <td align=\"center\" nowrap bgcolor=\"#969494\" class=\"row3\"><font size=\"-2\"><i>&nbsp;&nbsp;$post_time&nbsp;</i></font><br>
      <a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\">$username</a>&nbsp;<a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"><img src=\"themes/Charcoal2/forums/images/icon_minipost_new.gif\" border=\"0\" alt=\"Latest Post\"></a></td>
  </tr>";
}

   if( $Last_New_Topics == $Count_Topics ) { break 1; }

}

    $content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
        <tr>
          <td bgcolor=\"#D1D7DC\"><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\">
  <tr>
    <th height=\"25\" colspan=\"2\" align=\"center\" nowrap background=\"themes/Charcoal2/forums/images/dkback.gif\" class=\"thcornerl\"><font color=\"#000000\"><strong>Topics</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"themes/Charcoal2/forums/images/dkback.gif\" class=\"thtop\"><font color=\"#000000\"><strong>&nbsp;Replies&nbsp;</strong></font></th>
    <th width=\"100\" align=\"center\" nowrap background=\"themes/Charcoal2/forums/images/dkback.gif\" class=\"thtop\"><font color=\"#000000\"><strong>&nbsp;Author&nbsp;</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"themes/Charcoal2/forums/images/dkback.gif\" class=\"thtop\"><font color=\"#000000\"><strong>&nbsp;Views&nbsp;</strong></font></th>
    <th align=\"center\" nowrap background=\"themes/Charcoal2/forums/images/dkback.gif\" class=\"thcornerr\"><font color=\"#000000\"><strong>&nbsp;Last Post&nbsp;</strong></font></th>
  </tr>";
    $content .= "$viewlast";

 $content .= "$show";

?>




Help please
Thanks
Find all posts by stcloudscootsView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.336 Seconds - 207 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::