php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#110235 - 03/26/01 05:02 PM Template Documentation
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
This thread will be both to help those who want to develop templates, code modifications, wordlets, modules and plugins.

Do not post any UBB Code in this thread, not even one line.

Instead, we'll work on the list of each file and what it is used for.

This should be invaluable as a tool for beginning, intermediate, and advanced developers.

First, we'll start with the public template files. This should be a group effort, so feel free to contribute your current knowledge.
http://www.ubbdev.com/ubb/upload/00000494/function.txt
_________________________
- Allen wavey
- What Drives You?

Top
#110236 - 03/26/01 07:14 PM Re: Template Documentation
Jamin Offline
Moderator / Template Diva

Registered: 03/04/00
Posts: 3368
Loc: College
Alright, here's what I've got to contribute. (I know all about all the public templates now, thanks to me going through them all several times now. :D)

- public_age_check.pl
Controls the first page seen when one clicks the "Register" link and the COPPA check in enabled.

- public_common.pl
Has lots of little bits that get displayed on several different pages. The common header, table top, and table bottom, are some examples.

- public_confirm_delete.pl
The page that you see after you've clicked the Delete button - asks you if you're sure if you want to delete it or not.

- public_daily_topics.pl
Not sure... I think this is the stock version of Active Topics.

- public_display_profile.pl
This is what you see when you click on someone else's name to see their profile.

- public_display_rules.pl
This shows the rules and regulations of the forum - part of the registration process.

- public_edit_post.pl
The page for editing posts.

- public_edit_profile.pl
The page for editing your own member profile.

- public_faq.pl
The page shown when you click the "faq" link up at the top.

- public_forum_page.pl
The page displayed when you click to go inside a forum. This is the "successor" to forumdisplay.cgi.

- public_forum_summary.pl
The page that displays the list of all the forums and categories.

- public_found_pw.pl
The page that displays to confirm that your password has been emailed to you after you've filled out the form.

- public_login.pl
The page for logging into the UBB.

- public_lost_pw.pl
This contains the form you fill out to get your password emailed to you if you've forgotten it.

- public_move_topic.pl
The page that gives you the options of where you want to move a topic to.

- public_my_profile.pl
The main profile page that contains your rank, PM list, editing link, etc. First page you see when you click the "my profile" link at the top.

- public_new_reply_form.pl
Page for replying to a topic.

- public_new_topic_form.pl
Page for creating a new topic.

- public_pm_form.pl
Form page for creating a new Private Message.

- public_pm_list.pl
Page that controls the way your PM lists (ignore list, buddy list, any more?) are displayed.

- public_pm_topic.pl
Page for displaying a PM that someone has sent to you.

- public_query_forum_pw.pl
If a forum is password protected, and you are not an administrator or moderator, you are shown this page and asked for the forum password.

- public_rating_list.pl
Not sure...

- public_reg_confirm.pl
Final page in the registration process that displays all the information you entered. (Adult [13+] version.)

- public_reg_confirm_kid.pl
Same as above, but for COPPA child registrations.

- public_register_page.pl
The main registration form where you enter all of your information. (Adult version.)

- public_register_page_kid.pl
Same as above, but for COPPA child registrations.

- public_rules_for_minors.pl
Shows all the forum rules if the registrant is a COPPA kid.

- public_search.pl
Page for searching the forums.

- public_search_results.pl
Page that lists the results of your search.

- public_show_email.pl
Page that shows someone else's email address when you click the "email" button in one of their posts.

- public_show_ip.pl
Page that shows the poster's IP address.

- public_topic_page.pl
Page that shows the topic thread.

- public_ubb_code_page.pl
Page that displays the UBB codes available at your forum.

- public_ubb_friend.pl
Page that shows the form for emailing a topic from the forum to a friend.

- public_user_posts.pl
Page that shows the recent posts made by a user after you've clicked that link from their profile page.

smile

---Skorpion
_________________________
Don't put that signature in your mouth! You don't know where it's been!

Top
#110237 - 03/26/01 07:29 PM Re: Template Documentation
scats Offline
scattermidget

Registered: 11/10/00
Posts: 616
Loc: Texas via France| Bonjour, y'a...
eek Wow, Skorpion, thank you! Great starting point. I had an eye on this forum for a few but needed somewhere to spring from. Thanks too Allen.

Gonna go look at some files now. laugh

Top
#110238 - 03/26/01 11:58 PM Re: Template Documentation
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Muchas gracias Skorpion that was a lotta info there... I updated the download file and added a few more from the commom.pl file. I am not sure what the rating file is myself, as I haven't seen where the wordlets it calls are in the forum.
_________________________
- Allen wavey
- What Drives You?

Top
#110239 - 03/27/01 02:08 AM Re: Template Documentation
bryan868 Offline
Member

Registered: 09/18/00
Posts: 273
- public_daily_topics.pl
page that lists topics that have been updated (posted on) for today.

- public_ratings_list.pl
Page you visit to see the full list of ratings you've given to other members.
_________________________
This is the designed behavior.

Top
#110240 - 03/27/01 03:26 PM Re: Template Documentation
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Where does that ratings page actually get found/ used? I couldn't find it.
_________________________
- Allen wavey
- What Drives You?

Top
#110241 - 03/27/01 03:47 PM Re: Template Documentation
Jamin Offline
Moderator / Template Diva

Registered: 03/04/00
Posts: 3368
Loc: College
Seems like I remember accidentally finding it a long time ago, right after v6 came out. But now I can't find it either. I dunno where it is.

---Skorpion
_________________________
Don't put that signature in your mouth! You don't know where it's been!

Top
#110242 - 03/27/01 06:52 PM Re: Template Documentation
Greg Hard Offline
Member

Registered: 02/21/00
Posts: 5533
Loc: My Room
If you rated alot of people it says:

complete list

so you click it and it shows exactly who you rated what.

Top
#110243 - 04/03/01 10:48 AM Re: Template Documentation
Screamer Offline
Junior Member

Registered: 11/06/00
Posts: 16
I just got fed up trying to fix and improve Infopop's horrible code (both Perl and HTML) for the templates.. right now, I'm writing a short script that will tell me:
  • which subroutines each file contains and
  • which variables, wordlets and URLs each of them references.
I then plan on creating a custom set of templates written completely from scratch. The result will use CSS instead of oodles of FONT tags, produce nicely formatted readable HTML, and generate a very concise and compact look.

I started out modifying the public_topic_page.pl but don't have the stamina to proofread and fix the HTML and code for every single template file, constant hitting of Refresh and looking at the resulting source anew included..

To give you an idea about the looks: top and bottom of a thread.

(Notes: The rank pictures and misc button graphics are taken from the game Total Annihilation, but since they respect the forum's style settings they will be changable to whatever you wish. The rank hack will not be included in the template; it is a real hack, not a template modification. I plan on releasing it separately as well; but I'm postponing that because I want to make it a "proper" hack including CP page to configure the ranking etc.)

[ April 03, 2001: Message edited by: Screamer ]
_________________________
perl -e 'print pack "b*",join "",map "0"x$_."1",split m||,"1121110010200310062402001010001031004101120220066111202200301065101401030101101120220021"'

Top
#110244 - 04/03/01 11:54 AM Re: Template Documentation
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Looks nice screamer, should help tremendously in download size and validation efforts.
_________________________
- Allen wavey
- What Drives You?

Top
#110245 - 04/03/01 12:56 PM Re: Template Documentation
Screamer Offline
Junior Member

Registered: 11/06/00
Posts: 16
Yep, that's what I wanted..

Anyway, here's the results: [..snip..]

Edit: I removed the very lengthy result text I had posted here. I have changed the script so that it dumps a set of HTML files documenting one template file each, including the info on each separate file posted here, and uploaded it to [..snip..]. That URL is only temporary however, it will soon go to a different server in some 12 hours or so. I will post again here when I know the new URL.

Note: I just realized the "this varilable modified here" hits are not all exact. I ran the script over my modified UBB6.01 templates so the output would be slightly different for a vanilla public_topic_page.pl.

HTH

[ April 04, 2001: Message edited by: Screamer ]
_________________________
perl -e 'print pack "b*",join "",map "0"x$_."1",split m||,"1121110010200310062402001010001031004101120220066111202200301065101401030101101120220021"'

