vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - PM security certificate (edited mod) (https://vborg.vbsupport.ru/showthread.php?t=160003)

PoetJA-1975 10-12-2007 09:21 AM

Nice looking site! Don't know much about forex though - but quite loving the style!
Anyway - I correct my correction post LOL - I'd forgotten the <if> statement would need to be in for both edits...

Great little template mod - I appreciate the sharing ;)

Jacquii.

puertoblack2003 10-12-2007 04:14 PM

thanks for the share and upgraded mines.Though i tested both and saw that PoetJA-1975 codes is cleaner but used your images its better for my forum skin.

thanks to both of you

-pb

Nickbe 10-12-2007 05:22 PM

puertoblack2003: Yeh it is a lot cleaner I replaced mine too. (kept my images though)

PoetJA-1975: Thanks I will replace the code from your post in the original posted code. Is the code you have posted on there now the correct code? Did you edit it because I notice one of the <if> tags is not closed </if>

That is my first ever attempt at a website, I am constantly updating things to make it more efficient but for a first site I think it's pretty good.

I am also working on www.forex4noobs.com/education/ (educations section)

Hornstar 10-13-2007 03:08 AM

Not bad. thanks for sharing. I feel this would be very useful on one of my sites, thanks.

PoetJA-1975 10-13-2007 04:29 AM

Quote:

Originally Posted by Nickbe (Post 1358409)
Did you edit it because I notice one of the <if> tags is not closed </if>

The only "change" really is that if you have other usergroups then you need to add the usergroup ids into the code as shown below... I also closed the </if> tag....

Quote:

<if condition="THIS_SCRIPT=='private' && is_member_of($post, INCLUDE EACH OF YOUR OTHER USERGROUP IDs)">
BTW - I love my images :P

Thanx again for the sharing ;)

Jacquii.

Nickbe 10-13-2007 04:51 AM

Ok great so the original code was good? I jsut needed to let people know they could change the usergroup info?

I liked the fact that your image is a question mark, it is less IN YOUR FACE.

I will make a new one and upload

PoetJA-1975 10-13-2007 06:16 AM

LOL - ok - AND yes - the original code was right, as you have to have both sections coded with <if> conditionals because it's specifically for the PM system ;) --- You just have to be sure you have all your usergroup ids listed or it wouldn't show for all....

Anyway- thanx again for the modification - It's quite nice and will cut down on spamming via the PM system :)

Jacquii.

Nickbe 10-13-2007 09:16 AM

Updated with new pics I have question mark with blue background now so it is less 'in your face'

Thanks for the update PoetJA-1975 that original <else> tag has helped me with some other things. ( I did not know it existed)

PoetJA-1975 10-13-2007 07:34 PM

yep - it exists :P --- And glad to help - The NEW images look AWESOME!

Jacquii.

Munzo 10-14-2007 08:30 PM

You have an error in the code:

Quote:

<if condition="THIS_SCRIPT=='private' && is_member_of($post, INSERT YOUR MOD USEGROUP ID's">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/verified.gif" width="44" height="39" alt="Verified!" /></td>
<td class="alt2"><strong><font size="2" color="#339900">V E R I F I E D</font></strong><br /><font size="1">This message was sent by an official <strong>$vboptions[bbtitle]</strong> staff member. It's contents can be trusted.</font></td>
</tr>
</table>
</if>
<if condition="THIS_SCRIPT=='private' && is_member_of($post, INSERT UNVERIFIED USERGROUP ID'S">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/unverified.gif" width="44" height="39" alt="Verified!" /></td>
<td class="alt2"><strong><font size="2" color="#0f4390">U N V E R I F I E D</font></strong><br /><font size="1">This message is from someone other than a staff Member. If it contains spam please report it to the forum <a href="INSERT YOUR FORUM URL/private.php?do=newpm&u=1">admin</a>.</font></font></td>
</tr>
</table>
</if>
</if>
The fix is easy:
Quote:

<if condition="THIS_SCRIPT=='private' && is_member_of($post, INSERT YOUR MOD USEGROUP ID's)">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/verified.gif" width="44" height="39" alt="Verified!" /></td>
<td class="alt2"><strong><font size="2" color="#339900">V E R I F I E D</font></strong><br /><font size="1">This message was sent by an official <strong>$vboptions[bbtitle]</strong> staff member. It's contents can be trusted.</font></td>
</tr>
</table>
</if>
<if condition="THIS_SCRIPT=='private' && is_member_of($post, INSERT UNVERIFIED USERGROUP ID'S)">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/unverified.gif" width="44" height="39" alt="Verified!" /></td>
<td class="alt2"><strong><font size="2" color="#0f4390">U N V E R I F I E D</font></strong><br /><font size="1">This message is from someone other than a staff Member. If it contains spam please report it to the forum <a href="INSERT YOUR FORUM URL/private.php?do=newpm&u=1">admin</a>.</font></font></td>
</tr>
</table>
</if>
</if>
Good Day!


All times are GMT. The time now is 07:40 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.01811 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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