Your query doesn't have t.id in it, so you're getting the forum ID. Replace $cur_topic['id'] in that code with $id.
As to the digg error, that looks to be a dig problem, not an issue with the link.
1,751 2007-12-05 19:45
Re: Problem with links of topics (20 replies, posted in PunBB 1.2 troubleshooting)
1,752 2007-12-05 19:36
Re: Off-Center Posts (15 replies, posted in PunBB 1.2 troubleshooting)
From the site linked to:
Force a Vertical Scrollbar on Your Site
You can add some simple styles to your site's style sheet to force a vertical scrollbar to always show and thus get rid of the page shift. The most obvious solution is to add an overflow: scroll rule to the html element. However, this rule adds a horizontal scrollbar as well, which web users definitely don't like. Here's an easy and valid way to force only the vertical scrollbar to appear, no matter what size the viewport is:
html { min-height: 100%; margin-bottom: 1px; }
1,753 2007-12-05 11:59
Re: Charset problem with spanish (30 replies, posted in PunBB 1.2 discussion)
Oh, right, the language pack.
The language pack is saved in iso-8859-1, so you need to encode it using iconv or a similar tool.
1,754 2007-12-05 11:31
Re: Off-Center Posts (15 replies, posted in PunBB 1.2 troubleshooting)
Did you actually add the line to your Oxygen_cs.css file?
1,755 2007-12-05 04:11
Re: Problem with links of topics (20 replies, posted in PunBB 1.2 troubleshooting)
OK, I had to register to see it
$subscraction = '<p class="subscribelink clearb"><img src="img/'.$pun_user['style'].'/misc/icon_arrow.gif" alt="·" title="·" /> <a href="misc.php?subscribe='.$id.'">'.$lang_topic['Subscribe'].'</a> <br /><img src="img/'.$pun_user['style'].'/misc/icon_arrow.gif" alt="·" title="·" /> <a href="viewprintable.php?id='.$id.'">'.$lang_common['Print version'].'</a><br /><img src="img/'.$pun_user['style'].'/misc/icon_arrow.gif" alt="·" title="·" /> <img src="../img/digg_icon.gif" alt="Digg!" title="Digg!" /> <a style="font-weight: normal;" href="http://digg.com/submit?phase=2&url='.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'&title='.urlencode($cur_topic['subject']).'">Digg It</a> | <img src="../img/delicious_icon.gif" alt="del.icio.us" title="del.icio.us" /> <a style="font-weight: normal;" href="http://del.icio.us/post?url='.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'&title='.urlencode($cur_topic['subject']).'">del.icio.us</a></p>'."\n";
Use that. It fixes the pid/id issue ($cur_topic['id'] is the topic ID, pid wants a post ID). That code would never have worked properly (although it might have worked simply because the post IDs happened to exist somewhere in the forum).
1,756 2007-12-05 03:58
Re: Problem with links of topics (20 replies, posted in PunBB 1.2 troubleshooting)
Could you provide a link to your site so I can see what the link is doing wrong?
1,757 2007-12-05 02:43
Re: Problem with links of topics (20 replies, posted in PunBB 1.2 troubleshooting)
I don't know why that code would work, it uses a non-existent title parameter for viewtopic.php and tries to use a topic ID as a post ID.
$subscraction = '<p class="subscribelink clearb"><img src="img/'.$pun_user['style'].'/misc/icon_arrow.gif" alt="·" title="·" /> <a href="misc.php?subscribe='.$id.'">'.$lang_topic['Subscribe'].'</a> <br /><img src="img/'.$pun_user['style'].'/misc/icon_arrow.gif" alt="·" title="·" /> <a href="viewprintable.php?id='.$id.'">'.$lang_common['Print version'].'</a><br /><img src="img/'.$pun_user['style'].'/misc/icon_arrow.gif" alt="·" title="·" /> <img src="../img/digg_icon.gif" alt="Digg!" title="Digg!" /> <a style="font-weight: normal;" href="http://digg.com/submit?phase=2&url='.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'">Digg It</a> | <img src="../img/delicious_icon.gif" alt="del.icio.us" title="del.icio.us" /> <a style="font-weight: normal;" href="http://del.icio.us/post?url='.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'">del.icio.us</a></p>'."\n";
That should fix it
1,758 2007-12-05 02:18
Re: Off-Center Posts (15 replies, posted in PunBB 1.2 troubleshooting)
The topic you're looking at is long enough to have a scrollbar, your index page isn't. Thus, your topic page has slightly less width and a centered page is slightly to the left of where it would be otherwise. There is nothing that can be done about it as far as I know, and it really isn't a big deal
Actually, assuming you're using Firefox, try this:
http://punbb.org/forums/viewtopic.php?pid=81589#p81589
1,759 2007-12-05 01:26
Re: i need help adding this code into my db! (2 replies, posted in Programming)
Let me correct my statement: the first query should be a create table statement, not an insert statement
1,760 2007-12-05 00:51
Re: i need help adding this code into my db! (2 replies, posted in Programming)
Nothing is wrong, but as I keep telling you, latin1_german2_ci is not the collation used by most MySQL installs. As such, you're going to have issues if you import that table elsewhere, just like the users table issue you had.
1,761 2007-12-05 00:50
Re: Charset problem with spanish (30 replies, posted in PunBB 1.2 discussion)
The collation for the tables is set to latin1 by default. You changed it to utf8?
1,762 2007-12-04 23:30
Re: Charset problem with spanish (30 replies, posted in PunBB 1.2 discussion)
For case 2, you also need to change the character set for the tables.
And if any information that was entered prior to setting up case 2 looks wrong, you'll need to re-enter it because of how it was entered originally.
1,763 2007-12-04 03:59
Re: Password Protecting Pages / Linking User/Pass To Forums (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Moved to Modifications
1,764 2007-12-02 21:18
Re: I can not save admin_options.php i have tried everything. Please help! (8 replies, posted in PunBB 1.2 troubleshooting)
I don't know what the problem is, so I don't know how to solve it
Could you email me a username/password for an admin user to check this out? My email is smartys at this domain.
1,765 2007-12-02 20:15
Re: I can not save admin_options.php i have tried everything. Please help! (8 replies, posted in PunBB 1.2 troubleshooting)
Indeed: nothing points to index.php on that page either
1,767 2007-12-02 19:21
Re: I can not save admin_options.php i have tried everything. Please help! (8 replies, posted in PunBB 1.2 troubleshooting)
What happens when you try to save?
1,768 2007-12-02 16:30
Re: I'm looking to hire a devloper. Project information inside... (2 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I edited your post to put the SQL dump inside a code block
1,769 2007-12-02 16:29
Re: No user list and can't add modarator (4 replies, posted in PunBB 1.2 troubleshooting)
OK, what script is this that you're using?
1,770 2007-12-02 15:32
Re: Facebook Developers BB (17 replies, posted in PunBB 1.2 show off)
Right, I forgot to mention that, thanks pogenwurst
1,771 2007-12-02 13:18
Re: No user list and can't add modarator (4 replies, posted in PunBB 1.2 troubleshooting)
Out of curiosity, where did you download this copy of PunBB from?
1,772 2007-12-01 23:19
Re: Problems after changing to "application/xhtml+xml" from "text/html" (10 replies, posted in PunBB 1.2 troubleshooting)
It's not redundant. It's merely a case of one or the other.
What do you think redundant means?
1,773 2007-12-01 18:21
Re: Making backups (3 replies, posted in PunBB 1.2 troubleshooting)
Oh: the answer is if there are no tools to make backups already on and you can't upload files, there is no way to make a backup
1,774 2007-12-01 15:58
Re: adding custom $pun_config (2 replies, posted in PunBB 1.2 troubleshooting)
Well, you do need to set it somewhere, otherwise how would PunBB know what the value of it is?
To add a new config variable:
1. insert a new row in the config table, with conf_name being the name of the variable (in this case o_featured_clan) and the value being whatever you want the value to be (in this case 1)
2. Delete the cache_config.php file
1,775 2007-12-01 15:11
Re: Problems after changing to "application/xhtml+xml" from "text/html" (10 replies, posted in PunBB 1.2 troubleshooting)
Remove the xml-stylesheet stuff, it's redundant