Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
washbucket
Hangin' Around


Joined: Jul 17, 2007
Posts: 39
Location: colorado

PostPosted: Mon Sep 21, 2009 6:58 pm Reply with quote

Hi! I added a topic then I added news to the topic then I activated the Big story of today block and when I selectect the block on the front of the website every thing look fine except one of the block has $title at the top and the subject has a $news in it thats all you can view, this at Only registered users can see links on this board! Get registered or login! on the bottom right blocks any advise you might be able to give me thanks.
 
View user's profile Send private message Send e-mail Visit poster's website
washbucket
PostPosted: Thu Sep 24, 2009 12:53 pm Reply with quote

I think I narrowed down the problem to my theme.php when I do a news article and add some more paragraphs in the extention it will not show up on the front page just the first secton will so you cannot read more about the subject and you cannot post comments any comments here is the file

Code:
<?php


/************************************************************/
/* Theme Name: Deotur                                      */
/* Theme Design: 7oxic-Media (http://www.7oxic-media.com/)        */
/* version 1.0                                              */
/*                                                          */
/* Copyright Notice                                         */
/* - THIS PACKAGE IS NOT RELEASED AS GPL/GNU SCRIPTING.     */
/* - Our Package name and link MUST REMAIN in the credit    */
/*   footer of all Nuke generated pages.                    */
/*   Translations are permitted, not renaming.              */
/* - This package CAN NOT be ported without written         */
/*   permission.                                            */
/* - This package CAN NOT be mirrored without written       */
/*   permission.                                            */
/* - Use of this package requires that credits to the       */
/*   original PHPNuke remain in all site generated          */
/*   page footers.                                          */
/*                                                          */
/************************************************************/

global $pathToTheme;
$pathToTheme = 'themes/Detour/';

function ThemeOpenTable2(){
    global $pathToTheme;
   echo '<table id="Table_01" width="100%"  border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td colspan="3" width="123">
         <img src="'.$pathToTheme.'images/news_01.gif" width="123" height="17" alt=""></td>
      <td width="100%" background="'.$pathToTheme.'images/news_03.gif">
      <img src="'.$pathToTheme.'images/news_03.gif" width="3" height="17" alt=""></td>
      <td colspan="3" width="49">
         <img src="'.$pathToTheme.'images/news_05.gif" width="50" height="17" alt=""></td>
   </tr>
</table>   
<table id="Table_01" width="100%"  border="0" cellpadding="0" cellspacing="0">   
   <tr>
      <td colspan="3" width="123" >
         <img src="'.$pathToTheme.'images/news_11.gif" width="123" height="16" alt=""></td>
      <td background="'.$pathToTheme.'images/news_13.gif" width="100%">
         <img src="'.$pathToTheme.'images/news_13.gif" width="3" height="16" alt=""></td>
      <td colspan="3" width="50">
         <img src="'.$pathToTheme.'images/news_15.gif" width="50" height="16" alt=""></td>
   </tr>
</table>   
<table id="Table_01" width="100%" height="100"  border="0" cellpadding="0" cellspacing="0">   
   <tr>
      <td background="'.$pathToTheme.'images/news_19.gif" width="15" >
         <img src="'.$pathToTheme.'images/news_19.gif" width="15" height="3" alt=""></td>
      <td background="'.$pathToTheme.'images/news_20.gif" width="100%"><table width="100%"><tr><td>' ;
}

function ThemeCloseTable2(){
    global $pathToTheme;
    echo '</td></tr></table></td>
         <td background="'.$pathToTheme.'images/news_21.gif" width="16">
            <img src="'.$pathToTheme.'images/news_21.gif" width="16" height="3" alt=""></td>
      </tr>
   </table>
   <table id="Table_01" width="100%"  border="0" cellpadding="0" cellspacing="0">   
      <tr>
         <td width="32" height="22">   <img src="'.$pathToTheme.'images/news_25.gif" width="32" height="22" alt=""></td>
         <td background="'.$pathToTheme.'images/news_27.gif" width="100%"><img src="'.$pathToTheme.'images/news_27.gif" width="3" height="22" alt=""></td>
         <td width="38" height="22"><img src="'.$pathToTheme.'images/news_29.gif" width="38" height="22" alt=""></td>
      </tr>
   </table>   ';
   
}

function ThemeOpenTable(){
    global $pathToTheme;
   echo '<table align="center" id="Table_01" width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
      <tr>
         <td width="41" height="24"><img src="'.$pathToTheme.'images/center_01.gif" width="41" height="24" alt=""></td>
         <td background="'.$pathToTheme.'images/center_03.gif" height="24" width="100%"></td>
         <td width="42" height="24"><img src="'.$pathToTheme.'images/center_05.gif" width="42" height="24" alt=""></td>
      </tr>
   </table>
   <table align="center" id="Table_01" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">   
      <tr>
         <td height="100%" background="'.$pathToTheme.'images/center_09.gif"  width="17"><img src="'.$pathToTheme.'images/center_09.gif" width="17" height="2" alt=""></td>
         <td height="100%" background="'.$pathToTheme.'images/center_10.gif" ><table width="100%"><tr><td>
         ';
}

function ThemeCloseTable(){
     global $pathToTheme;
    echo '</td></tr></table></td>
         <td height="100%" background="'.$pathToTheme.'images/center_11.gif"  width="17"><img src="'.$pathToTheme.'images/center_11.gif" width="17" height="2" alt=""></td>
      </tr>
   </table>
   <table align="center" id="Table_01" width="100%" height="24" border="0" cellpadding="0" cellspacing="0">      
      <tr>
         <td width="41" height="24">
            <img src="'.$pathToTheme.'images/center_15.gif" width="41" height="24" alt=""></td>
         <td width="100%" background="'.$pathToTheme.'images/center_17.gif">&nbsp;</td>
         <td width="42" height="24" >
            <img src="'.$pathToTheme.'images/center_19.gif" width="42" height="24" alt=""></td>
      </tr>
   </table>';
}

function OpenTable(){
    global $name, $ranonce2;
   if($name == 'Forums'){
      #ThemeOpenTable();
   }elseif($ranonce2 == 0){
        $ranonce2 = 1;
      ThemeOpenTable2();      
   }else{
      ThemeOpenTable();
   }
}

function OpenTable2(){
    ThemeOpenTable();
}

function CloseTable(){
    global $name, $ranonce2;
   if($name == 'Forums'){
      #ThemeCloseTable();
   }elseif($ranonce2 == 1){
        $ranonce2 = 2;
      ThemeCloseTable2();         
   }else{
      ThemeCloseTable();
   }
}

function CloseTable2(){
   ThemeCloseTable();
}

function themesidebox($title, $content) {
    global $pathToTheme;
   echo '<table id="Table_01" width="212" height="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td colspan="3">
         <img src="'.$pathToTheme.'images/block_03.gif" width="212" height="18" alt=""></td>
   </tr>
   <tr>
      <td align="center" colspan="3" background="'.$pathToTheme.'images/block_05.gif" width="212" height="18">
         '.$title.'</td>
   </tr>
   <tr>
      <td colspan="3">
         <img src="'.$pathToTheme.'images/block_06.gif" width="212" height="26" alt=""></td>
   </tr>
   
   <tr>
      <td height="100%" background="'.$pathToTheme.'images/block_10.gif" width="18">
         <img src="'.$pathToTheme.'images/block_10.gif" width="18" height="4" alt=""></td>
      <td height="100%" background="'.$pathToTheme.'images/block_11.gif" width="176">
         '.$content.'</td>
      <td height="100%" background="'.$pathToTheme.'images/block_12.gif" width="18">
         <img src="'.$pathToTheme.'images/block_12.gif" width="18" height="4" alt=""></td>
   </tr>
   <tr>
      <td colspan="3">
         <img src="'.$pathToTheme.'images/block_16.gif" width="212" height="24" alt=""></td>
   </tr>
</table>';
 
}

function themeheader(){
   global $pathToTheme;
   echo '<table id="Table_01" width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td width="24" height="19">
         <img src="themes/Detour/images/header/header_01.gif" width="24" height="19" alt=""></td>
      <td width="48" height="19">
         <a href="index.php"><img border="0" src="themes/Detour/images/header/header_02.gif" width="48" height="19" alt=""></a></td>
      <td width="60" height="19" >
         <a href="forums.html"><img border="0" src="themes/Detour/images/header/header_03.gif" width="60" height="19" alt=""></a></td>
      <td width="66" height="19">
         <a href="account-new_user.html"><img border="0" src="themes/Detour/images/header/header_04.gif" width="66" height="19" alt=""></a></td>
      <td width="68" height="19">
         <a href="modules.php?name=Members_List"><img border="0" src="themes/Detour/images/header/header_05.gif" width="68" height="19" alt=""></a></td>
      <td width="38" height="19">
         <a href="faq.html"><img border="0" src="themes/Detour/images/header/header_06.gif" width="38" height="19" alt=""></a></td>
      <td width="100%" background="themes/Detour/images/header/header_07.gif" height="19">
      <img src="themes/Detour/images/header/header_08.gif" width="4" height="19" alt=""></td>
      <td idth="358" height="19" >
         <img src="themes/Detour/images/header/header_09.gif" width="358" height="19" alt=""></td>
   </tr>
</table>
<table id="Table_01" width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td width="618" height="200">
         <img src="themes/Detour/images/header/header_10.gif" width="618" height="200" alt=""></td>
      <td background="themes/Detour/images/header/header_11.gif" width="100%">
     </td>
      <td width="358" height="200" >
         <img src="themes/Detour/images/header/header_12.gif" width="358" height="200" alt=""></td>
   </tr>
</table>';
   

   
   echo '<table align="center" width="100%" cellpadding="0" cellspacing="0" border="0" >
   <tr valign="top">
   <td width="31" valign="top" background="'.$pathToTheme.'images/bar_01.gif"><div align="left"><img src="'.$pathToTheme.'images/bar_01.gif" width="31" height="41" border="0"></div></td>

   <td width="212" valign="top">';
   blocks('left');
   echo '</td><td width="100%">';
   
}

function themefooter(){
    global $pathToTheme , $name;
   if($name != 'Forums'){
      echo '<td width="" valign="top">';
      blocks('right');
      echo '</td><td>';          
   }else{
   #   forumBlock();
   }
    
    echo '</td>
   <td width="31" valign="top" background="'.$pathToTheme.'images/bar_03.gif"><img src="'.$pathToTheme.'images/bar_03.gif" width="31" height=41border="0"></td>
   </tr>
   </table>';
   
   echo '<table id="Table_01" width="100%" border="0" cellpadding="0" cellspacing="0">
   
   <tr>
      <td width="642" height="14" >
         <img src="themes/Detour/images/footer/footer_02.gif" width="642" height="14" alt=""></td>
      <td background="themes/Detour/images/footer/footer_03.gif" width="100%">
         <img src="themes/Detour/images/footer/footer_03.gif" width="3" height="14" alt=""></td>
      <td width="335" height="14" >
         <img src="themes/Detour/images/footer/footer_04.gif" width="335" height="14" alt=""></td>
   </tr>
</table>
<table id="Table_01" width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td width="62" height="13">
         <img src="themes/Detour/images/footer/footer_05.gif" width="62" height="13" alt=""></td>
      <td width="170" height="13">
         <a href="http://www.7oxic-media.com"><img src="themes/Detour/images/footer/footer_06.gif" width="170" height="13" alt="" border="0"></a></td>
      <td width="202" height="13">
         <img src="themes/Detour/images/footer/footer_07.gif" width="202" height="13" alt=""></td>
      <td width="84" height="13">
         <img src="themes/Detour/images/footer/footer_08.gif" width="84" height="13" alt=""></td>
      <td width="44" height="13">
         <a href="http://phpnuke.org" rel="nofollow">
            <img src="themes/Detour/images/footer/footer_09.gif" width="44" height="13" border="0" alt=""></a></td>
      <td width="11" height="13">
         <img src="themes/Detour/images/footer/footer_10.gif" width="11" height="13" alt=""></td>
      <td width="69" height="13">
         <a href="http://www.phpthemes.net">
            <img src="themes/Detour/images/footer/footer_11.gif" width="69" height="13" border="0" alt=""></a></td>
      <td background="themes/Detour/images/footer/footer_12.gif" width="100%">
         <img src="themes/Detour/images/footer/footer_12.gif" width="3" height="13" alt=""></td>
      <td width="335" height="13">
         <img src="themes/Detour/images/footer/footer_13.gif" width="335" height="13" alt=""></td>
   </tr>
</table>
<table id="Table_01" width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td width="642" height="16">
         <img src="themes/Detour/images/footer/footer_14.gif" width="642" height="16" alt=""></td>
      <td background="themes/Detour/images/footer/footer_15.gif" width="100%">
         <img src="themes/Detour/images/footer/footer_15.gif" width="3" height="16" alt=""></td>
      <td width="335" height="16" >
         <img src="themes/Detour/images/footer/footer_16.gif" width="335" height="16" alt=""></td>
   </tr>
</table>';
 
}

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath, $pathToTheme;
   $ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
}
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
        $notes = "<br><br><b>Admin's Comment:</b> <i>$notes</i>\n";
    } else {
        $notes = "";
    }
    if ("$aid" == "$informant") {
        $content = "$thetext$notes\n";
    } else {
        if($informant != "") {
            $content = "News submitted by: <a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a><br><br> ";
        } else {
            $content = "News submitted by: <i>$anonymous</i><br><br>";
        }
        $content .= "$thetext$notes\n";
    }
   echo '<table id="Table_01" width="100%"  border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td colspan="3" width="123">
         <img src="'.$pathToTheme.'images/news_01.gif" width="123" height="17" alt=""></td>
      <td width="100%" background="'.$pathToTheme.'images/news_03.gif">
      <img src="'.$pathToTheme.'images/news_03.gif" width="3" height="17" alt=""></td>
      <td colspan="3" width="50">
         <img src="'.$pathToTheme.'images/news_05.gif" width="50" height="17" alt=""></td>
   </tr>
