php forum
php mysql forum
php mysql smarty
 
Page 6 of 14 < 1 2 ... 4 5 6 7 8 ... 13 14 >
Topic Options
#199124 - 03/08/04 05:10 PM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Thanks, LK! LOL
_________________________
Sue
adwoff.com

Top
#199125 - 03/08/04 11:29 PM Re: [6.6 - 6.7] [finished] Calendar
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Disclaimer: This is not wordletized, and is in CSS, so might look weird on your board.

In ubb_forum_summary.cgi
change
Code:
		$calendar = qq~<b><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">$vars_wordlets_calendar{forum_summary_events}</a>:</b> $calendar~ if ($calendar);
		$linebreak = "
" if ($calendar && $birthdays);
		$birthdays = qq~<b><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=calendar">$vars_wordlets_calendar{forum_summary_bdays}</a>:</b> $birthdays~ if ($birthdays);
	
		$calendar = $calendar &#0124;&#0124; $birthdays ? qq~


$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
		~ : '';

	}
to
Code:
		$birthdays = ($birthdays) ? $birthdays : "No Birthdays Today";
		$calendar = ($calendar) ? $calendar : "No Events Scheduled For Today";

		$calendar = qq~<tr class="categoryheader"><td align="center">&nbsp;</td>
<td align="left" colspan="2"><b>$vars_wordlets_calendar{forum_summary_events}</b></td></tr>
<tr><td class="lighttable" align="center"><img src="$vars_config{NonCGIURL}/calendarfs.gif" alt="Events" /></td><td align="left" valign="top" class="darktable" colspan="2">$calendar</td></tr>~;
		$birthdays = qq~<tr class="categoryheader"><td>&nbsp;</td>
<td align="left" colspan="2"><b><b>$vars_wordlets_calendar{forum_summary_bdays}</b></td></tr>
<tr><td class="lighttable" align="center"><img src="$vars_config{NonCGIURL}/birthday.gif" alt="Birthdays" /></td><td align="left" valign="top" class="darktable" colspan="2">$birthdays</td></tr>~;
	
		$calendar = qq~$calendar$birthdays~;

	}
_________________________
Code monkey like Fritos

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

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
I have good news, and I have bad news!

The good news is that the position of the Events/Birthday is perfect! And it appears to be reading the calendar correctly.

That's the good news!

The bad news, Ian, is I think the CSS is messing me up.

Now, I don't know a lot about CSS, but I'm assuming the the code "class" refers to it, correct?

Unfortunately, what is happening is this: the entire area where the Events/Birthdays should appear is the dark blue of my CategoryStripColor (dark blue) ...

I either need to remove the class code or add a file for it to refer to ... and with either one, I'll need some help! smile
_________________________
Sue
adwoff.com

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

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
change
Code:
class="categoryheader"
to
Code:
bgcolor="$vars_style{CategoryStripColor}"
Code:
class="lighttable"
to
Code:
bgcolor="$vars_style{AltColumnColor1}"
Code:
class="darktable"
to
Code:
bgcolor="$vars_style{AltColumnColor2}"
you're also gonna have to edit the colspans
_________________________
Code monkey like Fritos

Top
#199128 - 03/09/04 07:45 AM Re: [6.6 - 6.7] [finished] Calendar
Eric Flyxe Offline
Member

Registered: 05/03/01
Posts: 57
Can I easily show the events from today and seven days ahead, instead of the current day?

Top
#199129 - 03/09/04 11:49 AM Re: [6.6 - 6.7] [finished] Calendar
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
thumbsup Thanks, Ian. I appreciate your help.

I *almost* have it the way I want it to be ... need to figure out a couple of things--but I need to head to work.

There is ONE thing that I AM concerned with ... and it could potentially be a "big" issue.

I am a little concerned about the *cache* with the calendar. I think that's the problem.

If I go into the calendar and add an event there, it won't immediately appear on the front page; same with a birthday.

Now, if I add an event via a new topic, it does automatically appear.

Anyone point me in the right direction as to what to look for? Thanks.
_________________________
Sue
adwoff.com

Top
#199130 - 03/09/04 11:52 AM Re: [6.6 - 6.7] [finished] Calendar
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
New topic automatically clears cache, that's why it's updated.

I'm off to class now, but I'll try to help later
_________________________
Code monkey like Fritos

Top
#199131 - 03/09/04 12:38 PM Re: [6.6 - 6.7] [finished] Calendar
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
I would've made cache automatically clear at the first visit of the new day or after a new event is added for today, but since forums with many posts get updated often anyway and forums with not so many posts usually don't really have many calendar events, I don't think it's worth it...
_________________________

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

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

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Gotcha, LK! smile Makes great sense.
_________________________
Sue
adwoff.com

Top
#199133 - 04/08/04 11:45 PM Re: [6.6 - 6.7] [finished] Calendar
RoxSeibert Offline
Member

Registered: 02/20/03
Posts: 178
Loc: highspire, pa
well i did... i took the plunge and tried to load my first major mod on my mostly stock 6.7.0 site and i did something wrong frown

