Help - Search - Members - Calendar
Full Version: PHPBB Forums
CyberiaPC.com Community > Technical Zone > Web Development
everythingsbs
Hey guys.

I am currently running PHPBB forums on my website. In the forums I have a section designed for selling/buying/looking for items in game, Tradespot. I have an idea that I would like to add, and I have seen this before but the guy who made it won't give out his source code unless he makes an offical mod.

I want to add a spot on the posting page that ask's for what type of post it is. For example, say your selling a weapon in game and want to post it on the tradespot section of the boards. I want it to ask for the whether you are Selling, Buying, Looking For, Auction[ing], or eBay[ing] the item. And then after you've posted the item, display it in the topic so people are able to see what your doing with it.

Here are some pictures of what I am talking about.

The Post Type picture:



The Forum View of the picture:



If you guys have any other questions, please just ask and let me know. Thanks for reading.

Ryan
usr.c
Without knowing much about phpBB, I'm afraid I can only give a conceptual explanation. You'd need to edit three parts of your forum:

1. The post page
2. The forum view page
3. The MySQL table that stores your posts' data

1. Add to the HTML that displays the 'New Post' form a dropdown field that allows the user to specify the post type. Then add to the SQL statement that adds the post data to the table so that the new 'Post type' field is added as well. This code could possibly be in another page.

2. Find the code that renders the table and add some logic to the loop that checks the post type each time. Based on that, it then prefixes the topic title with Buying, Selling, etc...

3. Add a new column to your 'posts' table to store the post type.

Sorry Ryan that I can't be of more help. Maybe someone with more experience with phpBB will be able to add their input. If you'd like elaborations of the things I mentioned, I'd be happy to post them in a reply.
Martyx
It's been a while since I've "hacked" phpBB, so I'm a little out of touch!

Similar to usr.c's method...

Add the dropdown menu, and when user submits the post append the dropdown info to the Subject with a pre/suffix... say "$UNIQUEREF$BUYING"... then write some code to capture/parse your uniqueref and colour it accordingly.
Mario
So, i think i can help you. i think what you want is like a Post Prefix? i know in IPB you can have it put a post prefix so on the post title it would be [PREFIX]Title .. ? or do you want a physical image?

this mod : http://www.phpbbhacks.com/download/342

easy mod to install, i'm sure if you have small images, you could use them instead of text.. :-? prolly need some monkeying around with though

*edit*

looks like images would be possible, you'd need to try html code .. but it dont look like it limits the chars so you should be able to have the <a href=" "> ... :-> but least you can do text.. lol..

& phpbb -> hope you have security on it!! get it: phpbb-tweaks.com (friend of mine soo yea... its awsome)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.