Ravens PHP Scripts: Forums
 

 

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


Joined: Dec 17, 2007
Posts: 29

PostPosted: Mon Feb 07, 2011 3:01 pm Reply with quote

Ok so I uploaded some topic images where the default topic images reside, however when I put a new item on the main page assigned to a particlar topic the image doesn't appear anywhere.

I am using the CT_RN Black theme, has this been disabled as part of the theme??
 
View user's profile Send private message
PHrEEkie
Subject Matter Expert


Joined: Feb 23, 2004
Posts: 358

PostPosted: Mon Feb 07, 2011 5:50 pm Reply with quote

Not familiar with that theme.. do the default images show? If so, then it isn't the theme.

- Keith

_________________
PHP - Breaking your legacy scripts one build at a time. 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Tue Feb 08, 2011 1:18 am Reply with quote

After you upload the image(s) you have to then add them through the Topics admin menu. Did you do that?
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Tue Feb 08, 2011 6:40 am Reply with quote

That theme does not display topic images on the index. That is the way the designer of it intended.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
rugbyleaguer
PostPosted: Fri Feb 11, 2011 10:33 am Reply with quote

Thats a bugger, any way to add it?? Would anyone know the coding to add it?
 
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Fri Feb 11, 2011 3:33 pm Reply with quote

Please check this topic:
Only registered users can see links on this board! Get registered or login!

Maybe it will help you.

Also you should know thats not a bug. This themes are designed to load quickly without these images.
 
View user's profile Send private message
rugbyleaguer
PostPosted: Fri Feb 11, 2011 3:44 pm Reply with quote

I knew it was prob the theme that was designed that way as it wouldnt use the default images, but thanks a lot for your help tis greatly appreciated.
 
rugbyleaguer
PostPosted: Sun Feb 13, 2011 8:09 am Reply with quote

Looking at that last post I can almost follow what wants to go in but unsure where would any kind person show me what code I need to add and where in the following code?

Here is the Theme code:

Code:
<?php

/********************************************************/
/* Clan Template for PHP-Nuke                           */
/* Theme Designed and coded by                        */
/* http://www.clanthemes.com                            */
/********************************************************/

// BEGIN: Added in v2.40.00 - Mantis Issue 0001043
//$index = 0;
//if (!defined('INDEX_FILE')) define('INDEX_FILE', true); // Set to FALSE to hide right blocks
//if (defined('INDEX_FILE') AND INDEX_FILE===true) {
// auto set right blocks for pre patch 3.1 compatibility
//   $index = 1;
//}
// END: Added in v2.40.00 - Mantis Issue 0001043

$bgcolor1 = '#c40002';
$bgcolor2 = '#c40002';
$bgcolor3 = '#c40002';
$bgcolor4 = '#c40002';
$textcolor1 = '#666666';
$textcolor2 = '#666666';

function themeheader() {
   global $module_name, $banners, $admin, $user, $name, $sitename, $index, $admin_file, $nukeurl, $slogan, $nukeNAV;
   echo '<body>';
   if (!empty($nukeNAV)) $nukeNAV = '<span class="left">&nbsp;</span><span class="right">&nbsp;</span>'.$nukeNAV.'';
   else {
      $nukeNAV = '<span class="right">&nbsp;</span><span class="left">&nbsp;</span>
      <a href="./index.php">Home</a>
      <a href="./modules.php?name=News">News</a>
      <a href="./modules.php?name=Downloads">Downloads</a>
      <a href="./modules.php?name=Forums">Forum</a>
      <a href="./modules.php?name=Reviews">Reviews</a>
      <a href="./modules.php?name=Advertising">Advertisement</a>
      <a href="./modules.php?name=Your_Account">Account</a>
      <a href="./modules.php?name=Feedback">Contact</a>';
      if (is_admin($admin)) {
         $nukeNAV .= '<a href="./admin.php">Admin</a>';
      } else {
         $nukeNAV .= '<a href="./modules.php?name=Search">Search</a>';
      }
   }
   echo '
   <div id="container">
   <!-- Navigation -->
   <div id="navigation">';
   echo $nukeNAV;
   echo '</div>
   <div id="themecontainer">
   <!-- Banner -->
   <h1>
   <a href="./"><img src="themes/CT_RN_BLACK/random_banners/random_banner.php" alt="My site" title="My Site" /></a>
   </h1>
   <!-- Spotlight Section -->
   <div id="spotlight">
   <div id="span1"></div><div id="span2"></div>
   <img src="themes/CT_RN_BLACK/images/small_spotlight.gif" alt="Spotlight" class="overlay" />';

   
   if ($banners) {
      echo '<br /><br />';
      $adText = '';
      $adText = ads(0);
      if (!empty($adText)) {
         echo '<div>' . $adText . '</div>';
      }else{
         echo '<a href="http://www.Mysite.co.uk" title="MySite"><img src="themes/CT_RN_BLACK/images/spotlight.jpg" alt="PCC" title="PCC" /></a>';
      }
   };
      
   echo '</div>';
   
   echo '<br><!-- Content start - Column wrapper -->
   <div id="columns">';
   // Column 1 (left)
   if (($module_name != 'Forums') AND ($module_name !='Your_Account') AND ($module_name !='Journal') AND ($module_name !='Topics') AND ($module_name !='Private_Messages') AND ($module_name !='Members_List')):
   echo '<div class="col1">';
   blocks('l');
   echo '<p class="clear" /></div>';
   endif;
   //coloum 2 (center)
   if (empty($index)) { $index = null; }
   if (defined('INDEX_FILE') || ($index == 1)) {
      // right blocks are showing
      echo '<div class="col2">';
   }
   elseif (($module_name != 'Forums') AND ($module_name !='Your_Account') AND ($module_name !='Journal') AND ($module_name !='Topics') AND ($module_name !='Private_Messages') AND ($module_name !='Members_List'))
   {
      // right blocks are NOT showing
      echo '<div class="col2_special">';
   }
   else { echo "<div>"; }
}



