vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Trying to get this code in "links" to work (https://vborg.vbsupport.ru/showthread.php?t=217916)

Xencored 07-05-2009 09:42 PM

Trying to get this code in "links" to work
 
Hi
My coding is crap realy crap ive been trying for the last few hours "like 4-6" to get CYB new_posts to show in my links the code is this
Code:

$cyb_anp
And my header / links code is this

Code:

<!-- LOGO -->
<a name="top"></a>

<table height="180" style="background-image: url(images/Dutty_light/gradients/back_header.gif)
; repeat: repeat-x;" border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="$stylevar[left]">&nbsp&nbsp&nbsp&nbsp<a href="$vboptions[bburl]/$vboptions[forumhome].php$session[sessionurl_q]"><img src="http://i651.photobucket.com/albums/uu239/Animeisland/maibanner2.jpg" border="0" alt="$vboptions[bbtitle]" /></a></td>
        <td align="$stylevar[right]" id="header_right_cell">
                <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
        </td>

<!-- /LOGO -->

</tr>
</table>


<!-- NAV BUTTONS -->
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td>
<div style="background-image: url(images/Dutty_light/gradients/menu.jpg); repeat: repeat-x;" height="40" class="menu">

                <ul>
<if condition="$show['member']">
<li><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></li>
</if>

<if condition="$show['registerbutton']">
<li><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></li>
</if>




$template_hook[navbar_buttons_left]

<li><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li>

<if condition="$show['communitylink'] AND $show['popups']">
<li><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a><script type="text/javascript"> vbmenu_register("community", true); </script></li>
                <else />
<if condition="$show['memberslist']">
<li><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li>
</if>
<if condition="$show['quick_links_groups']">
<li><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></li>
</if>
</if>

<li><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></li>
<li><a href="./conquest.php">Conquest</a></li>



<if condition="$show['popups']">
                        <if condition="$show['searchbuttons']">
                                <if condition="$show['member']">
                               



                                <else />

                                </if>
                                <li><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></if></li>
                        </if>
                        <if condition="$show['member']">
                                <li><a id="usercptools" href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools", true); </script></li>
                        </if>
                <else />







                        <if condition="$show['searchbuttons']">
                                <li><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></li>
                                <if condition="$show['member']">
                                <li><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></li>
                                <else />
                                <li><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></li>
                                </if>
                        </if>
                        <li><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></li>
                        <if condition="$show['member']">
                                <li><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_contacts]</a></li>
                        </if>
                </if>


$template_hook[navbar_buttons_right]



<if condition="$show['member']">
<li><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></li>
</if>

</ul>
</div></td></tr></table>

<!-- /NAV BUTTONS -->



<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

But when i add this
Code:

<li>$cyb_anp</li>
Just after
Code:

<li><a href="./conquest.php">Conquest</a></li>
It sends my page nuts

with links all over i tryed loads of ways and cant get it to show :(

Please has anyone got any ideas how i can get this to fit in and work
Thanks:up:
Mike

Lynne 07-05-2009 09:51 PM

You need to ask this question in the modification thread. We have no idea what the supposed output of the variable $cyb_anp is, so we don't know what to suggest for a link.

Xencored 07-05-2009 09:57 PM

Quote:

Originally Posted by Lynne (Post 1843460)
You need to ask this question in the modification thread. We have no idea what the supposed output of the variable $cyb_anp is, so we don't know what to suggest for a link.

cyb is busy guy he rarely posts on his mods i think due to too many people using them
is there any other way i can work out what you said lynne

Thanks

Lynne 07-05-2009 10:08 PM

Just because he is busy doesn't mean someone else in the thread won't help. I know I help out people in modifications I've downloaded and I know tons of others do also. But, as I said, the users who know the variables and know what you are talking about are in the modification thread so that is where you should ask for help.

Xencored 07-05-2009 10:11 PM

Quote:

Originally Posted by Lynne (Post 1843476)
Just because he is busy doesn't mean someone else in the thread won't help. I know I help out people in modifications I've downloaded and I know tons of others do also. But, as I said, the users who know the variables and know what you are talking about are in the modification thread so that is where you should ask for help.

Yea good point lynne sorry
And Thanks :)


All times are GMT. The time now is 05:26 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.01514 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete