1

(3 replies, posted in Programming)

Hi ed_luap,

Can you confirm where you put the script.php? How did you include it? I'm confused about the paths.

Thanks

2

(9 replies, posted in PunBB 1.2 troubleshooting)

What is the path structure on the includes? The "tpl" files are in a folder of their own, so I'd like to know how I should include a file that's in a folder far away from the "includes/templates" folder, in fact out of the entire "punbb" directory? In your example "_google.php" is in the same folder as the tpl files?

3

(7 replies, posted in General discussion)

Addendum:

1. About including PHP into templates: I found -- here: http://punbb.org/docs/faq.html#faq3_4 -- that I can include some stuff through <pun_include>, but how can I access the variables defined in that include?

2. About extern.php...how can I include output from that file in to the templates? (I tried SSI includes but my host has disabled those, I'd like to include in pure PHP)

Thanks.

4

(7 replies, posted in General discussion)

Related question.

How can I edit the templates themselves, e.g., "<pun_stats>" or "<pun_main>" in the main.tpl file? I'd like to move the stuff at the bottom of pun_main into pun_stats.

Also, how can I include PHP in the code, looks like these are only HTML templates.

Appreciate any ideas.

Thanks Rickard.

How should I edit what "<pun_stats>" or "<pun_announcement>" look like for instance? I would like to style the things that're displayed (e.g., UL and LI tags).

Also, how can I include PHP in the code, looks like these are only HTML templates.

Appreciate any ideas.

Hello,

When one goes and tries to modify the look and feel of PunBB, it's very spaghetti in its display. I would really appreciate being given blocks of code that I can place within my design.

I propose each block of links to be separated:

e.g.,
$TMPL_HEADER_BLOCK,
$TMPL_FORUMS_BLOCK,
$TMPL_THREADS_BLOCK,
$TMPL_STATS_BLOCK,
$TMPL_FOOTER_BLOCK..

etc.., that I can position anywhere according to my design.

Thanks.

Thanks. In that case, how will I make sure that people who don't have access also do not see the "There are 108 topics" or "There are xxx posts" and other such messages?

8

(7 replies, posted in General discussion)

Yes, but the display is managed in ECHO tags and tons of PHP code. Modifying CSS is one thing. Disabling the display of a whole "block" is another.

I would like to make sure GUEST users see nothing but login screen. Try doing this and you'll see what I mean.

Was that complicated? I have 5 forums. I have 5 users. I want each user access ONLY to 1 forum each.

Hi,

How can I relate a user to a specific forum?

11

(7 replies, posted in General discussion)

Hi,

I have finally come down to changing the look and feel of the PunBB site.

I looked into include/templates but that's very basic stuff. I looked into the header.php in the root folder and that has ECHO statements and so forth for writing!

Do I really have to edit code for changing the site's look? I need to add my own DIV tags and all that. Any ideas?

Hmm, it was 0. Made it 1 manually and it works!

Downloaded 1.2.6. Fresh install. Default user created for administator does not have admin rights. Where can I change this?

Thanks so much for the help, smarty and Richard. I dug around in the code, and ultimately, given my excellent command of PHP, broke the code smile

So I will start over again with fresh PunBB install, and here is what I wish to do -- bypass the cookie checking altogether, or force PunBB to look at the cookies I have set. In this case, I don't need the pun_hash and the pun_setcookie functions, I just need to change the login CHECKING to simply check for the cookie that is set through my login.

Is this advisable? Wouldn't it be simpler? What parts of the code should I look into for this? Basically, bypass the login.php altogether and simply modify the checking code.

Thanks so much for your help until now!

Also, how do I disable SHA-1 and force PunBB to do md5 hashing of passwords? Then I can simply set the right cookie and PunBB should work with my own user ID functions. Or do I need to set something else as well?

Thanks, but when I copied the text of the cookie and did this:

<?
echo urldecode(unserialize('-----cookie text with ampersands went here------'));
?>

This printed nothing. What am I missing?

Thanks for that but my site already has over 10,000 registered users and I just dont know how I can integrate my own login with punbb. Mine also uses a hashed cookie. The passwords are all stored in my db as md5 so there's no way I can simply replicate the user data in the punbb database! (Or is there? Does punbb also do md5 on passwords in the db?)

Hi,

Can someone point me to where and how PunBB stores cookies? I would like to integrate my own login to set PunBB's cookies so the same login can work for both my stuff as well as PunBB.

Thanks!

Hello, yes, I mean styles.

Hello

I would like to use PunBB for my FAQ, my blog, and a Links section on my site. Because I like the whole caching idea and the performance of PunBB.

My question: is it possible to have the SAME punbb running on a site but with different "skins"?

Thanks,
CM

21

(8 replies, posted in General discussion)

dmz wrote:

I want to hack PunBB/MovableType so my most recent MT post auto-generates a thread topic in PunBB, but didn't want to mess with it until the next release is available.  Or has someone already done something similar?  This way, I can disable comments in MT (and avoid comment spam), and have an excuse to use Rickard's software.  wink

Just raising this thread up. Has anyone done this yet? Any mod for it? Looks like a comments mod for MT and WP would be very popular?

Good idea, let me try. Will report back, for posterity.

Edit: yoo hoo, it works! Hope this helps some vb convert in the future! smile

Hi,

I have converted from vbulletin to pun. Went well, thanks for that!

But I have some confusion with "categories" and "forums".

In vbulletin, I had all my 8 forums listed in the admin "Forum Manager". Each of these forums is enabled as "Act as Forum". According to the documentation:

There are two kinds of forums, a forum and a category. Forums can allow new threads and posts while categories cannot. Categories are used to group forums by topic. Forums of related topics are typically created as children of a parent category to group them by topic.

When adding / editing a forum there is an option called "Act as Forum". When this option is set to "Yes" the forum will act as a forum. When this option is set to "No" the forum will act as a category.

Now, my 8 forums have come in as 8 "categories" in pub. Why? They were setup as "Act as Forum"!  How can I make sure I am converting correctly?

Thanks!

-----------
SOLVED!
This was solved with Paul's recommendation smile
http://punbb.org/forums/viewtopic.php?pid=42385#p42385
I'll leave the text here in case someone searches in the future.
-----------

24

(5 replies, posted in PunBB 1.2 troubleshooting)

One knuckleheaded suggestion (as I'm still figuring things out) is to change the forum_id of the post using SQL?

Hi Paul

Thanks for 1 and 2.

For te forums structure, yes, I have all my 8 forums listed in the vbulletin "Forum Manager". I don't see any "Categories" at all in the admin interface of vbulletin. Each of these forums is enabled as "Act as Forum".

Furthermore, the documentation of vbulletin tells me:

There are two kinds of forums, a forum and a category. Forums can allow new threads and posts while categories cannot. Categories are used to group forums by topic. Forums of related topics are typically created as children of a parent category to group them by topic.

When adding / editing a forum there is an option called "Act as Forum". When this option is set to "Yes" the forum will act as a forum. When this option is set to "No" the forum will act as a category.

So, no, I don't have subforums. Only forums. Any thoughts?