Anyone gotten the Edit stuff to work on new tabs? Only messed with it for a couple of min myself while working on updating my mods.
|
Thanks for the awesome article :) Gave it 5/5 :)
Quick question... how can I have a link that goes (displays) directly to the new tab I created instead of the contents of the first tab on the list? |
OMG this is soo confusing, is there any easier way to do it ?
|
It's pretty easy actually. Pop in the 2 quotes in the article, and that's it.
If you just want a tab for a profile category, that's built in. |
Nice article, works fine. But can anyone tell me how I can call a custom templates for data into that tab ?
|
thanks ;)
|
So what's the deal with phrases? It seems only GLOBAL phrases work in blocks no matter what you put in the new class. Even if the phrasegroup shows as available for the page. So there must be some issue with scope here that isn't cured by a mere addition of "global $vbphrase;".
|
How can I disable the new tab for all usergroups but one?
|
I've simplified the following code fragment a bit.
Code:
$blocklist['mymodification'] = array |
Awesome thanks very much this has answered one question at least
Matt |
Quote:
Code:
$this->profile->userinfo |
Thanks. Do I have to use $block_data to pass variables to the template or can I use arbitrary variable names?
This code seems to be more complex than needed. |
Quote:
|
Has anyone using a custom tab stumbled upon the bit of code that allows you to link directly to a tab, like so:
http://www.domain.com/member.php?u=1&tab=contactinfo I'm thinking there's some java code somewhere doing it (I believe the tabs are AJAX), but haven't found the right bit just yet. |
Quote:
Matt |
For some hours I try to get photopost pro latest addition to members gallery into a new tab but for some reason (a hook?) it didn't work - it will only work if I place the code in that MEMBERINFO template ...
|
how would that work if i want to add a varibable like for ishop?
$ishop example? that's the code below Quote:
|
Quote:
|
i can't?
|
Got it working! thanks
|
Code:
|
heh, what would be stellar is a tutorial on creating your own fancy tab thing on other pages :p
|
Hi there and i am trying to, i am not that good at describing the code but what i am trying acheive is that - i need to get some data from a the database and show in one of the block. Have a look at my code
PHP Code:
PHP Code:
|
1 Attachment(s)
Is anyone else having the problem of custom profile tabs not parsing BB Code?
It displays normal HTML correctly, but not BBCode. |
I am trying to output pictures from coppermine gallery in a tab. There is a script for coppermine gallery called cpmfetch, which allows to display any picture of your coppermine gallery on external pages. All you need to do is put this into your php page:
PHP Code:
Code:
<table > Code:
$blocklist = array_merge($blocklist, array( Code:
$blocklist = array_merge($blocklist, array( Quote:
Thank you! |
great! thanks a lot!
is there a way to have a preview of the latest threads and posts made by a user the way they have it on ipb in those tabs: http://forums.invisionpower.com/inde...showuser=75430 i actually requested that as a mod: https://vborg.vbsupport.ru/showthread.php?t=196487 |
Great Article.
Code:
'hook_location' => 'profile_left_last' My product has setting options like seen below: Code:
<setting varname="custom_hook_location" displayorder="20"> Have tried the following with no luck- custom_hook_location $vbulletin->options['custom_hook_location'] Thanks |
How do I display a list which i want to get out of an mysql database in such a profile tab?
|
Quote:
|
Hey, I'm trying to test this out and see if I can make something cool for my members, but I've noticed something a bit weird...
For the template, I've got the following code: Code:
<if condition="$vbulletin->userinfo['userid'] == 15010"> Code:
<if condition="$vbulletin->userinfo['userid'] == 15010"> How would I make it so that the $vbulletin object IS recognized? EDIT: BTW, I did "solve" it simply by putting the plugin itself in some "IF" brackets, but still for curiosity's sake, let's say for some reason I wanted to use the $vbulletin object in the tab (maybe I wanted to make a Tab with the User's name or something equally silly). |
Make $vbulletin global in the plugin.
|
Ok, this might have been answered before, but it seems I'm doing something wrong. I'm trying to add a new tab and display a custom profile field (field24) in it. Here's my plugin code:
Code:
$blocklist = array_merge($blocklist, array( Quote:
|
Cledus: The ?: is in the wrong order. It should be:
Code:
$this->block_data['mymodification'] = $this->profile->userinfo['field24'] ? "Stuff: $this->profile->userinfo['field24']" : "Nothing to see here"; On another topic, for anyone interested, and to get some feedback on whether this is done properly: I wanted to get mysql data on my new tab, and $db and $vbulletin->db didn't work - they aren't around when this code gets called. In the class_profileblock.php file, when it's building the static blocks such as user statistics and buddy list, it uses this: Code:
$this->registry->db Edit: $this->registry seems to be the same as $vbulletin elsewhere... |
Quote:
Ok, I updated it and it did fix the error, but it still didn't display the field. It displayed: Quote:
So here's my plugin right now: Code:
$blocklist = array_merge($blocklist, array( |
Have you tried to see if your plugin is even working by doing something simple like:
PHP Code:
PHP Code:
|
Oops, wasn't looking at the rest of the code. Array values need to be appended, can't be parsed inside quotes like a normal $variable:
Code:
$this->block_data['mymodification'] = $this->profile->userinfo['field24'] ? "Stuff: ".$this->profile->userinfo['field24'] : "Nothing to see here"; Code:
$field24=$this->profile->userinfo['field24']; (p.s. If people prefer I don't answer questions here, I'll move to PM) |
Sent you a PM. :)
|
Ok, can someone help me just a bit more. Probably just an easy fix.
Now I added the last code posted to my plugin and it worked. It displayed the data from my custom profile field 18. In my above thread I said it was userfield24 but I had it wrong, it's userfield18. Now here's my plugin code: Code:
$blocklist = array_merge($blocklist, array( 1. List Item 1 2. List Item 2 3. List Item 3 4. List Item 4 etc. Now when its displayed in the new tab it all comes out on the same line like: 1. List Item 1 2. List Item 2 3. List Item 3 4. List Item 4 My question is, is there any way I can get it to be displayed in a list format? Like creating a new line for every list object? I tried adding a BR command in the field input itself without any luck. Anyone know how I can get it displayed like the way I input it into the field? Thank you for any help anyone may offer. --------------- Added [DATE]1234633359[/DATE] at [TIME]1234633359[/TIME] --------------- Can anyone help? |
I'm not sure, but I would take a look at exactly what is in that field and see what separates the items and perhaps do a search/replace on the separator with a <br />
|
Quote:
Anyway here's the url of my site profiles: My Profile - Now what I'm trying to do is display that information in the Rank Information module on the right side under the Mini Stats into a new profile tab. I made the plugin active again so you can see the output under the My Modification tab. Basically want the rank info from the module inside the new tab in a list format. I'll rename the new tab and remove the info from th emodule when I get it working properly. If for some reason you can not see the info I'm talking about on my site here's an example of some information (as listed in the custom field in the admin cp) thats in my custom field that I want displayed in list format. Quote:
Quote:
Hope this helps you help me, lol. Thanks for your time. |
All times are GMT. The time now is 10:55 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|