vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   nav bar template - new posts (https://vborg.vbsupport.ru/showthread.php?t=101212)

samhail 11-20-2005 01:49 PM

nav bar template - new posts
 
I want to have the New Posts link to be linked to Recent posts(last 24hours)

to this link: ./search.php?do=getdaily

there is a variable $show['member'] in the code that will do it by just changing that option... but i dont know where to change that variable :(
anyone know how ? obviously its a user option... but i want to change it as default in the forums.

<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>


From the navbar template page.

samhail 11-20-2005 01:51 PM

ohoh... i think i put this in the wrong thread :(

i just need help. sorry mods

Jenta 11-20-2005 03:25 PM

change all that to just this....

HTML Code:

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
Basically you are just leaving the highlighted text...

<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>

I might add that your users may not like this. Especially with the new marking system for post...presuming your on 3.5. It's your forum and your choice of course. Just offering an alternative here for you.
To leave both Get New and Get Todays do it like this.....

HTML Code:

<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>


samhail 11-21-2005 03:30 PM

Thanks... nice one :)...

but there is an if statement there so obviously $show['member'] is a user defined variable somewhere... maybe it would be better just to find out where that is set ?

if its not immedietely apparent then i can just hack the code as such

Jenta 11-21-2005 03:49 PM

Oh sorry, I didnt read your first post closely enough. Sorry

That variable means someone is registered. There isn't much you can do with something like that. They either are registered or they are not.

Btw, mods: why is this still on the front page over a day later?

peterska2 11-21-2005 06:12 PM

@ Jenta: did you report it? If not, then it won't be moved. The report posts/mods function is also the chief way of reporting incorrectly posted threads like this one.

I've just done it anyway, but just so you know for next time.

Jenta 11-21-2005 08:57 PM

Oh, I know about it. Seeing at it's on the front page they can see it just like we can see it. ;)


All times are GMT. The time now is 06:17 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.01008 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete