View Full Version : attachment views, subscriptions and wysiwyg problems
as7aab
05-17-2007, 05:07 AM
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.
snakes1100
05-17-2007, 05:59 AM
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.
as7aab
05-17-2007, 07:11 AM
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.
snakes1100
05-17-2007, 12:11 PM
Highlight the postbit_attachment template and then click view original.
That will give you the original coding you asked for.
as7aab
05-17-2007, 12:25 PM
<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]&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?
snakes1100
05-17-2007, 12:29 PM
That is the correct coding.
You can try this.
Admin CP -> vBulletin Options -> Server Settings and Optimization Options -> Update Attachment Views Immediately -> Yes
as7aab
05-17-2007, 12:32 PM
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?
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 :D
snakes1100
05-17-2007, 12:50 PM
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.