PDA

View Full Version : check it out?



Chadi
07-19-2008, 03:03 PM
1) Script Title:
Ajax Tabs Content Script (v 2.2)

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm

3) Describe problem:


In my vbulletin forum's who's online section, the majority of people on the home page (or so it seems) shows this

Viewing Gallery Check it Out

The weird thing is that the check it out page is the first ajax tab on the home page (right side shoutbox) which if you click the link, shows you that custom vb template page, which is merely the 4 icons from that first ajax tab.

How can I fix that so who's online properly shows "index" or whatever default it should show when the member is on the home page?

I have this in forumhome template


<link rel="stylesheet" type="text/css" href="clientscript/ajaxtabs/ajaxtabs.css" />
<script type="text/javascript" src="clientscript/ajaxtabs/ajaxtabs.js"></script>That's above head section

In the body I have


<div align="center">
<div id="flowerdivcontainer" style="width:250px; height: 200px; padding: 2px"></div>
<div id="flowertabs" class="modernbricksmenu2">
<ul>
<li><a href="misc.php?do=page&template=ajax1" class="selected">Fun</a></li>
<li><a href="misc.php?do=page&template=ajax2">Forum</a></li>
<li><a href="misc.php?do=page&template=ajax3">Bible</a></li>
<li><a href="misc.php?do=page&template=ajax4">Tools</a></li>
<li><a href="misc.php?do=page&template=ajax5">?</a></li>
</ul>
</div>
</div>

<script type="text/javascript">
var myflowers=new ddajaxtabs("flowertabs", "flowerdivcontainer")
myflowers.setpersist(true)
myflowers.setselectedClassTarget("link") //"link" or "linkparent"
myflowers.init()
</script>

ddadmin
07-19-2008, 05:34 PM
Hmm I'm not quite getting this visually. Please post a link to the page on your site that contains the problematic script so we can check it out.

thetestingsite
07-19-2008, 05:38 PM
the page is linked in the signature and the link points here:

http://www.talkjesus.com/index.php

The part that the user is talking about is in the box with "Currently Active Users" and off to the right of the shoutbox.

Chadi
07-19-2008, 06:48 PM
Thank you testingsite. That's correct.

ddadmin
07-20-2008, 08:03 AM
Ok, I see where the Ajax Tabs are, which for me are:

* Fun
* Forum
* Bible
* Tools
* ?

After that I'm lost though as to what you're asking. What do you mean by "Check it Out" page? You'll have to rephrase your question.

Chadi
07-20-2008, 01:25 PM
When you go to the who's online page (not visible to visitors anyway)

http://www.talkjesus.com/online.php

See screenshot
http://img243.imageshack.us/img243/3428/85163481js9.gif (https://addons.mozilla.org/firefox/1174)

Clicking "check it out" takes you to the first ajax tab's page

http://www.talkjesus.com/misc.php?do=page&template=ajax1&1216559003714=

ddadmin
07-22-2008, 03:40 AM
Well, I'm not registered on the forums, but nowhere do I see the link "check it out" on any of the links you've provided so far.

Chadi
07-22-2008, 03:50 AM
I don't understand your response. Do you see the link in the screen shot? I showed the screen shot to give you an explanation of what I'm referring to, and unregistered members cannot see this which is why I clarified that earlier too when I said "not visible to visitors anyway".

Its below "Viewing Gallery" all the time, so its obvious when the visitor is technically on the home page, for some reason its pulling in as if they're on the first ajax tab oddly.

To make it easier, I've enabled the view for unregistered visitors to be able to see it.

http://www.talkjesus.com/online.php

I just noticed that each individual "check it out" link takes you to wherever that member is at. Its really strange

Thanks for your help in advance

ddadmin
07-24-2008, 07:19 AM
Ok this one's making my head hurt just trying to follow the steps to reach the problem. :) Now I see what you mean by "check it out" link- it's one of the really small text below certain usernames (I don't see how a screenshot would have been useful until you actually allowed non registered members to actually test things out). So I click on the link- it take me back to the homepage. Ok, now I'm confused what the problem is again. lol

The problem may be a simple one, but somehow your question is taking the reader through so many hoops he/she ends up getting lost long before reaching the problem itself. The best way to ask a question is always to isolate, then isolate some more so the problem is reduced to something that can be duplicated/ presented on a clean page without all the surrounding clutter, in this case, a complex one that is vBulletin and its interface. I see your other question (http://www.dynamicdrive.com/forums/showthread.php?t=34520), and I sense the some headache coming on if I tried to walk down the path laid out to test out the issue. Sorry about the lecture, but it's necessary based on the fact that we're just a very small handful of people going through tons of questions daily. :)

Chadi
07-26-2008, 07:03 PM
Let's try this again. First, I must clarify as you can see live on the page and in the screen shot, the 'check it out' link is not below the username, but its on the same row in the Location column. It is below the "viewing gallery" text/link.

Further, the 'view gallery' is technically them on the home page, so technically it should say 'viewing index'. However, its assuming they are viewing the ajax tab (the first one selected by default, on the *home page*) which does have teh gallery icon and link to it of course. Why its doing that, I do not know. Its baffling me, but I'm sure an expert here will figure it out.

Some more details, this is my (portion) forumhome template with DD ajax tabs code highlighted in red:


$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
<link rel="stylesheet" type="text/css" href="clientscript/ajaxtabs/ajaxtabs.css" />
<script type="text/javascript" src="clientscript/ajaxtabs/ajaxtabs.js"></script>
</head>
<body>
$header
$navbar

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top" width="100%">

<!-- guest welcome message -->
<if condition="$show['guest']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tr>
<td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1">
<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
</td>

</tr>
</table>
<div class="cat_spacer"></div>
</if>
<!-- / guest welcome message -->

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%">

<tr>
<td class="tcat" colspan="2">
<a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline
</td>
</tr>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_Shoutbox')"><img id="collapseimg_forumhome_Shoutbox" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_Shoutbox].gif" alt="" border="0" /></a>
Talk Jesus Shoutbox!</td>
</tr>
<tr>
<td align="center" class="alt2">
<iframe frameborder="0" width="100%" height="185" src="http://www.cbox.ws/box/?boxid=439&amp;boxtag=7868&amp;sec=main" marginheight="1" marginwidth="1" scrolling="auto" name="cboxmain" id="cboxmain"></iframe>
</td>
<td style="width: 250px; padding: 5px;" rowspan="2" class="alt2">
<div class="editor" align="center">
<b>Members in Live Chat:&nbsp;
<font size="5">$apichat[currentuserlocation]</font></b>
</div>

<div align="center">
<div id="flowerdivcontainer" style="width:250px; height: 200px; padding: 2px"></div>
<div id="flowertabs" class="modernbricksmenu2">
<ul>
<li><a href="misc.php?do=page&template=ajax1" class="selected">Fun</a></li>
<li><a href="misc.php?do=page&template=ajax2">Forum</a></li>
<li><a href="misc.php?do=page&template=ajax3">Bible</a></li>
<li><a href="misc.php?do=page&template=ajax4">Tools</a></li>
<li><a href="misc.php?do=page&template=ajax5">?</a></li>
</ul>
</div>
</div>

<script type="text/javascript">
var myflowers=new ddajaxtabs("flowertabs", "flowerdivcontainer")
myflowers.setpersist(true)
myflowers.setselectedClassTarget("link") //"link" or "linkparent"
myflowers.init()
</script>

</td>
</tr>

<tr>
<td align="center" class="alt2">
<if condition="in_array($bbuserinfo['usergroupid'], array(2,6,7))">
<iframe frameborder="0" width="100%" height="55" src="http://www.cbox.ws/box/?boxid=439&amp;boxtag=7868&amp;sec=form&amp;nme=<?=urlencode($username)?>&amp;nmekey=<?=md5('1j3n8ei6mo4j2g40'.$username)?>&amp;wname=75&amp;wemail=68&amp;wmsg=250" marginheight="1" marginwidth="1" scrolling="no" allowtransparency="yes" name="cboxform" id="cboxform"></iframe>
<else />
You must be logged in and registered to use this shoutbox
</if>
</td>
</tr>
</table>
<div class="spacer"></div>