Thought I would give this a bump in hopes of finding a solution. Thanks.
|
Your spitting it out into an unordered list, <ul>. You will need to explode the ranks and then put an <li> in front of each one. What exactly are you doing with the rank list? Are you exploding it after you get it? Post the code you use to deal with it and spit it out.
|
lol, Im not that good. Basically Im just manually entering that list of items info into a custom field created in the admin cp under each user and then just calling that field to the tab. Honestly, I have no idea what you're talking about with the "exploding and spit out". There is no code I'm dealing with besides the code in the new template and the pluggin.
Oddly, Right now I also have the custom field in a profile module on the right and it displays as it was typed in the admin cp > users, in a list format. Here's a link to my profile on the site. That <br /> was entered in the admin cp > user > custom field blank. Could there be something I could do in the memberinfo_block_mymodification template code: Code:
<div class="alt1 block_row"> |
The thing is, all you have is a bunch of text. If you want it to display a certain way, then you need to have some html in there. You can't just write:
Code:
1. Website Owner 2. 6 month Member 3. 1 year Member Code:
1. Website Owner Code:
</li>1. Website Owner <li>2. 6 month Member <li>3. 1 year Member Code:
</li>Website Owner <li>6 month Member <li>1 year Member |
Hello,
Is there a way to link to the profile and load a particular tab? Regards, Paul. |
|
Thanks very much tagtek.
Kind Regards, Paul. |
Great article!
I'm not sure how to display the tab for only certain usergroups though. Do I use regular template conditionals? Or a PHP conditional? And where do I put it? Thanks. |
If I set up a tab to show some custom profile fields, is there a way to let each user define who can see the information on that tab (i.e. Everyone, Registered Users, Contacts, Friends)?
|
Quote:
A hook needs to be within a particular function to enable privacy settings for custom tabs. Looks like it was already requested in January: http://www.vbulletin.com/forum/showt...cy#post1673419 Quote:
Looks like privacy settings for categories worked in 3.8.0, but was broken in 3.8.1, and fixed in 3.8.2. Here's hoping they did a similar fix for custom blocks in total in 3.8.2 (gotta remember to download it lol). |
NOTE: I'm creating a new mode for Shelfari called "My Shelfari Bookshelf". I reserve this idea, so please don't steal my idea ;)
Having a hard time applying this for a new tab called "Shelfari" (shelfari.com) The template is: memberinfo_block_shelfari Code:
<div class="alt1 block_row"> Code:
$blocklist = array_merge($blocklist, array( I tried replacing chadi with $userinfo[field44] and it did not pull correctly. What is the actual proper replacement code to pull whatever content from the user's field44 profile field to replace my actual username? Can some also please explain how to properly create a plugin file for this, so I can share it as a mod? |
Quote:
|
Thanks, but the tab doesn't show up now.
Code:
$blocklist = array_merge($blocklist, array( |
Try assigning it to a variable and then use the variable in that line of code:
PHP Code:
|
Sorry, but I really don't know what you're telling me here. I'm not a coder :)
Can you give me a hint by pasting what the entire plugin code should look like? It'll be easier for me to dissect it carefully from there. --------------- Added [DATE]1240546636[/DATE] at [TIME]1240546636[/TIME] --------------- Ok, I tried this: Code:
$blocklist = array_merge($blocklist, array( The actual widget is giving an error stating that a username was not provided and must be provided. --------------- Added [DATE]1240547063[/DATE] at [TIME]1240547063[/TIME] --------------- Fixed. I had to had the = after UserName. Thanks Lynne. One quick question, I'd like to make an xml plugin file so people can install this as a product. Could I trouble you to explain how this can be done? |
Quote:
|
Yes, and gave you and Wired1 credit for the help.
Thank you Lynne, appreciate it. PS: would you like me to make you co-author of the mod? I'm honestly not sure how these things work on the forums. I've only started releasing mods a couple days ago. I'm not even a programmer. |
Quote:
|
Okay, I've installed this properly, and I need a somewhat specific request:
-- Search for all threads started by user, in forumID 12 and all child boards -- [USERNAME]'s Posted Content -- End Link -- Sorry, I really don't know a lot about using variables... |
If you want to know how to pull HTML from a template rather than writing the HTML in the plugin take a look at what I've wrote.
PHP Code:
|
I'm not sure as I haven't tried but the code below might work if you don't want to loop data.
PHP Code:
|
I'm trying to get this information to show but for some reason it keeps bringing errors. Any ideas?
Currently my plugin is the default: PHP Code:
PHP Code:
It did not show the image whatsoever. --------------- Added [DATE]1246493739[/DATE] at [TIME]1246493739[/TIME] --------------- I've been toying around with every single combination of codes and it keeps only bringing up the text of the coding or error message. Any assistance would be greatly appreciated. |
Does this work with VBulletin 3.8.4? I've tried it, but I can't get the tab I'm trying to add to display.
|
Yes it should work, nothing changed here.
What's the code you're using? |
The code in the first two boxes. I believe I've done it all correctly, but it doesn't work.
|
With the hook locations we can specify relative positions (eg: first on the left, last on the right, etc.) but is it possible to specify a specific location, as in the second position from the left?
Thanks :) |
No, not with default vbulletin. You may modify the template and add another template_hook to use in the location you want. (I think there is even an article on how to do this.)
|
just thought I would share with the people who are looking for help.
my vB version is 3.8.1 I needed to query a table I created myself to display all the tutorials of that specific user. here is the code I used and it works like a charm Code:
function prepare_output($id = '', $options = array()) how do you call a specific tab with a url? http://cmstutorials.org/forums/member.php?u=1#tabname ???? --------------- Added [DATE]1252407322[/DATE] at [TIME]1252407322[/TIME] --------------- ok I found it http://cmstutorials.org/forums/membe...1&tab=favorite Quote:
|
Quote:
Thanks for the info. :) For now I'll go with the relative positions since one of our goals with the project is to make it as template edit free as possible for the site admin'. |
I am trying tocreate a Tab where it can list specific user Threads in different forums like the profile page on vb.org where it pulls users threads from MODs forum, Templates, Styles forum.
example: I want this users threads from forum ids 2, 4, 6 etc towards the bottom of https://vborg.vbsupport.ru/member.php?u=925 Appreciate your help! I am new to programming. |
this works also in vb4.0
|
Not true;)
Plugin=> yes Template not, have to be changed to the vB4 Syntax;) |
what is wrong with the template.
on my test site it run's almost oke. only when i call te tab by itself http://xxx/forums/member.php?3-Peter...cation&page=10 my custom code is way below everything what is wrong. When i hit the mymodification tab al is displayed normal. --------------- Added [DATE]1261950936[/DATE] at [TIME]1261950936[/TIME] --------------- is there also a way to call a php page that should display his content in this newly created tab ? |
Quote:
I have a form users submit their resume's on. It saves it to the database in the table formresults. The information I want to display on the profile is located in a column labeled output in the formresults table. Below is the code I'm using in the member_build_blocks_start hook location. Code:
$blocklist = array_merge($blocklist, array( I get this error when displaying the memberinfo profile page. Quote:
|
Anyone?
|
Quote:
PHP Code:
|
Quote:
I see what you're talking about, thanks for that. While there was some syntax error there, unfortunately it didn't solve my problem. I changed it to this: PHP Code:
Quote:
PHP Code:
|
shouldn;'t it just be :
PHP Code:
of if you wanted a space after each result PHP Code:
|
Quote:
The Resume tab shows up now, unfortunately there is still no data in it. Could it be the type of data that's in there (a mixture of html and php variables) causing it to not show up? --------------- Added [DATE]1262744048[/DATE] at [TIME]1262744048[/TIME] --------------- Hmmm... I guess not. I changed the data in there to be just the string "This is only a test" and still nothing shows up. :confused: --------------- Added [DATE]1262744441[/DATE] at [TIME]1262744441[/TIME] --------------- HOLY CRAP! I'm almost there! I've been working on this for like a week and I was almost ready to give up but now I'm ALMOST THERE! :D :D :D The problem was the SQL query was returning no results because apparently this line of code doesn't work the way I thought it did. PHP Code:
--------------- Added [DATE]1262745188[/DATE] at [TIME]1262745188[/TIME] --------------- Quote:
For anyone who's interested in what the code looked like that finally ended up working, here it is. :D PHP Code:
|
Is there something else you have to do to add more pages? When I repeat the steps I did to create the first tab the new tab I create replaces the first tab I created instead of appearing next to it. :confused:
|
All times are GMT. The time now is 10:46 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:
|