It is currently Thu Mar 11, 2010 9:13 pm
maxxphlipper wrote:Hi Ladybug,
When you put the mod on your main forum is it still version 3.0.3 or is it 3.0.2, I am having the same problem with the link opening another copy of the posting page and not the smilies page. I am using version 3.0.4, I have tryed different browsers, different computers. Changed between prosilver and subsilver2 styles and deleted my cache though the ACP and manually. If I manually input the link for the extra smilies as described earlier in the topic that works fine.
So I was just wondering what other changes or updates you had made to get the mod to work correctly.
The only thing that I notice is when I go to the link on Vlads forum the link to the extra icons is this:
posting.php?mode=smilies&f=16
and on my test forum it is this:
http://www.scholzfamily.com/forum1/post ... &f=10&t=13
There seems to be some extra coding at the end, not sure if it means anything, maybe someone can shed some light on the problem.
Phil
<table width="100%" cellspacing="5" cellpadding="0" border="1" align="center">
<tr>
<td class="gensmall" align="center"><b>{L_SMILIES}</b></td>
</tr>
<tr>
<td align="center">
<!-- BEGIN smiley -->
<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a>
<!-- END smiley -->
</td>
</tr>
<tr>
<td align="center"><span class="genmed">{PAGINATION}Nisse is here</span></td>
</tr>
<!-- IF S_SHOW_SMILEY_LINK -->
<tr>
<td align="center"><a class="nav" href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a></td>
</tr>
<!-- ENDIF -->
</table>

: Maybe we should send you to a concentration camp.FLATTOP wrote:go to your admin panel, click on posting, then click on smilies on the left hand side. that will bring up your entire list of smilies, on the right side you will see options such as move up, move down, delete, edit. click on edit, that will bring up a new page for that individual smiley, you will see a check box for display on posting page, UNCHECK that box! that's how you get the view more smilies link to appear. click submit, then on to the next one. I don't know of a way to uncheck a mass of them in one click so I did a handful one by one.
: Maybe we should send you to a concentration camp.// For pagination.
$smiley_limit = 100; FLATTOP wrote:Quick question,
for this part of the codedoes the number have to be the same as the number in the DB query your run? would there be a conflict/error if the numbers are different?
- Code: Select all
// For pagination.
$smiley_limit = 100;
: Maybe we should send you to a concentration camp./includes/functions_posting.php on line 152: Division by zero
<?php
/**
*
* @package phpBB3
* @version $Id: functions_posting.php 10008 2009-08-17 14:45:14Z acydburn $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* Fill smiley templates (or just the variables) with smilies, either in a window or inline
*/
function generate_smilies($mode, $forum_id)
{
global $auth, $db, $user, $config, $template;
global $phpEx, $phpbb_root_path;
$start = request_var('start', 0);
if ($mode == 'window')
{
if ($forum_id)
{
$sql = 'SELECT forum_style
FROM ' . FORUMS_TABLE . "
WHERE forum_id = $forum_id";
$result = $db->sql_query_limit($sql, 1);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$user->setup('posting', (int) $row['forum_style']);
}
else
{
$user->setup('posting');
}
page_header($user->lang['SMILIES']);
$sql = 'SELECT COUNT(smiley_id) AS count
FROM ' . SMILIES_TABLE . '
GROUP BY smiley_url';
$result = $db->sql_query($sql, 3600);
$smiley_count = 0;
while ($row = $db->sql_fetchrow($result))
{
++$smiley_count;
}
$db->sql_freeresult($result);
$template->set_filenames(array(
'body' => 'posting_smilies.html')
);
$template->assign_var('PAGINATION',
generate_pagination(append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id),
$smiley_count, $config['smilies_per_page'], $start, true)
);
}
$display_link = false;
if ($mode == 'inline')
{
$sql = 'SELECT smiley_id
FROM ' . SMILIES_TABLE . '
WHERE display_on_posting = 0';
$result = $db->sql_query_limit($sql, 1, 0, 3600);
if ($row = $db->sql_fetchrow($result))
{
$display_link = true;
}
$db->sql_freeresult($result);
}
if ($mode == 'window')
{
$sql = 'SELECT smiley_url, MIN(emotion) as emotion, MIN(code) AS code, smiley_width, smiley_height
FROM ' . SMILIES_TABLE . '
GROUP BY smiley_url, smiley_width, smiley_height
ORDER BY smiley_order';
$result = $db->sql_query_limit($sql, $config['smilies_per_page'], $start, 3600);
}
else
{
// For pagination.
$smiley_limit = 30;
if (isset($_GET['start'])) {
$start = intval($_GET['start']);
} else {
$start =0;
}
$sql = 'SELECT *
FROM ' . SMILIES_TABLE . '
WHERE display_on_posting = 1
ORDER BY smiley_order';
$result = $db->sql_query($sql, 3600);
}
$smilies = array();
while ($row = $db->sql_fetchrow($result))
{
if (empty($smilies[$row['smiley_url']]))
{
$smilies[$row['smiley_url']] = $row;
}
}
$db->sql_freeresult($result);
if (sizeof($smilies))
{
$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $phpbb_root_path;
foreach ($smilies as $row)
{
$template->assign_block_vars('smiley', array(
'SMILEY_CODE' => $row['code'],
'A_SMILEY_CODE' => addslashes($row['code']),
'SMILEY_IMG' => $root_path . $config['smilies_path'] . '/' . $row['smiley_url'],
'SMILEY_WIDTH' => $row['smiley_width'],
'SMILEY_HEIGHT' => $row['smiley_height'],
'SMILEY_DESC' => $row['emotion'])
);
}
}
$template->assign_vars(array(
'S_SHOW_SMILEY_LINK' => true,
'U_MORE_SMILIES' => append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id))
);
if ($mode == 'window')
{
// additions to pagination
if ($start){
$cp = $start / $smiley_limit+1;
} else {
$cp = 1;
}
$pagination = '';
$ref = $db->sql_query('SELECT * FROM '. SMILIES_TABLE );
$n_smiles = $db->sql_affectedrows('SELECT * FROM '. SMILIES_TABLE );
$total_pages =ceil($n_smiles/$smiley_limit);
for ($apl=1; $apl<=$total_pages; $apl++) {
$pagination.= '<a href="'.$phpbb_root_path.'posting.php?mode=smilies&start='.(($apl-1)*$smiley_limit).'"> '.$apl.' </a>';
}
$pagination = "<br><center>Now Showing Page $cp of $total_pages. <br>Total Pages $pagination </center>";
$template->assign_vars(array(
'PAGINATION' => $pagination ));
// end additon to pagination
page_footer();
}
}
: Maybe we should send you to a concentration camp.<!-- INCLUDE simple_header.html -->
<script type="text/javascript">
// <![CDATA[
var form_name = 'postform';
var text_name = 'message';
// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
<h2>{L_SMILIES}</h2>
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<span class="genmed">{PAGINATION}</span>
<!-- BEGIN smiley -->
<a href="#" onclick="initInsertions(); insert_text('{smiley.A_SMILEY_CODE}', true, true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
<!-- END smiley -->
<div class="inner"><span class="corners-bottom"><span></span></span></div>
<span class="genmed">{PAGINATION}</span>
</div>
<div>{PAGINATION}</div>
<a href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>
<!-- INCLUDE simple_footer.html -->
Users browsing this forum: No registered users and 0 guests