Smart system is a free infusion for content management system PHP-Fusion which allows you to install themes, infusions, panels directly on your own site.
Version 3.0 for PHP-Fusion All, 16 September 2012
View Thread
 Print Thread
Theme Deeplasm
zodan
First of all thank you for what you do and sorry for my bad english, I finally found a theme that fits to my site but there are some things that I think are ok or I did not understand:
1 links above news icon editing and printing are not clickable (even after clikkato read more)
2 How do I change the information in the box on the top right (what kind of code use?)

Thanks for any help!
MYSITE HERE
 
FILON
zodan wrote:

First of all thank you for what you do and sorry for my bad english, I finally found a theme that fits to my site but there are some things that I think are ok or I did not understand:
1 links above news icon editing and printing are not clickable (even after clikkato read more)
2 How do I change the information in the box on the top right (what kind of code use?)


Hi,

There are answers for questions:
1. If you mean news subject under "links above news icon editing and printing", it have not to be clickable. Perhaps this feature will be added in next version.
2. Go to the Admin Panel - Settings - Main and fill the Site Description field. You can use only text.
If you can't make it good, at least make it look good. © William Henry Gates III
 
zodan
Ok thanks,
I enjoyed to enter a code in theme.php on line 146:
Download source  Code
if (iADMIN checkrights && ("N")) {
                 echo "<a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$info['news_id']."'>
<img src = '". THEME." images / edit.png' alt = '". $ locale [' global_076 ']."' title = '". $ locale [' global_076 ']."' border = '0 '/> </ a> \ n ";
}




should open when I click on edit for example: http://www. ********** / administration / news.php & action = edit & news_id given = 412su the system tell me The requested URL / administration / news.php & action = edit & news_id given = 412 was not found on this server.
What's wrong?
 
FILON
Set the global section as following:
Download source  Code
global $locale, $aidlink;




And try this code:
Download source  Code
if (iADMIN && checkrights("N")) {
      echo "<a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$info['news_id']."'><img src='".THEME."images/edit.png' alt='".$locale['global_076']."' title='".$locale['global_076']."' border='0' /></a>\n";
}



If you can't make it good, at least make it look good. © William Henry Gates III
 
zodan
Perfect works great.
But if I delete the line 145 to not see a print mark (already present in the news) the edit link is no longer editable, I would also remove the symbol edit .
Here's a screen (image circle)

[img]http://s9.postimage.org/r0z5vhj7f/Immagine.jpg[/img] is not a valid Image.

Thanks again for everything
Edited by zodan on 06-12-2012 16:04
 