i carefully made all the changes and uploaded files, rebuilt member stats, and then when I click on "Calendar" option in CP, i get the following message:

The page and/or tab you requested is unavailable. The required code could not be properly loaded. Please ensure that all scripts, libraries, and templates have been properly uploaded.

I double checked all the new files are up there... any suggestion where I might of screwed up?
_________________________
~=Rox
http://dragboatalley.com/cgi-bin/ultimatebb.cgi

dangerously inspired by ubbdev,
but i still absolutely HATE perl.

Top
#199134 - 04/09/04 12:15 AM Re: [6.6 - 6.7] [finished] Calendar
RoxSeibert Offline
Member

Registered: 02/20/03
Posts: 178
Loc: highspire, pa
i also cleared the cache and CP Calendar settings page still doesnt like me help

and I turned the board on for Admin-Only, and the calendar link works fine. I was also able to add a test event for current date just fine. And after a few minutes "Events" list did show up on forum home!!! (whew!)
_________________________
~=Rox
http://dragboatalley.com/cgi-bin/ultimatebb.cgi

dangerously inspired by ubbdev,
but i still absolutely HATE perl.

Top
#199135 - 04/09/04 12:59 AM Re: [6.6 - 6.7] [finished] Calendar
RoxSeibert Offline
Member

Registered: 02/20/03
Posts: 178
Loc: highspire, pa
ahhh ha! cp2_vars.cgi didnt get uploaded. late nite upgrades can be ruff smile

(does happy dance) i did it i did it i did it!!!!

Thank you very much LK for a great mod! This will be of great value to my community... the first ever unified race season schedule for all the drag boat racing associations coast to coast, pro and amateur!

(goes to make coffee... has coupla dozen race events to enter)
_________________________
~=Rox
http://dragboatalley.com/cgi-bin/ultimatebb.cgi

dangerously inspired by ubbdev,
but i still absolutely HATE perl.

Top
#199136 - 04/09/04 03:54 AM Re: [6.6 - 6.7] [finished] Calendar
RoxSeibert Offline
Member

Registered: 02/20/03
Posts: 178
Loc: highspire, pa
I ended up with one leftover question on this mod afterall... can I set which style the main calendar page uses somewhere?

it seems to be using my "Standard" style and it'd look less busy if I could get it to use my "StandardForum" style.
_________________________
~=Rox
http://dragboatalley.com/cgi-bin/ultimatebb.cgi

dangerously inspired by ubbdev,
but i still absolutely HATE perl.

Top
#199137 - 04/09/04 04:53 AM Re: [6.6 - 6.7] [finished] Calendar
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
You can't in the CP, but you can in ubb_lib_calendar.cgi: (UNTESTED)
Find
Code:
sub calendar_main {
Add below:
Code:
%vars_style = &LoadStyleTemplate("forum_1");
That's in consideration that your forum #1 is using StandardForum style. If not, change "1" in the code above to the number of the forum which does use it.
_________________________

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

Top
#199138 - 04/09/04 10:12 AM Re: [6.6 - 6.7] [finished] Calendar
Charles Moderator Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
ok for some strange reason I don't get the calendar stuff on forum summary smirk I used Allen's multihack file
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#199139 - 04/09/04 10:27 AM Re: [6.6 - 6.7] [finished] Calendar
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Re-hack ubb_forum_summary.cgi from the text instructions, and public_forum_summary.pl...
I'm checing the MHP file in a sec
_________________________

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

Top
#199140 - 04/09/04 10:34 AM Re: [6.6 - 6.7] [finished] Calendar
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Step 4 in Allen's MHP should have "All" in instance instead of "1". Charles, rehack public_forum_summary and notice you have to find the same string twice.
_________________________

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

Top
#199141 - 04/09/04 12:11 PM Re: [6.6 - 6.7] [finished] Calendar
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
oops shocked

file updated, thank you smile
_________________________
- Allen wavey
- What Drives You?

Top
#199142 - 04/09/04 01:07 PM Re: [6.6 - 6.7] [finished] Calendar
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
Hehe, I like MultiHack's but it's better experiance if you do it by hand, you end up learning how things work...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#199143 - 04/09/04 01:10 PM Re: [6.6 - 6.7] [finished] Calendar
RoxSeibert Offline
Member

Registered: 02/20/03
Posts: 178
Loc: highspire, pa
Quote:
Originally posted by LK:

You can't in the CP, but you can in ubb_lib_calendar.cgi: (UNTESTED)
Find
Code:
sub calendar_main {
Add below:
Code:
%vars_style = &LoadStyleTemplate("forum_1");


that didnt do it for me... unless maybe I need to clear cache first??
_________________________
~=Rox
http://dragboatalley.com/cgi-bin/ultimatebb.cgi

dangerously inspired by ubbdev,
but i still absolutely HATE perl.

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


Moderator:  Charles, Gizmo 
Who's Online
0 registered (), 18 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 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
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks