vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Cant get a box around link in postbit :( (https://vborg.vbsupport.ru/showthread.php?t=211683)

Xencored 04-20-2009 11:36 AM

Quote:

Originally Posted by Lynne (Post 1794934)
You'd have to edit the plugin and put the class in there.

Thanks i found the right one its this one

Code:

<div>$vbphrase[images]: <a href="$ppg_options[gallery_url]/browseimages.php?$vbsession[sessionurl]do=member&amp;imageuser=$post[userid]">$post[ppicount]</a></div>

Lynne 04-20-2009 12:55 PM

Great!

Xencored 04-20-2009 01:02 PM

Quote:

Originally Posted by Lynne (Post 1795156)
Great!

This one starts with <div> how would i add the <if condition= and class="postinfo"

Am not after you to do i am realy trying to work this out and learn so i dont have to ask all the time

Code:

<if condition=$vbphrase[images]: <class="postinfo" a href="$ppg_options[gallery_url]/browseimages.php?$vbsession[sessionurl]do=member&amp;imageuser=$post[userid]">$post[ppicount]</a>
Would it be something like that

Thanks again Lynne for the help

Lynne 04-20-2009 01:34 PM

Why are you adding a condition in there? You literally just add class="postinfo" into the div tag:

was:
HTML Code:

<div>$vbphrase[images] etc...
how it should be:
HTML Code:

<div class="postinfo">$vbphrase[images] etc...

Xencored 04-20-2009 01:50 PM

Quote:

Originally Posted by Lynne (Post 1795194)
Why are you adding a condition in there?

Sorry am trying here :(

Quote:

Originally Posted by Lynne (Post 1795194)
You literally just add class="postinfo" into the div tag:


Ahh i see "got there in the end thanks"

So the condition one
<if condition="
The code dont have a <if> to add this is this on its own like
Code:

<if condition>
and end with a
Code:

</if>

Code:

<if condition><div class="postinfo">$vbphrase[images]: <a href="$ppg_options[gallery_url]/browseimages.php?$vbsession[sessionurl]do=member&amp;imageuser=$post[userid]">$post[ppicount]</a></div></if>

Lynne 04-20-2009 02:48 PM

Do not add a condition. There is no reason to.... unless there is something you didn't mention about it? The condition has absolutely nothing to do with whether there is a box around the info or not.

If you are trying to show that template_hook only if $post[ppicount] is greater than 0, then you should only eval the template_hook if that condtion exists. You should do it in the php code. You should ask in the modification thread for help with that.

Xencored 04-20-2009 02:54 PM

Quote:

Originally Posted by Lynne (Post 1795258)
Do not add a condition. There is no reason to.... unless there is something you didn't mention about it? The condition has absolutely nothing to do with whether there is a box around the info or not.

If you are trying to show that template_hook only if $post[ppicount] is greater than 0, then you should only eval the template_hook if that condtion exists. You should do it in the php code. You should ask in the modification thread for help with that.

Thanks Lynne


All times are GMT. The time now is 02:28 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.01716 seconds
  • Memory Usage 1,737KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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