Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-17-2007, 05:07 AM
as7aab as7aab is offline
 
Join Date: Apr 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default attachment views, subscriptions and wysiwyg problems

Hi

There is a problem in my forum with the attachment views, the attachments names and size appear normally but the attachments view is always 0, never changes what ever you do.
One explanation to that can be that I have a translated forum (not English).
This is how it looks on my forum:
File.zip (687.4 kb,views 0)

Can some one tell me the name of the phrase to find and fix and tell me how it should actually be.

another problem I am facing is that I don't know how to turn on all the members subscription together, same goes for switching their message box editor to wysiwyg.

Thank you.
Reply With Quote
  #2  
Old 05-17-2007, 05:59 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. After u click on the image to view the full attachment, the view doesnt change by one number?

Just viewing the attachment in the post isnt going to change the views on it as far as i know.

2. Admincp --> Execute SQL Query --> Select ur option to change it from the drop menu.
Reply With Quote
  #3  
Old 05-17-2007, 07:11 AM
as7aab as7aab is offline
 
Join Date: Apr 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
1. After u click on the image to view the full attachment, the view doesnt change by one number?

Just viewing the attachment in the post isnt going to change the views on it as far as i know.

2. Admincp --> Execute SQL Query --> Select ur option to change it from the drop menu.
1. If you attach a file in a topic in my forum, and I download it, the no. of downloads will stay 0, thats what i meant.
Reply With Quote
  #4  
Old 05-17-2007, 12:11 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Highlight the postbit_attachment template and then click view original.

That will give you the original coding you asked for.
Reply With Quote
  #5  
Old 05-17-2007, 12:25 PM
as7aab as7aab is offline
 
Join Date: Apr 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<tr>
	<td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>$attachment[filename]</a> ($attachment[filesize]<if condition="$show['views']">, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>)</td>
</tr>
this is how it looks, is everything OK?
Reply With Quote
  #6  
Old 05-17-2007, 12:29 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is the correct coding.

You can try this.
Admin CP -> vBulletin Options -> Server Settings and Optimization Options -> Update Attachment Views Immediately -> Yes
Reply With Quote
  #7  
Old 05-17-2007, 12:32 PM
as7aab as7aab is offline
 
Join Date: Apr 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
That is the correct coding.
and I have checked the translation, there is nothing wrong with it, what can the problem be?

why doesn't an attachment views/downloads number change from 0 after I download it?

Quote:
Originally Posted by snakes1100 View Post
That is the correct coding.

You can try this.
Admin CP -> vBulletin Options -> Server Settings and Optimization Options -> Update Thread Views Immediately -> Yes
Checking it now.

_____


Updated:
works perfectly, thanks a lot man
Reply With Quote
  #8  
Old 05-17-2007, 12:50 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, but that isnt the way to fix it either, doing it that way on a forum with large attachment use, could cause your server load issues.

Check your crons, sounds like they are not working or you have removed them or changed something in your footer template that has screwed them up.

Also note, the views wont change immediately, they are in a cron for normal updating.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:01 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06075 seconds
  • Memory Usage 2,234KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete