vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Advanced Navbar Links (https://vborg.vbsupport.ru/showthread.php?t=120517)

bandanafz1 08-13-2007 01:40 PM

Hi there,

I'm struggling to get this mod installed, I am using VB 3.6.8

When I import the XML file I get database errors, these were caused for the custom_droplinks and custom_singlelinks tables. Both the tables already existed so I backed them up (despite both having zero records) and then dropped each. Importing the XML has created them again without any errors but the I am stumped by the next error:-

Quote:

CREATE TABLE `custom_droplinks_cat` (
`catid` INT( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , `title` VARCHAR( 100 ) NOT NULL , `permissions` VARCHAR( 100 ) NOT NULL , `display` TINYINT( 2 ) UNSIGNED NOT NULL DEFAULT '0'
) ENGINE = MYISAM ;;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ENGINE = MYISAM' at line 6
Error Number : 1064
Apologies if this has been mentioned previously... I am looking back through the thread to try to find what the problem is - any help will be much appreciated.

DAN

bandanafz1 08-13-2007 02:11 PM

Quote:

Originally Posted by bandanafz1 (Post 1316539)
Hi there,

I'm struggling to get this mod installed, I am using VB 3.6.8

When I import the XML file I get database errors, these were caused for the custom_droplinks and custom_singlelinks tables. Both the tables already existed so I backed them up (despite both having zero records) and then dropped each. Importing the XML has created them again without any errors but the I am stumped by the next error:-



Apologies if this has been mentioned previously... I am looking back through the thread to try to find what the problem is - any help will be much appreciated.

DAN

I think I have fixed it, certainly the XML has imported OK...

I found this http://www.phpizabi.net/index.php?L=...barticle&id=27

That suggests for older versions of MYSQL (mine is 4.0.16) the ENGINE command is not recognised, the command TYPE should be used for backwards compatibility.

cynthetiq 08-18-2007 11:40 AM

Quote:

Originally Posted by cynthetiq (Post 1310651)
Thanks alot! I haven't created my menus but

and here I was wondering why I wasn't getting any answers... I didn't finish my thought apparently.

I'm using a custom skin, navbar has been moved to the header and I followed the discussion and put one edit int he header and the other in the navbar. It works great.

what I need to now do is make sure that every time I add a new link a spacer gets added nav_div.gif.

PHP Code:

  <td class="h_nav"><a href="faq.php$session[sessionurl_q]accesskey="5">$vbphrase[faq]</a></td>
    <
td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>
  <
td class="h_nav"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
    <
td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>
  <
td class="h_nav"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
$custom_droplinks_cat
$custom_singlelinks
    
<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td

Also I need to adjust the class="" since it colorizes the added menu item. Where do I find that to edit? I've looked in the templates I can find which is just the custom_droplinks_cat, custom_singlelinks, custom_droplinks, but there is no class for me to edit there. Please see attached image for example.

Thanks

cynthetiq 08-21-2007 01:19 AM

I figured out how to do the customer_droplinks_cat and get the nav.gif there by editing that particular template. It works. I also found the class I needed to adjust and inserted it into the $custome_singlelinks as well.

Hoever, I cannot get the $custom_singlelinks since that is all that is in the custom_singlelinks template. I tried editing the XML file by adding
PHP Code:

<td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td

to the line:
Code:


$custom_singlelinks .= "<td class='h_nav'>$img<a href='".$slink['url']."' target='$new' title='".$slink['alt']."'>".$slink['name']."</a></td>";

Anyone know how I can add this to the $custom_singlelinks?

Konstantinos 08-25-2007 06:04 AM

links dont show up in the arcade as already mentioned

PimvanJ 08-25-2007 09:00 PM

Quote:

Originally Posted by Konstantinos (Post 1325264)
links dont show up in the arcade as already mentioned


Edit the functions.php (/arcade/functions/)

Find:

function do_output($output_array)
{
global $header, $vbphrase, $vboptions, $stylevar, $headinclude, $bbuserinfo, $session, $show, $pmbox,

Replace:

function do_output($output_array)
{
global $header, $vbphrase, $vboptions, $stylevar, $headinclude, $bbuserinfo, $session, $show, $pmbox, $custom_singlelinks,

Atsuko 08-31-2007 12:12 AM

Hello!

I installed this plugin for headder.
I only using dropdown links.

When I install this plugin, there is no problem.
But later I back to the site, I found that the small triagles have gone,
so can not pull down the menu for the link.

Then I install the plugin again, there is no problem...

Please advice to fix this.

Thank you!

Konstantinos 09-01-2007 07:20 AM

is there any way for the hack to support javascript links . so far it doest i want to use this

Code:

javascript:openRadioStations()".
for the radio hack. any idea how to do it ?

harmor19 09-01-2007 09:36 AM

You cannot use javascript.

Atsuko 09-03-2007 04:25 AM

Hello!

I have unistalled vB Database Backup Pro, then the trouble of droplinks are fixed.

I still want to use vB Database Backup Pro, so I am happy if you give some advice for it.

One more question.

For the droplink, when I put in another site's URL, no jump to the page.
Whe the URL is same sith forum, no problem.

Please help to fix it!


All times are GMT. The time now is 11:23 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.02038 seconds
  • Memory Usage 1,760KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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