</table>   
<table id="Table_01" width="100%"  height="20" border="0" cellpadding="0" cellspacing="0">   
   <tr>
      <td background="'.$pathToTheme.'images/news_06.gif" width="16" ></td>
      <td background="'.$pathToTheme.'images/news_08.gif">
         $TITLE</td>
      <td colspan="3" width="50">
         <img src="'.$pathToTheme.'images/news_10.gif" width="50" height="20" alt=""></td>
   </tr>
</table>   
<table id="Table_01" width="100%"  border="0" cellpadding="0" cellspacing="0">   
   <tr>
      <td colspan="3" width="123" >
         <img src="'.$pathToTheme.'images/news_11.gif" width="123" height="16" alt=""></td>
      <td background="'.$pathToTheme.'images/news_13.gif" width="100%">
         <img src="'.$pathToTheme.'images/news_13.gif" width="3" height="16" alt=""></td>
      <td colspan="3" width="50">
         <img src="'.$pathToTheme.'images/news_15.gif" width="50" height="16" alt=""></td>
   </tr>
</table>   
<table id="Table_01" width="100%" height="100"  border="0" cellpadding="0" cellspacing="0">   
   <tr>
      <td background="'.$pathToTheme.'images/news_19.gif" width="15" >
         <img src="'.$pathToTheme.'images/news_19.gif" width="15" height="3" alt=""></td>
      <td background="'.$pathToTheme.'images/news_20.gif" width="100%">
         $news </td>
      <td background="'.$pathToTheme.'images/news_21.gif" width="16">
         <img src="'.$pathToTheme.'images/news_21.gif" width="16" height="3" alt=""></td>
   </tr>
</table>
<table id="Table_01" width="100%"  border="0" cellpadding="0" cellspacing="0">   
   <tr>
      <td width="32" height="22">   <img src="'.$pathToTheme.'images/news_25.gif" width="32" height="22" alt=""></td>
      <td background="'.$pathToTheme.'images/news_27.gif" width="100%"><img src="'.$pathToTheme.'images/news_27.gif" width="3" height="22" alt=""></td>
      <td width="38" height="22"><img src="'.$pathToTheme.'images/news_29.gif" width="38" height="22" alt=""></td>
   </tr>
</table>   ';
}

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath, $pathToTheme;

$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
      $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    }
   else {$t_image = "$tipath$topicimage";}
    if ($notes != "") { $notes = "<br><br><b>Admin's Comment:</b> $notes\n"; }
   else {$notes = "";}
    if ("$aid" == "$informant") {$content = "$thetext$notes\n";}
    else {
        if($informant != "") {
            $content = "News submitted by: <a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a><br><br>";
        }
      else {$content = "News submitted by: <i>$anonymous</i><br><br>";}
        $content .= "$thetext$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ";
   
    $content = '<table id="Table_01" width="100%"  border="0" cellpadding="5" cellspacing="0"><tr><td><img src="'.$t_image.'"></td>'.
            '<td>'.$content.'</td></tr></table><div align="center">'.$posted.'</div>';
   
   echo '<table id="Table_01" width="100%"  border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td colspan="3" width="123">
         <img src="'.$pathToTheme.'images/news_01.gif" width="123" height="17" alt=""></td>
      <td width="100%" background="'.$pathToTheme.'images/news_03.gif">
      <img src="'.$pathToTheme.'images/news_03.gif" width="3" height="17" alt=""></td>
      <td colspan="3" width="50">
         <img src="'.$pathToTheme.'images/news_05.gif" width="50" height="17" alt=""></td>
   </tr>
</table>   
<table id="Table_01" width="100%"  height="20" border="0" cellpadding="0" cellspacing="0">   
   <tr>
      <td background="'.$pathToTheme.'images/news_06.gif" width="16" ></td>
      <td background="'.$pathToTheme.'images/news_08.gif">
         '.$title.'</td>
      <td colspan="3" width="50">
         <img src="'.$pathToTheme.'images/news_10.gif" width="50" height="20" alt=""></td>
   </tr>
</table>   
<table id="Table_01" width="100%"  border="0" cellpadding="0" cellspacing="0">   
   <tr>
      <td colspan="3" width="123" >
         <img src="'.$pathToTheme.'images/news_11.gif" width="123" height="16" alt=""></td>
      <td background="'.$pathToTheme.'images/news_13.gif" width="100%">
         <img src="'.$pathToTheme.'images/news_13.gif" width="3" height="16" alt=""></td>
      <td colspan="3" width="50">
         <img src="'.$pathToTheme.'images/news_15.gif" width="50" height="16" alt=""></td>
   </tr>
</table>   
<table id="Table_01" width="100%" height="100"  border="0" cellpadding="0" cellspacing="0">   
   <tr>
      <td background="'.$pathToTheme.'images/news_19.gif" width="15" >
         <img src="'.$pathToTheme.'images/news_19.gif" width="15" height="3" alt=""></td>
      <td background="'.$pathToTheme.'images/news_20.gif" width="100%">
         '.$content.' </td>
      <td background="'.$pathToTheme.'images/news_21.gif" width="16">
         <img src="'.$pathToTheme.'images/news_21.gif" width="16" height="3" alt=""></td>
   </tr>
</table>
<table id="Table_01" width="100%"  border="0" cellpadding="0" cellspacing="0">   
   <tr>
      <td width="32" height="22">   <img src="'.$pathToTheme.'images/news_25.gif" width="32" height="22" alt=""></td>
      <td background="'.$pathToTheme.'images/news_27.gif" width="100%"><img src="'.$pathToTheme.'images/news_27.gif" width="3" height="22" alt=""></td>
      <td width="38" height="22"><img src="'.$pathToTheme.'images/news_29.gif" width="38" height="22" alt=""></td>
   </tr>
</table>   ';
}


?>


thanks
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Thu Sep 24, 2009 5:44 pm Reply with quote

washbucket wrote:
when I do a news article and add some more paragraphs in the extention it will not show up on the front page just the first secton will so you cannot read more about the subject and you cannot post comments


Actually, first of all, this is how news articles work. The Story Text field is what is shown on the index page. Then, your theme should have code in it to present a "Read More..." or sometimes just "Comments.." type link that takes you directly to the article page, where ALL of the text and comments are displayed.

So, if you indeed have text within the Extended Text field, then it is indeed a theme.php problem. However, if you have no text within the Extended Text field, then theme.php is doing what it is supposed to be doing.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
montego
PostPosted: Thu Sep 24, 2009 5:48 pm Reply with quote

I just checked your theme code and sure enough, the author of that theme is not checking the $morelink variable into the themeindex function and so is not providing the link. You will have to either: 1) add the code yourself, 2) don't use Extended Text, or 3) get yourself a better theme.
 
washbucket
PostPosted: Thu Sep 24, 2009 6:10 pm Reply with quote

Ok thanks for looking at it, I will just keep it plain and simple in the articles section until I get ready to change theme out.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©