function themefooter() {
   global $foot1, $foot2, $foot3, $footer_message, $index;
   echo '<p class="clear" /></div><!-- end center -->';
   if (defined('INDEX_FILE') && INDEX_FILE===true || ($index === 1)) {
      echo '<!-- Column 3 (Right) --><div class="col1">';
      blocks('r');
      echo '<p class="clear" /></div>';
   }
   echo '
   </div>
   <!-- end columns  -->
      <div id="copyright">';
         footmsg();
      echo '
         <!-- Do not edit the below copyright you are not allowed to edit or remove the below copyright, please give us some credit thanks -->
         <strong><a target="_blank" href="http://www.mysite.co.uk" title="Template By Me">Theme Layout by Me</a></strong>';
   echo '</div>
   <div id="footer">
            <span class="right">&nbsp;</span>
            <span class="left"> &nbsp;</span>
         </div>
      </div>
   </div>
   <!-- end container -->';
}

function OpenTable() {
   echo'<h2>
         <div id="span1"></div><div id="span2"></div>
      </h2>
         <div class="block_content">
            <div class="roundcont">
               <div class="roundtop">
                  <div>
                     <img src="themes/CT_RN_BLACK/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
                  </div>
               <div class="articlecontent">';
}

function CloseTable() {
   echo'        </div>
               <div class="roundbottom">
                  <img src="themes/CT_RN_BLACK/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
               </div>
         </div>
      </div>
   </div>';
}

function OpenTable2() {
   echo "\n".'<!-- table start --><div class="table2">'."\n";
}

function CloseTable2() {
   echo "\n".'</div><!-- table end -->'."\n";
}

function themesidebox($title, $content) {
   echo'         <h2>
   <div id="span1">'.$title.'</div><div id="span2"></div>
   </h2>
   <div class="block_content">
   <div class="roundcont">
   <div class="roundtop">
   <div>
   <img src="themes/CT_RN_BLACK/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   <div class="articlecontent">
   '.$content.'
   </div>
   <div class="roundbottom">
   <img src="themes/CT_RN_BLACK/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   </div>
   </div>
   </div>
   <p class="clear" />';
}

function themecenterbox($title, $content) {
   echo'         <h2>
   <div id="span1">'.$title.'</div><div id="span2"></div>
   </h2>
   <div class="block_content">
   <div class="roundcont">
   <div class="roundtop">
   <div>
   <img src="themes/CT_RN_BLACK/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   <div class="articlecontent">
   '.$content.'
   </div>
   <div class="roundbottom">
   <img src="themes/CT_RN_BLACK/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   </div>
   </div>
   </div>
   <p class="clear" />';
}


function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
   global $anonymous, $tipath, $user, $admin, $index;
   $content = '';
   if (!empty($thetext)) $thetext = '<div>'.$thetext.'</div>';
   if (!empty($notes)) {
      $notes = '<br /><b>'._NOTE.'</b>&nbsp;<div>'.$notes.'</div>';
   } else {
      $notes = '';
   }
   if ($aid == $informant) {
      $content = $thetext.$notes;
   } else {
      if(!empty($informant)) {
         global $admin, $user;
         if (is_user($user)||is_admin($admin)) $content = '<a href="modules.php?name=Your_Account&amp;op=userinfo&amp;username='.$informant.'"><i>'.$informant.'</i></a> ';
         else $content = $informant.' ';//Raven 10/16/2005
      } else {
         $content = $anonymous.' ';
      }
      $content .= '<i>'._WRITES.':</i>&nbsp;&nbsp;'.$thetext.$notes;
   }
   $posted = _POSTEDBY.' ';
   if (is_user($user)||is_admin($admin)) $posted .= '<a href="modules.php?name=Your_Account&amp;op=userinfo&amp;username='.$aid.'">'.$aid.'</a>';
   else $posted .= $aid; //Raven 10/16/2005
   $posted .= ' '._ON.' '.$time.' ('.$counter.' '._READS.')';

   echo'         <h2>
   <div id="span1">'.$title.'</div><div id="span2"></div>
   </h2>
   <div class="block_content">
   <div class="roundcont">
   <div class="roundtop">
   <div>
   <img src="themes/CT_RN_BLACK/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   <div class="articlecontent">
   '.$content.'
   </div><br>
   <p class="clear" />
   '.$morelink.'
   <div class="roundbottom">
   <img src="themes/CT_RN_BLACK/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   </div>
   </div>
   </div>
   <p class="clear" />
