bad address when leaving gallery to goto ucp

Post any general problems, information or issues on ModphpBB3 in here.
Post Reply
Carbon6
Forum Member
Forum Member
Posts: 8
Joined: Mon Sep 14, 2009 3:12 am

bad address when leaving gallery to goto ucp

Post by Carbon6 »

Hi,
first thing, nice premod, lots of great features.. :good:

Currently running a test on a local machine, using 1.0.5 (beta) portal ver, with the glacier style installed.
Board updated to 3.0.5 & arcade to rc9.

Everything looks to be working sweet apart from if i goto the gallery (myboard/gallery/index.php) then attempt to goto the 'user control panel/overview' or 'user control panel/profile' etc from the drop down menus, i get a 404, as the URL requested is 'myboard/gallery/ucp.php'

Clicking just the first 'user control panel' link works fine, and will take me to the ucp, but if the deeper selections are available, i might as well get them working :D

Do you know of a fix for this please?

Thanks :)
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: bad address when leaving gallery to goto ucp

Post by LDM »

Not too sure, haven't seen that error before. It may be worth checking on a live server to see if it still gives that error.

So to make it clear, whaen you clcik 'user control panel' from gallery pages, it gives 404?

It may be cause it's an earlier gallery version, so would be wise to update it, but wasn't aware of that before.
Carbon6
Forum Member
Forum Member
Posts: 8
Joined: Mon Sep 14, 2009 3:12 am

Re: bad address when leaving gallery to goto ucp

Post by Carbon6 »

Ok, uploaded to my webserver, still getting the same issue.
they say a picture speaks a thousand word... look at url at the bottom.
Capture_09212009_161812.png
Capture_09212009_161819.png


could you proved a link to gallery update if you think it worth a try updating? thanks...
-----------------------------------------

Also, since uploading to webserver the board refuses to let me stay logged in with firefox (thus pictures taken in evil IE)
I have..
Cleaned FF cache
Removed associated cookies
Emptied the boards cache on the webserver

It will let me log in, tells me its proceeding to the board, then immediately logs me out again.
Any advice?

again, thanks for your time.
You do not have the required permissions to view the files attached to this post.
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: bad address when leaving gallery to goto ucp

Post by LDM »

Okay, I think the gallery is possibly adding the gallery link again because of a nav error on that glacier. Could you try going to prosilver and trying the same on that just briefly and see what happens?

The logging in issue looks to me that it is still seeing the settings from within your local host. So if you go to phpmyadmin and check phpbb_config looking at cookie and domain settings, then changing those with phpmyadmin to your new domain details.
Carbon6
Forum Member
Forum Member
Posts: 8
Joined: Mon Sep 14, 2009 3:12 am

Re: bad address when leaving gallery to goto ucp

Post by Carbon6 »

Prosilver works, but mainly due to the fact that i can only goto the ucp main, as there is no way to go direct to ucp/profile or ucp/prefs (unless i have overlooked something?)
are the navbar links are in overall_header? would the easy fix be to modify them i guess?
-------------

I had already changed server & cookie settings for the board to point to the (hopefully) correct place. (and just checked in phpmyadmin to be sure)
Just to confirm,
Spoiler: show
the board is in root of subdomain 'board.gravediggaz.org' (DNS registered)
Cookie setting is .board.gravediggaz.org
Cookie path is /
Sever name is http://board.gravediggaz.org
Is that correct?
I own the main domain and have it for a gaming site currently, so its not shared or anything.

The odd thing is, i had logged in and out a few times while testing last night, yet today the error presented itself :glare:

Thanks :)
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: bad address when leaving gallery to goto ucp

Post by LDM »

I'll reg and have a look. The domain settings look okay, but you may need to flush your browser again.
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: bad address when leaving gallery to goto ucp

Post by LDM »

can you copy and paste your overall_header.html in code box in a post.
Carbon6
Forum Member
Forum Member
Posts: 8
Joined: Mon Sep 14, 2009 3:12 am

Re: bad address when leaving gallery to goto ucp

Post by Carbon6 »

