give me a sec to load it on one of my sites.....
Q
You are not logged in. Please login or register.
PunBB Forums → Posts by quaker
give me a sec to load it on one of my sites.....
Q
quaker wrote:so mattf how can this be fixed?
Don't think there is any easy way to do it with php. Unless I've missed something major in my manual delving, it has nowhere near the text abilities of, say, shell scripting. It's either truncate at a preset character count for convenience, or don't if you want to retain W3C strict compliance.
understand that. I think til someone makes a compliant css the world will be mixed up for FF opera and IE6 & 7.
i thought of using the truncate script but i preferred this script to start with. since i sorta understood it functions. i wanted to add more to it.
once i have the bugs out i will convert this to a mod for punportal and frontpage mods etc. so u can display more than 1 forum news at a time on the front page.
Q
i moved then post name down from the h2 bar i wanted it to be different. than other scripts.
>>Test Post
so mattf how can this be fixed?
i got the contact.php from punres. anyway to add captcha to it?
or another punbb captcha mod? i prefer that one better.
or should i just lock the contact to member only.. fro now?
another captcha mod
http://www.punres.org/desc.php?pid=388
contact webfrom
http://www.punres.org/desc.php?pid=247
Q
minigal is the simplest and you can lock folders with easy.......
Q
do u have a link to ur site or is it localhost?
umm... search google...
Q
ok i got the edit part from vewitopic. $cur_post i had to use that string from the db to get it working.. maybe ill just take that out.
sure you can post ur code. that what i wanted to do every one help so it will be better...ahahaha...
thanks tubby, this is my first go at it. designing it from the portalnews.php and the latesttopic.php and viewforum.php and viewtopics.php
Bing, ill add that to it. im trying to learn the db and structure so i think for the first round i did very good.
Tubby could u help me with the cleanup? i know there some lang files that i dont need in there,but what the heck they are there..hahaha......
i did this today in about 2 hrs..... not bad for not knowing anything about sql and querys.
Bing, truncates.... hummmm. ill look at the file and see what i can do.. is that the index.php or another file in MEGA PUN>>>>>
Q
the black background is different than the other pages...
looks good. but for me to dang wide..haha..
keep it up!!
Q
u got a link ?
Q
I have modified the news portal to show some functions .
im working on a new index.php for my site. to display news ! well i wanted a few extra items to show.
by who,date,how many viewed it?,and replies. with some functions of report,edit,delete,and reply back.
this image is when a admin is login.
this image is when a guest is viewing it.
this is where you set the forum id and how many you want to display on the index.php
and now here is the code!
<?php
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
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.'lang/'.$pun_user['language'].'/forum.php';
$newsid = '1'; //This is the forum the news is retrieved from
$newsdisplay = '5'; //This is how many news articles are displayed.
$result = $db->query('SELECT t.id, t.subject, t.num_replies, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.forum_id, p.poster, p.poster_id, p.message, p.hide_smilies, p.posted, g.g_title, 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']);
?>
<div class="block">
<?php
echo "\t\t\t\t\t\t\t".'<p><h2><strong><a href="forum.php">Forum</a> » <a href="viewforum.php?id='.$cur_post['forum_id'].'">'.pun_htmlspecialchars($cur_post['forum_name']).'</a>'.'</strong></h2></p>'."\n";
?>
<div class="box">
<div class="inbox">
<ul>
<a href="viewtopic.php?id=<?php echo $cur_post['id']; ?>"><strong> » <?php echo $cur_post['subject']; ?></a></strong>
<?php echo $cur_post['message']."\n" ?><br />
<br />
<?php
echo "\t\t\t\t\t\t\t".'<p style="float:right"><strong> Posted '.format_time($cur_post['posted']).' <span class="byuser'.(isset($cur_post['g_title']) ? ' '.strtolower(str_replace(' ', '', $cur_post['g_title'])) : '').'"> » <a href="profile.php?id='.$cur_post['poster_id'].'" class="username">'.pun_htmlspecialchars($cur_post['poster']).'</a>'.'
| Viewed:'. $cur_post['num_views'].' | Replies:'. $cur_post['num_replies'].' | </strong></p>'."\n";
?>
<br /><br /><br />
<?
if ($cur_post['poster_id'] == $pun_user['id'] || $pun_user['g_id'] < PUN_GUEST)
echo "\t\t\t\t\t\t\t".'<a style="text-decoration: none" href="viewtopic.php?id='.$cur_post['id'].'" class="username">'.pun_htmlspecialchars($lang_portal['Visit_Topic']).'</a>'.'<span style="float:right"> |'.'<a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.' | <a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a> | <a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.' | <a href="post.php?tid='.$cur_post['id'].'">'.'Reply'.'</a> | </span>'."\n\n\n\n";
?>
<br />
</ul>
<br />
</div>
</div>
</div>
<?
}
}
else
{
}
?>
<?php
require PUN_ROOT.'footer.php';
I understand what you are trying to do. but anyone can create a fake email...... johndoe@local.host and the punbb will take that.
add that and the captcha functions will reduce spam bots and hackers.
Q
here is my code
<div class="block">
<h2><span>Weather</span></h2>
<div class="box">
<div class="inbox">
<a href="http://www.weatherusa.net/forecasts/?pands=35805"><img
src="http://www.weatherusa.net/forecasts/?forecast=hourly&alt=hwicc&config=png&pands=35805&hwvdisplay=Huntsville%2CAL"
width="170" height="100" border="0"
alt="Click for Forecast for 35805 from weatherUSA.net"
title="Click for Forecast for 35805 from weatherUSA.net" /></a>
</div>
</div>
</div>
sure..... that easy get the code for displaying ur weather and put it in a file called weather.php
then put it in the include/user folder
then place it in the main tpl by doing a <pun_include "weather.php">
example
http://modelcrowd.com on the side bar a weather block for me area.
Q
thanks.. im trying....
u want the files? so u can work with it?
ps love the website..... nothing-to..lol...
Q
that good ! sorry i was not much of a help..
again im trying to learn it.
seem i can sorta debug it but not create it..haha
Q
sent ya a im scot405583
how can i get that to work with the forum?
do u have yim aim msn
Q
ok i did the forum.php and viewforum.php i dont see the the table function in the viewtopic.php
Q
table width-"100%" something like that?
Q
PunBB Forums → Posts by quaker
Powered by PunBB, supported by Informer Technologies, Inc.