The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Go To Popup in Navigation not showing (vB custom page in poup window)
Hi folks,
hope that someone can point me to the right direction. I have a popup window spawned from within a vB page that loads a custom vB-page. The framework is all there (global.php), and I have used this design many times before. only difference: now I do not show the navbar, perhaps this is the problem. I have database results on that external page, nicely paginated all over. Pagination looks good, and from the look on the html source in my browser it's all there. Only thing missing: The Go to popup. The space for it is there (one can see that there is an empty <td> there, and it's in the code). But already the pointer is missing that one clicks to open the popup. I already pasted Code:
<!-- PAGENAV POPUP --> <div class="vbmenu_popup" id="pagenav_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead" nowrap="nowrap">Gehe zu...</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="index.php" method="get" onsubmit="return this.gotopage()" id="pagenav_form"> <input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" /> <input type="button" class="button" id="pagenav_ibtn" value="Los" /> </form> </td> </tr> </table> </div> <!-- / PAGENAV POPUP --> Any hints? |
#2
|
||||
|
||||
No ideas?
|
#3
|
||||
|
||||
This is a Go To button in the popup window that isn't there? I don't understand what or where the something isn't working.
You said "The space for it is there (one can see that there is an empty <td> there, and it's in the code)." So, let's see the page source for that and let's see the actual code for that. |
#4
|
||||
|
||||
OK, here we go:
Output-Source: HTML Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px; margin-top: 0;"> <tr valign="bottom"> <td class="smallfont"> </td> <td align="right"><div class="pagenav" align="right"> <table class="tborder" cellpadding="3" cellspacing="1" border="0"> <tr> <td class="vbmenu_control" style="font-weight:normal">Seite 1 von 3</td> <td class="alt2"><span class="smallfont" title="Zeige Ergebnis 1 bis 9 von 25"><strong>1</strong></span></td> <td class="alt1"><a rel="nofollow" class="smallfont" href="photo_popup.php?ins=link_thumb_2_orig&alb=549&prod=2&cp=2&page=2" title="Zeige Ergebnis 10 bis 18 von 25">2</a></td><td class="alt1"><a rel="nofollow" class="smallfont" href="photo_popup.php?ins=link_thumb_2_orig&alb=549&prod=2&cp=2&page=3" title="Zeige Ergebnis 19 bis 25 von 25">3</a></td> <td class="alt1"><a rel="next" class="smallfont" href="photo_popup.php?ins=link_thumb_2_orig&alb=549&prod=2&cp=2&page=2" title="N?chste Seite - Ergebnis 10 bis 18 von 25">></a></td> <td class="vbmenu_control" title="photo_popup.php?ins=link_thumb_2_orig&alb=549&prod=2&cp=2"><a name="PageNav"></a></td> </tr> </table> </div></td> </tr> </table> PHP-Code: PHP Code:
Screenshot attached. One can see the pagination, at the right corner the space of the empty td is clearly visible. The framework of the page is as follows: PHP Code:
Thanks for your help, it's very much appreciated. |
#5
|
||||
|
||||
OK, this is your blank empty td from the source, right?
HTML Code:
<td class="vbmenu_control" title="photo_popup.php?ins=link_thumb_2_orig&alb=549&prod=2&cp=2"><a name="PageNav"></a></td> |
#6
|
||||
|
||||
I see - but that code does not originate from me - it's vB's own.
This is what's in my template: HTML Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px; margin-top: 0;"> <tr valign="bottom"> <td class="smallfont"> </td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> HTML Code:
<if condition="$show['popups']"><td class="vbmenu_control" title="$address$address2"><a name="PageNav"></a></td></if> </tr> </table> </div> HTML Code:
<td class="vbmenu_control" title="forumdisplay.php?f=21&order=desc"><a name="PageNav"></a></td> HTML Code:
/* ***** basic styles for multi-page nav elements */ .pagenav a { text-decoration: none; } .pagenav td { padding: 2px 4px 2px 4px; } The script that does pagination seems to be HTML Code:
<script type="text/javascript" src="clientscript/vbulletin_menu.js?v=380"></script> I even am quite sure I have identified the part of code that adds the image, but why it doesn't show up escapes me |
#7
|
||||
|
||||
bump.
|
#8
|
||||
|
||||
I still don't fully understand what the problem is, but..... perhaps you are missing the function that is needed? Have you tried including/requiring some other scripts in your page to see if that fixes the issue?
|
#9
|
||||
|
||||
Hm, those javascripts and stylesheets are called:
HTML Code:
<!-- CSS Stylesheet --> <style type="text/css" id="vbulletin_css"> /** * vBulletin 3.8.0 CSS * Style: 'Rom-Forum 2'; Style ID: 3 */ @import url("clientscript/vbulletin_css/style-f93e095c-00003.css"); </style> <link rel="stylesheet" type="text/css" href="clientscript/vbulletin_important.css?v=380" /> <!-- / CSS Stylesheet --> <script type="text/javascript" src="clientscript/yui/yahoo-dom-event/yahoo-dom-event.js?v=380"></script> <script type="text/javascript" src="clientscript/yui/connection/connection-min.js?v=380"></script> <script type="text/javascript"> <!-- var SESSIONURL = ""; var SECURITYTOKEN = "1232907401-65ec3d17d2f5529672168f47cdfb6d8b7bb67fbd"; var IMGDIR_MISC = "http://www.roma-antiqua.de/forum/images/ra_misc"; var vb_disable_ajax = parseInt("0", 10); // --> </script> <script type="text/javascript" src="clientscript/vbulletin_global.js?v=380"></script> <script type="text/javascript" src="clientscript/vbulletin_menu.js?v=380"></script> <link rel="alternate" type="application/rss+xml" title="Rom-Forum - Reise-Tipps & mehr RSS Feed" href="external.php?type=RSS2" /> <link rel="SHORTCUT ICON" href="/favicon.ico"> <link rel="STYLESHEET" type="text/css" href="/css/romaantiqua.css" /> <link rel="STYLESHEET" type="text/css" href="/css/menu.css" /> <script type="text/javascript"> function adjustIFrameSize (iframeWindow) { if (iframeWindow.document.height) { var iframeElement = document.getElementById (iframeWindow.name); iframeElement.style.height = iframeWindow.document.height + 'px'; iframeElement.style.width = iframeWindow.document.width + 'px'; } else if (document.all) { var iframeElement = document.all[iframeWindow.name]; if (iframeWindow.document.compatMode && iframeWindow.document.compatMode != 'BackCompat') { iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 5 + 'px'; iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 5 + 'px'; } else { iframeElement.style.height = iframeWindow.document.body.scrollHeight + 15 + 'px'; iframeElement.style.width = iframeWindow.document.body.scrollWidth + 15 + 'px'; } } } </script> <script language="JavaScript" type="text/javascript"> function thumbpaste (codehtml, codebb) { if (window.opener.vB_Editor['vB_Editor_QE_1'].wysiwyg_mode) { window.opener.vB_Editor['vB_Editor_QE_1'].insert_text(codehtml); window.opener.vB_Editor['vB_Editor_QE_1'].collapse_selection_end(); } else { window.opener.vB_Editor['vB_Editor_QE_1'].insert_text(codebb); window.opener.vB_Editor['vB_Editor_QE_1'].collapse_selection_end(); } return; } </script> <script language="JavaScript" type="text/javascript"> var editorsubmit = window.opener.document.getElementById('vB_Editor_QE_1_save'); function fnCallback(e) { self.close(); } YAHOO.util.Event.addListener(editorsubmit, "click", fnCallback); </script> <script language="JavaScript" type="text/javascript"> function copyclip (codehtml, codebb) { code = ; document.getElementById('codebox').value = code; clipboardData.setData('text', code); } </script> |
#10
|
||||
|
||||
I'm talking about including/requiring certain scripts in your php code, not the html output.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|