The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
I think it is newpost_attachmentbit
In that template it has: PHP Code:
PHP Code:
![]() Any ideas? Edit: I found where it was making the changes, if I click edit thread, than I will see the changes made on that page, and they worked perfect ^^, but I need them to show on the page where attachments are shown in a thread. I tried these templates so far: newpost_attachmentbit attachmentbit newattachmentbit postbit_attachment None of those worked in the spot I am trying, any idea which template I should edit for that? |
#12
|
|||
|
|||
![]()
I have it all working, except I can't find the correct template to put my code in. I tried "Add Template Name in HTML Comments" but that showed me a different part.
Any ideas of how I can find the correct template? |
#13
|
||||
|
||||
![]()
The Add Template Name in HTML Comments will work if you look at the correct part of your page source. Get the attachment url and search for it in the page source and you will find it.
|
#14
|
|||
|
|||
![]()
I took away the attachment if statement, and I re did what I did in every template again, and I found that this time it worked in the postbit_attachment template.
These are my if statements: PHP Code:
Then it changes every attachment on the whole site to the code. so my problem is it picking up the actual attachmentid and seeing if it is true. I am kind of stumped at this stage as I have even tried this if statement" PHP Code:
Is there anything wrong with my if statements that you can see? Also as an example.....This attachment: https://vborg.vbsupport.ru/attachmen...3&d=1263721711 The ID is: 109923 correct? Because I have tried everything that I can possibly think of lol |
#15
|
||||
|
||||
![]()
If you look at the postbit_attachment template, you'll see that the variable they are using is not $attach, it is $attachment. You need to use the correct variable name.
|
#16
|
|||
|
|||
![]()
ic now. Thanks
![]() It is working, but with one minor problem. Every attachment now has the word 'and' showing. I think it may have something to do with my 2 if statements. Do I not need the word and between them? I removed the word 'and' and they seem to still be working. Edit: With my if statement, it is meant to show the special link to only registered users and the normal link to everyone else. However it is working good for registered users, but it is showing nothing to everyone else. It is like my else statement is not working. any ideas? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|