vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Show Users System Specs (https://vborg.vbsupport.ru/showthread.php?t=97702)

Bro_Joey_Gowdy 01-01-2009 01:02 PM

*waits for the 3.8.0 release*

edermix 01-04-2009 03:11 PM

I did an adaptation of this mod for vBulletin 3.8.x, follows.

Attachment 91713

Sworm 02-24-2009 06:51 PM

Hi,

i have added your code and for show the username i have added(In RED):


Quote:

<!--System Specs-->
<div class="vbmenu_popup" id="sysinfo_$post[postid]_menu" style="display:none">

<table cellpadding="4" cellspacing="1" border="0">
<td class="thead">Specifiche Tecniche del Sistema di $post[username]</td>
<if condition="$post[field7]"><tr><td class="vbmenu_option"><b>CPU:</b> $post[field7]</td></tr></if>
<if condition="$post[field8]"><tr><td class="vbmenu_option"><b>Sistema Operativo:</b> $post[field8]</td></tr></if>
<if condition="$post[field9]"><tr><td class="vbmenu_option"><b>Scheda Madre:</b> $post[field9]</td></tr></if>
<if condition="$post[field10]"><tr><td class="vbmenu_option"><b>Hard Disk:</b> $post[field10]</td></tr></if>
<if condition="$post[field11]"><tr><td class="vbmenu_option"><b>Memoria RAM:</b> $post[field11]</td></tr></if>
<if condition="$post[field14]"><tr><td class="vbmenu_option"><b>Masterizzatore:</b> $post[field14]</td></tr></if>
<if condition="$post[field16]"><tr><td class="vbmenu_option"><b>Software P2P Preferito:</b> $post[field16]</td></tr></if>
<if condition="$post[field17]"><tr><td class="vbmenu_option"><b>BIOS:</b> $post[field17]</td></tr></if>
<if condition="$post[field18]"><tr><td class="vbmenu_option"><b>Scheda Audio:</b> $post[field18]</td></tr></if>
<if condition="$post[field19]"><tr><td class="vbmenu_option"><b>Scheda Video:</b> $post[field19]</td></tr></if>

</table>
</div>
<!--/System Specs-->

Code:

<!--System Specs-->
<br />
<if condition="$post[field15] = YES">
<div id="sysinfo_$post[postid]" align="left" class="info" nowrap>
<a href="#sysinfo"><b>Sistema</b> </a><script type="text/javascript"> vbmenu_register("sysinfo_$post[postid]"); </script></div>
</if>
<br />
<!--/System Specs-->


IN my postbit_legacy template.

I have created a new profile field with a only other difference
1. Go to AdminCP => User Profile Field Manager => Add New User Profile Field
Single-Selection Radio Buttons

Title: System Specs
Description: Would you like to show other members your computer specs?
Options:
NO
YES
Set Default: Yes.
Field Required: No, but display at registration
Field Editable To User: Yes
Display Page: Thread Viewing

The others fields are like this:
Go to AdminCP => User Profile Field Manager => Add New User Profile Field

Profile Field Type: Single-Line Text Box

Title: CPU
Description: What CPU do you have?
Field Required: NO
Field Editable by User: YES
Display Page: Thread Viewing


Now,
please anybody want to said me why if i select in the profile options page and in reg phase too, "NO" under "Would you like to show other members your computer specs?" , is showed in each case (see the image below please)?

The system fieeld is showed too if anybody don't have added nothing of hardware specs, why? And how can i fix?
http://img15.imageshack.us/img15/4559/53734452.jpg

Please help me, what is the error?

FReeSTER 04-07-2009 07:44 PM

Quote:

Originally Posted by edermix (Post 1701386)
I did an adaptation of this mod for vBulletin 3.8.x, follows.

Attachment 91713

Still not showing! :confused::(
Any Ideas for get this working on 3.8.0?

Barteh 05-24-2009 07:38 PM

Slight typo in edermix' 3.8.0 version :)

swap

<if condition="$post[fieldX] = YES">

for

<if condition="$post['fieldX'] == 'YES'">

Leave the rest of the conditionals alone though, they're fine. And fieldX like with the rest has to be replaced by whichever field it turns out to be after creating of course.

server-ceo 05-25-2009 09:05 PM

not working on 3.8.2 even by this replacement, any idea?

Barteh 05-25-2009 10:52 PM

Installed it on my own boards last night, I can confirm it's working...

1. use edermix' adapted version
2. apply the correction I posted last night

Read the installation instructions well and follow them to the letter, you will miss things if you rush it.

Barteh 09-19-2009 09:57 AM

Something odd has happened... the system specs are still there but *only* visible for the administrator usergroup (so unfortunately it took me a while to notice).
I didn't add any usergroup conditionals and I don't see any near the modified code, but I assume something happened after installing one of the latest vB patches. Has anyone else had this problem and if so, did you manage to fix it?

Barteh 09-23-2009 01:37 PM

Finally had some time to trawl through usergroup permissions... "Can View Private Custom Fields" needs to be set to 'yes' for any usergroup you want to be able to view the postbit /postbit legacy system specs.

Not sure why it worked before though... Unless this field was introduced recently or a related bit of code was changed in one of these patches?

cloferba 02-18-2010 06:45 PM

how can i apply this to vb4?


All times are GMT. The time now is 05:02 PM.

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.01351 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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