vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Profile Enhancements - Customizable Roster (https://vborg.vbsupport.ru/showthread.php?t=235326)

Bouncer222 02-09-2010 01:21 AM

Sweet man, thanks for taking a step out to help me out on this and even offering it without me asking for it! Really appreciated and makes it much easier to manage our members!

Let me know when its ready.

Bouncer222 02-09-2010 01:29 AM

Sorry for another post... but that thread I linked to might confuse you a bit.. so here is the actual converter! http://forums.alliedmods.net/showpos...&postcount=118

dgkrob 02-13-2010 09:49 PM

Hi Guys,

I'm hoping you may be able to help as im being really stupid and cant remember how to get this working correctly.

On the rosta i want to be able to add a piece of text in that is a url thats pre-defined i.e in field 5 i have it set to Armory Page that in their profile they just put the word Grushdeva and then on the rosta it will show "Grushdeva" but when you click on it it takes you through to www.thewebpage.com/Grushdeva.

Here is what i have got in the showroster_userbits-: <tr>
<td class="$bgclass">
$user[onlinestatus]&nbsp;&nbsp;<a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>
</td>
<td class="$bgclass" nowrap="nowrap" align="center"><a href="http://eu.wowarmory.com/character-sheet.xml?r=Hellscream&cn=">$user[field5]</a></td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field6]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field7]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field8]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field9]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field12]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[field11]</td>
<td class="$bgclass" nowrap="nowrap" align="center">$user[datejoined]</td>
</tr>

The problem i get is when you click on the name Grushdeva it just takes me to the first part of the url and doesnt add the name on the end.

I hope that makes sense.....

Can anyone tell me what ive done wrong in that code {Highlighted in red} so i can get it to recognize and add the name to the end of the url automatically from the info they fill out on their profile page?

Thanks in advance

Rob

Sarcoth 02-14-2010 08:37 AM

Quote:

Originally Posted by dgkrob (Post 1981664)
<td class="$bgclass" nowrap="nowrap" align="center"><a href="http://eu.wowarmory.com/character-sheet.xml?r=Hellscream&cn=">$user[field5]</a></td>

Can anyone tell me what ive done wrong in that code {Highlighted in red} so i can get it to recognize and add the name to the end of the url automatically from the info they fill out on their profile page?

Try this first:

Code:

<td class="$bgclass" nowrap="nowrap" align="center"><a href="http://eu.wowarmory.com/character-sheet.xml?r=Hellscream&cn=$user[field5]">$user[field5]</a></td>
If that fails, let me know and I'll do some testing.

dgkrob 02-14-2010 12:31 PM

yea that worked thanks allot Sarcoth

Sarcoth 02-16-2010 07:07 PM

Quote:

Originally Posted by Bouncer222 (Post 1977877)
Anyway my Steam ID is: STEAM_0:1:17768031 (SteamID#)
It should link to my profile at: http://steamcommunity.com/id/bogbouncer (ProfileID)

I looked into this a bit last night but I'm failing to understand. First, where are you getting the SteamID#. I looked all over for my SteamID# and I couldn't find it. I found my steam profile page, but not the other.

Just out of curiousity. Is there a reason you are using the SteamID# over the ProfileID? The later would only require a simple link that everyone uses and then it would grab the ProfileID for each person separately.

Bouncer222 02-16-2010 07:17 PM

We use steam id to better identify our members. So is it posible to make it clickable so that once u click it, it takes you to their profile?

Sarcoth 02-17-2010 04:28 AM

Quote:

Originally Posted by Bouncer222 (Post 1983985)
We use steam id to better identify our members. So is it posible to make it clickable so that once u click it, it takes you to their profile?

I think it is. I'll need to still look into it further. But, I'd like to know where you get the SteamID# from. I think it would help me understand it better.

Bouncer222 02-17-2010 04:50 AM

well there are different ways to get it... we use a program.. but the steam ids are already in people's profile, they are forced to put it in when they register. so its tied to a field.

Currently im having issues with my site 4.0.2 totally f*cked it up and its all messed up.

Sarcoth 02-17-2010 12:18 PM

So, you mean the SteamID# (STEAM_0:1:17768031) is generated by a program? It just seems strange to me that you do it this way. Use a program to generate a SteamID#, then you put that SteamID# into the profile field, and then you want to use more code to change the SteamID# back into your Steam profile name. What's the point? Wouldn't it just be easier to put in the Steam profile name and use that as a link?

For example, I just installed the Gamercard Blocks mod two days ago to try to understand what you are trying to do. But, there's nothing in that mod for the SteamID#, it instead just uses my steamcommunity/id/PROFILENAME. That to me seems the easier way to go. At least for the roster. My mod won't do anything special like pull in awards or groups from Steam, it would only be used to provide a link to the member's Steamcommunity home page...right?

I may still look into it more on Monday, but I just want to understand the reasoning behind wanting to use the SteamID#. Personally, I'd rather focus on making this mod better myself.

Current Plans & Status Update for this mod: I'm currently trying to make it more friendly so less edit's are needed. I'd really like to get it so you can do all the edits from the AdminCP rather than going into the code. I've converted all the template variables to the new vB4 format, so that is one thing that will definitely be done. I'd like to get the other part done too though before releasing the next version.


All times are GMT. The time now is 06:42 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
  • Page Generation 0.01500 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete