i dont pinch code
i had a brief look at the mod and its more a portal than a mod IMO
You are not logged in. Please login or register.
PunBB Forums → Posts by treelo
i dont pinch code
i had a brief look at the mod and its more a portal than a mod IMO
i dont actually want the news generator though
ignore that
i do need help
ignore this thread, now solved
right, i know what i need to do, i just havent got a clue how to do it
i need to get code that only shows the first posted message, per topic_id
hi all,
just updating a site for someone and im having trouble exporting just the main(first) post out of a forum without replies by the same person showing as well
i dont actually have the site online as its being dev'd on my machine
here is the code im using at the moment
"FROM topics,posts WHERE topics.forum_id='1' AND topics.id = posts.topic_id AND topics.poster ='treelo' AND posts.poster ='treelo' ORDER BY topics.posted DESC LIMIT 0,4"
basically, it shows my replies as well as the main post
anyone tried tinkering with punbb before and found a way round this?
i thought someone had replied to it proper then you berk
right..lol
totally changed the theme of the site now, it aint my site, and its cracking me up
http://spooky.t-webdesigns.co.uk/forums/index.php
the 2 boxes at the bottom, whats that all about?
anyone got any ideas?
cheers for the input fellas
have had to put it inside a table again, but all is working now
my other query, is how do i make the redirect box have the same margin/pad at the top so it fits inside my curved skin?
got shut of the tables, added auto margin
makes no difference
:puzzled:
ive now fully skinned the forums using the skin i want
but for some reason when i go to a higher resolution, it doesnt sit in the middle of the screen
any ideas?
NM, fixed it now
ive not deleted any mate, you got any idea where one is missing from?
anyone else ever seen this problem, and anyone have any ideas how to rectify it?
im skinning the forums to fit another skin for anothe blog theme, but have come across this where as it padding the forums to 6px at the very top
any ideas would be much appreaciated
http://spooky.t-webdesigns.co.uk/forums/
i understand that the skin doesnt match just yet, but whats with the gap?
cheers mate
im not used to using divs
i'll have read up on how dics and classes work together
html and php here only
seems a bit of a pain if im honest
ive worked with a few forums now and most have a good structure to skins that are used, im finding with some skins on punbb some of the classes arent even in the style sheets, or the style sheets are a bit far and wide, with some stuff in a root style, some in an imported file, and then others in the base file
has anyone written a guide for skinning for this software?
im trying to get shut of the little annoying border at the top of the menu, but other things arent the easiest with the way it has been styled
http://www.blue-all-over.co.uk/forum/index.php
anyone help me out with the white bit at the top of the menu i want rid of?
ahhhhh
your a star mate
TYVM
hopefully once ive done this site for a mate, i can throw a few tutorials up on integrating it with a front end
i had the '/' in, as i want it to redirect back to the home page of the site, which happens
ive now changed the code back to the following:
// If the posting user is logged in, increment his/her post count
if (!$pun_user['is_guest'])
{
$low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : '';
$db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts=num_posts+1, last_post='.$now.' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());
}
if($cur_posting['id'] = 1)
{
redirect('/', $lang_post['Post redirect']);
}
else
{
redirect('viewtopic.php?pid='.$new_pid.'#p'.$new_pid, $lang_post['Post redirect']);
}
that redirects every reply, no matter what forum it is posted in, back to the homepage of the site
smarty
tried that also, its just redirecting every reply regardless of forum to the new URL
mate, ive tried it every which way, and it doesnt seem to want to work
at my wits end on this one
if($fid == '1')
{
redirect('/', $lang_post['Post redirect']);
}
else
{
redirect('viewtopic.php?pid='.$new_pid.'#p'.$new_pid, $lang_post['Post redirect']);
}
not working
yes mate, the forum id that the reply will be in
having a bit of trouble with the IF statement mate
added this at the top of the page
$results = mysql_query("SELECT * FROM forums") or die(mysql_error());
while ($fblogid = mysql_fetch_array($results));
then replaced the existing redirect with this:
// If the posting user is logged in, increment his/her post count
if (!$pun_user['is_guest'])
{
$low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : '';
$db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts=num_posts+1, last_post='.$now.' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());
}
if($fblogid['id'] == "1")
{
redirect('/', $lang_post['Post redirect']);
}
else
{
redirect('viewtopic.php?pid='.$new_pid.'#p'.$new_pid, $lang_post['Post redirect']);
}
}
no joy so far though
PunBB Forums → Posts by treelo
Powered by PunBB, supported by Informer Technologies, Inc.