php forum
php mysql forum
php mysql smarty
 
Page 5 of 14 < 1 2 3 4 5 6 7 ... 13 14 >
Topic Options
#199104 - 03/02/04 08:51 AM Re: [6.6 - 6.7] [finished] Calendar
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
upload a blank vars_calendar_events.cgi, then rebuild the Member data in the cp
_________________________
Code monkey like Fritos

Top
#199105 - 03/02/04 09:15 AM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Thank you, Ian. smile

Now I have another question, well, actually, three or more tipsy :

  1. Does this mean I'll lose all calendar information (other than birthdays) when I go to do my upgrade on my regular board? (I can live with this, just asking so I'm not eek )
  2. In the old calendar hack, whenever I clicked on "events" in the date area of the calendar, it'd take me to the bottom to see the details ... I seem to remember that this might've been an "add-on" to the original mod ... I know it's needs an "anchor" ... can any direct me to the piece of code where this belongs--and how it should be formatted?
  3. The actual display of the calendar is not appearing on my board summary page--neither the top nor the bottom. I seem to remember that with the previous calendar mod (for 6.5) that I had to add a minor hack to get the calendar to appear at the TOP of the forum summary page (instead of the bottom) ... but I don't remember it not appearing at all. Is this the behavior for the new version of the mod? What steps can I go through to not only get it to appear on my summary page but also to get it at the top?

---------

As always, I appreciate any and all feedback.

Thanks.
_________________________
Sue
adwoff.com

Top
#199106 - 03/02/04 09:31 AM Re: [6.6 - 6.7] [finished] Calendar
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
1. Yes, but if you backup the old file, you could readd that stuff

2. You could find:
Code:
$vars_wordlets_calendar{events_for} $vars_wordlets_calendar{$this_month} $daytem, $yeartem
in public_calendar.pl and add
Code:
<a name="events"></a>
and you could refer to it as ?ubb=calendar#events I believe

3. In the new version, it only shows when there is an event or birthday.

3a. Should be as easy as moving $calendar from Page_bottom to Page_top
_________________________
Code monkey like Fritos

Top
#199107 - 03/02/04 11:57 AM Re: [6.6 - 6.7] [finished] Calendar
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
OR just use "upgrade.cgi" from the ZIP file instead of uploading a blank calendar_events file.. tipsy

Also you should put $calendar above both of the pntf_locations[3]. and it doesn't matter where you put if($ubb eq 'calendar') as long as it's in that area and not inside another IF.

epicfluke, when you install this mod don't do ubb_profile.cgi, cp2_maint.cgi and ubb_registration.cgi. Then the birthdays will never be added to the hack.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#199108 - 03/03/04 01:00 AM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
I actually kinda figured something out ... well, with a little help from looking at a mod from last year. laugh

If you want to add an *anchor hack* to the calendar so that if you click on the date and it takes you to the detail at the bottom, two files need to be changed.

In public_calendar.pl, find

Code:
<td><font size="1" face="$vars_style{FontFace}" color="$vars_style{TableStripTextColor}">
<b>$vars_wordlets_calendar{event}</b></font></td><td>  
replace it with

Code:
<td><a name="bottom"></a><font size="1" face="$vars_style{FontFace}" color="$vars_style{TableStripTextColor}"><b>$vars_wordlets_calendar{event}</b></font></td><td>  
-------

In file ubb_lib_calendar.cgi, find

Code:
$preday="<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar;date=$j">$preday";  
replace it with

Code:
$preday="<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar;date=$j#bottom">$preday";  
----

From my notes, this code was provided to me by LK.
_________________________
Sue
adwoff.com

Top
#199109 - 03/03/04 02:33 AM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
I'm beginning to get worried. tipsy

I've actually kinda, sorta figured out another tweak to LK's mod ... based on code from last year ... unfortunately, in my notes, I don't have the individual who created the code for this. Sorry about that.

On the front page of my board, I like to have the calendar listed--and I like to have it at the top--so that when people come to my site, they can see if anything *special* is happening that day.

Using last year's code and playing around a bit, I was able to get it to "work."

Here's what I did:

In public_forum_summary.pl find

Code:
$calendar  
Delete it (it only appears once)

----

Also in public_forum_summary.pl find

Code:
	$Top .= "</tr>$pntf_locations[1]";

	return ($Top);
} # end Normal_Table_Top  
before the above code, add

Code:
	$Top .=  $calendar;  
-----

In ubb_forum_summary.cgi find

Code:
$TBT
<tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left">
<font size="1" face="$vars_style{FontFace}">$calendar$linebreak$birthdays
</font>
</td>
</tr>
$TBB  
replace it with

Code:
<tr bgcolor="$vars_style{CategoryStripColor}">
<td colspan="6">
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}" color="$vars_style{CategoryStripTextColor}">
<b>$vars_wordlets_calendar{calendar}</b>
</a>
</font>
</td>
</tr><tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left">
<img src="$vars_config{NonCGIURL}/calendarfs.gif" alt="" />
</td>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left" colspan="6">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$calendar
</font>
</td>
</tr>  
----


Edit to add: you also need to clear the cache

-------

It seems to be working w/out problems ( smash knock on wood) ... again, I cannot take credit for this add-on to the calendar mod ... I'm not sure who created this code.
_________________________
Sue
adwoff.com

Top
#199110 - 03/03/04 04:31 AM Re: [6.6 - 6.7] [finished] Calendar
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
"So it displays on the main page"...

You mean like at http://homepage.undergroundnews.com/ ? I'm using the SSI file to retrieve it...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199111 - 03/03/04 11:18 AM Re: [6.6 - 6.7] [finished] Calendar
framer2 Offline
Junior Member

Registered: 02/27/04
Posts: 6
I've been using the calendar foe a few day and have a question about how it functions:

I have it set so just the Admin, moderators and a few selected members may post events. I also enabled the function at the bottom of the CP page so you can post in certain forums.

I figured out real quick that all regular members can post an event from that forum by selecting it when they post a new topic.

I've shut down that feature until it can be re-coded so just those selected have access.

Or am I mising something here?

Thanks
Bill

Top
#199112 - 03/03/04 12:09 PM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Quote:
Originally posted by Gizzy:

You mean like at http://homepage.undergroundnews.com/ ? I'm using the SSI file to retrieve it...


No, Gizzy ... like here at my test site --> http://adwoff.com/ubb-test/cgi/ultimatebb.cgi
_________________________
Sue
adwoff.com

Top
#199113 - 03/03/04 01:26 PM Re: [6.6 - 6.7] [finished] Calendar
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Adwoff, I am slightly worried about your code. It seems to me with your code that you won't see birthdays on the main page.

try changing...
Code:
<tr bgcolor="$vars_style{CategoryStripColor}">
<td colspan="6">
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}" color="$vars_style{CategoryStripTextColor}">
<b>$vars_wordlets_calendar{calendar}</b>
</a>
</font>
</td>
</tr><tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left">
<img src="$vars_config{NonCGIURL}/calendarfs.gif" alt="" />
</td>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left" colspan="6">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$calendar
</font>
</td>
</tr>  
to

Code:
<tr bgcolor="$vars_style{CategoryStripColor}">
<td colspan="6">
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}" color="$vars_style{CategoryStripTextColor}">
<b>$vars_wordlets_calendar{calendar}</b>
</a>
</font>
</td>
</tr><tr>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left">
<img src="$vars_config{NonCGIURL}/calendarfs.gif" alt="" />
</td>
<td bgcolor="$vars_style{AltColumnColor1}" valign="top" align="left" colspan="6">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
$calendar
$linebreak
$birthdays
</font>
</td>
</tr>  
_________________________
Code monkey like Fritos

Top
#199114 - 03/03/04 11:43 PM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Hey, thanks, Ian. smile

I was just using the code from last year--trying to plug it in. I'll give yours a shot.

Question to LK or anyone else: I notice with this version of the calendar only allows me to edit out the actual events I created for the day ... but not the birthdays via the profile.

At my site, I get a lot of duplicate registrations, and sometimes I have to go into the calendar to weed out *extra birthdays.*

