hi. when i first installed punbb i started getting hit with spam mostly from russian email accounts. then i enabled the rules options "if you don't want your mommy to read it, don't write it" type of thing and the spammers went away. i guess who ever was hitting me didn't know how to modify his script. so just out of couriosity, do you make new registrations click okay on the rules and do you use email verification? it's not perfect but it slows down the dummies.
102 2007-05-11 19:00
Re: PHP: include (6 replies, posted in Programming)
ha, that works! thanks man.
1 bug down, 4 million to go.
103 2007-05-11 18:29
Re: PHP: include (6 replies, posted in Programming)
i'm currently reading more about objects. forgive my newbian questions. my little object doesn't have access to $db...
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';// the scrape object
class punscrape
{
function do_scrape()
{// let's check if the torrent(s) need to be scraped.
$table = $db->prefix('puntracker');
...
it gives me call to a member function on a non-object. it seems i need to learn about scope??? anybody got a good link to some literature to help? tia.
104 2007-05-08 20:50
Re: PHP: include (6 replies, posted in Programming)
yep i'm including common.php on both pages. so if i can't do that, how can i use the database object in my 'scraper' page? when i remove common.php i get
PHP Fatal error: Call to a member function on a non-object in /testforum/punscrape.php on line 31
which is right where i use $db
do i use something else like include common_db.php?
thanks a ton for any assistance. i almost have a bittorrent tracker module ready but i'm banging my head on this last part. it's turned out to be a little harder than i expected!
105 2007-05-08 20:38
Re: PHP: include (6 replies, posted in Programming)
ok, on my index page i include my scraper page. on my index page i instantiate the scraper object on my scraper page. but i get this error.
[08-May-2007 20:33:08] PHP Fatal error: Cannot redeclare check_cookie() (previously declared in /testforum/include/functions.php:28) in /testforum/include/functions.php on line 28
any tips for a newb?
thanks.
106 2007-05-07 13:28
Re: Hi again - font size and space bw lines (4 replies, posted in PunBB 1.2 modifications, plugins and integrations)
well, they could always just increase the font size locally with their browser. firefox cntrl++. or you could set a different font size for the website itself. this is what i did. search for FONT-SIZE in the particular CSS file you're using.
107 2007-05-03 17:44
Re: ? how to use $db->* (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
here's an additional stupid newb question for any bored programmers out there.
what is -> called? is it only used to make an object do something? thanks for tips.
i'm currently reading through http://hudzilla.org/phpwiki/index.php?title=Main_Page
108 2007-05-03 15:27
Re: ? how to use $db->* (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
things you can do with $db->
prefix, query, result, fetch_assoc, fetch_row, num_rows, affected_rows,
insert_id, get_num_queries, get_saved_queries, free_result,
escape, error, close, prefix...
not sure what else. it would be nice to have a place with examples also. maybe when i get more comfortable using this i'll post some. thanks again for the information.
109 2007-05-03 11:35
Re: ? how to use $db->* (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
oh neat, i get it. in include/dblayer/mysql.php? after 'function' is the word to use. cool thanks.
110 2007-05-02 20:02
Topic: PHP: include (6 replies, posted in Programming)
hi all. i'm attempting to write up a bittorrent tracker module for PunBB but i'm new at this stuff. i have one page that displays torrent info from the database, called puntracker.php. but i have another page called punscrape.php that scrapes other trackers and updates mysql. so my newb question is what's the best way to do this? can i just put
include(PUN_ROOT.'punscrape.php');
or something similar to evaluate the file or is this stupid? thanks for any tips.
111 2007-05-02 18:36
Topic: ? how to use $db->* (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hi all. a budding module developer here. by looking at the punbb code i'm getting an idea on how to use the db variable but would like to know more. does anybody have a link where this is already discussed or would like to comment?
$db->prefix, $db->query, $db->fetch_row... how else can i use this bugger? thanks for any tips.
112 2007-04-28 01:47
Re: is there a web links plugin for punbb? (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
that's very cool.
113 2007-04-27 19:54
Re: Best CMS? (25 replies, posted in General discussion)
a member of my local LUG told us about this cool website that allows you to try out just about all of the popular CMS / Blogs / BB (punbb included). check out http://www.opensourcecms.com/
i'm just going to build my own cms on top of punbb. seems like a great starting point to me. :-)
114 2007-04-27 19:43
Re: is there a web links plugin for punbb? (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hi. earlier this week i changed his mod a little. added a description field, changed the admin display and made it so only logged in users can submit links. feel free to use it if you like, links plus 1.2.1.
115 2007-04-27 15:29
Re: OpenWings Updates: May 5th (19 replies, posted in PunBB 1.2 show off)
i like black. have you considered a logo at the top? slick looking site.
116 2007-04-27 15:25
Topic: simple punbb based website (3 replies, posted in PunBB 1.2 show off)
hi all. i'm a new convert to punbb and have been playing around with the site for about a week and this is what i have so far. it seems to display well for linux (konqueror / firefox) and windows (ie), haven't tested with a mac. it a martial arts site with a geek twist.
punbb 1.2.15
style: nevblack (i made the font a little bigger and added a logo)
mods: links (i hacked it up), rss (using simplepie)
i've also just started making a bittorrent tracker module but it's kind of hard and might take me a while. i'm new to programming.
check out the site and please let me know what you think. thanks
117 2007-04-26 18:41
Re: Simple Mod: RSS Feed only on index.php (6 replies, posted in PunBB 1.2 modifications, plugins and integrations)
fixed. i've updated the code. i found the answer on their site.
http://simplepie.org/docs/reference/con … _encoding/
118 2007-04-26 17:57
Re: Simple Mod: RSS Feed only on index.php (6 replies, posted in PunBB 1.2 modifications, plugins and integrations)
i just noticed two problems.
1. my text editor chad the default encoding of utf-8. so i went through the files and saved them as iso-8859-1.
2. simplepie is putting out utf-8 (may be because of the rss feed i'm using, not sure). so i'm getting errors at validator.w3.org like,
Character Encoding mismatch!
The character encoding specified in the HTTP header (utf-8) is different from the value in the <meta> element (iso-8859-1). I will use the value from the HTTP header (utf-8) for this validation.
you may notice similar errors. hopefully i will think of or somebody will suggest a way to fix this.
119 2007-04-25 21:37
Re: Simple Mod: RSS Feed only on index.php (6 replies, posted in PunBB 1.2 modifications, plugins and integrations)
awesome. i'm glad to contribute, even in this small way.
it looks a little different on your site. i see you're using some other mods. did you change the rss mod any? please let us know if you did. it looks good on your site!
120 2007-04-24 21:28
Topic: Simple Mod: RSS Feed only on index.php (6 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hi all. i'm sure somebody has already done this, and probably better, but for amusement today i put together a very simple rss reader. it displays the feed only on your front page of punbb and not on the other pages. i just copied an idea mentioned in another forum and followed the instructions at http://simplepie.org/
it's not a module, just a modification. if you want to play with it feel free.
PunRSS.
p.s. - PunBB is a great forum for a budding programmer to cut his teath on making mods. thanks guys for a really cool discussion board.
121 2007-04-24 19:22
Re: Can I do php in the announcement? (5 replies, posted in PunBB 1.2 troubleshooting)
best way would be to add a new box in a php file with your code in and called it 'file.php' and put it in include/user
then in include/template/main.tpl add below <pun_announcement>
<pun_include "file.php">that should do what you want
i know this thread is a little old, but i just want to say that your advice worked perfectly for my little website. thanks!
122 2007-04-22 17:15
Re: Links Page 1.2 - has somebody already added description? (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
sorry about posting to the wrong forum. another damn newb here.
so this morning i modified the links module. just added a column for a link description. i just tried it out on PunBB 1.1.15 and it works. feel free to download it and check it out. please let me know if i screwed anyting up.
i really didn't do much. the original module author did *all* the heavy lifting.
later edit: i also made it so only members can submit links and changed the formating in the administration area.
123 2007-04-22 15:03
Topic: Links Page 1.2 - has somebody already added description? (9 replies, posted in PunBB 1.2 modifications, plugins and integrations)
hi all. i want a links module for about 800 links. i tried out 'links page 1.2' and it works well. today i'm going to try and modify it to add a brief description of the link right after the link itself. but it seemed best to ask if somebody has already done this prior to starting. thanks for any tips.
124 2007-04-12 20:03
Re: upgrade 1.2.14 to 1.2.15 (1 replies, posted in PunBB 1.2 troubleshooting)
hi all. i uploaded everything again and this time the upgrade worked. maybe a file got screwed up or something during the ftp??? oh well, it works now.
thanks.
125 2007-04-12 16:13
Topic: upgrade 1.2.14 to 1.2.15 (1 replies, posted in PunBB 1.2 troubleshooting)
hi all. i've uploaded everything in 'upload/' and put the script 12_to_1215_update.php from the directory extras/ to the forum root directory. when i click on 12_to_1215_update.php i get the first page and click to proceed but then get a blank white page. tried it twice, no luck. this is on a hosted server bsd/apache/mysql. the forum root is a subdirectory (forum.mysite.com). the browser i'm using is konqueror. any tips? thanks in advance.