1

(5 replies, posted in PunBB 1.2 show off)

Thanks! smile

2

(5 replies, posted in PunBB 1.2 show off)

Good to know - thx. smile

3

(5 replies, posted in PunBB 1.2 show off)

The site isn't done yet and is using content from another forum of mine as placeholder content.  I'd be interested in feedback though...

http://www.publicrelationschat.com

4

(13 replies, posted in PunBB 1.2 discussion)

Aparantly not:

http://forums.site-reference.com/topic/23108/#p23108

5

(13 replies, posted in PunBB 1.2 discussion)

I was talking to someone about punBB who said they couldn't get to the site.  Evidently they are getting the following error:

Precondition Failed
The precondition on the request for the URL / evaluated to false.

Thought you might like to know.

OK, for what its worth, I changed the sql to this:

$result = $db->query('SELECT t.id AS tid, t.subject, t.num_replies, p.id AS pid,p.topic_id, c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.forum_assoc FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id INNER JOIN '.$db->prefix.'posts AS p ON p.id=f.last_post_id INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

The problem with this is that it does not show empty forums...any help?

This might be the wrong forum - if it is, please feel free to move it.

Here is the MySQL query for the index page which calls up the list of forums:

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.forum_assoc FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

I would like to have it also include the title of the last post...any ideas on how to modify the query?

8

(5 replies, posted in PunBB 1.2 show off)

Mainly personal preference, but also to match the home page which uses a 3 column layout that would look silly on very large screens.

9

(5 replies, posted in PunBB 1.2 show off)

Yep - the forums are also highly modified for SEO (or so I think hmm) and validate almost all the way through.  post.php does not validate as I am using the modern BB code mod (which I modified very slightly).

Overall, very, very cool.

10

(5 replies, posted in PunBB 1.2 show off)

Interested in any feedback - there is a bit of a font-size issue in IE which I am working on.

http://forums.site-reference.com

I am trying to integrate a 2-column layout for punBB, but am having problems on the viewtopic.php and viewforum.php page.  The problem is coming with this code snippet:

<div class="linkst">
    <div class="inbox">
        <p class="pagelink conl">Pages: <strong>1</strong> <a href="viewforum.php?id=18&p=2">2</a> <a href="viewforum.php?id=18&p=3">3</a> … <a href="viewforum.php?id=18&p=5">5</a></p>
        <p class="postlink conr"><a href="post.php?fid=18">Post new topic</a></p>
        <ul><li><a href="index.php">Index</a> </li><li>» Forum Name</li></ul>

        <div class="clearer"></div>
    </div>
</div>

Here's the problem, the <div class="clearer"></div> is clearing the left column away from the right side which is floated.  In more detail, what I have for a setup is the following:

<div id="rightside">
this div is floated to the right, set to 200px wide
</div>

<div id="leftside">
this div is set to have a right margin of 225pixels to leave room for the right side float
</div>

Does anyone have any suggestions for setting up the paging links, breadcrumbs, and "post topic" link like they currently are, but without using floats?  I would be open to other suggestions as well...

That's right I am - and I'm getting others to run it as well because they love it! smile

Oh, and I also run it on a few other boards - like my screenname. smile

Thanks for the link.

13

(1 replies, posted in PunBB 1.2 show off)

I like where it is going, but it needs something else...I'll repost if I find that 'else'.

http://www.barber-shop-talk.com

14

(3 replies, posted in PunBB 1.2 show off)

I'm not sure how I feel about this one...your honest feedback would be greatly appreciated.

http://forums.site-reference.com

15

(8 replies, posted in PunBB 1.2 show off)

Sure...I'm using apache mod_rewrite to do that.  I don't have an official mod put together, and there are still a few bugs I need to work out, but here is what I did:

1.  Create the rewrite rules in an .htaccess file.  The file looks like this:

RewriteEngine On
RewriteRule ^topic/([0-9]+)/(.*)/new/$ viewtopic?id=$1&action=new [L]
RewriteRule ^topic/([0-9]+)/(.*)/([0-9]+)/$ viewtopic.php?id=$1&p=$3
RewriteRule ^topic/([0-9]+)/(.*)(/?)$ viewtopic.php?id=$1 [L]

RewriteRule ^forum/([0-9]+)/(.*)(/?)$ viewforum.php?id=$1[L]

2.  Added a function in the file functions.php.  I put the function just below the function pun_htmlspecialchars().  The function looks like this:

function simplify ($str)
{
    $replace = array('`','~','!','@','#','$','%','^','&','*','(',')','_','=','+','\\','|','}',']','{','[','"',';',':',',','<','.','>','?','/',' ');
    $str = str_replace($replace,'-',$str);
    $str = str_replace('\'','',$str);
    $str = preg_replace('/[-]+/s','-',$str);
    $str = preg_replace('/-$/s','',$str);
    return $str;
}

Again, kind of brute force...

3.  Worked through the code in viewforum.php and viewtopic.php to change the links from the old viewtopic.php?id=1 or viewforum.php?id=1 to the new URL's.  This is definitely the most time consuming part.

4.  I also had to work my way through some files to make sure that all links started with a forward slash (<a href="/index.php"> as opposed to <a href="index.php">). 


Again, I wish I had an official mod, but that is basically what I did.  If you have specific questions about what I did, I'd be glad to offer any assistance I can. smile

16

(8 replies, posted in PunBB 1.2 show off)

Elzar wrote:

I like it, very unique.

Any chance you can share the keyword urls mod ?

Keyword URL's mod?  Can you clarify?

17

(8 replies, posted in PunBB 1.2 show off)

Thanks. smile  Yes, although the football forum is still on an older version.

Unfortunately my members get comfortable very quickly with the way a site looks, so making any major changes needs to be done carefully.

18

(8 replies, posted in PunBB 1.2 show off)

I was inspired by the forums over at StyleGala to change the look of one of my forums that used PunBB.  Although the end result is really nowhere near what they have over there, I am pretty happy with the initial result so far.

Let me know your thoughts: http://www.barber-shop-talk.com

There was a decent amount of code modification (especially to get the mod_rewrite portion working) as well as doing the style sheets from scratch.

Just as a warning, the code is not pretty...kind of brute force in some areas. smile

19

(8 replies, posted in PunBB 1.2 show off)

Thanks.

Yes, a function would make life quite a bit easier. smile  Its the second time going through things, so it took a little less time.  I did get hung up in one spot, however.  When you go to the last post, why is it formated as viewtopic.php?id=3#3?

20

(8 replies, posted in PunBB 1.2 show off)

I had to do quite a bit of modifications, but I was able to get everything working (I think).

I'd love to hear some feedback on this.

http://forums.site-reference.com

21

(133 replies, posted in General discussion)

Rickard, thanks for your response.

Middleground, I have to say you made some great responses as well.  Although I do not have the time to go quote happy again, I will try to address a few of the major points in contention here.

1.  The Bush Video - Again, he is a poor public speaker in formal environments.  The video is quite funny, but if you want to see something really funny (and if you have 12 minutes), watch John Kerry change his positions on Iraq:

http://real.stream2you.com/rnc/101104v1.mov

I highly recommend this video.

I can't say that Bush didn't get help getting into Yale and Harvard, but did his father do his homework and take his tests?  My point is this: graduating from Harvard Business School is an accomplishment regardless of how you got in.

2.  The War was based on WMD's - Well, not exactly.  That is a point that the democrats have successfully focused the world on.  The war was over Iraq's failure to comply with UN Resolutions.  That did not change in the inspections as Hans Blix had to report more than once that Iraq was being uncooperative.  10+ years of Saddam thumbing his nose at diplomacy, you think the world body would have gotten the message that he wasn't going to be serious about working diplomacy in a serious way.

3.  The UN, its role, and world body - The UN is a peacekeeping body, this is true.  However, in certain circumstances the UN has authorized the use of force when necessary.  Rickard made a great point in saying that peace was needed before you can maintain peace.  Middleground also made a great point in stating that Iraq was firing at our planes on a daily basis.  Those planes were enforcing the UN sanctioned no-fly zone that Iraq refused to recognize.

Just because France, Russia, Germany, and a few other world powers didn't agree with the war doesn't make it a wrong war.  Some have talked about those countries financial interests in Iraq, but I personally like to stay away from conspiracy type theories. 

4.  The Kyoto Treaty, Energy Consumption, and Beyond - I honestly have not done a whole lot of research on the Kyoto treaty, so it is hard for me to talk intelligently about this.  My impression from what I have read is that it unfairly places burdens on the world superpowers which would have a negative effect on their economies.

If you want to punish the largest economies, the effect would be a negative world-wide effect.  We should be encouraging clean production as opposed to simply punishing productive economies.

Remember, the world does pay for our consumption, but the US also pays for the world's prosperity in many ways.  I am not saying that the world is dependent on America, but America does quite a bit for the world body.  Yet this is often overlooked.

22

(133 replies, posted in General discussion)

They have both said essentially the same thing.  Kerry, however, will change his views depending on the political climate.

23

(133 replies, posted in General discussion)

Rickard wrote:
nfl-forums wrote:

I too will end my discussion.  My point has been made.

Please don't. I value your input here.

Alas, I couldn't stand back any longer. wink  Evidently my resolve is not that strong.  I wanted to respond to your intitial response.  I apologize for not being able to respond to everything, but I am working on a new implementation of punBB over at my main website, Site-Reference (take a look at the development at http://forums.site-reference.com).

So, with no further delay...on to the responses...

Rickard wrote:

Ok, calling him stupid might be pushing it, but he sure is way below average for a president. I am convinced he would be no more than a used car salesman hadn't he been brought up the way he was (silver spoon and all).

And yes, he did graduate from Harvard (barely), but that's hardly a benchmark for intelligence smile President of the USA is the most powerful political office in the world. I might be a dissident here, but I believe we must expect more from someone who "claims the throne" so to speak.

Ok, lets stop there for a moment.  Yes, Bush did have a "privelaged" upbringing.  Yet what evidence do we have that he is stupid?  Because he isn't a good speaker?  Einstein was noted for his absent-mindedness yet was regarded to be one of the most intelligent men in history.

Bush graduated from Harvard Business School, not just Harvard.  HBS is recognized as one of the top 5 B-Schools in the world.  Getting into HBS is extremely difficult, not to mention actually graduating.

President of the USA is the most powerful office in the world, but it takes a heck of a lot more than being a genious to run in that office.  Bush is a solid, solid businessman.  He knows how to make decisions, and he knows how to adjust to the consequences of his decisions.  Give me a solid businessman any day over a bookworm to lead this country.

Rickard wrote:

The fact that he beat Gore is also up for debate. I've read over and over again that Gore got more votes. I'm sure you're all thinking oh no, not THAT again, but it is hugely important. If the fact that Gore got more votes and still didn't become president is true, it essentially means America isn't a democracy.

I have no intention of being patronizing here, but you do know that we do not go on the popular vote in our elections.  We use the electoral college.  The reason we do this is to make sure every region of the country, and every lifestyle is equally represented.  If we did not have this, then Ohio, Penn., Michigan, Minnesota, Iowa, etc. would all be ignored in the campaigns.  Candidates would focus only on New York, Texas, and California.  Hardly a representive government.

BTW, America is not a democracy, it is a representive republic.  The goal is to represent the people's views.

Finally, no one knows who won the popular vote.  Although the official numbers have Gore winning, those numbers do not include a lot of absentee ballots.  The reason comes down once again to the electoral college.  Take California as an example.  On the day of the election, Gore had a very large margin of victory in this state.  Because his margin of victory was larger than the number of absentee ballots, the absentee ballots were not counted in their final numbers.  Being that most absentee ballots represent the military, and being that the military traditionally votes republican (80% traditionally), California's absentee ballots alone would have tipped the popular vote in Bush's favor.

Rickard wrote:

If he hadn't gone to war, I'm sure he wouldn't even have been considered the for the upcoming election. America demanded a war and he responded. I don't buy into the propaganda that he "duped America into going to war". The fact that most Americans wanted a war hardly makes the situation better though.

I highly disagree with this.  Most Americans initially did not want war with Iraq until AFTER the case was made against Saddam.  Americans wanted a war against Afghanastan because they were viewed as the source of 9/11.

Rickard wrote:

And you do that by invading Iraq? Since when has Saddam been a direct threat to the US? There are lots of other hostile dictatorships that we KNOW have WMD's or at least the technology and raw material to manufacture them.

Saddam was a threat for over 10 years.  Every single day he was firing at our planes patrolling the no-fly zone.  He was a threat as he was using the oil-for-food program to fund his weapons ambitions.  He was a threat to the US as he was requiring his education system to teach a system of lies to Iraqi children, many of these lies describing how the US is an evil society.  Most importantly, though, he was a threat that had proven diplomacy was not going to be an option.

There are other countries that have WMD's or the technology to produce them, but there are other ways to deal with them (and containment policies, such as the one in Iraq before the war,is not one of those ways).  N. Korea is being dealt with through multi-national talks (an example of how Bush DOES use diplomacy to reach an end goal).  Syria has already agreed to dismantle their weapons due to Bush's influence.  Iran, well, Iran is having enough internal problems to not have to even think of war as an issue just yet.

The argument that there are other countries that are more dangerous misses the point.  The point is simple...Iraq was a threat that had no other options.


Rickard wrote:
nfl-forums wrote:

The US, Britian, Poland, Spain, and 30 other countries enforced the resolutions that the UN had agreed upon.

30 out of 191 countries I might add.

Yes, 30 out of 191 countries.  As Bush said, he didn't make the decision to be popular, but to do the right thing.  Other nations do support us in our efforts, many are neutral, and a few have opposed the actions all together.  Every nation has a right to their own position on the war, but the US was not alone in evaluating Iraq as a real threat.  To say so is demeaning to those other countries who have also made sacrifices.

Rickard wrote:

The UN hasn't fallen. Americans have just started ignoring it's recommendations.

It's not up to the UN to "act on threats". The UN is a peace-keeping organisation, not the opposite. Sure, it might be the most bureaucratic organisation in the world, but it's all we've got. Let's make it more effective instead of side-stepping it.

That is exactly what Bush tried to do, make the UN more effective.  The basis of war, contrary to popular belief, is not WMD's, but rather Iraq's continued defiance of UN resolutions.  How many resolutions was it going to take?  A list of resolutions against Iraq can be found here.

The UN is not completely dead, but Saddam nearly made the UN into a meaningless body.  It is a peacekeeping organization, but as such it needs to deal with those who are not in line with keeping the peace.  Saddam was definitely not in line with keeping the peace.

Rickard wrote:

And none of the other superpowers noticed these problems? Bush's main argument was that the protocol would be a hard blow on the American economy (mainly due to increased electricity prices). Of course it would! The protocol forces people everywhere to make compromises. Personally, I think the Kyoto protocol is a threat to the American lifestyle more than anything. Americans get grumpy when they can't fill up their oversized SUV's with extremely cheap gasoline (less than a third of what we pay in Europe) and leave the George Foreman grill on 24/7. Ok, I'm not sure about that last one smile, but you do consume a rediculous amount of electrical energy "per capita".

Yes, that was Bush's argument, and I really don't see anything wrong with Bush asking for the responsibility to be shared more evenly.  Another glaring reason to not sign the Kyoto treaty was because it was bad science.  Take Russia for example.  Putin, the Russian legislature, and the Russian Academy of Sciences all stated that the Kyoto protocols were bad science, yet political pressures forced Russia to join (they wanted entrance into the WTO).

Regarding the gas prices in the US and electrical energy, I agree that we use way more than we should.  However, keep in mind that our transit is much different than in Europe.  Europe has a very well organized train system.  The US transit has been build on roads and personal ownership.  The result...we drive a lot more.  There are a lot of reasons we developed this way, and although it may not be the best thing, it is what it is.

Rickard wrote:

I want to make something very clear here. In might come on as some kind of America hater at times, but believe we me when I say I'm not. I've only been to the US once (in NYC in 2002), but I had a great time and found Americans to be a very nice bunch of people. It just baffles me how such nice people can conduct such foul foreign policy.

Allow me to make something clear as well...I understand why people are upset at the US and Bush.  Bush had to make some very unpopular choices.  But in the grand scheme of things, any president or leader has to look after his people first, then worry about his stance in the free world second.

A lot of people died on 9/11, but more importantly, it showed that America can be attacked successfully.  The world was with us on 9/11, and I can tell you that every American was moved by the outpouring of support by the world on that day.  Many nations have disagree with the way that America has handled itself after 9/11, but remember that unless you are getting the intelligence that Bush is seeing on a daily basis, it is hard to say who is really going to be responsible for the next 9/11.

BTW, I hope you get the chance to come back to the US.  NYC is the greatest city in the world (I've been there countless times and would love to live there).  But there are a lot of great places to see beyond NYC as well. 

Finally (I promise this will be the end of this post), some people have asked whether Iraq is better off now than it was before the war.  To those people, I say yes.  Sure, it is more unstable, but at least there is hope right now.  Understand that these people have lived under a dictator for nearly 30 years, and now they are finally tasting freedom for the first time.  There will be a struggle, and it will be long and hard, but at least these people have the hope of security.  Under Saddam, they never knew when they would end up on his 'naughty or nice' list.

24

(133 replies, posted in General discussion)

Frank,

I appreciate your response. I didn't want to cause disrest, just offer a differing viewpoint.  Not all nations believed that he had WMD's, just most. wink

It is true that the US has nuclear weapons, everyone knows this.  But Saddam was known to be an agressive leader, not shying away from invading a country such as Kuwait.  It was also commonly believed that he was interested in invading Israel.  He also used weapons on his own people.

The Kyoto protocol had some glaring problems with it.  That is why Bush was against it, no other reason.

In the end, Saddam constantly ignored the world body by kicking out inspectors, robbing his own people in the oil for food programs, and other ways.  The fact that he 'agreed' to disarm doesn't mean anything since he 'agreed' to do many other things that he didn't do.

I too will end my discussion.  My point has been made.  Thanks for listening. smile

25

(133 replies, posted in General discussion)

The UN failed itself.  How many failed resolutions were they going to pass before they realized that Saddam didn't care about UN resolutions?  The US, Britian, Poland, Spain, and 30 other countries enforced the resolutions that the UN had agreed upon.

It was also widely accepted by all nations that Saddam had WMDs and was trying to get more.  Did he have them?  We will never know, but we do know that he had some capacity to make them and was trying to make more of them.

I agree that the fall of the UN is sad, but its not the fault of Bush or the US.  If the UN had actually acted on its threats, then it would still be a viable body.