Any idea on how to make it so that I can edit from the *events area* of the calendar? Am I making sense?!

-----

Edit to add that I changed the code to what Ian suggested, but the birthday isn't appearing with the other events at the top of the forum summary page.

Any ideas how to get the birthdays to show?

Thanks.
_________________________
Sue
adwoff.com

Top
#199115 - 03/03/04 11:52 PM Re: [6.6 - 6.7] [finished] Calendar
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
Go edit their profile, take out "show birthday" and then rebuild member data.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199116 - 03/04/04 07:28 AM Re: [6.6 - 6.7] [finished] Calendar
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
*laughs* Adwoff, you might want to move your code for the calendar being at the top. You put it in NormalTableTop most likely, and since you installed the category separating mod, the events show like 5 times tipsy
_________________________
Code monkey like Fritos

Top
#199117 - 03/04/04 12:32 PM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
laugh

I saw that. And I was too freakin' tired to fix it last night!

----

I've played with it ... and I have it exactly where I want it to be now ... but it's out in "no man's land" ... kinda nekkid! tipsy

Back to work I go.
_________________________
Sue
adwoff.com

Top
#199118 - 03/05/04 08:23 PM Re: [6.6 - 6.7] [finished] Calendar
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
This is getting REALLY nice!

Installed Calendar without any problem, thanks LK for help with help on how to exclude the birthdays..

Question! Instead of "todays events", i would like to show "this weeks events", cause I´m going to use the calendar to alert our technicians on activities going on in our network... Planned upgrades, maintenance etc.

Is it hard to to?

And another thing - have searched for a post with a hint on how to move the events to the top of the forum summary page, but found none with a good explanation. Someone?

(Changed nick from epicflupe to my real name...)

Top
#199119 - 03/07/04 09:06 PM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Okay, through a little bit of trial and error, I figured out a few things with the placement of the calendar on the front page of my test forum ... I wanted to use JC's hack that separated the forums on the forum summary page, but I could not get it to work with the news fader & calendar, and those two modifications take precedence over the front page.

What I have not been able to figure out is how to get the birthday to appear on the front page of the forum summary page --> http://adwoff.com/ubb-test/cgi/ultimatebb.cgi

Anyone who can help me out with that--I'd be most appreciative.

Thanks.
_________________________
Sue
adwoff.com

Top
#199120 - 03/08/04 06:56 AM Re: [6.6 - 6.7] [finished] Calendar
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Sue, are you trying to do something similar to the bottom of my summary?

http://www.alforadmin.com/cgi-bin/ultimatebb.cgi

(I know you want it on the top)

If so, I could give you the code later today for what I did and you could look at it.

One thing that bothered my on your summary page is that fact that it shows an event that doesn't exist tipsy
_________________________
Code monkey like Fritos

Top
#199121 - 03/08/04 07:35 AM Re: [6.6 - 6.7] [finished] Calendar
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
Give me the code aswell? smile

Top
#199122 - 03/08/04 04:14 PM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Yes, Ian!

In fact, I just noticed a slight glitch--when I add a new topic & put a notice in the calendar, this *raw code* appears at the very top of the page:

Code:
hey!! 1 2 3 4 5 and 1.Content-type: text/html yay!!! 3 
It still seems to *work* ... but I don't like stuff like that popping up.

I also need to try to code it so that if there are no events/birthdays, that the calendar is still there.

And, of course, I need to know how to get the birthdays to appear!

If I can't figure out how to put it on "top"--I'll settle for the bottom to get those things cleared up/added.
_________________________
Sue
adwoff.com

Top
#199123 - 03/08/04 05:04 PM Re: [6.6 - 6.7] [finished] Calendar
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
haha! I love when debug code slips to my release.
ubb_new_topic, you see
Code:
print "hey!! @forums and $forums[0].";
and
Code:
print "Content-type: text/htmlnnyay!!! $_ ";
remove em smile
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
Page 5 of 14 < 1 2 3 4 5 6 7 ... 13 14 >


Moderator:  Charles, Gizmo 
Who's Online
2 registered (Micky, Ruben Rocha), 28 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by Ruben Rocha
56 minutes 16 seconds ago
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438