that depends on where your site is hosted
126 2007-07-09 19:40
Re: How many mysql connections are normal for a standard forum? (5 replies, posted in PunBB 1.2 troubleshooting)
127 2007-07-09 14:57
Re: favorite php tutorial / manual ? (10 replies, posted in Programming)
php.net. That's all you need really.
Not to mention my webserver folder with over 50k files, of which 70% are tests of certain functions
lol, i thought i was the only one using that kind of primitive self documentation technique. It works pretty well.
128 2007-07-09 14:46
Re: PHP4 is dead check it out!! (15 replies, posted in PunBB 1.2 discussion)
PHP5 fixes most of PHP4's issues, but because the majority of web hosts still use PHP4, applications like PunBB have to find workarounds for native PHP5 things in PHP4.
the majority of web hosts still use php4?!?!?
I would be very surprise if clicking on the google top ten for "web hosting"
php5 would not be suported on lets 8 of them ( not to say all of them )
129 2007-07-09 11:53
Re: MH Forum Version 3... (10 replies, posted in PunBB 1.2 show off)
I don't like the color scheme that much, but that's me.
Nice job, i love the way you placed the links over those spicky metal bands, perfect integration.
130 2007-07-09 11:49
Re: PHP4 is dead check it out!! (15 replies, posted in PunBB 1.2 discussion)
I really don't get this kind of discussion.
isn't that an issue of those who use it?
Can anybody explain me how and why should one be worried about this? This is not being sarcastic or whatsoever, i really don't understand this "OMG, it's PHP4...run!"
131 2007-07-09 09:52
Re: favorite php tutorial / manual ? (10 replies, posted in Programming)
Paul wrote:I just ask Rickard.
I wonder what's Rickard's favorite CSS tutorial / manual then
He might just ask paul
132 2007-07-08 23:35
Topic: subversion noob questions (2 replies, posted in Programming)
This is embarrassing but i never used it, nor subversion nor cvs nor any other version control system.
I want to create a repository to store my personal programming projects. But i am still a bit confused.
I have a few projects, 4 or 5, and i want to keep them in a repository, is it a good practice to keep a folder for each in the project root? can i checkout, commit, etc folder by folder with ease?
What about the three recommended folders? should i create them inside each project folder?
133 2007-07-08 23:30
Re: favorite php tutorial / manual ? (10 replies, posted in Programming)
defenatly the manual. php.net
my choice
134 2007-07-08 23:22
Re: What editor do you use for php? (114 replies, posted in Programming)
gedit? nobody?
it has the only needed feature for php.. code snippets.
I heard about scribes... have anyone tried it?
Does anybody knows a editor with php code completion and phpdoc as-you-type like netbeans does with javadoc? That would be my choice, but i haven't heard of it
135 2007-07-08 23:15
Re: Merging an existing PunBB forum with a vBulletin forum (2 replies, posted in PunBB 1.2 troubleshooting)
All database content migration is possible if you have the necessary data on it and dare to code migration tools.
You will need somewhere to define by hand the source and destination forums match.
Also, some user policies need to be defined, like, what to do with duplicated emails, nicknames, et all
and more stuff that i don't remember of
Is there any merge tool out there?
136 2007-07-08 23:11
Re: [Solved] Switching from SQLite to MySQL (9 replies, posted in PunBB 1.2 troubleshooting)
Nice to see that it worked well.
It's also nice to have a actual successful migration testimonial.
137 2007-07-08 00:32
Re: [Solved] Changing the author of a thread through the database (25 replies, posted in PunBB 1.2 troubleshooting)
eheheh... I wonder if vanslyde or any other person will actually trust me with any tips after this.
It's the mnemonic i have in my head... "update table set...where" sorry...
ok.. so... let's see if the 3rd is the final one:
UPDATE posts SET user_id=X WHERE id=Y;
138 2007-07-08 00:06
Re: [Solved] Changing the author of a thread through the database (25 replies, posted in PunBB 1.2 troubleshooting)
OMG... i just forgot the ABC of SQL... sorry {embarrassed mode}
thanks smartys. this is particularly funny if one reads what i wrote together with that fine piece of 'personal' SQL.
vanslide, it is:
UPDATE TABLE posts SET user_id=X WHERE id=Y;
139 2007-07-07 23:54
Re: [Solved] Switching from SQLite to MySQL (9 replies, posted in PunBB 1.2 troubleshooting)
The solution you pointed would work if you were migrating from another DB system than sqlite.
The problem is that SQLITE is typeless am mysql is not.
In a mysql database, every table column has a datatype while in a slite it does not.
This makes it impossible to create a tool that would convert a sqlite database into other 'type' of database. You need to know the database structure.
The procedure i described is not that difficult, if you maintain a forum that's a actually an opportunity to try out stuff and learn a bit.
Otherwise you will have to fix somebody to do that for you.
140 2007-07-07 23:18
Re: Backup Database Excluding Search Tables Restore To New Test DB (7 replies, posted in PunBB 1.2 discussion)
You forgot to change the base path.
141 2007-07-07 23:14
Re: coverting a postgre db into mysql? (1 replies, posted in PunBB 1.2 troubleshooting)
I have just reply to a similar question
Check out this topic:
http://punbb.org/forums/viewtopic.php?id=16512
It's the same, replace sqlite by postgresql.
142 2007-07-07 23:03
Re: [Solved] Changing the author of a thread through the database (25 replies, posted in PunBB 1.2 troubleshooting)
It's easily done using SQL...
ALTER TABLE posts SET user_id=X WHERE id=Y;
replace X by the new user id and Y by the post id.
This is not something very dangerous or anything, but be careful playing around with your database if you are not comfortable doing it. Better make a backup before if you are not sure of what you're doing.
143 2007-07-07 22:58
Re: [Solved] Switching from SQLite to MySQL (9 replies, posted in PunBB 1.2 troubleshooting)
It's not so difficult, but yes, it's a bit tricky due to sqlite being typeless. Punbb database schema is the exact same if you use sqlite or mysql, it couldn't be other way anyway.
So, this is what i suggest for unexperienced users:
1. Create a fresh installation of punbb with a mysql database.
2. Using a mysql management tool like pypmyadmin, sqlyog, whatever, generate a SQL file containing the 'create table' statements. Save that file.
3. using a sqlite management tool create a sql file with the insert statements and save it too.
4.create a new empty database on your mysqlserver.
5.Populate your database, use the first sql file to create the tables and the last one to insert the data on them.
6.delete the instalation and database created on point 1
144 2007-07-07 12:33
Re: Powerful antispam in punbb1.3 (18 replies, posted in Feature requests)
The best spam protection I've seen around is the akismet module. I am using it and every day it catches one or two messages. It's cool, but it's still to strict, it bans users for nothing.
I think that a goos solution would be:
if the user has less than a certain admin-defined number of posts, then he/she cant post messages containing links.
I think i will implemente this in one of my forums one of these days. For the punbb gurus out there, please let me know if there is anything i should be careful when doing this small hack.
145 2007-06-28 19:37
Re: Punmap - html sitemap with fancy urls UPDATED - final release (37 replies, posted in PunBB 1.2 modifications, plugins and integrations)
sirena, do your have to set manually on google every url you put ads on? If not you should not fear this. I don't know if you understood how this works, but the pages are the exact same, only the url changes. The diference here is: you will get your google visitors on your same old pages but they will reach then through a different url, that's all.
I actually use this mode in another way, instead of poiting the rewriten urls to my viewtopic.php i point them to viewprintable.php, another mod out there. This way, the users that arrive from google will arrive to the topic printable page. If you do this you can put ads on those pages and keep your original topicview pages ads clean so you keep your regular users from seeing ads but you still show them to your google visitors. It depends on what you want to achieve.
glucarelli, there is no way extended characters are causing any trouble because they simply are token away. Including them in the urls is not recomended at all and can cause you a lot of trouble. If you still want to include them i would sugest you replace 'é' by 'e', 'ç' by 'c', etc. You can make this replacement in the fucntion clean_url() on my mod.
You can change the rewriting to the format you pointed, but you will have to go through the mod and change it yourself. You need to adapt the regex both in your the function clean_url() and in your .htaccess and you need to twaek the link output in lines:
107,88 and 141.
146 2007-06-28 14:49
Re: Punmap - html sitemap with fancy urls UPDATED - final release (37 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I am afraid i don't understand you.
there was people comming up with the issue of the duplicated content. By placing this on your robots.txt you will prevent the dynamic urls from being indexed and keep you rewriten ones.
The content of the page will be the exact same. I don't see how this messes up adsense or googlebot.
147 2007-06-28 13:05
Re: Punmap - html sitemap with fancy urls UPDATED - final release (37 replies, posted in PunBB 1.2 modifications, plugins and integrations)
For those concerned about duplicated content here is what you have to put on your robots.txt
User-agent: *
Disallow: /viewforum.php
Disallow: /viewtopic.php
Disallow: /profile.php
Disallow: /userlist.php
Dont forget to include the path.
I will give this a try for one month to see if it really maters in any way.
148 2007-06-26 00:06
Re: Fallen Galaxy (5 replies, posted in PunBB 1.2 show off)
that's a great look.
Perfect integration.
I am planning doing something similar too, i will also base my style on novin
Just out of curiosity, was it too much work?
149 2007-06-25 09:13
Re: Simple Antispambot-code Mod v0.8 (39 replies, posted in PunBB 1.2 modifications, plugins and integrations)
a bit too easy to break. If a user would hapen insert the previous value inserted in the banner he/she would quickly find that weakness, also we are talking about it in here where everybody can read us.
But, yes, a non visual captcha is in my opinion a beter idea then a visual one.
There is also a akismet module which works cool for me.
150 2007-06-20 11:20
Re: Allow bbcode/html code in topic subjects (4 replies, posted in PunBB 1.2 modifications, plugins and integrations)
That would require some hacking on the code. Not so much though.
First you would need to preparse the bbcode when you insert the post.
You can do that usinf the preparse_bbcode() funcion on you post.php. Check out the best spot to insert that function call, probably line 170 on post.php looks like a nice spot for it, before the topic being inserted
Check it out
http://phpxref.com/xref/punbb/nav.html.gz?index.html.gz
then you have to parse the topic on viewforum.php with parse_message().
This is the basics, you might also want to check if the user is a mod.