As requested

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<link rel="alternate" type="application/rss+xml" title="Forum" href="rss.php">
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="{PAGE_KEYWORDS}" />
<meta name="description" content="{PAGE_DESCRIPTION}" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<!--
	phpBB style name: prosilver
	Based on style:   prosilver (this is the default phpBB3 style)
	Original author:  Tom Beddard ( http://www.subBlue.com/ )
	Modified by:   Ika - ShadowFlames Development     
	
	NOTE: This page was generated by phpBB, the free open-source bulletin board package.
	      The phpBB Group is not responsible for the content of this page and forum. For more information
	      about phpBB please visit http://www.phpbb.com
          This forum is using the Fully Modified version of phpBB and details of this can be found at http://www.modphpbb3.com
-->

<script type="text/javascript">
// <![CDATA[
	var jump_page = '{LA_JUMP_PAGE}:';
	var on_page = '{ON_PAGE}';
	var per_page = '{PER_PAGE}';
	var base_url = '{A_BASE_URL}';
	var style_cookie = 'phpBBstyle';
	var onload_functions = new Array();
	var onunload_functions = new Array();

	<!-- IF S_USER_PM_POPUP -->
		if ({S_NEW_PM})
		{
			var url = '{UA_POPUP_PM}';
			window.open(url.replace(/&/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
		}
	<!-- ENDIF -->

	/**
	* Find a member
	*/
	function find_username(url)
	{
		popup(url, 760, 570, '_usersearch');
		return false;
	}

	/**
	* New function for handling multiple calls to window.onload and window.unload by pentapenguin
	*/
	window.onload = function()
	{
		for (var i = 0; i < onload_functions.length; i++)
		{
			eval(onload_functions[i]);
		}
	}

	window.onunload = function()
	{
		for (var i = 0; i < onunload_functions.length; i++)
		{
			eval(onunload_functions[i]);
		}
	}

// ]]>
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/styleswitcher.js"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>

<!--[if lt IE 7.]>
<script defer="defer" type="text/javascript" src="{T_TEMPLATE_PATH}/pngfix.js"></script>
<![endif]-->

<link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="{T_STYLESHEET_LINK}" rel="stylesheet" type="text/css" media="screen, projection" />

<link href="{T_THEME_PATH}/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="{T_THEME_PATH}/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />
<link href="{T_THEME_PATH}/large.css" rel="alternate stylesheet" type="text/css" title="A++" />

<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->
	<link href="{T_THEME_PATH}/bidi.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->
<script type="text/javascript" src="{U_SHOUT_STATIC}"></script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
<script type="text/javascript" src="{U_SHOUT}"></script>
<script type="text/javascript" src="highslide/highslide-full.js"></script>
<script type="text/javascript">
	// remove the registerOverlay call to disable the controlbar
	hs.registerOverlay(
    	{
    		thumbnailId: null,
    		overlayId: 'controlbar',
    		position: 'top right',
    		hideOnMouseOut: true
		}
	);

    hs.graphicsDir = 'highslide/graphics/';
    hs.outlineType = 'rounded-white';
</script>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/gallery_lytebox.js"></script>
<script type="text/javascript" >
	if (window.addEventListener) {
		window.addEventListener("load",initLytebox,false);
	} else if (window.attachEvent) {
		window.attachEvent("onload",initLytebox);
	} else {
		window.onload = function() {initLytebox();}
	}
	function initLytebox() {
		var imgMaxWidth = 1280;
		var imgWarning = '';
		myLytebox = new LyteBox(imgMaxWidth, imgWarning);
	}
</script>
<!-- INCLUDE ads/ads.js -->

<!-- IF S_IN_ARCADE -->
	<link href="{T_THEME_PATH}/arcade.css" rel="stylesheet" type="text/css" media="screen, projection" />
<!-- ENDIF -->

</head>

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
    <div class="outside">
       <div class="top-left"></div><div class="top-center"></div><div class="top-right"></div>
          <div class="inside">
             <div class="notopgap"></div>
<div id="wrap">
	<a id="top" name="top" accesskey="t"></a>

    <div id="header_nav">
        <span class="preload1"></span>
        <span class="preload2"></span>
        
            <ul id="nav">
                <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN -->
                <li class="top"><a href="{U_INDEX}" class="top_link"><span style="color: red;">{L_BOARD_DISABLED}</span></a></li>
                <!-- ENDIF -->
                <!-- IF not S_IS_BOT -->
                <li class="top"><a href="{U_LOGIN_LOGOUT}" class="top_link"><span>{L_LOGIN_LOGOUT}</span></a></li>
                <!-- ENDIF -->
                <!-- IF U_RESTORE_PERMISSIONS -->
                <li class="top"><a href="{U_RESTORE_PERMISSIONS}" class="top_link"><span>{L_RESTORE_PERMISSIONS}</span></a></li>
                <!-- ENDIF -->
                <!-- IF not S_IS_BOT -->
                    <!-- IF S_USER_LOGGED_IN -->
                        <!-- IF S_DISPLAY_PM -->
                        <li class="top"><a href="{U_PRIVATEMSGS}" class="top_link"><span>{PRIVATE_MESSAGE_INFO}</span></a></li>
                        <!-- ENDIF -->
                        <!-- ELSE -->
                        <li class="top"><a href="{U_REGISTER}" class="top_link"><span>{L_REGISTER}</span></a></li>
                        <!-- ENDIF -->
                <!-- ENDIF -->
                <!-- IF S_USER_LOGGED_IN -->
                <li class="top"><a href="#" id="controlpanel" class="top_link"><span class="down">Control Panel</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul class="sub">
                        <!-- IF S_USER_LOGGED_IN -->
                        <li><b>Users</b></li>
                        <li><a href="{U_PROFILE}" class="fly">{L_PROFILE}<!--[if gte IE 7]><!--></a><!--<![endif]-->
                                <!--[if lte IE 6]><table><tr><td><![endif]--><ul>
                                    <li><a href="./ucp.php?i=163">Overview</a></li>
                                    <li><a href="./ucp.php?i=164">Profile</a></li>
                                    <li><a href="./ucp.php?i=165">Board Preferences</a></li>
                                    <li><a href="./ucp.php?i=166">Private Messages</a></li>
                                    <li><a href="./ucp.php?i=167">User Groups</a></li>
                                    <li><a href="./ucp.php?i=168">Friends & Foes</a></li>
                                </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                        <!-- ENDIF -->
                        <!-- IF U_MCP -->
                        <li><b>Moderators</b></li>
                        <li><a href="{U_MCP}">{L_MCP}</a></li>
                        <!-- ENDIF -->
                        <!-- IF U_ACP -->
                        <li><b>Administrators</b></li>
                        <li><a href="{U_ACP}">{L_ACP}</a></li>
                        <!-- ENDIF -->
                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                </li>
                <!-- ENDIF -->
                <li class="top"><a href="{U_INDEX}" id="forumlinks" class="top_link"><span class="down">Forum</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul class="sub">
                        <li><b>Information</b></li>
                        <li><a href="{U_FAQ}">{L_FAQ}</a></li>
                        <!-- IF S_DISPLAY_MEMBERLIST --><li><a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a></li><!-- ENDIF -->
                        <li><b>Manage</b></li>
                        <!-- IF not S_IS_BOT and U_MARK_FORUMS --><li><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
                        <!-- IF not S_IS_BOT and U_MARK_TOPICS --><li><a href="{U_MARK_TOPICS}">{L_MARK_TOPICS_READ}</a></li><!-- ENDIF -->
                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                </li>
                <!-- IF S_DISPLAY_SEARCH -->
                <li class="top"><a href="{U_SEARCH}" id="forumsearch" class="top_link"><span class="down">{L_SEARCH}</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul class="sub">
                        <li><b>Common Searches</b></li>
                        <li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></li>
                        <li><a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
                        <!-- IF S_USER_LOGGED_IN -->
                        <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
                        <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
                        <!-- ENDIF -->
                        <li><b>Custom Searches</b></li>
                        <li><a href="{U_SEARCH}">Advanced Search</a></li>
                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                </li>
                <!-- ENDIF -->
                <li class="top"><a href="#" id="phpbbresources" class="top_link"><span class="down">Links</span><!--[if gte IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]--><ul class="sub">
                        <li><b>Forum Links</b></li>
                        <li><a href="{U_PORTAL}">{L_PORTAL}</a></li>
                        <li><a href="{U_ARCADE}">Arcade</a></li>
                        <li><a href="{U_GALLERY_MOD}">Gallery</a></li>
                        <li><a href="{U_CHAT}">Chat</a></li>
                        <li><a href="{U_CONTACT}">Contact Admin</a></li>
                        <!-- IF U_ACP -->
                        <li><b>Admin Links</b></li>
                        <li><a href="#">Link 8</a></li>
                        <li><a href="#">Link 9</a></li>
                        <li><a href="#">Link 10</a></li>
                        <!-- ENDIF -->
                    </ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->
                </li>
                <!-- IF S_USER_LOGGED_IN -->
                <li class="top"><a href="{U_SEARCH_NEW}" class="top_link"><span>{L_SEARCH_NEW}</span></a></li>
                <!-- ENDIF -->
            </ul>
            
        </div>
        
        <div id="page-header">
        {ADS_1}
		<div class="headerbar">
			<div class="inner"><span class="corners-top"><span></span></span>
			<a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
				<br />
			<div id="site-description">
				
				<h1>{SITENAME}</h1>
				<p>{SITE_DESCRIPTION}</p>
				<p style="display: none;"><a href="#start_here">{L_SKIP}</a></p>
			</div>

		<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
			<div id="search-box">
				<form action="{U_SEARCH}" method="post" id="search">
				<fieldset>
					<input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" /> 
					<input class="button2" value="{L_SEARCH}" type="submit" /><br />
					<a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
				</fieldset>
				</form>
			</div>
		<!-- ENDIF -->

			<span class="corners-bottom"><span></span></span></div>
		</div>

		<div class="navbar">
			<div class="inner"><span class="corners-top"><span></span></span>

			<ul class="linklist navlinks">
               	<li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>
				<li class="rightside"><a href="#" onclick="fontsizeup(); return false;" onkeypress="fontsizeup(); return false;" class="fontsize" title="{L_CHANGE_FONT_SIZE}">{L_CHANGE_FONT_SIZE}</a></li>

				<!-- IF U_EMAIL_TOPIC --><li class="rightside"><a href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}" class="sendemail">{L_EMAIL_TOPIC}</a></li><!-- ENDIF -->
				<!-- IF U_EMAIL_PM --><li class="rightside"><a href="{U_EMAIL_PM}" title="{L_EMAIL_PM}" class="sendemail">{L_EMAIL_PM}</a></li><!-- ENDIF -->
				<!-- IF U_PRINT_TOPIC --><li class="rightside"><a href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}" accesskey="p" class="print">{L_PRINT_TOPIC}</a></li><!-- ENDIF -->
				<!-- IF U_PRINT_PM --><li class="rightside"><a href="{U_PRINT_PM}" title="{L_PRINT_PM}" accesskey="p" class="print">{L_PRINT_PM}</a></li><!-- ENDIF -->
			</ul>

			<span class="corners-bottom"><span></span></span></div>
		</div>

	</div>
    
    <!-- IF ADS_2 -->
	<br />
	<div class="forabg">
		<div class="inner"><span class="corners-top"><span></span></span>
			<ul class="topiclist">
				<li class="header">
					<dl class="icon">
						<dt>{L_ADVERTISEMENT}</dt>
					</dl>
				</li>
			</ul>
			<div style="padding: 5px 5px 2px 5px; font-size: 1.1em; background-color: #ECF1F3; margin: 0px auto; text-align: center;">
				{ADS_2}
			</div>
		<span class="corners-bottom"><span></span></span></div>
	</div>
	<!-- ENDIF -->

	<a name="start_here"></a>
	<div id="page-body">
		
		 <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) --> 
		<div id="message" class="rules">
			<div class="inner"><span class="corners-top"><span></span></span>
				<strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
			<span class="corners-bottom"><span></span></span></div>
		</div>
		<!-- ENDIF -->
<!-- INCLUDE arcade/arcade_info_body.html -->
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: bad address when leaving gallery to goto ucp

Post by LDM »

okay a dirty quick fix time.

Find:

Code: Select all

<li><a href="./ucp.php?i=163">Overview</a></li>
                                    <li><a href="./ucp.php?i=164">Profile</a></li>
                                    <li><a href="./ucp.php?i=165">Board Preferences</a></li>
                                    <li><a href="./ucp.php?i=166">Private Messages</a></li>
                                    <li><a href="./ucp.php?i=167">User Groups</a></li>
                                    <li><a href="./ucp.php?i=168">Friends & Foes</a></li>
Change to:

Code: Select all

<li><a href="./ucp.php?i=163">Overview</a></li>
                                    <li><a href="http://board.gravediggaz.org/ucp.php?i=164">Profile</a></li>
                                    <li><a href="http://board.gravediggaz.org/ucp.php?i=165">Board Preferences</a></li>
                                    <li><a href="http://board.gravediggaz.org/ucp.php?i=166">Private Messages</a></li>
                                    <li><a href="http://board.gravediggaz.org/ucp.php?i=167">User Groups</a></li>
                                    <li><a href="http://board.gravediggaz.org/ucp.php?i=168">Friends & Foes</a></li>
Re-up the overall_header.html and refresh styles - Glacier - Template cache.
Carbon6
Forum Member
Forum Member
Posts: 8
Joined: Mon Sep 14, 2009 3:12 am

Re: bad address when leaving gallery to goto ucp

Post by Carbon6 »

Excellent, thanks.. :good:
This location is only temp for testing, so i will just update the code to reflect the new URL when i move it.

Also, the Firefox log in issue is fixed, it seems Firefox doesn't clear the cache properly if the page is left open.. Lesson learnt :)

Ok, one more thing....hehe...

Advertisements are disabled in acp Advertisement Management Settings, yet there is a persistent ad banner in the footer..
A setting i have missed maybe?
Cheers
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: bad address when leaving gallery to goto ucp

Post by LDM »

That is seperate, just a little way of trying to raise a cent for the server here, but obviously you can change that to your own account number or remove totally via This Post Instructions. :good:
Carbon6
Forum Member
Forum Member
Posts: 8
Joined: Mon Sep 14, 2009 3:12 am

Re: bad address when leaving gallery to goto ucp

Post by Carbon6 »

Cool.. Many thanks for you time, and your board
I will leave the footer banner in for while after setting up as you've been more than helpful :good:
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: bad address when leaving gallery to goto ucp

Post by LDM »

Thanks carbon, but no worries, feel free obviously to remove or change the ad when you need to :good:
Post Reply