Top
#110246 - 04/04/01 12:54 PM Re: Template Documentation
Screamer Offline
Junior Member

Registered: 11/06/00
Posts: 16
Ok - they found their final home. www.edgewalker.f2s.com/ubb6/tmpl_ref/

[ April 04, 2001: Message edited by: Screamer ]
_________________________
perl -e 'print pack "b*",join "",map "0"x$_."1",split m||,"1121110010200310062402001010001031004101120220066111202200301065101401030101101120220021"'

Top
#110247 - 04/08/01 10:41 PM Re: Template Documentation
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Looks good... I was thinking about this today. What would be a good first step would be to have the styles template page in the cp write the font stuff (size and face) to a .css file instead of the various vars files so they could be set directly from the cp. This could be expanded to include all of the css file... then remove the calls to the font tags in the public_template files like you are working on.
_________________________
- Allen wavey
- What Drives You?

Top
#110248 - 04/15/01 12:18 PM Re: Template Documentation
Screamer Offline
Junior Member

Registered: 11/06/00
Posts: 16
That sounds like an interesting idea.. personally I was aiming for inline CSS using <STYLE>. Your idea is more sophisticated, but it requires a full-blown UBB modification whereas my work does not touch anything besides the templates.
_________________________
perl -e 'print pack "b*",join "",map "0"x$_."1",split m&#0124;&#0124;,"1121110010200310062402001010001031004101120220066111202200301065101401030101101120220021"'

Top
#110249 - 04/17/01 03:13 AM Re: Template Documentation
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Sounds good to me screamer.. we could work on the modification once your work has been done... it seems to me it would be easy enuf to write a simple ubb.css file from the results of the styles update. And it would be standard in the headerinsert to reference the ubb.css file...

Would seem to make a huge difference in download speed and bandwidth... this could be the beginning of really moving forward on ubb validating to w3 standards....
_________________________
- Allen wavey
- What Drives You?

Top
#110250 - 02/26/02 09:35 PM Re: Template Documentation
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
bumping for the new members - it will need to be updated tho smile
_________________________
- Allen wavey
- What Drives You?

Top
#110251 - 02/26/02 11:24 PM Re: Template Documentation
The Wargamer Offline
Junior Member

Registered: 02/22/02
Posts: 6
Loc: Raleigh, NC
Can someone help me come up with a hack or modify the template for the daily posts summary to stick the contents that are put in the daily summary file (I wish it was actually the last x posts, rather than the newest daily ones only, which at midnight always means there's no new posts) into a flat file in addition to what it currently does, so that I can open that flat file from another script outside UBB?

It's been years since I did any serious perl coding and the code in here looks like Chinese to me right now. I'd consider a small payment if someone can do this quickly.

Please email me at kroll@wargamer.com.

Mario

Top
#110252 - 03/14/02 07:21 PM Re: Template Documentation
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Hey Allen, et al,

This is a great list; thank you so much for compiling it.

It'd also be cool to know how each template integrates with the .cgi files.

For example, how many (and what) templates does the ultimatebb.cgi file draw from?

(Psssssst ... Allen, please check your PM ... I have what I hope is a nice surprise there. laugh )
_________________________
Sue
adwoff.com

Top
#110253 - 07/31/02 11:24 AM Re: Template Documentation
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
yes it would, please submit it when done, thanks laugh

bumping for the new peeps smile
_________________________
- Allen wavey
- What Drives You?

Top
#110254 - 09/03/02 08:35 PM Re: Template Documentation
Chrimera Offline
Member

Registered: 08/01/02
Posts: 93
Loc: Michigan
another friendly bump for us Newbs that would like more smile
_________________________
New to this whole UBB thing
I have <img src="http://www.ubbdev.com/ud/?u=[IGRAINE] Chrimera&s=1" alt=" - " /> points, <img src="http://www.ubbdev.com/ud/?s=2&u=[IGRAINE] Chrimera" alt=" - " /> results and <img src="http://www.ubbdev.com/ud/?u=Chrimera, [IGRAINE] gitp4, [IGRAINE] Erondel &s=1" alt=" - " /> sub-team points.

Top
Page 1 of 3 1 2 3 >


Who's Online
0 registered (), 28 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by blaaskaak
Today at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks