i think its in ie too lol if the problem is that noticeable in firefox then i cant see the problem.
201 2006-09-21 22:24
Re: PunBB News (47 replies, posted in PunBB 1.2 modifications, plugins and integrations)
202 2006-09-15 22:27
Re: PunBB News (47 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hey guys look i have integrated this modification in to my news block and edited alot of the code. Tell me what you think.
203 2006-08-04 01:27
Re: OLD TOPIC TO DELETE (37 replies, posted in PunBB 1.2 modifications, plugins and integrations)
thanks pokemon jo jo exactly what i was lookin for.
204 2006-08-03 09:43
Re: OLD TOPIC TO DELETE (37 replies, posted in PunBB 1.2 modifications, plugins and integrations)
i took it out but i have inserted on the forum index once again heres the link.
www.fatal-gfx.com/forum.php lok at the bottom near the footer and youll see the chatbox. Youll notice thatit will automatically scroll to the bottom of the page because its effected by the auto scroll function of the chatbox and i would like to dispose of this function.
205 2006-08-02 08:38
Re: OLD TOPIC TO DELETE (37 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hello i love this modification and right now im trying as hard as i can to possibly delete the entire auto scroll function cause it effects my forum index when it auto scrolls. What it does is when i place the chatbox between the board information and the categories it refreshes and automatically scrolls down to the bottom of the page and is annoying to my users. Does anybody know how i could go about completely rtemoving the auto scroll function.
206 2006-07-30 11:35
Topic: Curently working on new index (1 replies, posted in PunBB 1.2 show off)
Hi iv have been working on my forums new portal index. Any suggestions.
207 2006-07-28 05:26
Re: OLD TOPIC TO DELETE (37 replies, posted in PunBB 1.2 modifications, plugins and integrations)
very nice thank you for this small modification/add on.
208 2006-07-16 11:05
Re: Index Problem (4 replies, posted in PunBB 1.2 troubleshooting)
no you dont need it i just put it there for no reason ... literally.
209 2006-07-16 07:25
Re: Index Problem (4 replies, posted in PunBB 1.2 troubleshooting)
nevermind dont reply to this topic the error has been resolved. I had forgotten to close the beginning php tag with a "?>". Stupid me if you look inside the code you will notice that i had forgotten the closing tag right after this line-
$newsdisplay = '3'; //This is how many news articles are displayed.
210 2006-07-16 07:01
Topic: Index Problem (4 replies, posted in PunBB 1.2 troubleshooting)
Hey im currently running one of the portal modifications and i modified a bit.
This is the error im getting: Parse error: syntax error, unexpected '<' in /home/fatalgam/public_html/fatal-gfx/index.php on line 20
Its telling me on line 20 so i decided to count the lines using different methods and i found that the error must be in between the lines of this code somewhere.
I still cant seemto find anything wrong.
<div class="blockmenu" style="float:left;width:180px">
<br />
<h2><span>Navigation</span></h2>
<div class="box">
<div class="inbox">
I cant seem to find the error. Could any of you possibly try to find it for me. I know its not the code i added in it has to be part of some code i deleted in the beginning of the file.
Heres my whole file.
<?php
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
// Load all the language files
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/topic.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
require PUN_ROOT.'include/parser.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
$newsid = '1'; //This is the forum the news is retrieved from
$newsdisplay = '3'; //This is how many news articles are displayed.
<div id="portalconsole" class="block2col">
<div class="blockmenu" style="float:left;width:180px">
<br />
<h2><span>Navigation</span></h2>
<div class="box">
<div class="inbox">
<ul>
<?
$links = array();
$links[] = '<a href="forums.php">'.$lang_common['Forums'].'</a>';
$links[] = '<a href="userlist.php">'.$lang_common['User list'].'</a>';
if ($pun_user['g_id'] < PUN_GUEST)
$links[] = ' <a href="search.php">'.$lang_common['Search'].'</a>';
if ($pun_user['is_guest'])
{
$links[] = ' <a href="register.php">'.$lang_common['Register'].'</a>';
$links[] = '- <a href="login.php">'.$lang_common['Login'].'</a>';
}
else
{
$links[] = ' <a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
if ($pun_user['g_id'] < PUN_GUEST)
$links[] = ' <a href="admin_index.php">'.$lang_common['Admin'].'</a>';
$links[] = ' <a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
}
foreach($links as $link)
echo "\t\t\t\t\t".$link.'<br />'."\n";
?>
</ul>
</div>
</div>
<br />
<?php
if ($pun_user['is_guest'])
{
?>
<h2><span><?php echo $lang_common['Login'] ?></span></h2>
<div class="box">
<div class="inbox" style="text-align: center">
<form id="login" method="post" action="login.php?action=in" onsubmit="return process_form(this)">
<div class="inform">
<input type="hidden" name="form_sent" value="1" />
<input type="hidden" name="redirect_url" value="index.php" />
<label><strong><?php echo $lang_common['Username']?></strong><br /><input type="text" name="req_username" size="16" maxlength="25" tabindex="1" /> <br /></label>
<label><strong><?php echo $lang_common['Password']?></strong><br /><input type="password" name="req_password" size="16" tabindex="2" /><br /></label>
<p><a href="login.php?action=forget" tabindex="5"><?php echo $lang_login['Forgotten pass'] ?></a></p>
<input type="submit" name="login" value="<?php echo $lang_common['Login'] ?>" tabindex="3" />
</div>
</form>
</div>
</div>
<?
} else if (!$pun_user['is_guest'])
{
?>
<h2><span>Affliates</span></h2>
<div class="box">
<div class="inbox">
<ul>
<li><a href="http://www.opti-net.org"><strong>Opti-Net</strong></a></li>
</ul>
</div>
</div>
<?
}
?>
</div>
</div>
<div class="blockform" style="margin-left: 190px;margin-right: 5px;">
<h2><span>Latest News</span></h2>
<div class="box">
<div class="inbox">
<table>
<tr>
<td>
<?
$result = $db->query('SELECT t.id, t.subject, t.forum_id, p.poster, p.poster_id, p.message, p.hide_smilies, p.posted, g.g_title, g.g_color, f.forum_name FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'posts AS p ON p.topic_id=t.id AND p.posted=t.posted INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id WHERE t.forum_id='.$newsid.' AND t.moved_to IS NULL AND f.redirect_url IS NULL ORDER BY t.posted DESC LIMIT '.$newsdisplay) or error('Unable to fetch announcements', __FILE__, __LINE__, $db->error());
if ($db->num_rows($result))
{
while($cur_post = $db->fetch_assoc($result))
{
$cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
echo "\t\t\t\t\t\t\t".'<p><strong><a href="viewforum.php?id='.$cur_post['forum_id'].'">'.pun_htmlspecialchars($cur_post['forum_name']).'</a> » <a href="viewtopic.php?id='.$cur_post['id'].'">'.pun_htmlspecialchars($cur_post['subject']).'</a></strong><strong> » </strong><strong>Posted By </strong><a href="profile.php?id='.$cur_post['poster_id'].'" class="username"><strong><span style="color: '.$cur_post['g_color'].'">'.pun_htmlspecialchars($cur_post['poster']).'</a></span></strong></p>'."\n";
?>
</br>
<div class="postmsg">
<?php echo $cur_post['message']."\n" ?>
</div>
<br />
<br />
<?
}
}
else
{
echo 'No news';
}
?>
</td>
</tr>
</table>
</div>
</div>
<div class="clearer"></div>
</div>
<?php
$footer_style = 'index';
require PUN_ROOT.'footer.php';
?>
211 2006-07-07 09:10
Re: ChatBox (ajax) on index.php (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Tubby my fault...
open chatbox.php find (line ~ 26):require PUN_ROOT.'include/common.php';
and replace with:
/* require PUN_ROOT.'include/common.php'; */
('coz common.php is already included from index.php)
Ok that solved my problem......i would like to place my chatbox at the bottom near the footer so that it does not attract much attention...the problem is is that after i have finished moving the include for the chatbox to the desired position(after the statistics block jsut before the footer) its gets werid. What happens is when i post it shows the boards inside the chatbox and then the chatbox message. Is funny cause after you reload the page it just shows the chatbox messages and is fine. Im thinking it has something to do with the javascript.
212 2006-07-07 08:28
Re: Style Switcher (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
good job....although you have a few errors...it should only display the style switcher in the header while a user is logged in. It shouldnt display it to guests. Another thing is is that it has some bugs when you switch from different styles. Sometimes it mixes 2 styles together when switching.
213 2006-07-06 14:42
Re: Smileys and Parser.php (3 replies, posted in PunBB 1.2 troubleshooting)
thanks stevenbullen......you too elbekko, but steve basically gave it away to me. Much appreciated.
214 2006-07-06 14:31
Topic: Smileys and Parser.php (3 replies, posted in PunBB 1.2 troubleshooting)
Hello iam having a slight problem. I would like to display my smileys at there actual sizes instead of jsut having one specific size for every smiley.
Here are the few lines of code that seem to be limiting my smileys to a certain size.
for ($i = 0; $i < $num_smilies; ++$i)
$text = preg_replace("#(?<=.\W|\W.|^\W)".preg_quote($smiley_text[$i], '#')."(?=.\W|\W.|\W$)#m", '$1<img src="img/smilies/'.$smiley_img[$i].'" width="15" height="15" alt="'.substr($smiley_img[$i], 0, strrpos($smiley_img[$i], '.')).'" />$2', $text);
How should i change this code in order to fix this small problem of mine.
Help woulld be greatly appreciated
215 2006-07-06 14:17
Re: ChatBox (ajax) on index.php (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
no its not loading header.php i deleted the lines that loaded in header.php from chatbox.php so that cant be the problem
216 2006-07-06 10:20
Re: ChatBox (ajax) on index.php (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
mmk heres the error im getting its telling me that i cant not redeclare something thats already declared in include/functions.php
Fatal error: Cannot redeclare check_cookie() (previously declared in /home/fatalgam/public_html/fatal-gfx/include/functions.php:28) in /home/fatalgam/public_html/fatal-gfx/include/functions.php on line 28
You cant blame it on me because its a clean install.
217 2006-07-03 10:24
Re: OLD TOPIC TO DELETE (65 replies, posted in PunBB 1.2 modifications, plugins and integrations)
very nice mod keep it up
218 2006-06-22 20:03
Re: PunBB News (47 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Its not hard.....jsut look at the code carefully its common sence......you dont even have to know the php language to figure this out. If you want the block to display if the user is a guest then all you do is add a if ($pun_user['is_guest'])
{ and then add in the block. This is hard to explain specificly and im not going to supply you with a free code i want you to be able to know how to do this for future use. All you do is look at the blocks code and simply copy the code and paste it and then remove its content and add in your own.......your gunna have to figure out where to add the code in for yourself. Its obviously gunna be after the original block.
219 2006-06-22 19:48
Re: PunBB News (47 replies, posted in PunBB 1.2 modifications, plugins and integrations)
btw i have modified this modification a bit by cleaning up come code and getting rid of the nasty table inside of the news block. Didnt feel like modifying the table.
As you can see i have also added an affliates block on the right side of the page by messing around with the width.
www.fatal-gfx.com and check it out.
220 2006-06-22 19:46
Re: PunBB News (47 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hmm it depends would you like this block to be a block on the sidebar or a main content block.
221 2006-06-17 18:09
Re: PunBB News (47 replies, posted in PunBB 1.2 modifications, plugins and integrations)
That would be false......it doesnt add a title to a box....you would have to make it a block
<div class="block">
<h2><span>Title Here</span></h2>
<div class="box">
<div class="inbox">
content goes here
</div>
</div>
</div>
222 2006-06-05 08:50
Topic: My Punbb Boards (2 replies, posted in PunBB 1.2 show off)
my punbb forums is located at www.fatal-gfx.com
Come register have fun and check it out. Its highly modified using alot of punbb modifications and a Puntal Portal.
223 2006-05-30 10:49
Re: My Mod Arcade beta 1 (239 replies, posted in PunBB 1.2 modifications, plugins and integrations)
oh ok.......i think it would be rather simple to set permissions by jsut adding a certain line of code manually to the files.
224 2006-05-30 06:27
Re: My Mod Arcade beta 1 (239 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hello i was wondeirng if there was a way to set access permissions on the arcade files by the number of posts or a certain rank. Help would greatly be appreciated.
225 2006-05-29 02:09
Topic: Hello (1 replies, posted in PunBB 1.2 discussion)
Hello i was wondering if i could somehow modify my forums so that it doesnt show the users post count in viewtopic.php and userlist.php? The admin_options function isnt working.