[UseBB-Checkins] UseBB Changelog.txt,1.35,1.36 forum.php,1.9,1.10 topic.php,1.5,1.6 usebb.sql,1.43,1
Light and Free PHP Forum Software
Brought to you by:
pc_freak
|
From: Dietrich M. <pc_...@us...> - 2004-04-25 19:14:29
|
Update of /cvsroot/usebb/UseBB In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6078 Modified Files: Changelog.txt forum.php topic.php usebb.sql Log Message: Changes to templates, new buttons, small fixes. See Changelog.txt. Index: Changelog.txt =================================================================== RCS file: /cvsroot/usebb/UseBB/Changelog.txt,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** Changelog.txt 17 Apr 2004 16:32:10 -0000 1.35 --- Changelog.txt 25 Apr 2004 11:32:44 -0000 1.36 *************** *** 13,16 **** --- 13,17 ---- - Fixed htmlentities() problem in user signatures. - Fixed $errors array that wasn't being initialized in various files. + - Fixed guest's username length, it's now checked when posting. - Optimalizations in template.php, debug also works without </body> tag and more powerful and better output compression method. *************** *** 18,23 **** tags anymore to be parsed. - Member's avatar is now checked if it's actually an image (+ revised once). ! - Changes to CSS template: label{cursor:pointer;}. ! - Return to topic after posting can now be turned of for posting new topics too. - Valid URL checking for profile's website field. - Better registration process with terms of use accepting page. --- 19,28 ---- tags anymore to be parsed. - Member's avatar is now checked if it's actually an image (+ revised once). ! - Many changes to templates: the background color and border, the position of the ! location bar (now before the quick reply box), the table rows containing the posts ! that don't have the inner vertical border anymore, the spacing between the rank and ! avatar, the registration date, the post count, the location, the topic title above ! the post and the buttons (made by Jemo). ! - Return to topic after posting can now be turned off for posting new topics too. - Valid URL checking for profile's website field. - Better registration process with terms of use accepting page. Index: usebb.sql =================================================================== RCS file: /cvsroot/usebb/UseBB/usebb.sql,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** usebb.sql 17 Apr 2004 15:53:39 -0000 1.43 --- usebb.sql 25 Apr 2004 11:32:44 -0000 1.44 *************** *** 445,472 **** INSERT INTO usebb_templates VALUES ('normal_footer', 'default', ' <div class="linkbar">\r\n {link_bar}\r\n </div>\r\n <div class="banners">\r\n <a href="http://www.usebb.net" target="_blank"><img src="{img_dir}powered-by-usebb.gif" alt="Powered by UseBB" /></a> <a href="http://validator.w3.org/check/referer" target="_blank"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" /></a> <a href="http://jigsaw.w3.org/css-validator/" target="_blank"><img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" /></a> <a href="http://www.php.net" target="_blank"><img src="{img_dir}php-power-white.gif" alt="Powered by PHP" /></a> <a href="http://www.mysql.com" target="_blank"><img src="{img_dir}powered-by-mysql-88x31.png" alt="Powered by MySQL" /></a>\r\n </div>\r\n <div class="copyright">\r\n<!--\r\nWe request not to remove the following copyright notice including the link to the UseBB Home Page.\r\nThis shows your respect to everyone involved in UseBB\'s development and promotes the use of UseBB.\r\nIf you don\'t want to show the Copyright notice, just leave the Powered by UseBB line. If you\r\ncompletely alter or remove the notice, support at our community forums will be affected.\r\n-->\r\n {copyright}\r\n </div>\r\n \r\n </div>\r\n </div>\r\n</body>\r\n\r\n</html>'); INSERT INTO usebb_templates VALUES ('forumlist_header', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{forum}</th>\r\n <th>{topics}</th>\r\n <th>{posts}</th>\r\n <th nowrap="nowrap">{latest_post}</th>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('css', 'default', 'body {\r\n margin-top: 20px;\r\n margin-left: 20px;\r\n margin-right: 20px;\r\n background-color: #FFFFFF;\r\n }\r\nbody, td, th {\r\n font-family: verdana, sans-serif;\r\n font-size: 10pt;\r\n color: #000000;\r\n }\r\nimg {\r\n border: 0px;\r\n }\r\nform {\r\n margin: 0px;\r\n }\r\nlabel {\r\n cursor: pointer;\r\n }\r\nhr {\r\n border: 0px solid silver;\r\n border-top-width: 1px;\r\n height: 0px;\r\n }\r\n.small {\r\n font-size: 8pt;\r\n }\r\na:link, a:active, a:visited {\r\n color: #336699;\r\n text-decoration: none;\r\n }\r\na:hover {\r\n color: #7F0000;\r\n text-decoration: underline;\r\n }\r\na.administrator:link, a.administrator:active, a.administrator:visited {\r\n color: red;\r\n }\r\na.moderator:link, a.moderator:active, a.moderator:visited {\r\n color: blue;\r\n }\r\ninput, select, textarea {\r\n border: 1px solid silver;\r\n background-color: #FFFFFF;\r\n font-size: 10pt;\r\n }\r\ntextarea {\r\n font-family: verdana, sans-serif;\r\n }\r\n.main {\r\n width: 90%;\r\n }\r\n.header {\r\n border-collapse: collapse;\r\n width: 100%;\r\n margin-bottom: 10px;\r\n }\r\n.header td {\r\n padding: 0px;\r\n vertical-align: bottom;\r\n }\r\n.header td.logo {\r\n text-align: left;\r\n width: 100%;\r\n }\r\n.header td.namebox {\r\n text-align: right;\r\n }\r\n.header td.namebox .title {\r\n font-family: "trebuchet ms", sans-serif;\r\n font-size: 16pt;\r\n font-weight: bold;\r\n letter-spacing: 1px;\r\n color: #336699;\r\n border-bottom: 2px solid #ebd6ad;\r\n }\r\n.header td.namebox .descr {\r\n font-style: italic;\r\n padding-top: 2px;\r\n }\r\n.menu {\r\n border: 1px solid #336699;\r\n background-image: url({img_dir}menubg.gif);\r\n background-repeat: repeat-x;\r\n background-color: #E5E5E5;\r\n text-align: left;\r\n padding-top: 4px;\r\n padding-bottom: 4px;\r\n margin-bottom: 20px;\r\n font-size: 8pt;\r\n }\r\n.menu a {\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-top: 4px;\r\n padding-bottom: 4px;\r\n border-right: 1px solid #336699;\r\n }\r\n.menu a:hover {\r\n background-image: url({img_dir}menubg2.gif);\r\n background-repeat: repeat-x;\r\n background-color: #FFFFFF;\r\n text-decoration: none;\r\n border-right: 1px solid #336699;\r\n }\r\n.locationbar {\r\n text-align: left;\r\n margin-bottom: 20px;\r\n }\r\n.maintable {\r\n border-collapse: collapse;\r\n border-left: 1px solid #336699;\r\n border-right: 1px solid #336699;\r\n border-bottom: 2px solid #336699;\r\n width: 100%;\r\n margin-bottom: 20px;\r\n }\r\n.maintable th {\r\n color: #EBD6AD;\r\n font-weight: bold;\r\n background-color: #336699;\r\n background-image: url({img_dir}tableheadbg.gif);\r\n background-position: top;\r\n background-repeat: repeat-x;\r\n text-align: left;\r\n padding: 6px;\r\n padding-top: 3px;\r\n padding-bottom: 3px;\r\n border-left: 1px solid #336699;\r\n border-top: 1px solid #336699;\r\n }\r\n.maintable td {\r\n background-color: #EFEFEF;\r\n padding: 6px;\r\n text-align: left;\r\n border-left: 1px solid #336699;\r\n border-top: 1px solid #336699;\r\n vertical-align: middle;\r\n }\r\n.maintable td.forumcat {\r\n font-weight: bold;\r\n letter-spacing: 1px;\r\n background-image: url({img_dir}menubg.gif);\r\n background-repeat: repeat-x;\r\n background-color: #E5E5E5;\r\n }\r\n.maintable td.toolbar {\r\n background-image: url({img_dir}menubg.gif);\r\n background-repeat: repeat-x;\r\n background-color: #E5E5E5;\r\n }\r\n.maintable td.td1 {\r\n background-color: #EFEFEF;\r\n }\r\n.maintable td.td2 {\r\n background-color: #E5E5E5;\r\n }\r\n.maintable tr.post td {\r\n vertical-align: top;\r\n }\r\n.maintable td.msgboxcontent, .maintable td.confirmformcontent {\r\n padding: 18px;\r\n text-align: center;\r\n }\r\n.postlinks {\r\n float: right;\r\n font-size: 8pt;\r\n }\r\n.panelmenu {\r\n border-collapse: collapse;\r\n border-left: 1px solid #336699;\r\n border-right: 1px solid #336699;\r\n border-bottom: 1px solid #336699;\r\n margin-bottom: 20px;\r\n }\r\n.panelmenu td {\r\n background-color: #E5E5E5;\r\n padding: 5px;\r\n padding-left: 15px;\r\n padding-right: 15px;\r\n text-align: center;\r\n border-left: 1px solid #336699;\r\n border-top: 1px solid #336699;\r\n vertical-align: middle;\r\n font-size: 8pt;\r\n }\r\n.banners {\r\n text-align: center;\r\n margin-bottom: 2px;\r\n }\r\n.linkbar {\r\n color: #323232;\r\n margin-bottom: 20px;\r\n font-size: 8pt;\r\n }\r\n.copyright {\r\n color: #323232;\r\n margin-bottom: 20px;\r\n font-size: 8pt;\r\n }'); INSERT INTO usebb_templates VALUES ('panel_menu', 'default', ' <table class="panelmenu">\r\n <tbody>\r\n <tr>\r\n <td class="td2"><b>{yourpanel}</b></td>\r\n <td>{panel_home}</td>\r\n <td>{view_profile}</td>\r\n <td>{panel_profile}</td>\r\n <td>{panel_options}</td>\r\n <td>{panel_passwd}</td>\r\n </tr>\r\n </tbody>\r\n </table>'); INSERT INTO usebb_templates VALUES ('forumlist_footer', 'default', ' </tbody>\r\n </table>'); ! INSERT INTO usebb_templates VALUES ('topiclist_topic', 'default', ' <tr>\r\n <td class="td1" width="1"><img src="{img_dir}{topic_icon}" alt="{topic_status}" /></td>\r\n <td class="td1" width="100%">{topic_name}</td>\r\n <td class="td1" nowrap="nowrap"><div class="small">{author}</div></td>\r\n <td class="td2"><div align="center">{replies}</div></td>\r\n <td class="td2"><div align="center">{views}</div></td>\r\n <td class="td1" nowrap="nowrap"><div class="small">{author_date}</div></td>\r\n </tr>'); INSERT INTO usebb_templates VALUES ('profile', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{title}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{username}</td><td class="td1">{username_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{userid}</td><td class="td1">{userid_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{level}</td><td class="td1">{level_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{rank}</td><td class="td1">{rank_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{avatar}</td><td class="td1">{avatar_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{regdate}</td><td class="td1">{regdate_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{posts}</td><td class="td1">{posts_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{postsperday}</td><td class="td1">{postsperday_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{lastlogin}</td><td class="td1">{lastlogin_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{location}</td><td class="td1">{location_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{website}</td><td class="td1">{website_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{occupation}</td><td class="td1">{occupation_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{interests}</td><td class="td1">{interests_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{signature}</td><td class="td1">{signature_v}</td>\r\n </tr>\r\n <tr class="tablehead">\r\n <th colspan="2">{contact_info}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{email}</td><td class="td1">{email_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{msnm}</td><td class="td1">{msnm_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{yahoom}</td><td class="td1">{yahoom_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{aim}</td><td class="td1">{aim_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{icq}</td><td class="td1">{icq_v} {icq_status}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{jabber}</td><td class="td1">{jabber_v}</td>\r\n </tr>\r\n </tbody>\r\n </table>'); ! INSERT INTO usebb_templates VALUES ('register_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{register_form}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{user}</td>\r\n <td class="td1">{user_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{email}</td>\r\n <td class="td1">{email_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td1"><div class="small">{everything_required}</div></td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); ! INSERT INTO usebb_templates VALUES ('login_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{login}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{user}</td>\r\n <td class="td1">{user_input}<br /><div class="small">{link_reg}</div></td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{password}</td>\r\n <td class="td1">{password_input}<br /><div class="small">{link_sendpwd}</div></td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{remember}</td>\r\n <td class="td1">{remember_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); INSERT INTO usebb_templates VALUES ('msgbox', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th>{box_title}</th>\r\n </tr>\r\n <tr>\r\n <td class="msgboxcontent">{content}</td>\r\n </tr>\r\n </tbody>\r\n </table>'); ! INSERT INTO usebb_templates VALUES ('sendpwd_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{sendpwd}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{user}</td>\r\n <td class="td1">{user_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{email}</td>\r\n <td class="td1">{email_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td1"><div class="small">{everything_required}</div></td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); INSERT INTO usebb_templates VALUES ('forumlist_cat', 'default', ' <tr>\r\n <td colspan="5" class="forumcat">{cat_name}</td>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('forumlist_stats', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{stats_title}</th>\r\n </tr>\r\n <tr>\r\n <td rowspan="2" width="1"><img src="{img_dir}stats.gif" alt="{stats_title}" /></td>\r\n <td>{small_stats}<br />{newest_member}</td>\r\n </tr>\r\n <tr>\r\n <td>{users_online}<br />\r\n <div class="small">{members_online}</div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>'); INSERT INTO usebb_templates VALUES ('edit_profile', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{edit_profile}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{email}</td><td class="td1">{email_input} <span class="small">{required}</span></td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{avatar}</td><td class="td1">{avatar_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{location}</td><td class="td1">{location_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{website}</td><td class="td1">{website_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{occupation}</td><td class="td1">{occupation_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{interests}</td><td class="td1">{interests_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{signature}</td><td class="td1">{signature_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{msnm}</td><td class="td1">{msnm_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{yahoom}</td><td class="td1">{yahoom_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{aim}</td><td class="td1">{aim_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{icq}</td><td class="td1">{icq_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{jabber}</td><td class="td1">{jabber_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); ! INSERT INTO usebb_templates VALUES ('mail_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{sendemail}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{from}</td>\r\n <td class="td1">{from_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{to}</td>\r\n <td class="td1">{to_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{subject}</td>\r\n <td class="td1">{subject_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{body}</td><td class="td1">{body_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td1"><div class="small">{everything_required}</div></td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); INSERT INTO usebb_templates VALUES ('panel_sess_info', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{title}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{sess_id}</td><td class="td1">{sess_id_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{ip_addr}</td><td class="td1">{ip_addr_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{started}</td><td class="td1">{started_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{updated}</td><td class="td1">{updated_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{total_time}</td><td class="td1">{total_time_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{pages}</td><td class="td1">{pages_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{al}</td><td class="td1">{al_v}</td>\r\n </tr>\r\n </tbody>\r\n </table>'); INSERT INTO usebb_templates VALUES ('edit_options', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{edit_options}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{language}</td>\r\n <td class="td1">{language_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{template}</td>\r\n <td class="td1">{template_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{email_show}</td>\r\n <td class="td1">{email_show_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{last_login_show}</td>\r\n <td class="td1">{last_login_show_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{date_format}</td>\r\n <td class="td1">{date_format_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{timezone}</td>\r\n <td class="td1">{timezone_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{dst}</td>\r\n <td class="td1">{dst_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{quickreply}</td>\r\n <td class="td1">{quickreply_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{return_to_topic}</td>\r\n <td class="td1">{return_to_topic_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); ! INSERT INTO usebb_templates VALUES ('editpwd_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{edit_pwd}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{current_passwd}</td>\r\n <td class="td1">{current_passwd_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{new_passwd}</td>\r\n <td class="td1">{new_passwd1_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{new_passwd_again}</td>\r\n <td class="td1">{new_passwd2_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td1"><div class="small">{everything_required}</div></td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); INSERT INTO usebb_templates VALUES ('location_bar', 'default', ' <div class="locationbar">\r\n • {location_bar}\r\n </div>'); ! INSERT INTO usebb_templates VALUES ('topiclist_header', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr>\r\n <td colspan="6" class="toolbar"><div align="right">\r\n {forum_links}\r\n </div></td>\r\n </tr>\r\n <tr class="tablehead">\r\n <th colspan="2" width="100%">{topic}</th>\r\n <th>{author}</th>\r\n <th>{replies}</th>\r\n <th>{views}</th>\r\n <th nowrap="nowrap">{latest_post}</th>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('forumlist_forum', 'default', ' <tr>\r\n <td class="td1"><img src="{img_dir}{forum_icon}" alt="{forum_status}" /></td>\r\n <td class="td1" width="100%">{forum_name}<br /><div class="small">{forum_descr}</div></td>\r\n <td class="td2"><div align="center">{total_topics}</div></td>\r\n <td class="td2"><div align="center">{total_posts}</div></td>\r\n <td class="td1" nowrap="nowrap"><div class="small">{latest_post}<br />{author_date}</div></td>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('topiclist_footer', 'default', ' <tr>\r\n <td colspan="6" class="toolbar"><div align="right">\r\n {forum_links}\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td colspan="6" class="td2">\r\n <div class="small">{forum_moderators}</div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>'); INSERT INTO usebb_templates VALUES ('confirm_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th>{title}</th>\r\n </tr>\r\n <tr>\r\n <td class="confirmformcontent">{content}</td>\r\n </tr>\r\n <tr>\r\n <td class="td2"><div align="center">{submit_button} {cancel_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); ! INSERT INTO usebb_templates VALUES ('topic_header', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr>\r\n <td colspan="2" class="toolbar"><div align="right">\r\n {topic_links}\r\n </div></td>\r\n </tr>\r\n <tr class="tablehead">\r\n <th>{author}</th>\r\n <th>{post}</th>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('topic_post', 'default', ' <tr class="post">\r\n <td class="td{colornum}" width="15%">\r\n {poster_name}\r\n <div class="small">\r\n {poster_rank}<br />\r\n {poster_avatar}\r\n </div>\r\n </td>\r\n <td class="td{colornum}">\r\n <div class="postlinks">{post_links}</div>\r\n <div class="small">{post_anchor} - {post_date}</div>\r\n <hr />{post_content}\r\n </td>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('topic_footer', 'default', ' <tr>\r\n <td colspan="2" class="toolbar"><div align="right">\r\n {topic_links}\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2">\r\n <div class="small">{action_links}</div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>'); INSERT INTO usebb_templates VALUES ('post_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{post_title}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{username}</td><td class="td1">{username_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{subject}</td><td class="td1">{subject_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{content}</td><td class="td1">{content_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{options}</td><td class="td1">{options_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); INSERT INTO usebb_templates VALUES ('quick_reply', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{quick_reply}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{username}</td><td class="td1">{username_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{content}</td><td class="td1">{content_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); --- 445,472 ---- INSERT INTO usebb_templates VALUES ('normal_footer', 'default', ' <div class="linkbar">\r\n {link_bar}\r\n </div>\r\n <div class="banners">\r\n <a href="http://www.usebb.net" target="_blank"><img src="{img_dir}powered-by-usebb.gif" alt="Powered by UseBB" /></a> <a href="http://validator.w3.org/check/referer" target="_blank"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" /></a> <a href="http://jigsaw.w3.org/css-validator/" target="_blank"><img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" /></a> <a href="http://www.php.net" target="_blank"><img src="{img_dir}php-power-white.gif" alt="Powered by PHP" /></a> <a href="http://www.mysql.com" target="_blank"><img src="{img_dir}powered-by-mysql-88x31.png" alt="Powered by MySQL" /></a>\r\n </div>\r\n <div class="copyright">\r\n<!--\r\nWe request not to remove the following copyright notice including the link to the UseBB Home Page.\r\nThis shows your respect to everyone involved in UseBB\'s development and promotes the use of UseBB.\r\nIf you don\'t want to show the Copyright notice, just leave the Powered by UseBB line. If you\r\ncompletely alter or remove the notice, support at our community forums will be affected.\r\n-->\r\n {copyright}\r\n </div>\r\n \r\n </div>\r\n </div>\r\n</body>\r\n\r\n</html>'); INSERT INTO usebb_templates VALUES ('forumlist_header', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{forum}</th>\r\n <th>{topics}</th>\r\n <th>{posts}</th>\r\n <th nowrap="nowrap">{latest_post}</th>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('css', 'default', 'body {\r\n margin: 0px;\r\n padding: 0px;\r\n background-color: #EFEFEF;\r\n }\r\nbody, td, th {\r\n font-family: verdana, sans-serif;\r\n font-size: 10pt;\r\n color: #000000;\r\n }\r\nimg {\r\n border: 0px;\r\n }\r\nform {\r\n margin: 0px;\r\n }\r\nlabel {\r\n cursor: pointer;\r\n }\r\nhr {\r\n border: 0px solid silver;\r\n border-top-width: 1px;\r\n height: 0px;\r\n }\r\nsmall, .small {\r\n font-size: 8pt;\r\n }\r\na:link, a:active, a:visited {\r\n color: #336699;\r\n text-decoration: none;\r\n }\r\na:hover {\r\n color: #7F0000;\r\n text-decoration: underline;\r\n }\r\na.administrator:link, a.administrator:active, a.administrator:visited {\r\n color: red;\r\n }\r\na.moderator:link, a.moderator:active, a.moderator:visited {\r\n color: blue;\r\n }\r\ninput, select, textarea {\r\n border: 1px solid silver;\r\n background-color: #FFFFFF;\r\n font-size: 10pt;\r\n }\r\ntextarea {\r\n font-family: verdana, sans-serif;\r\n }\r\n.main {\r\n width: 85%;\r\n padding: 20px;\r\n margin-top: 20px;\r\n margin-bottom: 20px;\r\n background-color: #FFFFFF;\r\n border-left: 1px solid #E5E5E5;\r\n border-right: 1px solid #E5E5E5;\r\n border-top: 5px solid #E5E5E5;\r\n border-bottom: 5px solid #E5E5E5;\r\n }\r\n.header {\r\n border-collapse: collapse;\r\n width: 100%;\r\n margin-bottom: 10px;\r\n }\r\n.header td {\r\n padding: 0px;\r\n vertical-align: bottom;\r\n }\r\n.header td.logo {\r\n text-align: left;\r\n width: 100%;\r\n }\r\n.header td.namebox {\r\n text-align: right;\r\n }\r\n.header td.namebox .title {\r\n font-family: "trebuchet ms", sans-serif;\r\n font-size: 16pt;\r\n font-weight: bold;\r\n letter-spacing: 1px;\r\n color: #336699;\r\n border-bottom: 2px solid #ebd6ad;\r\n }\r\n.header td.namebox .descr {\r\n font-style: italic;\r\n padding-top: 2px;\r\n }\r\n.menu {\r\n border: 1px solid #336699;\r\n background-image: url({img_dir}menubg.gif);\r\n background-repeat: repeat-x;\r\n background-color: #E5E5E5;\r\n text-align: left;\r\n padding-top: 4px;\r\n padding-bottom: 4px;\r\n margin-bottom: 20px;\r\n font-size: 8pt;\r\n }\r\n.menu a {\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-top: 4px;\r\n padding-bottom: 4px;\r\n border-right: 1px solid #336699;\r\n }\r\n.menu a:hover {\r\n background-image: url({img_dir}menubg2.gif);\r\n background-repeat: repeat-x;\r\n background-color: #FFFFFF;\r\n text-decoration: none;\r\n border-right: 1px solid #336699;\r\n }\r\n.locationbar {\r\n text-align: left;\r\n margin-bottom: 20px;\r\n }\r\n.maintable {\r\n border-collapse: collapse;\r\n border-left: 1px solid #336699;\r\n border-right: 1px solid #336699;\r\n border-bottom: 2px solid #336699;\r\n width: 100%;\r\n margin-bottom: 20px;\r\n }\r\n.maintable th {\r\n color: #EBD6AD;\r\n font-weight: bold;\r\n background-color: #336699;\r\n background-image: url({img_dir}tableheadbg.gif);\r\n background-position: top;\r\n background-repeat: repeat-x;\r\n text-align: left;\r\n padding: 6px;\r\n padding-top: 3px;\r\n padding-bottom: 3px;\r\n border-left: 1px solid #336699;\r\n border-top: 1px solid #336699;\r\n }\r\n.maintable td {\r\n background-color: #EFEFEF;\r\n padding: 6px;\r\n text-align: left;\r\n border-left: 1px solid #336699;\r\n border-top: 1px solid #336699;\r\n vertical-align: middle;\r\n }\r\n.maintable td.forumcat {\r\n font-weight: bold;\r\n letter-spacing: 1px;\r\n background-image: url({img_dir}menubg.gif);\r\n background-repeat: repeat-x;\r\n background-color: #E5E5E5;\r\n }\r\n.maintable td.toolbar {\r\n background-image: url({img_dir}menubg.gif);\r\n background-repeat: repeat-x;\r\n background-color: #E5E5E5;\r\n }\r\n.maintable td.toolbar img {\r\n margin-left: 5px;\r\n }\r\n.maintable td.td1 {\r\n background-color: #EFEFEF;\r\n }\r\n.maintable td.td2 {\r\n background-color: #E5E5E5;\r\n }\r\n.maintable tr.post {\r\n border-left: 1px solid #336699;\r\n }\r\n.maintable tr.post td {\r\n vertical-align: top;\r\n border-left: 0px;\r\n }\r\n.maintable td.msgboxcontent, .maintable td.confirmformcontent {\r\n padding: 18px;\r\n text-align: center;\r\n }\r\n.avatar {\r\n margin-top: 10px;\r\n }\r\n.avatar img {\r\n margin-bottom: 10px;\r\n }\r\n.postlinks {\r\n float: right;\r\n font-size: 8pt;\r\n }\r\n.postcontent {\r\n padding-top: 6px;\r\n padding-bottom: 6px;\r\n overflow: auto;\r\n }\r\n.panelmenu {\r\n border-collapse: collapse;\r\n border-left: 1px solid #336699;\r\n border-right: 1px solid #336699;\r\n border-bottom: 1px solid #336699;\r\n margin-bottom: 20px;\r\n }\r\n.panelmenu td {\r\n background-color: #E5E5E5;\r\n padding: 5px;\r\n padding-left: 15px;\r\n padding-right: 15px;\r\n text-align: center;\r\n border-left: 1px solid #336699;\r\n border-top: 1px solid #336699;\r\n vertical-align: middle;\r\n font-size: 8pt;\r\n }\r\n.banners {\r\n text-align: center;\r\n margin-bottom: 2px;\r\n }\r\n.linkbar {\r\n color: #323232;\r\n margin-bottom: 20px;\r\n font-size: 8pt;\r\n }\r\n.copyright {\r\n color: #323232;\r\n font-size: 8pt;\r\n }'); INSERT INTO usebb_templates VALUES ('panel_menu', 'default', ' <table class="panelmenu">\r\n <tbody>\r\n <tr>\r\n <td class="td2"><b>{yourpanel}</b></td>\r\n <td>{panel_home}</td>\r\n <td>{view_profile}</td>\r\n <td>{panel_profile}</td>\r\n <td>{panel_options}</td>\r\n <td>{panel_passwd}</td>\r\n </tr>\r\n </tbody>\r\n </table>'); INSERT INTO usebb_templates VALUES ('forumlist_footer', 'default', ' </tbody>\r\n </table>'); ! INSERT INTO usebb_templates VALUES ('topiclist_topic', 'default', ' <tr>\r\n <td class="td1" width="1"><img src="{img_dir}{topic_icon}" alt="{topic_status}" /></td>\r\n <td class="td1" width="100%">{topic_name}</td>\r\n <td class="td1" nowrap="nowrap"><div align="center"><small>{author}</small></div></td>\r\n <td class="td2"><div align="center">{replies}</div></td>\r\n <td class="td2"><div align="center">{views}</div></td>\r\n <td class="td1" nowrap="nowrap"><small>{author_date}</small></td>\r\n </tr>'); INSERT INTO usebb_templates VALUES ('profile', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{title}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{username}</td><td class="td1">{username_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{userid}</td><td class="td1">{userid_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{level}</td><td class="td1">{level_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{rank}</td><td class="td1">{rank_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{avatar}</td><td class="td1">{avatar_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{regdate}</td><td class="td1">{regdate_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{posts}</td><td class="td1">{posts_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{postsperday}</td><td class="td1">{postsperday_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{lastlogin}</td><td class="td1">{lastlogin_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{location}</td><td class="td1">{location_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{website}</td><td class="td1">{website_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{occupation}</td><td class="td1">{occupation_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{interests}</td><td class="td1">{interests_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{signature}</td><td class="td1">{signature_v}</td>\r\n </tr>\r\n <tr class="tablehead">\r\n <th colspan="2">{contact_info}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{email}</td><td class="td1">{email_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{msnm}</td><td class="td1">{msnm_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{yahoom}</td><td class="td1">{yahoom_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{aim}</td><td class="td1">{aim_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{icq}</td><td class="td1">{icq_v} {icq_status}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{jabber}</td><td class="td1">{jabber_v}</td>\r\n </tr>\r\n </tbody>\r\n </table>'); ! INSERT INTO usebb_templates VALUES ('register_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{register_form}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{user}</td>\r\n <td class="td1">{user_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{email}</td>\r\n <td class="td1">{email_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td1"><small>{everything_required}</small></td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); ! INSERT INTO usebb_templates VALUES ('login_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{login}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{user}</td>\r\n <td class="td1">{user_input}<br /><small>{link_reg}</small></td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{password}</td>\r\n <td class="td1">{password_input}<br /><small>{link_sendpwd}</small></td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{remember}</td>\r\n <td class="td1">{remember_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); INSERT INTO usebb_templates VALUES ('msgbox', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th>{box_title}</th>\r\n </tr>\r\n <tr>\r\n <td class="msgboxcontent">{content}</td>\r\n </tr>\r\n </tbody>\r\n </table>'); ! INSERT INTO usebb_templates VALUES ('sendpwd_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{sendpwd}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{user}</td>\r\n <td class="td1">{user_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{email}</td>\r\n <td class="td1">{email_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td1"><small>{everything_required}</small></td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); INSERT INTO usebb_templates VALUES ('forumlist_cat', 'default', ' <tr>\r\n <td colspan="5" class="forumcat">{cat_name}</td>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('forumlist_stats', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{stats_title}</th>\r\n </tr>\r\n <tr>\r\n <td rowspan="2" width="1"><img src="{img_dir}stats.gif" alt="{stats_title}" /></td>\r\n <td>{small_stats}<br />{newest_member}</td>\r\n </tr>\r\n <tr>\r\n <td>{users_online}<br />\r\n <small>{members_online}</small>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>'); INSERT INTO usebb_templates VALUES ('edit_profile', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{edit_profile}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{email}</td><td class="td1">{email_input} <span class="small">{required}</span></td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{avatar}</td><td class="td1">{avatar_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{location}</td><td class="td1">{location_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{website}</td><td class="td1">{website_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{occupation}</td><td class="td1">{occupation_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{interests}</td><td class="td1">{interests_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{signature}</td><td class="td1">{signature_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{msnm}</td><td class="td1">{msnm_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{yahoom}</td><td class="td1">{yahoom_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{aim}</td><td class="td1">{aim_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{icq}</td><td class="td1">{icq_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{jabber}</td><td class="td1">{jabber_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); ! INSERT INTO usebb_templates VALUES ('mail_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{sendemail}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{from}</td>\r\n <td class="td1">{from_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{to}</td>\r\n <td class="td1">{to_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{subject}</td>\r\n <td class="td1">{subject_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{body}</td><td class="td1">{body_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td1"><small>{everything_required}</small></td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); INSERT INTO usebb_templates VALUES ('panel_sess_info', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{title}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{sess_id}</td><td class="td1">{sess_id_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{ip_addr}</td><td class="td1">{ip_addr_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{started}</td><td class="td1">{started_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{updated}</td><td class="td1">{updated_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{total_time}</td><td class="td1">{total_time_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{pages}</td><td class="td1">{pages_v}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{al}</td><td class="td1">{al_v}</td>\r\n </tr>\r\n </tbody>\r\n </table>'); INSERT INTO usebb_templates VALUES ('edit_options', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{edit_options}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{language}</td>\r\n <td class="td1">{language_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{template}</td>\r\n <td class="td1">{template_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{email_show}</td>\r\n <td class="td1">{email_show_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{last_login_show}</td>\r\n <td class="td1">{last_login_show_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{date_format}</td>\r\n <td class="td1">{date_format_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{timezone}</td>\r\n <td class="td1">{timezone_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{dst}</td>\r\n <td class="td1">{dst_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{quickreply}</td>\r\n <td class="td1">{quickreply_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{return_to_topic}</td>\r\n <td class="td1">{return_to_topic_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); ! INSERT INTO usebb_templates VALUES ('editpwd_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{edit_pwd}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{current_passwd}</td>\r\n <td class="td1">{current_passwd_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{new_passwd}</td>\r\n <td class="td1">{new_passwd1_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{new_passwd_again}</td>\r\n <td class="td1">{new_passwd2_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td1"><small>{everything_required}</small></td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); INSERT INTO usebb_templates VALUES ('location_bar', 'default', ' <div class="locationbar">\r\n • {location_bar}\r\n </div>'); ! INSERT INTO usebb_templates VALUES ('topiclist_header', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr>\r\n <td colspan="6" class="toolbar"><div align="right">\r\n {new_topic_link}\r\n </div></td>\r\n </tr>\r\n <tr class="tablehead">\r\n <th colspan="2" width="100%">{topic}</th>\r\n <th>{author}</th>\r\n <th>{replies}</th>\r\n <th>{views}</th>\r\n <th nowrap="nowrap">{latest_post}</th>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('forumlist_forum', 'default', ' <tr>\r\n <td class="td1"><img src="{img_dir}{forum_icon}" alt="{forum_status}" /></td>\r\n <td class="td1" width="100%">{forum_name}<br /><small>{forum_descr}</small></td>\r\n <td class="td2"><div align="center">{total_topics}</div></td>\r\n <td class="td2"><div align="center">{total_posts}</div></td>\r\n <td class="td1" nowrap="nowrap"><small>{latest_post}<br />{author_date}</small></td>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('topiclist_footer', 'default', ' <tr>\r\n <td colspan="6" class="toolbar"><div align="right">\r\n {new_topic_link}\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td colspan="6" class="td2">\r\n <small>{forum_moderators}</small>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>'); INSERT INTO usebb_templates VALUES ('confirm_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th>{title}</th>\r\n </tr>\r\n <tr>\r\n <td class="confirmformcontent">{content}</td>\r\n </tr>\r\n <tr>\r\n <td class="td2"><div align="center">{submit_button} {cancel_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); ! INSERT INTO usebb_templates VALUES ('topic_header', 'default', ' <table class="maintable">\r\n <tbody>\r\n <tr>\r\n <td colspan="2" class="toolbar"><div align="right">\r\n {new_topic_link}{reply_link}\r\n </div></td>\r\n </tr>\r\n <tr class="tablehead">\r\n <th>{author}</th>\r\n <th>{post}</th>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('topic_post', 'default', ' <tr class="post">\r\n <td class="td{colornum}" width="15%">\r\n {poster_name}<br />\r\n <small>{poster_rank}</small>\r\n <div class="avatar">{poster_avatar}</div>\r\n <small>{registered}<br />{posts}<br />{location}</small>\r\n </td>\r\n <td class="td{colornum}">\r\n <div class="postlinks">{post_links}</div>\r\n {post_anchor} - {topic_title}<br /><small>{post_date}</small>\r\n <hr /><div class="postcontent">{post_content}</div>{poster_sig}\r\n </td>\r\n </tr>'); ! INSERT INTO usebb_templates VALUES ('topic_footer', 'default', ' <tr>\r\n <td colspan="2" class="toolbar"><div align="right">\r\n {new_topic_link}{reply_link}\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2">\r\n <small>{action_links}</small>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>'); INSERT INTO usebb_templates VALUES ('post_form', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{post_title}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{username}</td><td class="td1">{username_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{subject}</td><td class="td1">{subject_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{content}</td><td class="td1">{content_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{options}</td><td class="td1">{options_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); INSERT INTO usebb_templates VALUES ('quick_reply', 'default', ' {form_begin}\r\n <table class="maintable">\r\n <tbody>\r\n <tr class="tablehead">\r\n <th colspan="2">{quick_reply}</th>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{username}</td><td class="td1">{username_input}</td>\r\n </tr>\r\n <tr>\r\n <td width="25%" class="td2">{content}</td><td class="td1">{content_input}</td>\r\n </tr>\r\n <tr>\r\n <td colspan="2" class="td2"><div align="center">{submit_button} {reset_button}</div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n {form_end}'); *************** *** 495,503 **** INSERT INTO usebb_templates_config VALUES ('open_nonewposts_icon', 'default', 'open_nonewposts.gif'); INSERT INTO usebb_templates_config VALUES ('closed_nonewposts_icon', 'default', 'closed_nonewposts.gif'); ! INSERT INTO usebb_templates_config VALUES ('location_arrow', 'default', '>'); INSERT INTO usebb_templates_config VALUES ('sig_format', 'default', '<hr /><div class="small">%s</div>'); - INSERT INTO usebb_templates_config VALUES ('textarea_rows', 'default', '10'); - INSERT INTO usebb_templates_config VALUES ('textarea_cols', 'default', '60'); INSERT INTO usebb_templates_config VALUES ('quick_reply_textarea_rows', 'default', '5'); # -------------------------------------------------------- --- 495,508 ---- INSERT INTO usebb_templates_config VALUES ('open_nonewposts_icon', 'default', 'open_nonewposts.gif'); INSERT INTO usebb_templates_config VALUES ('closed_nonewposts_icon', 'default', 'closed_nonewposts.gif'); ! INSERT INTO usebb_templates_config VALUES ('location_arrow', 'default', '<small>»</small>'); INSERT INTO usebb_templates_config VALUES ('sig_format', 'default', '<hr /><div class="small">%s</div>'); INSERT INTO usebb_templates_config VALUES ('quick_reply_textarea_rows', 'default', '5'); + INSERT INTO usebb_templates_config VALUES ('textarea_cols', 'default', '60'); + INSERT INTO usebb_templates_config VALUES ('textarea_rows', 'default', '10'); + INSERT INTO usebb_templates_config VALUES ('new_topic_icon', 'default', 'newtopic.gif'); + INSERT INTO usebb_templates_config VALUES ('reply_icon', 'default', 'reply.gif'); + INSERT INTO usebb_templates_config VALUES ('edit_icon', 'default', 'edit.gif'); + INSERT INTO usebb_templates_config VALUES ('delete_icon', 'default', 'delete.gif'); + INSERT INTO usebb_templates_config VALUES ('quote_icon', 'default', 'quote.gif'); # -------------------------------------------------------- Index: forum.php =================================================================== RCS file: /cvsroot/usebb/UseBB/forum.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** forum.php 14 Apr 2004 11:48:40 -0000 1.9 --- forum.php 25 Apr 2004 11:32:44 -0000 1.10 *************** *** 84,91 **** )); ! // ! // Posting links ! // ! $forum_links = ( $forumdata['status'] ) ? '<a href="'.$functions->make_url('post.php', array('forum' => $_GET['id'])).'">'.$lang['PostNewTopic'].'</a>' : '<a href="'.$functions->make_url('post.php', array('forum' => $_GET['id'])).'">'.$lang['ForumIsLocked'].'</a>'; // --- 84,88 ---- )); ! $new_topic_link = ( $functions->auth($forumdata['auth'], 'post', $_GET['id']) && ( $forumdata['status'] || $functions->get_user_level() == 3 ) ) ? '<a href="'.$functions->make_url('post.php', array('forum' => $_GET['id'])).'"><img src="gfx/'.$functions->get_config('template').'/'.$functions->get_config('language').'/'.$template->get_config('new_topic_icon').'" alt="'.$lang['PostNewTopic'].'" /></a>' : ''; // *************** *** 93,102 **** // $template->parse('topiclist_header', array( 'topic' => $lang['Topic'], 'author' => $lang['Author'], 'replies' => $lang['Replies'], 'views' => $lang['Views'], ! 'latest_post' => $lang['LatestPost'], ! 'forum_links' => $forum_links )); --- 90,99 ---- // $template->parse('topiclist_header', array( + 'new_topic_link' => $new_topic_link, 'topic' => $lang['Topic'], 'author' => $lang['Author'], 'replies' => $lang['Replies'], 'views' => $lang['Views'], ! 'latest_post' => $lang['LatestPost'] )); *************** *** 179,183 **** $template->parse('topiclist_footer', array( ! 'forum_links' => $forum_links, 'forum_moderators' => sprintf($lang['ModeratorsInThisForum'], $forum_moderators) )); --- 176,180 ---- $template->parse('topiclist_footer', array( ! 'new_topic_link' => $new_topic_link, 'forum_moderators' => sprintf($lang['ModeratorsInThisForum'], $forum_moderators) )); Index: topic.php =================================================================== RCS file: /cvsroot/usebb/UseBB/topic.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** topic.php 12 Apr 2004 08:20:00 -0000 1.5 --- topic.php 25 Apr 2004 11:32:44 -0000 1.6 *************** *** 130,143 **** // Get all the posts in one query // ! if ( !($result = $db->query("SELECT p.id, p.poster_id, p.poster_guest, p.poster_ip_addr, p.content, p.post_time, p.enable_bbcode, p.enable_smilies, p.enable_sig, p.enable_html, u.name AS poster_name, u.level AS poster_level, u.rank, u.avatar_type, u.avatar_remote, u.signature FROM ( ".TABLE_PREFIX."posts p LEFT JOIN ".TABLE_PREFIX."users u ON p.poster_id = u.id ) WHERE p.topic_id = ".$_GET['id']." ORDER BY p.post_time ASC")) ) $functions->usebb_die('SQL', 'Unable to get posts in topic!', __FILE__, __LINE__); ! // ! // Topic links for posting new topics and replying ! // ! $topic_links = array(); ! $topic_links[] = ( $topicdata['forum_status'] ) ? '<a href="'.$functions->make_url('post.php', array('forum' => $topicdata['forum_id'])).'">'.$lang['PostNewTopic'].'</a>' : '<a href="'.$functions->make_url('post.php', array('forum' => $topicdata['forum_id'])).'">'.$lang['ForumIsLocked'].'</a>'; ! $topic_links[] = ( !$topicdata['status_locked'] ) ? '<a href="'.$functions->make_url('post.php', array('topic' => $_GET['id'])).'">'.$lang['PostReply'].'</a>' : '<a href="'.$functions->make_url('post.php', array('topic' => $_GET['id'])).'">'.$lang['TopicIsLocked'].'</a>'; ! $topic_links = join(' '.$template->get_config('item_delimiter').' ', $topic_links); // --- 130,139 ---- // Get all the posts in one query // ! if ( !($result = $db->query("SELECT p.id, p.poster_id, p.poster_guest, p.poster_ip_addr, p.content, p.post_time, p.enable_bbcode, p.enable_smilies, p.enable_sig, p.enable_html, u.name AS poster_name, u.level AS poster_level, u.rank, u.avatar_type, u.avatar_remote, u.posts, u.regdate, u.location, u.signature FROM ( ".TABLE_PREFIX."posts p LEFT JOIN ".TABLE_PREFIX."users u ON p.poster_id = u.id ) WHERE p.topic_id = ".$_GET['id']." ORDER BY p.post_time ASC")) ) $functions->usebb_die('SQL', 'Unable to get posts in topic!', __FILE__, __LINE__); ! $new_topic_link = ( $functions->auth($topicdata['auth'], 'post', $topicdata['forum_id']) && ( $topicdata['forum_status'] || $functions->get_user_level() == 3 ) ) ? '<a href="'.$functions->make_url('post.php', array('forum' => $topicdata['forum_id'])).'"><img src="gfx/'.$functions->get_config('template').'/'.$functions->get_config('language').'/'.$template->get_config('new_topic_icon').'" alt="'.$lang['PostNewTopic'].'" /></a>' : ''; ! ! $reply_link = ( ( !$topicdata['status_locked'] || $functions->auth($topicdata['auth'], 'lock', $topicdata['forum_id']) ) && ( $topicdata['forum_status'] || $functions->get_user_level() == 3 ) && $functions->auth($topicdata['auth'], 'reply', $topicdata['forum_id']) ) ? '<a href="'.$functions->make_url('post.php', array('topic' => $_GET['id'])).'"><img src="gfx/'.$functions->get_config('template').'/'.$functions->get_config('language').'/'.$template->get_config('reply_icon').'" alt="'.$lang['PostReply'].'" /></a>' : ''; // *************** *** 147,151 **** 'author' => $lang['Author'], 'post' => $lang['Post'], ! 'topic_links' => $topic_links )); --- 143,148 ---- 'author' => $lang['Author'], 'post' => $lang['Post'], ! 'new_topic_link' => $new_topic_link, ! 'reply_link' => $reply_link )); *************** *** 156,165 **** // $colornum = ( !isset($colornum) || $colornum !== 1 ) ? 1 : 2; // // This poster was logged in // ! if ( !empty($postsdata['poster_name']) ) { // --- 153,170 ---- // + // + // Used for switching colors in template + // $colornum = ( !isset($colornum) || $colornum !== 1 ) ? 1 : 2; // + // Post count + // + $i = ( !isset($i) ) ? 1 : $i+1; + + // // This poster was logged in // ! if ( !empty($postsdata['poster_id']) ) { // *************** *** 213,216 **** --- 218,225 ---- } + + $topic_title = ( $i > 1 ) ? $lang['Re'].' ' : ''; + $topic_title .= htmlentities(stripslashes($topicdata['topic_title'])); + // // Links used to control posts: quote, edit, delete... *************** *** 218,239 **** $post_links = array(); if ( $session->sess_info['user_id'] && $postsdata['poster_id'] == $session->sess_info['user_id'] || $functions->auth($topicdata['auth'], 'edit', $topicdata['forum_id']) ) ! $post_links[] = '<a href="'.$functions->make_url('edit.php', array('post' => $postsdata['id'])).'">'.$lang['Edit'].'</a>'; if ( $functions->auth($topicdata['auth'], 'delete', $topicdata['forum_id']) ) ! $post_links[] = '<a href="'.$functions->make_url('edit.php', array('post' => $postsdata['id'], 'act' => 'delete')).'">'.$lang['Delete'].'</a>'; ! $post_links[] = '<a href="'.$functions->make_url('post.php', array('topic' => $_GET['id'], 'quotepost' => $postsdata['id'])).'">'.$lang['Quote'].'</a>'; ! $post_links = join(' '.$template->get_config('item_delimiter').' ', $post_links); ! ! // ! // Make the post content ! // Add the signature if needed ! // ! $post_content = $functions->markup(stripslashes($postsdata['content']), $postsdata['enable_bbcode'], $postsdata['enable_smilies'], $postsdata['enable_html']); ! if ( !empty($postsdata['signature']) && $postsdata['enable_sig'] ) ! $post_content .= sprintf($template->get_config('sig_format'), $functions->markup(stripslashes($postsdata['signature']), $functions->get_config('sig_allow_bbcode'), $functions->get_config('sig_allow_smilies'))); ! ! // ! // Used for switching colors in template ! // ! $i = ( !isset($i) ) ? 1 : $i+1; // --- 227,239 ---- $post_links = array(); if ( $session->sess_info['user_id'] && $postsdata['poster_id'] == $session->sess_info['user_id'] || $functions->auth($topicdata['auth'], 'edit', $topicdata['forum_id']) ) ! $post_links[] = '<a href="'.$functions->make_url('edit.php', array('post' => $postsdata['id'])).'"><img src="gfx/'.$functions->get_config('template').'/'.$functions->get_config('language').'/'.$template->get_config('edit_icon').'" alt="'.$lang['Edit'].'" /></a>'; if ( $functions->auth($topicdata['auth'], 'delete', $topicda... [truncated message content] |