Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added 'List' - fully expanded forum list to ACP #10

Merged
merged 114 commits into from

2 participants

@jhl-verona

I have added the code which displays a fully expanded Forum list. The forum used, from Arca di Legno has three levels:
+category
++forum
++category
+++forum

This works with the default template and proSilver blue, but needs work in mobile, to differentiate categories from forums, and possibly indent the sub-forums.

John leach added some commits
John leach Added option for full forum list 009a26f
John leach Modified spacing td widths for full forum list b05da2a
John leach Updated Ajax chat
Rewritten Javascript to use the jQuery library
Added json file format
Added automatic logout when leaving page
Added users signature to reduce data flow (like lastID but for online users)
Automatic read after add - improves response after user sends a message
Extracted HTML generation code to a separate file to ease template modification
Changed the DB storage to be congruent with posts, now stored as bbcode and parsed when read
Moved the notify.wav file from root to the default template
6cc062a
John leach Using functionality check (PHP) to decide response type json or xml
Changed script tag commenting to latest 'best practice'
Cleaned up the Javascript syntax typeof as operator, check for own property, and so on.
231ba77
John leach Fixed sid mistake (forgot about the cookies) and reduced the session …
…timeout to twice the update refresh rate - some browsers don't send onunload when the browser is closed
e7cce88
John leach Fixed zero value parameter problem - could not switch off the flag eafdd21
John leach Added information to allow CSS positioning of the thumbnail and Highs…
…lide display of the full sized image
e2e9b27
John leach Fixed authorisation view problem and added the forum id 8d3f85e
John leach Added image upload explanations, and attachment label 9e7ac1b
John leach Added parameters for Ajax callbacks in the archive page 6abee98
John leach Added jpeg to the filetypes to match the explanation text 4f2f79b
John leach Added information to allow CSS positioning of the thumbnail 4957b4f
John leach Added information to allow CSS positioning of the thumbnail. Copied p…
…arameters into the details iterator.
999560a
John leach Copied parameters into the details iterator. Removed H_ prefixed para…
…meter names to match the other iterators.
e3972f1
John leach Added information to allow CSS positioning of the thumbnail. Copied p…
…arameters into the details iterator.
f0d773c
John leach Added information to allow CSS positioning of the thumbnail. Added S_…
…NO_PICS flag for easier template adjustments.
63f2596
John leach Added alt and title to the attachments image button. cc470f0
John leach Removed various UTF-8 related calls. Restored original positioning of…
… the action code. Fixed table dimensions and generated CSS code.
b742bdf
John leach Added UTF-8 aware code to the rainbow and gradient functions, which w…
…ere munging UTF-8 encoded text.
96684a9
John leach Removed trailing whitespace and removed user ID ref in chat button image 2ad40cb
John leach Now using multiples of the shoutbox refresh time to remove outdated s…
…ession information - improves online user list feedback
b135741
John leach Fixed DISPLAY_MODE problem. dc8dad9
John leach Added 'clean' UTF-8 aware HTML truncation function 37d9ec6
John leach Added ALIAS keyword. Allows iterators to be renamed so that INCLUDEd …
…templates can iterate differently named iterators and their data in a single file. Reduces template code duplication.
2954212
John leach Copied parameters into the details iterator. Expanded user defined fi…
…eld data so that the template can 'paint' the HTML.
1b5aa05
John leach Added XS_HAS_... flags to improve template construction. ce693e0
John leach Added S_NO_PICS flag and thumbnail information to improve template de…
…sign.
159f44d
John leach Added code to improve the page title, and create a 'standard' comment…
… editor as per private messages and postings.
2fdeca5
John leach Added full_page_generation call. 2c1a11d
John leach Added thumbnail size to template data. 29dc988
John leach Added flag to improve the distinction between normal and nuff imaging…
… display. Added CSS class for image navigation. Added thumbnail and full size image information for CSS image display.
9dab480
John leach Changed variable name $auth to $auth_user due to collision 992e9a8
John leach Added L_CALENDAR_START_DATE to template data. f0674b2
John leach Added user zebra block. 27a3ca2
John leach Added ellipsis for missing subject text, otherwise the edit link does…
… not appear.
ae9b32b
John leach Added language parameter so that the Google page talks the same langu…
…age as the site/user preference.
0887bf9
John leach Added thumbnail size information to the template data for CSS display. 0aecbd0
John leach Added SQL data to colorize the user. Added flag when first topic edit…
…ing. Added flag to distinguish between private message editing and topic editing.
a6ade95
John leach Added Read Message label. Fixed preview subject error. Added Private …
…message flag.
8827347
John leach Added SQL code when a specific category or forum is selected (via use…
…r profile when admin). Now using HTML truncation function to truncate message data.
8ebf88c
John leach Removed <br /> output as this should be done in the template. 79f518a
John leach Added jpeg to the file extensions list to match the explanation text.…
… Added the maximum file size to the explanation text.
c356ef1
John leach Added the maximum file size to the explanation text. 5f3a059
John leach Added the forum icon to the template data. e832f49
John leach Added topic author template data. Added views and replies template da…
…ta. Added post number without link generation.
8ae7340
John leach Added views to the template data. Duplicated S_ prefixed names withou…
…t the prefix - to match naming used in other pages without breaking current template code.
698c176
John leach Minor coding style conformity changes. Incorrect flag checking error …
…(line 450 circa )
8028760
John leach Modified so that the header and list tags can be specified instead of…
… being hard coded.
9e2a8ca
John leach Added CDATA section 4dfb57d
John leach Added CDATA section 197f2dc
John leach Added CDATA section 1ce27a7
John leach Added CDATA section 1f3ee7d
John leach Removed breadcrumbs_main INCLUDE (appeared twice) 31276c0
John leach Added AJAX feedback for online chat users 594e4e5
John leach Fixed CSS problems. Changed id names back to the original MG version. 4087e2b
John leach Moved the majority of the AJAX code into this file.
Clone AjaxContext before ajax calls.
Fixed error reporting on abort (page exit) bug.
4bebb1e
John leach Fixed minor typo. Now uses template supplied target attribute. 592114f
John leach Removed the majority of AJAX code from this file. Now has chat (page …
…or popup) only related code.
c6f651d
John leach Substituted H_ prefixed data references for non prefixed data referen…
…ces. Now conforms with naming in other templates.
cd67250
John leach Added CDATA section e026bf9
John leach Substituted H_ prefixed data references for non prefixed data referen…
…ces. Now conforms with naming in other templates.
bd8610b
John leach Converted JavaScript to use jQuery library. 7f6a09f
John leach Added CDATA section 354762a
John leach Added CDATA section 4658213
John leach Added CDATA section 562c50f
John leach Added CDATA section f18a29a
John leach Expanded table row of smilies extras. Now a little more readable. bf66a41
John leach Added CDATA section 24b2e12
John leach Added CDATA section e80d6ad
John leach Added CDATA section 71bebd6
John leach Added CDATA section 290768b
John leach Added initialisers for more generic sitemap code. 51486b1
John leach Added CDATA section. Added language and content encoding parameters. 59c1418
John leach Added CDATA section. Moved jQuery library script to the top of the file. db2c4c7
John leach Substituted H_ prefixed data references for non prefixed data referen…
…ces. Now conforms with naming in other templates.
62b5e69
John leach Added CDATA section 601cf57
John leach Added CDATA section bea4472
John leach Added CDATA section 652827d
John leach Added SIGNATURE cbad892
John leach Minor code convention adjustments 6ea0d00
John leach Syntax error corrections cf9daa2
John leach Added CDATA section dbad417
John leach Added tests to avoid chatting with oneself. 61aef34
John leach Added initialisers for more generic sitemap code. 4024c33
John leach Added CDATA section 460cc19
John leach Added CDATA section 5a3bd26
John leach Removed reference to Pro Silver template. (But added file in the Pro …
…Silver project).
45ebba2
John leach Added CDATA section a2036b8
John leach Added CDATA section 5cffcc4
John leach Added CDATA section 271d84f
John leach Added CDATA section f2cd16b
@jhl-verona

