Jul 21 2005, 06:26 AM
Post
#1
|
|
![]() MaD_cOw has nothing on me at MODing! Group: Moderators Posts: 916 Joined: 4-June 04 From: California Member No.: 1,362 ![]() |
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 -------------------- QUOTE("Richard Hammond - Top Gear") We're gonna to die now, that's it." |
|
|
|
![]() |
Jul 22 2005, 09:19 AM
Post
#2
|
|
![]() Boss, my code's compiling (xkcd) Group: Admins Posts: 10,440 Joined: 19-September 01 Member No.: 1 ![]() |
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. -------------------- ![]() ![]() Things that I don't suck at: Photography (flickr, JPG Mag), "Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com |
|
|
|
Nov 20 2005, 01:56 AM
Post
#3
|
|
|
New Member ![]() Group: Members Posts: 4 Joined: 20-November 05 Member No.: 3,064 ![]() |
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. -------------------- System Spec:
Coolermaster ATC210 Aluminium Case Seasonic S12 600w Silent ATX2.0 & nvSLi PSU Asus A8N-E nForce4 Ultra Motherboard AMD Athlon64 Venice 3000+ CPU Zalman CNPS7700-ALCU Ultra-Quiet Cooler 2Gb (2x1Gb) OCZ Platinum EL-DDR RAM (400Mhz @ CL2.5) BFG GeForce 7800GT OC 256Mb Creative Soundblaster X-Fi Fatal1ty Edition 300Gb Maxtor DiamondMax Plus10 NCQ SATA HDD 2x 160Gb Maxtor DiamondMax Plus9 SATA HDDs Pioneer Slot-Loading DVD-ROM & Pioneer DVD-RW |
|
|
|
Dec 4 2005, 07:21 AM
Post
#4
|
|
![]() Verto Venatus Deus! Group: Moderators Posts: 913 Joined: 18-December 03 From: Missoula, MT Member No.: 735 ![]() |
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 post has been edited by Dr.Mario: Dec 4 2005, 07:28 AM -------------------- I'm Back!
Certifications: MCSA, MCSE & A+ General Information Technology & Support. Ex-Owner & Operator of Hackers(dot)Com Owner & Operator of Ace Technologies & Securities Inc. (currently spending a year dead for tax purposes) Proficient with Multiple Forum Communities in providing layman Tech Support & Solution Solving. Next Scheduled Attending Event: SpoCon Spokane, WA |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 09:06 PM |