Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#241732 03/30/2003 1:21 AM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
VERSION 1.3 - Bug fixes, XHTML compliance, plus an upgrade doc!


Hi gang,

After playing with UBB.x I had really grown accustomed to their breadcrumb line, and I just couldn't do without it in threads... so here it is!

Mod Name / Version - ThreadCrumbs 1.3

Description - This modification greatly enhances the existing breadcrumb line
making it more akin to UBB.x. Iconic seperators become popup navigation menus
to access other areas of the site. Also reformats and cleans up the existing
breadcrumb and post navigation area maximizing space.

Working Under - UBB.Threads 6.2.2, 6.2.3

Demo - http://www.syngnathid.org/ubbthreads/ubbthreads.php?Cat=

Pre-requisites - none

Author - Raconteur - for discussions and bug reports come to www.ubbdev.com
or email [][email protected][/]

Special Thanks to Michael Farris at Infopop for guiding my use of their
constructor.js.

Files Altered:
* includes/header-insert.php
* templates/default/ubbt_header.tmpl
* templates/default/ubbt_registerednav.tmpl
* templates/default/ubbt_unregisterednav.tmpl
* templates/default/postlist.tmpl
* templates/default/ubbthreads.tmpl
* ubbthreads.php
* postlist.php
* showflat.php
* showthreaded.php
* ubbt.inc.php

