PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   CSS problem on Navbar... (http://www.photopost.com/forum/photopost-pro-installation-upgrades/111118-css-problem-navbar.html)

SNOWCRAZE December 23rd, 2004 08:16 PM

CSS problem on Navbar...
 
I can't figure out why it cause... I turned VB3 integration on and I notice navbar template seem not correct... it like it insert link to CSS code, for example:

<div id="http://www.demo.com/memberAreaBox">
when it should be
<div id="memberAreaBox">

It just weird it added website link... Any idea?

Chuck S December 24th, 2004 08:46 AM

If this is some custom thing you entered in your navbar you may need to make it a full url to let Photopost find it. we only autotranslate the normal entries on the navbar for vb3

SNOWCRAZE December 24th, 2004 10:48 AM

Hmm I'm not sure I'm following you... I means any "ID" or "CLASS" for stylesheet that not suppose attached to URL.
Here's actually result code:
Quote:

<!-- BEGIN TEMPLATE: navbar -->

<div id="membox">
<div class="bot"><div class="top">
<div id="http://www.snowcraze.com/memberAreaBox">

<img src="/img_default/memarea.gif" alt="Member Area:" width="101" height="22" />
<ul id="http://www.snowcraze.com/memberLogon">
<li id="myprofile" title="Profile"><a href="/member.php?u=1"></a></li>
<li id="conpanel" title="Control Panel"><a href="/usercp.php?"></a></li>
<li id="myalbums" title="My Albums"><a href="/gallery/showgallery.php?cat=500&amp;ppuser=1"></a></li>
<li id="favpixes" title="Favorite Pictures"><a href="/gallery/showgallery.php?cat=fav"></a></li>
<li id="myblog" title="My Blog"><a href="/blog.php"></a></li>
<li id="mypost" title="My Post"><a href="/search.php?do=finduser&amp;u=1"></a></li>
.....
....
And did u notice div id and ul id end up use URL? (MemberAreaBox and memberLogon) while other ID got it right. I never put any url on id/class. I thought it must be related to $headvars, $headrepl from header-inc.php but can't figure it out.

Chuck S December 24th, 2004 11:00 AM

What I am saying is this!

We autotranslate the NORMAL vb3 navbar links. If you have added links or any custom code to your VB3 navbar you would need to modify such code to full url

You do not have a normal vb navbar so there is nothing our program is going to translate. You need to get rid of all the relative image and link tags in your custom navbar and put the full url to everything and you should be fine.

SNOWCRAZE December 24th, 2004 11:36 AM

Gee.. All right, look like I have figure it out myself... Thanks anyway.

Chuck S December 24th, 2004 12:23 PM

;) I have stated twice what you need to do to get your navbar links right. Yes help with code modifications or hacks is not a function of product support although we do try and give suggestions in some cases which I have done.

You are using a custom navbar in VB3 and not the normal one try this below as an example of what you need to do as you have relative links instead of full url's

<!-- BEGIN TEMPLATE: navbar -->

<div id="membox">
<div class="bot"><div class="top">
<div id="memberAreaBox">

<img src="http://www.snowcraze.com//img_default/memarea.gif" alt="Member Area:" width="101" height="22" />
<ul id="memberLogon">
<li id="myprofile" title="Profile"><a href="http://www.snowcraze.com/member.php?u=1"></a></li>
<li id="conpanel" title="Control Panel"><a href="http://www.snowcraze.com/usercp.php?"></a></li>
<li id="myalbums" title="My Albums"><a href="http://www.snowcraze.com/gallery/showgallery.php?cat=500&amp;ppuser=1"></a></li>
<li id="favpixes" title="Favorite Pictures"><a href="http://www.snowcraze.com/gallery/showgallery.php?cat=fav"></a></li>
<li id="myblog" title="My Blog"><a href="http://www.snowcraze.com/blog.php"></a></li>
<li id="mypost" title="My Post"><a href="http://www.snowcraze.com/search.php?do=finduser&amp;u=1"></a></li>

SNOWCRAZE December 24th, 2004 12:55 PM

Ok... i just put old header-inc.php and seem works right... but I stick to new one and still trying to figure out.

Right now on navbar template:
Quote:

<if condition="THIS_SCRIPT == 'bloguser' ">
<else />
<div id="membox">
<div class="bot"><div class="top">
<div id="memberAreaBox">
<if condition="$show['member']">
<img src="/img_default/memarea.gif" alt="Member Area:" width="101" height="22" />
<ul id="memberLogon">
<li id="myprofile" title="Profile"><a href="/member.php?$session[sessionurl]u=$bbuserinfo[userid]"></a></li>
<li id="conpanel" title="Control Panel"><a href="/usercp.php?$session[sessionurl]"></a></li>
<li id="myalbums" title="My Albums"><a href="/gallery/showgallery.php?cat=500&amp;ppuser=$bbuserinfo[userid]"></a></li>
<li id="favpixes" title="Favorite Pictures"><a href="/gallery/showgallery.php?cat=fav"></a></li>
<li id="myblog" title="My Blog"><a href="/blog.php"></a></li>
<li id="mypost" title="My Post"><a href="/search.php?$session[sessionurl]do=finduser&amp;u=$bbuserinfo[userid]"></a></li>
<li id="privmsg" title="Private Message"><a href="/private.php?$session[sessionurl]"></a></li>
</ul>
.....
....
...
..
.
and result on photopost/gallery is:
Quote:

<!-- BEGIN TEMPLATE: navbar -->

<div id="membox">
<div class="bot"><div class="top">
<div id="http://www.snowcraze.com/memberAreaBox">

<img src="/img_default/memarea.gif" alt="Member Area:" width="101" height="22" />
<ul id="http://www.snowcraze.com/memberLogon">
<li id="myprofile" title="Profile"><a href="/member.php?u=1"></a></li>
<li id="conpanel" title="Control Panel"><a href="/usercp.php?"></a></li>
<li id="myalbums" title="My Albums"><a href="/gallery/showgallery.php?cat=500&amp;ppuser=1"></a></li>
<li id="favpixes" title="Favorite Pictures"><a href="/gallery/showgallery.php?cat=fav"></a></li>
<li id="myblog" title="My Blog"><a href="/blog.php"></a></li>
<li id="mypost" title="My Post"><a href="/search.php?do=finduser&amp;u=1"></a></li>
.....
....
as you see, url should not be there on red text... Let me know if u want to see what i done w/ old header-inc.php? Look like my time is up cuz I gotta go to PA for holiday... I will back tmw night. I just realize I post wrong forum since it seem hink i should post at photopostdev.com? You can check css at: http://www.snowcraze.com/inc/default.css

Well happy holiday!

SNOWCRAZE December 24th, 2004 01:42 PM

Ok look like I found what's wrong... it's header-inc.php and it ($headrepl or $headvars) looks for "member" so it found "memberLogon" (CSS) and "memberAreaBox" (CSS) and so it adds url there. I guess it better if I change CSS name, it should solve plm.

Let me know if there's better way to alter on header-inc.php. Before I change CSS name tmw night.

Thank you!

Chuck S December 24th, 2004 02:03 PM

Nope our product is coded to rewrite url's as stated based on the normal VB3 navbar. Go ahead and rename your coding that should work.

SNOWCRAZE December 24th, 2004 02:24 PM

Ok. I just decide to replace from "member" to "member.php" at $headvars and $headrepl from header-inc.php and it's fixed anyway.


All times are GMT -5. The time now is 03:46 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97