Theme Deeplasm
|
zodan |
Posted on 05-12-2012 22:41
|

Junior Member

Posts: 10
Joined: 04.12.12
|
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 |
Posted on 06-12-2012 09:50
|

Super Admin

Posts: 17
Joined: 25.10.11
|
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 |
Posted on 06-12-2012 10:49
|

Junior Member

Posts: 10
Joined: 04.12.12
|
Ok thanks,
I enjoyed to enter a code in theme.php on line 146:
Codeif (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 |
Posted on 06-12-2012 10:57
|

Super Admin

Posts: 17
Joined: 25.10.11
|
Set the global section as following:
Codeglobal $locale, $aidlink;
And try this code:
Codeif (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 |
Posted on 06-12-2012 15:37
|

Junior Member

Posts: 10
Joined: 04.12.12
|
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 |
Posted on 06-12-2012 17:09
|

Super Admin

Posts: 17
Joined: 25.10.11
|
Replace lines 143-147 in theme.php on these:
Codeecho "<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&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 |
Posted on 06-12-2012 18:36
|

Junior Member

Posts: 10
Joined: 04.12.12
|
Perfect tnks !
you are very kind and thank you for availability.
Can I ask you something else if I need ? |
|
|
|
FILON |
Posted on 06-12-2012 21:44
|

Super Admin

Posts: 17
Joined: 25.10.11
|
Yes, sure.
If you can't make it good, at least make it look good. © William Henry Gates III
|
|
|
|
zodan |
Posted on 08-12-2012 00:17
|

Junior Member

Posts: 10
Joined: 04.12.12
|
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 |
Posted on 09-12-2012 09:38
|

Super Admin

Posts: 17
Joined: 25.10.11
|
Bad methods to take an ID from the profile link.
Replace function render_comments() in theme.php on this:
Codefunction 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 |
Posted on 09-12-2012 14:29
|

Junior Member

Posts: 10
Joined: 04.12.12
|
OK Tnks Work perfect ! |
|
|
|
zodan |
Posted on 10-12-2012 11:51
|

Junior Member

Posts: 10
Joined: 04.12.12
|
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:
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 |
Posted on 10-12-2012 12:33
|

Super Admin

Posts: 17
Joined: 25.10.11
|
Open the theme.php file and put the following data there:
1. For line 46:
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()):
Codeecho "<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 |
Posted on 10-12-2012 14:34
|

Junior Member

Posts: 10
Joined: 04.12.12
|
Thanks again, a problem when I insert in line 46 I get:
CodeParse 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 |
Posted on 11-12-2012 11:09
|

Super Admin

Posts: 17
Joined: 25.10.11
|
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 |
Posted on 11-12-2012 13:12
|

Junior Member

Posts: 10
Joined: 04.12.12
|
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:
|
|
|
|
FILON |
Posted on 11-12-2012 15:57
|

Super Admin

Posts: 17
Joined: 25.10.11
|
Try this.
FILON attached the following file:
If you can't make it good, at least make it look good. © William Henry Gates III
|
|
|
|
zodan |
Posted on 11-12-2012 20:25
|

Junior Member

Posts: 10
Joined: 04.12.12
|
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 |
Posted on 13-12-2012 15:07
|

Super Admin

Posts: 17
Joined: 25.10.11
|
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 |
Posted on 18-11-2013 19:27
|

Newbie

Posts: 2
Joined: 18.11.13
|
Hey im from germany.
Thanks for the fix.
Be Happy  |
|
|