Files Added:
* /includes/breadCrumbMenu.js
* /images/globe.gif (borrowed from Infopop's UBB.x as a starting point)
* /images/forumHop.gif (borrowed from Infopop's UBB.x as a starting point)
* /images/hopTo.gif (borrowed from Infopop's UBB.x as a starting point)

Caveats - I had some trouble with my time and getting the scrolling of the category/forum menu working so for now, I just left that part out... if you have a LONG list of categories and forums, you will need to scroll the page yourself when you popup that menu. If I can find some more time I will try to hammer that last detail out more thoroughly...


Backup your files before doing any modifing of your code.


I am really pleased with this one, and I hope you all enjoy it!!!
Attachments
74537-ThreadCrumbs1_3.zip (0 Bytes, 45 downloads)

Last edited by Raconteur; 04/22/2003 4:14 PM.

"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Sponsored Links
#241733 03/30/2003 4:54 AM
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
I am getting this clicking on the breadcrumb thread:

SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 Today's Active Topics
New Since Your Last Visit
ENTRANCE
Announcements

edr #241734 03/30/2003 1:01 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Not sure what you mean? On our site? Which thing are you clicking?


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241735 03/30/2003 1:11 PM
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Yeah, when I went to your site all those errors were popping up everywhere....



-peter

adrienne48 #241736 03/30/2003 1:26 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
I am not seeing a one of them, an no one in our community has written about it.

What browsers and OSs are you guys on?


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Sponsored Links
#241737 03/30/2003 2:10 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I get the same thing when I go to any postlist page.

[]SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157 SQL ERROR: Database error only visible to forum administrators
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /s101/home4/syngnathids/ubbthreads/mysql.inc.php on line 157[/]

I'm using WindowsXP Professional and Internet Explorer 6 (SP1)

Maybe it's because we're not logged-in?

eslmix #241738 03/30/2003 2:13 PM
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
I get all the errors too.....


Some people read their stars..... I choose to write my own
eslmix #241739 03/30/2003 2:28 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Yeah, it only happens if you're not logged-in.

eslmix #241740 03/30/2003 4:07 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yep users who are not logged in get them. I got them as well

sf49rminer #241741 03/30/2003 11:40 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
I see it now... something to do with the building of the category/forum menu. Will fix it tomorrow... sorry for the inconvenience.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Sponsored Links
#241742 03/31/2003 11:39 AM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Ok, sorry gang... not paying attention. The zip is updated, but if you have already installed this, the fix is in:

UBBT.INC.PHP

Bottom of page in the getCatBreadCrumbMenu function.

Find:
global $dbh, $config, $user;

Change to:
global $dbh, $config, $Groups;


Find:
$Grouparray = split("-",$user['U_Groups']);

Change to:
$Grouparray = split("-",$Groups);

That should do it.

Thanks for finding that gang!!!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241743 04/02/2003 7:35 PM
Joined: Jun 2002
Posts: 160
Member
Member
Offline
Joined: Jun 2002
Posts: 160
Ehh, sorry for my ignorance, but precisely what are Thread/BreadCrumbs?

astre #241744 04/02/2003 7:38 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
They're these things:

V6 Threads Development >> V6 Beta Modifications

joeuser #241745 04/02/2003 8:06 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Plus the cool popup menus under the added icons for navigation.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241746 04/02/2003 9:26 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I get this when installed

SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 1 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 2 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 3 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 4 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 5 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 6 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 7 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 8 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4 Today's Active Topics
New Since Your Last Visit
ENTRANCE
News and Announcements

sf49rminer #241747 04/03/2003 12:02 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Make sure you are using the update I posted in the previous message... that empty "AND ()" is killing it, because I grabbed the wrong var.

Let me know if that works.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241748 04/03/2003 4:14 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay again I say. I rehacked even though your files have your updates and this is what I get my friend.

SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 1 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 2 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 3 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 4 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 5 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 6 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 7 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 8 AND () ORDER BY Bo_Sorter
You have an error in your SQL syntax near ') ORDER BY Bo_Sorter ' at line 4 Today's Active Topics
New Since Your Last Visit
ENTRANCE
News and Announcements

Obviously something different as either the code is a bit different on your site or we have another little problem.

Here is the section of code where you are inputing the AND ()

Code
 // ------------------------------------------------------------------- <br />// We need to format a SQL query to see what boards this user can view <br />	$Grouparray = split("-",$Groups); <br />	$gsize = sizeof($Grouparray); <br />	$groupquery = "AND ("; <br />	$g = 0; <br />	for ($i=0; $i<$gsize;$i++) { <br />		if (!preg_match("/[0-9]/",$Grouparray[$i])) { continue; }; <br />		$g++; <br />		if ($g > 1) { <br />			$groupquery .= " OR "; <br />		} <br />		$groupquery .= "Bo_Read_Perm LIKE '%-$Grouparray[$i]-%'"; <br />	} <br />	$groupquery .= ")"; <br /> <br />	$query = " <br />		SELECT Cat_Title, Cat_Number <br />		FROM {$config['tbprefix']}Category <br />		ORDER BY Cat_Number <br />	"; <br /> <br />	$allCats = $dbh -> do_query($query); <br />	$catMenu = " <br />		<table border=\"1\" class=\"tdheader\"> <br />			<tr> <br />				<td class=\"alterline\"><font size=\"1\"><a href=\"{$config['homeurl']}/index.php?Cat=\"><b>ENTRANCE</b></a></font></td> <br />			</tr> <br />	"; <br /> <br />	while (list($theCat, $theCatNum) = $dbh -> fetch_array($allCats)) { <br /> <br />		$query = " <br />			SELECT Bo_Title, Bo_Keyword <br />			FROM {$config['tbprefix']}Boards <br />			WHERE Bo_Cat = {$theCatNum} {$groupquery} <br />			ORDER BY Bo_Sorter <br />		"; 

sf49rminer #241749 04/03/2003 4:19 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Ok... have you modified the group assignment stuff at all? By default a user should be placed into group 4... basically what is happening is there are no groups for the user that is looking....


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241750 04/03/2003 4:22 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
By default Threads places Users into group 3

I removed the grouparray tags of "AND("; and ")" and it works but that is a quick fix. Your fixes are in the zip as I just tried this out last night.

sf49rminer #241751 04/03/2003 4:26 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Right... sorry. Can you verify that the $Groups var is populated?

Basically this:
Code
 <br />for ($i=0; $i<$gsize;$i++) { <br />    if (!preg_match("/[0-9]/",$Grouparray[$i])) { continue; }; <br />    $g++; <br />    if ($g > 1) { <br />        $groupquery .= " OR "; <br />    } <br />    $groupquery .= "Bo_Read_Perm LIKE '%-$Grouparray[$i]-%'"; <br />	} <br />


is either not getting entered due to no groups assigned, or the groups value is not delimited by "-".


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241752 04/03/2003 4:28 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
It LOOKS good on your site, BTW!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241753 04/03/2003 4:29 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
What do you mean? I mean about the groups var being populated?

Also I do not see any Java errors but if you look at my site you the see images do not buildmenu's if you try and click them like your site.

I would love to get these errors taken care of as it looks like a nice mod.

#241754 04/03/2003 4:35 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Look in ubbthreads.php on line 51 (or do a case-sensitive search for "$Groups"). You will see $Groups gets assigned there... then on line 97, you will see if they are a Guest, the get assigned to group "-4-".

So, at the very least:
Guests = group "-4-"
Users = group "-3-"
Moderators = group "-2-"
Admins = group "-1-"

These get combined for various assignments, like a mod who is an admin would be in group "-1-2-"

What it looks like is that users are not getting assigned to groups... try adding this:
Code
<br />echo "GROUPS = $Groups<p>";<br />

to the getCatBreadCrumbMenu function in ubbt.inc.php. Then go to the page and see if the var is getting populated.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241755 04/03/2003 4:43 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
My groups are defined in the MYSQL TABLE Each user is assigned to a group. I see your using the same code as in the ubbthreads.php file. However the AND () does not work for some reason. when I take out that from the code it works.

Now can you get clickable images with the forums like your site on mine cause I can not?

sf49rminer #241756 04/03/2003 4:50 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
I know that... but what is happening is the variable $Groups is not getting populated. Did you add that echo statement?

If it echos "GROUPS = " then the var is empty and there is some internal problem. If it echos "GROUPS = -1-" for you, then that part is fine...


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241757 04/03/2003 4:53 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
it just prints out the top of the page

GROUPS =


by the way if I take out the AND(

and )

from the group array the sql goes away.

Internal error?

U_Groups on my site are as follows and in the GROUPS TABLE

Administrators are 1
Moderators are 2
Users are 3
Guests are 4
Sponsors are 5

I check user group assignments and they are there.

sf49rminer #241758 04/03/2003 4:56 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Check in your ubbt.inc.php file in the getCatBreadCrumbMenu function... did you add $Groups to the list of globals?

Bet that is it!

global $dbh, $config, $user, $Groups;


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241759 04/03/2003 5:01 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
That causes this SQL error

SQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 1 AND (t1.Bo_Read_Perm LIKE '%-3-%' OR t1.Bo_Read_Perm LIKE '%-1-%' OR t1.Bo_Read_Perm LIKE '%-2-%') ORDER BY Bo_Sorter
Unknown table 't1' in where clauseSQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 2 AND (t1.Bo_Read_Perm LIKE '%-3-%' OR t1.Bo_Read_Perm LIKE '%-1-%' OR t1.Bo_Read_Perm LIKE '%-2-%') ORDER BY Bo_Sorter
Unknown table 't1' in where clauseSQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 3 AND (t1.Bo_Read_Perm LIKE '%-3-%' OR t1.Bo_Read_Perm LIKE '%-1-%' OR t1.Bo_Read_Perm LIKE '%-2-%') ORDER BY Bo_Sorter
Unknown table 't1' in where clauseSQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 4 AND (t1.Bo_Read_Perm LIKE '%-3-%' OR t1.Bo_Read_Perm LIKE '%-1-%' OR t1.Bo_Read_Perm LIKE '%-2-%') ORDER BY Bo_Sorter
Unknown table 't1' in where clauseSQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 5 AND (t1.Bo_Read_Perm LIKE '%-3-%' OR t1.Bo_Read_Perm LIKE '%-1-%' OR t1.Bo_Read_Perm LIKE '%-2-%') ORDER BY Bo_Sorter
Unknown table 't1' in where clauseSQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 6 AND (t1.Bo_Read_Perm LIKE '%-3-%' OR t1.Bo_Read_Perm LIKE '%-1-%' OR t1.Bo_Read_Perm LIKE '%-2-%') ORDER BY Bo_Sorter
Unknown table 't1' in where clauseSQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 7 AND (t1.Bo_Read_Perm LIKE '%-3-%' OR t1.Bo_Read_Perm LIKE '%-1-%' OR t1.Bo_Read_Perm LIKE '%-2-%') ORDER BY Bo_Sorter
Unknown table 't1' in where clauseSQL ERROR: Unable to do_query: SELECT Bo_Title, Bo_Keyword FROM w3t_Boards WHERE Bo_Cat = 8 AND (t1.Bo_Read_Perm LIKE '%-3-%' OR t1.Bo_Read_Perm LIKE '%-1-%' OR t1.Bo_Read_Perm LIKE '%-2-%') ORDER BY Bo_Sorter
Unknown table 't1' in where clause Today's Active Topics
New Since Your Last Visit
ENTRANCE
Coral Propagation
Reefs


sf49rminer #241760 04/03/2003 5:05 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Where is that "t1." coming from... my query does not have that in it...

Code
<br />$groupquery .= "Bo_Read_Perm LIKE '%-$Grouparray[$i]-%'";<br />


in getCatBreadCrumbMenu func.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241761 04/03/2003 5:12 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yep I got it working now. Except on thing. You posted you updated the original file with the update.

The global call fixed it adding $Groups that is. You might want to update the instructions.

Do me one favor try seeing if the image menu's build for you. They are not for me? So there is now another problem that has been there from the start. We have the SQL error working now on to the actual images. On your site when you click those images the forums list because thats what you want to do. Mine are dead.

sf49rminer #241762 04/03/2003 5:20 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Ok... so I am an idiot... I DID modify the original post's zip... however, I made the globals line include $Globals instead of $Groups!!

Fixed now... sorry about that!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241763 04/03/2003 5:22 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL

Okay so any ideas about the build menu java script. I have it installed as you say yet my menu's are dead. Yours are not so since I can click and your site works I know its not a java error on my end so is there a step missing?

sf49rminer #241764 04/03/2003 5:25 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
I see it... I apologize about this crap... I must have made other changes after you downloaded and installed.

Check for name mismatch in the breadCrumbMenu.js... I named it originally breadcrumbMenu.js, but then changed it to breadCrumbMenu.js.

Make sure your JS file matches your script include, which is currently looking for "breadcrumbMenu.js"


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241765 04/03/2003 5:29 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Also... you are using my class "alterline" for the <td> tags in the menus. You either need to change this to something like "tdheader" or make your own "alterline"

Code
<br />.alterline {<br />  font-weight: normal;<br />  background-color: #C8D7F3;<br />  color: #000000<br />}<br />


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241766 04/03/2003 5:36 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
That seems to have done it!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241767 04/03/2003 5:41 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Once again... my error. Really sorry for the headache, Chuck. Thanks for helping me fix it up.

Also, the original post and zip are finally correct! Version 1.1


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241768 04/03/2003 5:44 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yep for aesthetic purposes I had to change the class alterline to darktable but thanks it works now

sf49rminer #241769 04/03/2003 5:49 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Looks good!!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241770 04/14/2003 11:06 AM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
In an effort to make this more accessible to people and hopefully more downloadable, would anyone benefit from it being a user-option set from My Home to turn on "Enhanced Bread Crumbs" (i.e. this mod) or leave the original in tact?


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241771 04/14/2003 3:29 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
On thing I noticed though about this mod even though I like it is that it is not XHTML compliant. I have made some changes to make it such and will sent them to you.

sf49rminer #241772 04/14/2003 3:36 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Cool. Yeah, since enforced compliance is still a ways off, I didn't spend much time on it...

I will integrate the changes and upload it though.

Cheers!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241773 04/14/2003 3:57 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL I am real big on compliance. I kinda let that be my little nitch. I like to nitpick. What would you expect from a perfectionist.

sf49rminer #241774 04/14/2003 4:28 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
That is great by me, and I totally agree with you. Basically I am just trying to make excuses for being lazy in my coding!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241775 04/14/2003 5:09 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yes but you did such a wonderful job. I remember the thread over at Infopop with you asking for a copy of the constructor. You took it upon yourself to do what ya had to do and you got the job done. You can't ask for anything better. Clean up issues always come up after a release.

sf49rminer #241776 04/15/2003 1:55 AM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
[]omegatron said:
LOL I am real big on compliance. I kinda let that be my little nitch. I like to nitpick. What would you expect from a perfectionist. [/]

Please continue to do so! The more standard compliant a site’s scripting the better it will work with all browsers. If it doesn't work with a particular browser then it's up to the people who code the browser to make it work

jacksonm99 #241777 04/15/2003 10:31 AM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Thanks, Chuck!

DLT - too true!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241778 04/20/2003 6:57 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay Chris here goes it. XHTML issue corrections

In Ubbthreads.tmpl you say put this code

<font size="1"><a href="javascript:void(0);" onclick="showMenu('globeMenu',this.id,20,5);event.cancelBubble=true" id="globeCrumb"><img src="{$config['imageurl']}/globe.gif" border="0" align="middle" alt="Today's Active Topics and New Since Last Visit" /></a> 
<a href="{$config['phpurl']}/ubbthreads.php?Cat=">{$config['title']}</a></font>

Change it to this:

<tr><td colspan=5" class="tdheader">
<font size="1"><a href="javascript:void(0);" onclick="showMenu('globeMenu',this.id,20,5);event.cancelBubble=true" id="globeCrumb"><img src="{$config['imageurl']}/globe.gif" border="0" align="middle" alt="Today's Active Topics and New Since Last Visit" /></a> 
<a href="{$config['phpurl']}/ubbthreads.php?Cat=">{$config['title']}</a></font>
</td></tr>

In ubbt_header.tmpl you say put this:

<body onClick="clearMenus()">

Change to this:

<body onclick="clearMenus()">

In header-insert.php you say put this:

<script src="/ubbthreads/includes/breadCrumbMenu.js" language="JavaScript">
</script>

<style type="text/css">
<!--
#globeMenu {z-index: 500; position: absolute; visibility: hidden;}
#catMenu {z-index: 600; position: absolute; visibility: hidden;}
#forumMenu {z-index: 700; position: absolute; visibility: hidden;}
-->
</style>

Change it to this:

<script src="/ubbthreads/includes/breadCrumbMenu.js" language="JavaScript" type="text/javascript">
</script>

<style type="text/css">
<!--
#globeMenu {z-index: 500; position: absolute; visibility: hidden;}
#catMenu {z-index: 600; position: absolute; visibility: hidden;}
#forumMenu {z-index: 700; position: absolute; visibility: hidden;}
-->
</style>

I also changed the alterline class on the classes in ubbt.inc.php since on most stylesheets this is a bit vague a color. I made them darktable to see better.

sf49rminer #241779 04/21/2003 12:39 AM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Thanks, Chuck. Will incorporate this into the zip and update to v1.1 with a note and your change log.

Still not getting any feedback on if people would find this mod more useful if it were settable by the user in MY HOME... what do you think??


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
#241780 04/22/2003 6:40 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I think it would be cool if they could turn it on or off.

sf49rminer #241781 04/22/2003 6:45 PM
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Well, Chuck, you are the driving force here... I will release that in v1.4.

Thanks!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)