Author |
Message |
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Wed Jun 04, 2003 4:32 am (21 years ago) |
|
Do you think I could use the ad code that you have for your forums here? |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Jun 04, 2003 8:06 am (21 years ago) |
|
The basic answer is no, since the code is loosely based on a commercial product. Also, it's custom-coded for this site, and wouldn't easily work anywhere else. However this kind of project is a good way to get to grips with PHP & MySQL:
- Study phpBB code in detail, and learn how to run SQL queries using phpBB's functions
- Edit the phpbb_users table to add some extra fields for the advertisements
- Create a redirection file for people clicking the links which will update the number of ad clicks in the database
- Edit usercp_register.php to include the extra fields for ads (so that people can add/edit/delete their ads)
There's more, but that's all I can think of now |
________________________________
|
|
|
|
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Wed Jun 04, 2003 4:18 pm (21 years ago) |
|
I'll work with it, I was starting to work with it anyway. |
|
|
|
|
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Wed Jun 04, 2003 4:29 pm (21 years ago) |
|
How would I run PHP in the footer, doesn't it have to be named with the .php extension? |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Jun 04, 2003 5:06 pm (21 years ago) |
|
page_tail.php is run after the page's content is generated, however you'd probably want your code run beforehand, so you'd want to put it in page_header.php. However I really don't think you can head straight into coding for phpBB: you have to understand the use of the database abstraction layer, and the templating system (this is especially important - you can't just echo() stuff out!). |
________________________________
|
|
|
|
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Fri Jun 06, 2003 4:45 pm (21 years ago) |
|
Where is page_header.php located? |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Jun 06, 2003 4:46 pm (21 years ago) |
|
In the includes directory. However to be honest if you're asking such questions, you'll have great trouble actually completing such a modification (no offence intended). |
________________________________
|
|
|
|
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Fri Jun 06, 2003 11:16 pm (21 years ago) |
|
Thanks for the info, I got it set up how I want it. Its much less complicated than your system but it is what i want. Im going to enter the ads and its just going to be for my customers. |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat Jun 07, 2003 9:16 am (21 years ago) |
|
Ah, of course if you enter the ads yourself it does help to remove the complicated stuff (entering data, checking it, and spitting it out again when it needs to be edited is a real pain ). |
________________________________
|
|
|
|
|
Page generation time: 0.143332 seconds :: 17 queries executed :: All Times are GMT
Powered by
phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme