View Single Post
  #4  
Old 03-28-2005, 12:34 PM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

I guess I need a break form do this nightmare signature mod, :nervous: Let me look at it real quick! I got the forum and Admin Panel options figured out, I need to see how I can add it to the Admin attachment viewer (Edit, delete) comments! If you want you could create some different templates for the forum display!

I also think I need to limit this to allow for comments only that are related to images and that image has thumbs. Ya I will put that as a option ('Show comments only for images or both images and files).

The other thing is the length (characters)! If we limit it to 255 we can use varchar and not have to jump over to using a text database column!

First let me do the code part, then I will post the template $var(s), then you can modify all the attachment templates (postbit_attachmentimage , and so on...), plus make a few different new ones, so people have different templates to choose from for displaying the image thumbs with comments! If people want to allow a comment with other files (zip, rar) or if thumbs is off, I think we will just add the comment to the current template (postbit_attachment), but you could also make simple replacement template for that. Something in a small div that will show the icon on the left (<if cond...>4<else />3</if> row spans) the on the right... (row 1) Name: attach name, (row 2) Size: attach size, (row 3) Type: type of attachment, <if cond...>(row 4) Comment: if comment</if>

Oh, ya...

I will also add the ability for the Admin to use BBCODE in the comment!

Let me start on the code! After I go for coffee!

I'll keep you posted, check back in a hour or so!

Sonia
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01356 seconds
  • Memory Usage 1,765KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete