CyberiaPC.com Community Forums Main Page
RSS Feeds: Late(st) News | Zenith Picture Gallery | Most Recent Community Topics | Tips, Tricks and Other Useful Stuff

Welcome Guest ( Log In | Register )

> PHPBB Forums, Making/adding a MOD
everythingsbs
post Jul 21 2005, 06:26 AM
Post #1


MaD_cOw has nothing on me at MODing!
Group Icon

Group: Moderators
Posts: 916
Joined: 4-June 04
From: California
Member No.: 1,362

United States




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."
Go to the top of the page
 
+Quote Post
Start new topic
Replies (1 - 3)
usr.c
post Jul 22 2005, 09:19 AM
Post #2


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




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), Skydiving, Splitting atoms, Flying a space shuttle
"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
Go to the top of the page
 
+Quote Post
Martyx
post Nov 20 2005, 01:56 AM
Post #3


New Member
*

Group: Members
Posts: 4
Joined: 20-November 05
Member No.: 3,064

United Kingdom




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
Go to the top of the page
 
+Quote Post
Mario
post Dec 4 2005, 07:21 AM
Post #4


Verto Venatus Deus!
Group Icon

Group: Moderators
Posts: 913
Joined: 18-December 03
From: Missoula, MT
Member No.: 735

United States




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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th June 2013 - 09:06 PM