PDA

View Full Version : Incorrect Image and Active Member Link URLs


zylstra
10-06-2004, 06:06 AM
At my site the links to the members in the Active Users box and the image in the Latest Forum Topics box doesn't work. Neither URL have the forum/ portion of the link. How should I fix this correctly?

Also, I cannot get the full size calendar to work on the Default/Homepage. To attempt this I created a new template that just contained part of the CALENDAR template (shown below), and put that template's name in the "Page Template" input box on the "Edit Page: Default / Homepage" page. What else do I need to do to get the calendar to show correctly? Does anyone have another solution if I am not doing this in the easiest fashion?

Thanks.

<if condition="$show['popups'] == 0"></if>

<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" width="100%">$calendarinfo[title]</td>

<if condition="$show['popups']">
<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]c=$calendarinfo[calendarid]&amp;month=$today[mon]&amp;year=$today[year]">$vbphrase[show_today]</a></td>
<td class="vbmenu_control" id="cal_mode">
<if condition="$show['weeklyview']">
$vbphrase[weekly_view]
</if>
<if condition="$show['monthlyview']">
$vbphrase[monthly_view]
</if>
<if condition="$show['yearlyview']">
$vbphrase[yearly_view]
</if>
<script type="text/javascript"> vbmenu_register("cal_mode"); </script>
</td>
<td class="vbmenu_control" id="add_event">$vbphrase[add_new_event] <script type="text/javascript"> vbmenu_register("add_event"); </script></td>
</if>

</tr>
</table>

<if condition="!$show['popups']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0x">
<tr align="center">
<td class="alt1"><span class="smallfont"><a href="calendar.php?$session[sessionurl]c=$calendarinfo[calendarid]&amp;month=$today[mon]&amp;year=$today[year]">$vbphrase[show_today]</a></span></td>
<if condition="$show['weeklyview']">
<td class="alt2"><span class="smallfont"><strong>$vbphrase[weekly_view]</strong></span></td>
<else />
<td class="alt1"><span class="smallfont"><a href="calendar.php?$session[sessionurl]c=$calendarid&amp;do=displayweek">$vbphrase[weekly_view]</a></span></td>
</if>
<if condition="$show['monthlyview']">
<td class="alt2"><span class="smallfont"><strong>$vbphrase[monthly_view]</strong></span></td>
<else />
<td class="alt1"><span class="smallfont"><a href="calendar.php?$session[sessionurl]c=$calendarid&amp;do=displaymonth">$vbphrase[monthly_view]</a></span></td>
</if>
<if condition="$show['yearlyview']">
<td class="alt2"><span class="smallfont"><strong>$vbphrase[yearly_view]</strong></span></td>
<else />
<td class="alt1"><span class="smallfont"><a href="calendar.php?$session[sessionurl]c=$calendarid&amp;do=displayyear&amp;year=$year">$vbphrase[yearly_view]</a></span></td>
</if>
</tr>
</table>
</if>

</div>

<if condition="$show['popups']">
<!-- popup menus -->

<!-- mode menu -->
<div class="vbmenu_popup" id="cal_mode_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[calendar_mode]</td>
</tr>
<tr>
<if condition="$show['weeklyview']">
<td class="vbmenu_option" title="nohilite">
<img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[weekly_view]" border="0" />
<strong>$vbphrase[weekly_view]</strong>
</td>
<else />
<td class="vbmenu_option">
<img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[weekly_view]" border="0" />
<a href="calendar.php?$session[sessionurl]c=$calendarid&amp;do=displayweek">$vbphrase[weekly_view]</a>
</td>
</if>
</tr>
<tr>
<if condition="$show['monthlyview']">
<td class="vbmenu_option" title="nohilite">
<img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[monthly_view]" border="0" />
<strong>$vbphrase[monthly_view]</strong>
</td>
<else />
<td class="vbmenu_option">
<img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[monthly_view]" border="0" />
<a href="calendar.php?$session[sessionurl]c=$calendarid&amp;do=displaymonth">$vbphrase[monthly_view]</a>
</td>
</if>
</tr>
<tr>
<if condition="$show['yearlyview']">
<td class="vbmenu_option" title="nohilite">
<img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[yearly_view]" border="0" />
<strong>$vbphrase[yearly_view]</strong>
</td>
<else />
<td class="vbmenu_option">
<img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[yearly_view]" border="0" />
<a href="calendar.php?$session[sessionurl]c=$calendarid&amp;do=displayyear&amp;year=$year">$vbphrase[yearly_view]</a>
</td>
</if>
</tr>
</table>
</div>
<!-- / mode menu -->