FILON
Replace lines 143-147 in theme.php on these:
Download source  Code
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain'><div class='c-links float-right'>";
if (iADMIN && checkrights("N")) { echo "<a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$info['news_id']."'><img src='".THEME."images/edit.png' alt='".$locale['global_076']."' title='".$locale['global_076']."' border='0' /></a>\n"; }
echo "<a href='".BASEDIR."print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>";
echo "</div><span class='century'>".$subject."</span></td>\n";
echo "</tr>\n</table>\n";



If you can't make it good, at least make it look good. © William Henry Gates III
 
zodan
Perfect tnks !
you are very kind and thank you for availability.
Can I ask you something else if I need ?
 
FILON
zodan wrote:
Can I ask you something else if I need ?


Yes, sure.
If you can't make it good, at least make it look good. © William Henry Gates III
 
zodan
Hello, I continue in this post is not open to others, I think I found a bug in this theme.
When a user writes a comment in the news, as you can see here:

[img]http://s9.postimage.org/iadvag827/Immagineplasm.png[/img] is not a valid Image.

made a test with another theme here is the result:

[img]http://s18.postimage.org/8n4w7yjux/Immagine_Neo.png[/img] is not a valid Image.

something does not work ....in theme Deeplasm
what to do? hello thanks
 
FILON
Bad methods to take an ID from the profile link.

Replace function render_comments() in theme.php on this:
Download source  Code
function render_comments($c_data, $c_info){
   global $locale, $settings;
   
   opentable($locale['c100']);
   if (!empty($c_data)){
      $c_makepagenav = "";
      if ($c_info['c_makepagenav'] !== false) { echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";  }
      foreach($c_data as $data) {
         $u_data = dbarray(dbquery(
            "SELECT us.user_id, us.user_lastvisit FROM ".DB_USERS." us
            LEFT JOIN ".DB_COMMENTS." cm ON us.user_id=cm.comment_name
            WHERE cm.comment_id='".$data['comment_id']."' LIMIT 1"
         ));
         $u_data['user_id'] = (isnum($u_data['user_id']) ? $u_data['user_id'] : "0");
         $u_data['user_lastvisit'] = (isnum($u_data['user_lastvisit']) ? $u_data['user_lastvisit'] : "0");
         echo "<div class='comment-box wrapper'>\n";
         if ($settings['comments_avatar'] == "1") { echo "<div class='float-left comment-avatar-box'><a href='".BASEDIR."profile.php?lookup=".$u_data['user_id']."' class='comment-click'><div class='comment-avatar'><div class='poster'>".$data['user_avatar']."</div></div></a></div>\n"; }
         echo "<div class='float-left comment-arrow'></div>\n";
         echo "<div class='floatfix'>\n<div class='comment-message'>\n<div class='comment-info'>\n";
         echo "<div class='float-right'><a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a></div>\n";
         if ($u_data['user_lastvisit'] >= (time() - 180)) { $profile_image = "circle-orange.png"; $profile_label = "Online";
         } else { $profile_image = "circle.png"; $profile_label = "Offline"; }
         echo "<img src='".THEME."images/".$profile_image."' class='no-border valignfix status' alt='".$profile_label."' title='".$profile_label."' />".$data['comment_name']." ".$data['comment_datestamp']."</div>\n";
         if ($data['edit_dell'] !== false) {
            $manage_links = str_replace(" |", "", $data['edit_dell']);
            $manage_links = preg_replace("#<a href='(.*?)'>(.*?)</a>#si", "<span rel='comment-option edit' name='\\2'>\\1</span>", $manage_links, 1);
            $manage_links = preg_replace("#<a href='(.*?)'>(.*?)</a>#si", "<span rel='comment-option delete' name='\\2'>\\1</span>", $manage_links, 1);
            $manage_links = preg_replace("#<span rel='(.*?)' name='(.*?)'>(.*?)</span>#si", "<a href='\\3' class='\\1' title='\\2'><img src='".THEME."images/comment-edit.png' class='no-border valignfix' alt='' /></a>", $manage_links, 1);
            $manage_links = preg_replace("#<span rel='(.*?)' name='(.*?)'>(.*?)</span>#si", "<a href='\\3' class='\\1' title='\\2'><img src='".THEME."images/comment-delete.png' class='no-border valignfix' alt='' /></a>", $manage_links, 1);
            echo "<div class='float-right'>".$manage_links."\n</div>\n";
         }
         echo $data['comment_message'];
         echo "</div>\n</div>\n</div>\n";
      }
      echo $c_makepagenav;
      if ($c_info['admin_link'] !== false) { echo "<div class='comment-break float-right'>".$c_info['admin_link']."</div>\n"; }
   } else {
      echo $locale['c101']."\n";
   }
   closetable();
}



If you can't make it good, at least make it look good. © William Henry Gates III
 
zodan
OK Tnks Work perfect !
 
zodan
Thanks again for the help @ FILON I would still like to improve this wonderful theme, I would like to enter the link I-like FBook I found this script:
Download source  Code
<!-- INIZIO FACEBOOK BOTTONE CONDIVIDI -->
          <a name="fb_share" type="box_count" share_url=
          "{$post.permalink}" href="http://www.facebook.com/sharer.php">
          Condividi</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.
          Share " type="text/javascript"></script>
          <!-- FINE FACEBOOK BOTTONE CONDIVIDI -->




If you have something better (surely)
I would like to put it inside of each news item (not the title) give me a hand?
thanks in advance
 
FILON
Open the theme.php file and put the following data there:
1. For line 46:
Download source  Code

// Initialize scripts
...
add_to_head("<script type='text/javascript' src='http://static.ak.fbcdn.net/connect.php/js/FB.Share'></script>");





2. Before line 157 (in render_news()):
Download source  Code
echo "<a name='fb_share' type='button_count' share_url='http://www.bittowertorrent.com/news.php?readmore=".$info['news_id']."' href='http://www.facebook.com/sharer.php'>Share</a>\n";



If you can't make it good, at least make it look good. © William Henry Gates III
 
zodan
Thanks again, a problem when I insert in line 46 I get:

Download source  Code
Parse error: syntax error, unexpected T_STRING in / homez.626/bittower/www/themes/Deeplasm/theme.php on line 46




leaving only the code in line 157 (inserted picture I like in place of Share) ok but I do not select thumbnails
 
FILON
Could you attach your "theme.php" file?
If you can't make it good, at least make it look good. © William Henry Gates III
 
zodan
Ok thank you for your patience in the attached file theme.php.

I assure you that I am studying and learning
zodan attached the following file:
deeplasm_theme.rar [3.39kB / 1752 Downloads]
 
FILON
Try this.
FILON attached the following file:
deeplasm_theme.zip [3.92kB / 1492 Downloads]

If you can't make it good, at least make it look good. © William Henry Gates III
 
zodan
Ok thanks it works but if I click I like it I open this window: http://www.facebo...sharer.php even though I do not share appears on the FB page, also from this window you select a thumbnail, I think the problem is in the code of FB added.
 
FILON
zodan wrote:
I think the problem is in the code of FB added.


Yes, I also think so.
If you can't make it good, at least make it look good. © William Henry Gates III
 
Synced
Hey im from germany.

Thanks for the fix.
Be Happy Smile
 
Jump to Forum:
EnglishRussianGermanSwedishDanishFrenchItalianPolishSpanish
Partners from around the world

RusFusion

PHP-Fusion

PHP-Fusion U.S.A

PHP-Fusion Sverige