Hi...
i want to wright some lines on posting page like NOTE: Or etc...
How can i do this???
please help me...
You mean the page with the form for submitting a new post? That would be ~/Themes/default/Post.template.php
Of if you meant he page that displays posts, that would be ~/Themes/default/Display.template.php
ok.. if i want wright 1 line, how could i wright, means, in coding??
i dnt know php...
That very much depends on where you want to put your note.
i want to wright below "Start New Topic"??
Oh, then you want ~/Themes/default/MessageIndex.php.
Search:
echo '
<div class="pagesection">
<div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#bot"><strong>' . $txt['go_down'] . '</strong></a>' : '', '</div>
', template_button_strip($normal_buttons, 'right'), '
</div>';
Replce:
echo '
<div class="pagesection">
<div class="pagelinks floatleft">', $txt['pages'], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#bot"><strong>' . $txt['go_down'] . '</strong></a>' : '', '</div>
', template_button_strip($normal_buttons, 'right'), '
<br class="clear" />
<div class="floatright">Your text here.</div>
</div>';
not working bro....
nothing change after doing this...
Can you please screenshot the area you wish to add text to, and post it back here?
im attaching below screen-shot where i want to wright...
OH! Okay, so back to ~/Themes/default/Post.template.php
Find:
// Start the main table.
echo '
<div class="cat_bar">
<h3 class="catbg">', $context['page_title'], '</h3>
</div>
<div>
Replace:
// Start the main table.
echo '
<div class="cat_bar">
<h3 class="catbg">', $context['page_title'], '</h3>
</div>
Your text here.
<div>
Thanks a lot bro....
you really provide us superb single-handed support...
i also have 1 problem... i want the php code for only recent topics without replies... i have which is given below but
its not working for only topics.. its gives both recent topics and replies.. plz help me....
// First param is how many posts you want to show, second and third are for exclude boards and include boards.
// Example to exclude some boards.
// ssi_recentPosts(8, array(1,4,6), null, 'array') <-- this will pull 8 posts from all boards except 1,4, and 6.
// Format ssi_recentPosts($numberOfPosts, $excludeBoards, $includeBoards)
$recentPosts = ssi_recentTopics(20, null, null, 'array');
echo '<ul>';
foreach($recentPosts as $post)
{
echo '<li>' , $post['link'] , '</li>';
}
echo '</ul>';
That should work. I don't see why you'd be getting recent posts in there too.
recent posts are come but when reply comes to the old topic then this old topic is come in the recent posts...
plz help me.. what i hv to do??