View Full Version : How to place custom fields into other pages?
June 27th, 2009, 11:18 AM
How do I place custom fields and the value that each photo hold into another page, for example, browseimage? I would also like to know how to make it so only a certain usergroup can see this using the conditionals. Thanks for help in advance.
June 27th, 2009, 01:49 PM
You would need to create some type of code modification for that. There is no way through the program to do this as those custom fields are per category.
June 27th, 2009, 02:19 PM
So I would have to post this in the mod section?
June 27th, 2009, 02:31 PM
Yes that would be an appropriate thing to see if anyone has done this.
June 29th, 2009, 09:53 AM
When you mentioned that the custom fields are per category what did you mean? What I'm trying to do is add a custom field "Price", which I did. When I upload photos and enters a price on each item, it shows the price of each item on the showimage page. The problem is I want to bring the price out to the browseimage page.
I tried posting in the mod section but it seems that forum is very inactive of late. Do you think you can help me get started?
June 29th, 2009, 12:03 PM
Misuzu the custom fields work as they are designed to and as such they dont show on browseimage script.
I can assist with support on the base code and tell you how something operates or assist if there is something wrong with the code but just like vbulletin company policy is we do not support code modifications thats why I suggested you could post there so if any users wanted to assist they could. I only work in support as I do not assist in the code mod forums.
June 29th, 2009, 12:58 PM
Then do you think you can advise me on which template it is that displays the page with all the thumb nails in a category? I can't seem to find it.
June 29th, 2009, 01:21 PM
sure its ADV_GALLERY_BROWSEIMAGES
June 29th, 2009, 01:57 PM
Sorry, I know I'm being a bother. But these would probably be my final ones if I can get this to work. Basically, is there a way to stop the files from renaming itself to lower case letter when I do bulk uploading? For example, 102-0489-P would be renamed to 102-0489-p. If that wasn't possible, is there a way for me to use a variable to get the url of the picture in showimage out to the browseimage? What I wanted to do is open the showimage picture directly into a new window, instead of going to the showimage page with the description and everything.
June 29th, 2009, 03:31 PM
You would need to actually try editing your browseimage script and define such variables. There is not a variable you can copy from script to script since variables are defined in each script themselves.
June 30th, 2009, 03:54 PM
For some reason, the login.php replacements on both navbar and footer (or where ever else) puts an extra / after http://, like this http:///. It doesn't happen with any of the other link replacements, only login.php any idea why?
Oh, this only happens in IE also, it doesn't happen in firefox.
Edit: I was wrong, it doesn't just happen for login.php it happens for every replaced url. But it still only happens in IE, both 7 and 8.
June 30th, 2009, 07:12 PM
In IE thats weird maybe a BROWSER THING
How about posting a url and a test login
June 30th, 2009, 09:37 PM
EDFORCE Stainless Steel (http://18.104.22.168/~goldtime/gallery/)
For now I've hardcoded the login form and logout link to point to the right places. But if you look at the other links, there's an extra '/' in it.
July 1st, 2009, 07:26 AM
I dont see extra slash anywhere things look just fine from what I am seeing link wise that is. Your login replacement needs to be in the header and footer since your not using that custom stylesheet and there is no navbar.
July 1st, 2009, 08:42 AM
The replacements are in the right places, and only the links replaced are showing an extra '/'. This only happens in IE, I tried it on 2 separate computers and both is the same. None of this happens in firefox.
I took out the forumdisplay.php on the footer (marked forums read) and the link is no longer replaced and no longer showing the extra '/' while the others, showgroups.php, sendmessage.php, archive, is all showing the extra '/'.
Logged in, registered or admin account, or as guest makes no difference. Even on default skin with no changes made, and no changes has been made to any vb or vbgallery php files.
EDIT: Also just tried it on google chrome, and it doesn't happen. So this problem was limited to IE only.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.