The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Profile Customization $block_data
I am currently working on custom profiles on my site. I'm trying to get the last visitors on the page to display at the top, you can see it is blank. I have it at the bottom working using the following code:
$blocks[visitors] Profile can be found here: http://evercube.net/forum/members/skye.html I ripped apart the template it calls for to make the top part. Code being the following: PHP Code:
I tried changing the block_data in the code to other things like vbphrase and userinfo but had no luck. I need an alternative to get the code working or a way for when I post $blocks[visitors] it doesnt show the top bar with the text Recent Visitors on it. Thanks, Skye |
#2
|
|||
|
|||
I agree.
|
#3
|
||||
|
||||
Exactly what do you mean by this - you changed your code to look like what?
|
#4
|
|||
|
|||
$block_data[visitorbits] to
$vbphrase[visitorbits] and $userinfo[visitorbits] |
#5
|
||||
|
||||
I'm not getting a good picture of what you want. I see how you've moved it over to the left side, but now you want to move it to the top of the left side? I'm really not getting a good idea of what you want and what you have tried.
|
#6
|
|||
|
|||
Where ever I post $blocks[visitors], I get the following:
The code for this in the memberinfo_block_recentvisitors template is: PHP Code:
As I said before. The top bar I tried to add, I used this code: PHP Code:
|
#7
|
||||
|
||||
The "Recent Visitors" part of that is in a different template. It's in memberinfo_block. That is the basic template that holds the specific templates for the different blocks. I have a feeling you will have to do a few code changes in order to get this how you want it.... or put a condition around that area in memberinfo_block that says if it's for the visitor block, then not to show it. I'm not sure what that condition would look like though. You'd have to play with it.
|
#8
|
|||
|
|||
That if statement is seeming like a no go for me atm. Been playing with it for a while and can't seem to get it going.
Looking at the script I ripped from the memberinfo_block_recentvisitors template, is it possible to have it display in the memberinfo template on its own? Here is what I have for it in my member info as of right now: <div class="alt1 smallfont block_row"> <phrase 1="$block_data[visitorcount]">$vbphrase[last_x_visitors]</phrase> <ol class="list_no_decoration last_visitors_list"> $block_data[visitorbits] </ol> </div> When looking at the profile you see that it shows the $vbphrase[last_x_visitors], but it isn't displaying the $block_data. Anyway to fix that? Edit: Basically, I need $block_data[visitorbits], $block_data[visitorcount] to work no matter where I post it in memberinfo. |
#9
|
||||
|
||||
You may try looking at the code around line 360 in member.php. The actual template is evaled closer to line 473. I'm not sure if you can use the hook right above there to change things or if there is another better hook to use where you could change things (hooks are on the bottom of the page when in debug mode). You may want to just take it out of the template ($blocks[visitors] line in MEMBERINFO) and write your own template to use in insert it in there where you want.
|
#10
|
|||
|
|||
Are you saying just put the following in a different template:
<div class="alt1 smallfont block_row"> <phrase 1="$block_data[visitorcount]">$vbphrase[last_x_visitors]</phrase> <ol class="list_no_decoration last_visitors_list"> $block_data[visitorbits] </ol> </div> Will that work? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|