ok i have updated my style. and cleaned it up a bit...
Q
You are not logged in. Please login or register.
PunBB Forums → Posts by quaker
ok i have updated my style. and cleaned it up a bit...
Q
i got it to work without the prune functions.
im going to let it run a week before i prune it...
i have added several rss feeds
ufc,yahoo news, and more.
Q
kewl.. this is what i did for my site.. i put in the rss feed aggregator
my link http://bunpai.com
i started feeding news and who got computer deals...
feed ag. link
http://www.punres.org/viewtopic.php?pid=15951#p15951
Q
i want to be able to pull the categories and the subjects of the lastest post to my frontpage.
http://bunpai.com
this is the code i use for my frontpage mod.
<?php
$newsid = '4'; // Forum id to fetch the news from ( only supports 1 forum id )
$newsdisplay = '5'; // Number of news to display.
?>
<?php
require_once PUN_ROOT.'include/parser.php';
?>
<?
$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">
<?
echo "\t\t\t\t\t\t\t".' <h2><span>'.pun_htmlspecialchars($cur_post['subject']).'</span></h2>'."\n";
?>
<div class="box">
<div class="inbox">
<p>
<ul>
<?php echo $cur_post['message']."\n" ?><br />
<?
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>'."\n";
?>
</ul>
</p>
</div>
</div>
</div>
<?
}
}
else
{
}
?>
</p>
here the mod i used..
http://www.punres.org/viewtopic.php?pid=15865#p15865
next here is the code that i used to pull it on my frontpage.
http://bunpai.com is my rss feed site!
<?php
$newsid = '4'; // Forum id to fetch the news from ( only supports 1 forum id )
$newsdisplay = '5'; // Number of news to display.
?>
<?php
require_once PUN_ROOT.'include/parser.php';
?>
<?
$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">
<?
echo "\t\t\t\t\t\t\t".' <h2><span>'.pun_htmlspecialchars($cur_post['subject']).'</span></h2>'."\n";
?>
<div class="box">
<div class="inbox">
<p>
<ul>
<?php echo $cur_post['message']."\n" ?><br />
<?
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>'."\n";
?>
</ul>
</p>
</div>
</div>
</div>
<?
}
}
else
{
}
?>
</p>
set the punwrap a bit smaller almost got it..... if it is 800px try 780 !
Q
fmimoso, thanks for the comments i was about to redo the header and footer image.
and the redirect link needs fixed. there are several other files that you have to fix also misc.php,forum.php,edit.php and login.php
the header image has to be around 770 or 760 px because im working on a style for someone.
im trying to work the bugs out of the style. the header image needs to sit on top of the menu bar
the footer image needs to sit agains the bottom footer.
that shadow also needs droped.. i was playing around with photoshop cs3...lol..
the navbar has to be re-done because i have a mouse over image that im trying to get working on it. all in all it a good start.
thanks for the comments and keep them coming.
Q
IE7 has a mind of it own..... noramally i fix all the issue for FF and IE6 and that does it for ie7.
ff=firefox
Q
cron job is how it updates.
what im looking for is a auto prune functions say after 3 days it dumbs the db for those post. so i dont have to manually do it from the admin area.
big thanks to hcgtv for helping me with the mod. i hope that i can get his stlye looking right...
Q
checkout http://bunpai.com
a rss site that going to be good ! with news and online computer deals....
i have added some new punbb icons for each mod and stats...
Q
BF2 all the way!!
Q
background-repeat: repeat-x; or it might be background-repeat: repeat-y;
add that to the css where the image is..
lol.
Q
soon it will hehe.. the crystalx punbb style.... coming soon to a threater near you!!
Q
kewl site....
i did a rss site that pulls news and computer deals from different sites.
let me know if you need any mods! does ur game site got a rss feed?
ill link it...
Q
ok did it and it works
http://bunpai.com
now my question is can u design a prune function for these forums say after 40 they are deleted? or something like that.
Q
what do i have to do if im upgrading? replace the files?
Q
kewl so far is it working right for you?
can u give me a link?
Q
Dr J. there you go with that bubble busting... again!
Q
did anyone get this working?
Q
there is a script that you can add to the top of the page err search the punbb for it
http://modelcrowd.com is my site i have a file directory for people to download stuff..
im looking for that script for you
Q
how about doing a login to the index and links to the download files.
Q
search viewtopic, misc,login viewforum for redirect you will find a index i just replace index with the link you want the to go to..
login.php line 102
redirect('index.php', $lang_login['Logout redirect']);
change the index.php to anything you want...
Q
alanb , look in to the wiki part at punres.org click wiki...
there alot of useful informations there.
if need help holla..
Q
PunBB Forums → Posts by quaker
Powered by PunBB, supported by Informer Technologies, Inc.