This current pull request now comprises the AJAX chat code (I have NOT yet merged cyberalien's code), together with a host of small additions/corrections to the code base. These have been tested against the Icy Phoenix default template.

@jhl-verona

CyberAlien's code has now been added to the Ajax Chat.

John leach added some commits
John leach Added new print page to display a printable version of a topic *witho…
…ut* any links or replies. This allows for topics shown as 'articles' to be printed.
bdd32d8
John leach Added alphabetical option to blocks/forum_attach 1fc9f76
John leach Fixed missing messages, and link loss if an error message is displaye…
…d. As a side effect, you can now directly pass an URL (encoded of course) to the page using topic_link=http://....
a591a58
John leach Added alphabetical ordering, and first post id to the results (to dis…
…play posts as articles)
6ee3933
John leach Added alphabetical ordering 577bf38
John leach Added alphabetical ordering 348ae06
John leach Increased topic_link size in case of long links 6189fa9
John leach Added test to avoid printing the topic link if an article b14e2a4
John leach Added menu icons 5ca4f86
John leach Removed strange red border for navigation bar buttons cebb7ad
John leach Configurable block 'forum_articles' - similar to forum_attach, except…
… that:

 - It produces a list of forum topics (articles) or
 - displays a single forum topic (article) in 'news' format
 - It provides a print page without references to the original topic
 - It provides a 'tell a friend' link without reference to the original topic
 - It works in a CMS page without requiring a physical file

Designed to be used where a private forum is used to produce articles.

Modifications made to class_topics fetch_posts function:
 - A negative text_length value stops the topic text from being processed
- other files calling fetch_posts trimmed and adjusted
203a203
John leach Minor tweaks for Icy Phoenix theme 8949731
John leach Normalised the PAGINATION variable.
Either has the value '&nbsp;' or a pagination list, in *all* cases.
57caebd
John leach Added 'CONTENT_TYPE' ('block' or 'text') to the cmsblock wrapper temp…
…late variables
71be941
John leach Removed style tag in Ajax chat - it could only legally appear inside …
…the head tag.

Created three CSS classes in common.css to substitute.
b288d81
John leach Added S_THUMBNAIL_SIZE template variable to allow for CSS image posit…
…ioning
4417af0
John leach Added smiley line to private message quick reply.
Fixed loss of pm when preview clicked from quick reply.
6311a38
John leach Album refactoring to call functions to build template variables - red…
…uces repeated code.

Fixed album-search template and added pagination code.
Modified album search SQL to check categories - was returning images in categories that the user does not have permission to see.
Modified templates for album refactoring.
301b1ec
John leach Added JS function to (just) open and focus the quick reply editor.
Added single fields to the event registration template variables.
Added titles to the quick editor button.
e9110d0
John leach Added default album picture sort method and order to ACP.
Fixed wrongly named sort order parameter.
eb7dd2d
John leach Fixed next/last link problem on first/last picture (displays when ope…
…ned from a list)

Added CDATA section to social bookmarks Javascript
f16b267
John leach Fixed next/prev display bug for the first/last picture (probably caus…
…ed by a previous modification).

Removed numeric check from exif analysis - causing a critical error probably due to UTF-8 encoding.
b361b31
@MightyGorgon MightyGorgon merged commit b361b31 into MightyGorgon:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 9, 2012
  1. Added option for full forum list

    John leach authored
Commits on Mar 10, 2012
  1. Modified spacing td widths for full forum list

    John leach authored
Commits on Mar 13, 2012
  1. Updated Ajax chat

    John leach authored
    Rewritten Javascript to use the jQuery library
    Added json file format
    Added automatic logout when leaving page
    Added users signature to reduce data flow (like lastID but for online users)
    Automatic read after add - improves response after user sends a message
    Extracted HTML generation code to a separate file to ease template modification
    Changed the DB storage to be congruent with posts, now stored as bbcode and parsed when read
    Moved the notify.wav file from root to the default template
  2. Using functionality check (PHP) to decide response type json or xml

    John leach authored
    Changed script tag commenting to latest 'best practice'
    Cleaned up the Javascript syntax typeof as operator, check for own property, and so on.
Commits on Mar 15, 2012
  1. Fixed sid mistake (forgot about the cookies) and reduced the session …

    John leach authored
    …timeout to twice the update refresh rate - some browsers don't send onunload when the browser is closed
Commits on Apr 12, 2012
  1. Added information to allow CSS positioning of the thumbnail and Highs…

    John leach authored
    …lide display of the full sized image
  2. Added information to allow CSS positioning of the thumbnail. Copied p…

    John leach authored
    …arameters into the details iterator.
  3. Copied parameters into the details iterator. Removed H_ prefixed para…

    John leach authored
    …meter names to match the other iterators.
  4. Added information to allow CSS positioning of the thumbnail. Copied p…

    John leach authored
    …arameters into the details iterator.
  5. Added information to allow CSS positioning of the thumbnail. Added S_…

    John leach authored
    …NO_PICS flag for easier template adjustments.
  6. Added alt and title to the attachments image button.

    John leach authored
  7. Removed various UTF-8 related calls. Restored original positioning of…

    John leach authored
    … the action code. Fixed table dimensions and generated CSS code.
  8. Added UTF-8 aware code to the rainbow and gradient functions, which w…

    John leach authored
    …ere munging UTF-8 encoded text.
  9. Now using multiples of the shoutbox refresh time to remove outdated s…

    John leach authored
    …ession information - improves online user list feedback
  10. Fixed DISPLAY_MODE problem.

    John leach authored
  11. Added 'clean' UTF-8 aware HTML truncation function

    John leach authored
  12. Added ALIAS keyword. Allows iterators to be renamed so that INCLUDEd …

    John leach authored
    …templates can iterate differently named iterators and their data in a single file. Reduces template code duplication.
  13. Copied parameters into the details iterator. Expanded user defined fi…

    John leach authored
    …eld data so that the template can 'paint' the HTML.
  14. Added code to improve the page title, and create a 'standard' comment…

    John leach authored
    … editor as per private messages and postings.
  15. Added full_page_generation call.

    John leach authored
  16. Added thumbnail size to template data.

    John leach authored
  17. Added flag to improve the distinction between normal and nuff imaging…

    John leach authored
    … display. Added CSS class for image navigation. Added thumbnail and full size image information for CSS image display.
  18. Added L_CALENDAR_START_DATE to template data.

    John leach authored
  19. Added user zebra block.

    John leach authored
  20. Added ellipsis for missing subject text, otherwise the edit link does…

    John leach authored
    … not appear.
  21. Added language parameter so that the Google page talks the same langu…

    John leach authored
    …age as the site/user preference.
  22. Added SQL data to colorize the user. Added flag when first topic edit…

    John leach authored
    …ing. Added flag to distinguish between private message editing and topic editing.
  23. Added Read Message label. Fixed preview subject error. Added Private …

    John leach authored
    …message flag.
  24. Added SQL code when a specific category or forum is selected (via use…

    John leach authored
    …r profile when admin). Now using HTML truncation function to truncate message data.
  25. Added jpeg to the file extensions list to match the explanation text.…

    John leach authored
    … Added the maximum file size to the explanation text.
  26. Added the maximum file size to the explanation text.

    John leach authored
  27. Added the forum icon to the template data.

    John leach authored
  28. Added topic author template data. Added views and replies template da…

    John leach authored
    …ta. Added post number without link generation.
  29. Added views to the template data. Duplicated S_ prefixed names withou…

    John leach authored
    …t the prefix - to match naming used in other pages without breaking current template code.
  30. Minor coding style conformity changes. Incorrect flag checking error …

    John leach authored
    …(line 450 circa )
  31. Modified so that the header and list tags can be specified instead of…

    John leach authored
    … being hard coded.
  32. Added CDATA section

    John leach authored
  33. Added CDATA section

    John leach authored
  34. Added CDATA section

    John leach authored
  35. Added CDATA section

    John leach authored
  36. Removed breadcrumbs_main INCLUDE (appeared twice)

    John leach authored
  37. Added AJAX feedback for online chat users

    John leach authored
  38. Moved the majority of the AJAX code into this file.

    John leach authored
    Clone AjaxContext before ajax calls.
    Fixed error reporting on abort (page exit) bug.
  39. Removed the majority of AJAX code from this file. Now has chat (page …

    John leach authored
    …or popup) only related code.
  40. Substituted H_ prefixed data references for non prefixed data referen…

    John leach authored
    …ces. Now conforms with naming in other templates.
  41. Added CDATA section

    John leach authored
  42. Substituted H_ prefixed data references for non prefixed data referen…

    John leach authored
    …ces. Now conforms with naming in other templates.
  43. Converted JavaScript to use jQuery library.

    John leach authored
  44. Added CDATA section

    John leach authored
  45. Added CDATA section

    John leach authored
  46. Added CDATA section

    John leach authored
  47. Added CDATA section

    John leach authored
  48. Added CDATA section

    John leach authored
  49. Added CDATA section

    John leach authored
  50. Added CDATA section

    John leach authored
  51. Added CDATA section

    John leach authored
  52. Added initialisers for more generic sitemap code.

    John leach authored
  53. Substituted H_ prefixed data references for non prefixed data referen…

    John leach authored
    …ces. Now conforms with naming in other templates.
  54. Added CDATA section

    John leach authored
  55. Added CDATA section

    John leach authored
  56. Added CDATA section

    John leach authored
  57. Added SIGNATURE

    John leach authored
  58. Minor code convention adjustments

    John leach authored
  59. Syntax error corrections

    John leach authored
  60. Added CDATA section

    John leach authored
  61. Added tests to avoid chatting with oneself.

    John leach authored
  62. Added initialisers for more generic sitemap code.

    John leach authored
  63. Added CDATA section

    John leach authored
  64. Added CDATA section

    John leach authored
  65. Removed reference to Pro Silver template. (But added file in the Pro …

    John leach authored
    …Silver project).
  66. Added CDATA section

    John leach authored
  67. Added CDATA section

    John leach authored
  68. Added CDATA section

    John leach authored
  69. Added CDATA section

    John leach authored
Commits on Apr 13, 2012
  1. Added CyberAlien's modifications to Ajax Chat

    John leach authored
Commits on Apr 15, 2012
  1. Added new print page to display a printable version of a topic *witho…

    John leach authored
    …ut* any links or replies. This allows for topics shown as 'articles' to be printed.
  2. Added alphabetical option to blocks/forum_attach

    John leach authored
  3. Fixed missing messages, and link loss if an error message is displaye…

    John leach authored
    …d. As a side effect, you can now directly pass an URL (encoded of course) to the page using topic_link=http://....
  4. Added alphabetical ordering, and first post id to the results (to dis…

    John leach authored
    …play posts as articles)
  5. Added alphabetical ordering

    John leach authored
  6. Added alphabetical ordering

    John leach authored
  7. Increased topic_link size in case of long links

    John leach authored
  8. Added menu icons

    John leach authored
Commits on Apr 16, 2012
  1. Configurable block 'forum_articles' - similar to forum_attach, except…

    John leach authored
    … that:
    
     - It produces a list of forum topics (articles) or
     - displays a single forum topic (article) in 'news' format
     - It provides a print page without references to the original topic
     - It provides a 'tell a friend' link without reference to the original topic
     - It works in a CMS page without requiring a physical file
    
    Designed to be used where a private forum is used to produce articles.
    
    Modifications made to class_topics fetch_posts function:
     - A negative text_length value stops the topic text from being processed
    - other files calling fetch_posts trimmed and adjusted
  2. Minor tweaks for Icy Phoenix theme

    John leach authored
Commits on Apr 17, 2012
  1. Normalised the PAGINATION variable.

    John leach authored
    Either has the value '&nbsp;' or a pagination list, in *all* cases.
  2. Added 'CONTENT_TYPE' ('block' or 'text') to the cmsblock wrapper temp…

    John leach authored
    …late variables
Commits on Apr 18, 2012
  1. Removed style tag in Ajax chat - it could only legally appear inside …

    John leach authored
    …the head tag.
    
    Created three CSS classes in common.css to substitute.
  2. Added smiley line to private message quick reply.

    John leach authored
    Fixed loss of pm when preview clicked from quick reply.
Commits on Apr 19, 2012
  1. Album refactoring to call functions to build template variables - red…

    John leach authored
    …uces repeated code.
    
    Fixed album-search template and added pagination code.
    Modified album search SQL to check categories - was returning images in categories that the user does not have permission to see.
    Modified templates for album refactoring.
Commits on Apr 20, 2012
  1. Added JS function to (just) open and focus the quick reply editor.

    John leach authored
    Added single fields to the event registration template variables.
    Added titles to the quick editor button.
Commits on Apr 22, 2012
  1. Added default album picture sort method and order to ACP.

    John leach authored
    Fixed wrongly named sort order parameter.
  2. Fixed next/last link problem on first/last picture (displays when ope…

    John leach authored
    …ned from a list)
    
    Added CDATA section to social bookmarks Javascript
Commits on Apr 23, 2012
  1. Fixed next/prev display bug for the first/last picture (probably caus…

    John leach authored
    …ed by a previous modification).
    
    Removed numeric check from exif analysis - causing a critical error probably due to UTF-8 encoding.
Something went wrong with that request. Please try again.