vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - Radio and TV Add-on (https://vborg.vbsupport.ru/showthread.php?t=152037)

yoyoyoyo 10-15-2007 05:45 PM

One small suggestion, if possible I would like to see the navigation work like this:

The page that the user is currently viewing would not have a link, and would instead be bold, similar to the way that vbuletin does it. For example, let's say the user is viewing page 1, it would look like this:

Pages: 1 2 3 4 5 6

and if they were on page 2 it would look like this:

Pages: 1 2 3 4 5 6

etc..

I would also like to see < and << as well as > and >> navigational options. If you wanna get really fancy you could always let people choose how many pages they want to display at once, before the break, similar to vbulletin, like this:

<< < 1 2 3 4 5 36 > >>

ogameclub 10-17-2007 08:46 PM

Thanks,

Turkish forum demo:
http://www.ogameclub.com

powerful_rogue 10-17-2007 10:02 PM

WOW! Just installed and it looks fantatsic!

One question though, what would I need to do to have my header and footer on the radioandtv.php page? At the moment its very bare and make it difficult to navigate back to the actual site.

I have had a browse through the pages, but cant seem to see anyone asking the same.

Thanks

Dave

Dream 10-17-2007 10:38 PM

There are instructions to add header and footer in a post in this thread... not sure where though.

powerful_rogue 10-17-2007 11:00 PM

Quote:

Originally Posted by Stifmeister2 (Post 1327585)
In the navbar, instead of


HTML Code:

<td class="vbmenu_control"><a href="javascript:openRadioStations()">$vbphrase[rs_radiostations]</a></td>

Add this:

HTML Code:

<if condition="$show['member']">
<td class="vbmenu_control"><a href="javascript:openRadioStations()">$vbphrase[rs_radiostations]</a></td>
                </if>


Hi,

Ive tried this and it only shows the link for members, however when you click on it nothing happens.

This is what im currently using,

Quote:

<td class="vbmenu_control"><img class="inlineimg" src="$stylevar[imgdir_misc]/music.gif"/>&nbsp<a href="javascript:openRadioAndTV()">$vbphrase[rs_radiostations]</a></td>
How would I change it so guests cant view?

powerful_rogue 10-17-2007 11:01 PM

Quote:

Originally Posted by Dream (Post 1362701)
There are instructions to add header and footer in a post in this thread... not sure where though.

Hi dream, after some more digging I no longer need it. I didnt realise that once in the navbar, when clicked on it opens up in a small window.

This is superb. thank you :)

Dream 10-17-2007 11:56 PM

You are welcome :) glad you liked it.

And yay, 500 installs! ^_^

Dream 10-18-2007 02:43 AM

Quote:

Originally Posted by yoyoyoyo (Post 1360897)
One small suggestion, if possible I would like to see the navigation work like this:

The page that the user is currently viewing would not have a link, and would instead be bold, similar to the way that vbuletin does it. For example, let's say the user is viewing page 1, it would look like this:

Pages: 1 2 3 4 5 6

and if they were on page 2 it would look like this:

Pages: 1 2 3 4 5 6

etc..

I would also like to see < and << as well as > and >> navigational options. If you wanna get really fancy you could always let people choose how many pages they want to display at once, before the break, similar to vbulletin, like this:

<< < 1 2 3 4 5 36 > >>

I don't particularly see much good on adding the arrows as you can directly click any number, but the removing the link of the current page was something I was going to do, but that's not easily done code wise, it would need more templates and checks to be done, also you can easily see in which page you are in the navigation breadcrumbs of the list of stations. But maybe someday.

yoyoyoyo 10-18-2007 02:53 AM

well - I can see how the coding would be complicated. The arrows would be useful if you are not going to remove the link of the current page, especially with so many tv stations, etc. ;)

Stifmeister2 10-18-2007 08:33 AM

Quote:

Originally Posted by powerful_rogue (Post 1362716)
Hi,

Ive tried this and it only shows the link for members, however when you click on it nothing happens.

This is what im currently using,



How would I change it so guests cant view?

Just add the if condition. ;)


HTML Code:

<if condition="$show['member']">
<td class="vbmenu_control"><img class="inlineimg" src="$stylevar[imgdir_misc]/music.gif"/>&nbsp<a href="javascriptpenRadioAndTV()">$vbphrase[rs_radiostations]</a></td>
                </if>



All times are GMT. The time now is 09: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.02048 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
  • (3)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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