vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   I need help Please (https://vborg.vbsupport.ru/showthread.php?t=268587)

Lynne 08-18-2011 07:35 PM

1. Assuming you do this correctly, then yet.

2. Either create more plugins or just put the code for another one directly under each other making sure each one has it's own unique conditions!

3. That is the condition you would use for your plugin. Right now you have this which isn't a valid condition for what you want:
PHP Code:

if (THIS_SCRIPT == 'Shop'

Make sure you change the xx to the forumid though.

christian gate 08-18-2011 08:34 PM

Hi,
Ok, I have done it, but the tab still not selected, but it goes to the correct pages when clicked.

you can visit the site and have a look.

HTML Code:

www.christian-gate.net
Thanks

Lynne 08-18-2011 11:40 PM

Please post your *exact* code for the plugin. And, actually, we can't see whether anything is working or not since you have the board off. You'll need to turn it on for us to see anything.

christian gate 08-18-2011 11:56 PM

Hi,
Here is the code, and the board is on

$tabselected = '';
$tablinks = '';
if ($GLOBALS['forumid']==christianforum)

{
$vbulletin->options['selectednavtab']='christianforum';
$tabselected = ' class="selected"';
$tablinks = ' <ul class="floatcontainer">
<li><a href="http://www.christian-gate.net/cgforum/forumdisplay.php?2-Christian-Gate-Main-Forum">christian Forum</a></li>
<li class="popupmenu">
<a href="javascript://" class="popupctrl">Drop Down</a>
<ul class="popupbody popuphover">
<li><a href="sublink1.php">SubLink 1</a></li>
<li><a href="sublink2.php">SubLink 2</a></li>
<li><a href="sublink3.php">SubLink 3</a></li>
</ul>
</li>
<li><a href="link2.php">Link 2</a></li>
<li><a href="link3.php">Link 3</a></li>
</ul> ';

}
$template_hook['navtab_start'] .= '<li'.$tabselected.'><a class="navtab" href="http://www.christian-gate.net/cgforum/forumdisplay.php?2-Christian-Gate-Main-Forum">Christian Forum</a>'.$tablinks.'</li>' ;

Thanks

Lynne 08-19-2011 02:44 AM

You did not enter the forumid. The forumid is a number - it is the id number of the forum. You need to put that into the condition.

The Christian Forum navtab goes to this url -http://www.christian-gate.net/cgforum/forumdisplay.php?2-Christian-Gate-Main-Forum - so the forumid is 2.

Please also use the code tags the next time you post code. It makes it much easier to read.

christian gate 08-19-2011 02:04 PM

Hi,
ok, so i have changed it to the following

PHP Code:

if ($GLOBALS['2']==christianforum

But the tab still not selected, nothing changed with the chages above.

Thanks

Lynne 08-19-2011 09:17 PM

PHP Code:

if ($GLOBALS['forumid'] == 2


christian gate 08-19-2011 09:23 PM

Finally, thanks very much for your help and time.

--------------- Added [DATE]1313797023[/DATE] at [TIME]1313797023[/TIME] ---------------

Can I ask you how can I delete the Forum one, I have dispalyed it, but it's still appearing.


Thanks

Lynne 08-19-2011 09:56 PM

You mean the Forum tab? That will require modifying the navbar template. I don't have instructions for doing that but I know they have been posted before so you may want to try a search.

christian gate 08-19-2011 10:01 PM

You mean the Forum tab? yes

--------------- Added [DATE]1313798541[/DATE] at [TIME]1313798541[/TIME] ---------------

I came across it, but I couldn't find it anymore, will try again, thanks very much


All times are GMT. The time now is 11:43 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.01645 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_html_printable
  • (3)bbcode_php_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
  • (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