<!-- add event menu -->
<div class="vbmenu_popup" id="add_event_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[add_new_event]</td>
</tr>
<tr>
<td class="vbmenu_option">
<img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[single_all_day_event]" border="0" />
<a href="calendar.php?$session[sessionurl]do=add&amp;type=single&amp;c=$calendarinfo[calendarid]">$vbphrase[single_all_day_event]</a>
</td>
</tr>
<tr>
<td class="vbmenu_option">
<img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[ranged_event]" border="0" />
<a href="calendar.php?$session[sessionurl]do=add&amp;c=$calendarinfo[calendarid]">$vbphrase[ranged_event]</a>
</td>
</tr>
<tr>
<td class="vbmenu_option">
<img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[recurring_event]" border="0" />
<a href="calendar.php?$session[sessionurl]do=add&amp;type=recur&amp;c=$calendarinfo[calendarid]">$vbphrase[recurring_event]</a>
</td>
</tr>
</table>
</div>
<!-- / add event menu -->

<!-- / popup menus -->
</if>


<if condition="$show['weeklydisplay']">
<!-- show a week -->
<!-- / show a week -->
</if>

<if condition="$show['monthlydisplay']">
<!-- show a month -->
<!-- / show a month -->
</if>

<if condition="$show['yearlydisplay']">
<!-- show a year -->
<!-- show a year -->
</if>

$spacer_close
$spacer_open

$HTML

$spacer_close
$spacer_open

Brian
10-06-2004, 12:22 PM
For the active user's box, please see this thread (http://www.vbadvanced.com/forum/showthread.php?t=1387)
As for the icon, edit your vBulletin options and save them (you don't actually have to change anything, just save them to update the cache).
As for the calendar, you'd be much better off just integrating the calendar with the CMPS. There are instructions on how to do this in the User's Manual available in the Member's Area here.

Our Sponsors
 

zylstra
10-11-2004, 02:25 PM
Brian,

Thanks for the quick response. Regarding the calendar, I understand that you directed me to the "Integrating Other vB Pages & Hacks" page in the User Manual, and I believe I would be able to do this. However, I would like the calendar to show up on the site's homepage, rather than vbadvanced modules showing up on the left of the calendar's pages.

Thanks.

Brian
10-11-2004, 03:19 PM
Your best bet for that would be to add the same chdir line that is in your cmps_index.php file to your calendar.php file right above the call to global.php in there, follow the instructions to integrate that page with the CMPS, and then rename the file to index.php and place it in your root directory.

Our Sponsors
 

zylstra
10-11-2004, 04:06 PM
Wow, and thanks again. The page showed up with the calendar. However, none of the links work now. With the original vBa index, all of the links worked. Now, even the links on the navbar don't work. I included the chdir line just as you directed. And I assume by "call to global.php" you mean the line:require_once('./global.php');Any ideas on how to fix this?

Also, the calendar is narrower than the heading. This is more trivial, but I tried to fix it and had no luck.

Thanks.

Should I just reinstall the whole vBulletin in the home directory?

Brian
10-11-2004, 04:34 PM
Your best bet for the links would probably be to edit the templates and add $vboptions[bburl]/ in front of the links.