<div class="block_content">
   <div class="roundcont">
   <div class="roundtop">
   <div>
   <img src="themes/CT_RN_BLACK/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   <div class="articlecontent">
   '.$posted.'
   </div>
   <div class="roundbottom">
   <img src="themes/CT_RN_BLACK/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   </div>
   </div>
   </div>
';
}

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext, $notes) {  //montego - added $notes for RavenNuke
   global $admin, $sid, $tipath, $index;
   $thetext = '<div>'.$thetext.'</div>';
   $posted = _POSTEDON.' '.$datetime.' '._BY.' ';
   $posted .= get_author($aid);
   if (!empty($notes)) {
      $notes = '<br /><b>'._NOTE.'</b> <div>'.$notes.'</div>';
   } else {
      $notes = '';
   }
   if ($aid == $informant) {
      $content = $thetext.$notes;
   } else {
      if(!empty($informant)) {
         global $admin, $user;
         if (is_user($user)||is_admin($admin)) $content = '<a href="modules.php?name=Your_Account&amp;op=userinfo&amp;username='.$informant.'"><i>'.$informant.'</i></a> ';
         else $content = $informant.' ';//Raven 10/16/2005
      } else {
         $content = $anonymous.' ';
      }
      $content .= '<i>'._WRITES.'</i> <div>'.$thetext.'</div>'.$notes;
   }
   echo'         <h2>
   <div id="span1">'.$title.'</div><div id="span2"></div>
   </h2>
   <div class="block_content">
   <div class="roundcont">
   <div class="roundtop">
   <div>
   <img src="themes/CT_RN_BLACK/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   <div class="articlecontent">
   '.$posted.'
   </div>
   <div class="roundbottom">
   <img src="themes/CT_RN_BLACK/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   </div>
   </div>
   </div>
   <div class="block_content">
   <div class="roundcont">
   <div class="roundtop">
   <div>
   <img src="themes/CT_RN_BLACK/images/tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   <div class="articlecontent">
   '.$content.'
   </div>
   <p class="clear" />
   <div class="roundbottom">
   <img src="themes/CT_RN_BLACK/images/bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
   </div>
   </div>
   </div>
   </div>
   <p class="clear" />';
}
?>


Thanks in advance.
 
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6792
Location: Ha Noi, Viet Nam

PostPosted: Sun Feb 13, 2011 1:53 pm Reply with quote

In case this is a commercial script, you should get support for this from the ClanThemes websites where it was purchased/downloaded.
 
View user's profile Send private message Send e-mail
rugbyleaguer
PostPosted: Sun Feb 13, 2011 2:05 pm Reply with quote

I would be their site is down, as it is a free download from their site thought someone on here would be kind enough to help out.
 
Raven
PostPosted: Sun Feb 13, 2011 5:15 pm Reply with quote

It's not down now Smile
 
rugbyleaguer
PostPosted: Mon Feb 14, 2011 12:08 pm Reply with quote

Yeah back up but absolutely no response Sad
 
Raven
PostPosted: Mon Feb 14, 2011 2:09 pm Reply with quote

I sent them an email in the event your post got overlooked. I know it happens to me more frequently than I'd like to admit Embarassed Wink
 
rugbyleaguer
PostPosted: Mon Feb 14, 2011 2:10 pm Reply with quote

Thanks a lot, I'm sure the change is a 5 min job to them as well lol
 
xGSTQ
Involved
Involved


Joined: Feb 03, 2006
Posts: 267
Location: UK

PostPosted: Mon Feb 14, 2011 2:21 pm Reply with quote

THis is Ped sorry ive not replied to your post on CT

Just been so busy with life !! im sure you are all aware of life hehe and we just moved server yesterday as well so we have been occupied with some tiny issues Wink

Anyway CT_RN_BLACK is a free theme, ill have a look at the code tomorrow and sort you out, like you said its only a 2 minute fix/issue

Ill post the new code in this thread here >> Only registered users can see links on this board! Get registered or login!

Regards

Ped
 
View user's profile Send private message Send e-mail Visit poster's website
xGSTQ
PostPosted: Mon Feb 14, 2011 9:22 pm Reply with quote

Updated
Only registered users can see links on this board! Get registered or login!

Cheers
 
Guardian2003
PostPosted: Tue Feb 15, 2011 2:40 am Reply with quote

Thanks Ped !
 
Raven
PostPosted: Tue Feb 15, 2011 3:24 am Reply with quote

rugbyleaguer,

RavensScripts
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

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 ©