php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#115107 - 02/27/03 08:49 PM Borrowing from UBBDev
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
I have three things that I'd love to be able to change regarding templates at my site.

The first is to be able to remove the moderator column and replace it with putting the moderators in the text area that describes each forum -- like shown here in this snapshot of UBBDev's front page:




I'd also love to be able to consolidate things at the top of my forums, etc., like you do here at UBBDev ... as shown in this shot:



The final thing I'd like to be able to do is with the new directory; I'd like to be able to remove all references to "top posters" as shown here:



One other thing that I'd love to be able to do with the directory is put the "content islands" that I create there. How difficult (impossible?!) might that be?

As always, thanks!
_________________________
Sue
adwoff.com

Top
#115108 - 02/27/03 10:29 PM Re: Borrowing from UBBDev
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
#1:
If you want to do it the easy way then go into CP then General Settings and where it says "Moderator Column Display?" select no. That will eliminate your Mod cell.

Now open public_forum_summary.pl and look for this code:

Code:
[/code]add after:

 [code]
That should get your Moderators to display.

---------------------

#2:
I've never used the Compact Header Hack but I think that's what it does...Positions your "$show_logout" and "$MainButtonsLine" into one location. I need someone to verify if that is what the Compact Header does.

The second part: If you want to do it manually for only the public_forum_page.pl then these two codes:

$vars_wordlets{moderated_by} $Moderator

$more_topics_wording

are the ones that you need to target and create the table for it. I do not know how your tables are set up but I made a quick code in case you wish to try:

In public_forum_page.pl find:

Code:
[/code]add this before:

 [code]
This will only add the "Moderators" and "More Topics Wording" but not replace your original codes.

------------------

#3:
I've disabled the "Directory" so I haven't looked at the "public_directory.pl" file. The Content Islands can be achieved if you use the javascript and add those codes. You will need to create the tables for it however.

----------------

Err...Not much help I think. LOL. tipsy
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#115109 - 02/27/03 11:54 PM Re: Borrowing from UBBDev
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
good answers PT smile

Compact headers are what she's looking for in the second example. They haven't been updated, but I'll probably do it for 6.5 since 6.6 is a ways out - that is unless someone doesn't beat me to it wink
_________________________
- Allen wavey
- What Drives You?

Top
#115110 - 02/28/03 12:20 AM Re: Borrowing from UBBDev
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Thanks, guys! smile

I did the moderator deal already--I'll give the others a look either later tonight or tomorrow.

As always, I appreciate the help I receive here at UBBDev.com; you guys are the best!
_________________________
Sue
adwoff.com

Top
#115111 - 02/28/03 01:21 AM Re: Borrowing from UBBDev
Stilgar Offline
Old Hand

Registered: 02/06/01
Posts: 2324
Loc: Northern California
I'd like to do that " Page: 1 2 3 4 ... 19 20 21 " trick without it being in a compact header. Just so it replaces the "Dropdown field that comes stock.

Any way to do that?

Top
#115112 - 02/28/03 03:01 AM Re: Borrowing from UBBDev
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Stilgar:

*I edited because the code was too long which dragged out the the entire page. So here is a link instead. Try this:

Click Here

That might work and it might give you headaches thumbsup
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#115113 - 02/28/03 11:19 AM Re: Borrowing from UBBDev
Stilgar Offline
Old Hand

Registered: 02/06/01
Posts: 2324
Loc: Northern California
Thanks PrimeTime! I'll check this code out later today.

OGzr? Heh, thanks. That's the gaming clan that I'm in. I'm not activly playing any games, but I still maintain the website and forums. Weeeeee!

Top
#115114 - 02/28/03 11:34 AM Re: Borrowing from UBBDev
Stilgar Offline
Old Hand

Registered: 02/06/01
Posts: 2324
Loc: Northern California
Thanks again, Prime Time! It works great! It's not the most good looking thing, but it does what I need. The reason I need it is I have a dropdown menu that conflicted with the "fields" that are used in the stock version. The fields would dominate and hide parts of the dropdown menu.

Now that isn't a problem. Woohoo!

Top
#115115 - 02/28/03 11:51 AM Re: Borrowing from UBBDev
Stilgar Offline
Old Hand

Registered: 02/06/01
Posts: 2324
Loc: Northern California
Sorry to hijack your thread, ADWOFF. smile

PT, how can keep the link in the "2", "5", "10, etc... from extending past the character?

Like: 2 5 10 20 30

and so on.

Any idea?

Top
#115116 - 02/28/03 12:27 PM Re: Borrowing from UBBDev
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
LOL ... not a problem, Stilgar! I'll try to steal whatever ideas anyone else comes up with, too! wink
_________________________
Sue
adwoff.com

Top
#115117 - 02/28/03 02:34 PM Re: Borrowing from UBBDev
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Quote:
quote:</font><hr />Originally posted by Stilgar:
Sorry to hijack your thread, ADWOFF. smile

PT, how can keep the link in the "2", "5", "10, etc... from extending past the character?

Like: 2 5 10 20 30

and so on.

Any idea?
<hr /></blockquote>If I read that right I think you're asking how does the links know how many topics to display? Inside ubb_forum.cgi at around lines 130 - 155 you'll see how the "$user_topic_view" is done by using "DaysPrune". An example code:

Code:
[/code]Above at the end you'll see "DaysPrune=2" which tells the link where to stop.  I only used the numbers specified in ubb_forum.cgi:

 [code]
From "foreach" you can change a number around (not sure if that's necessary) and the "DaysPrune=?" to the same number, say "3", when pressing the link it will show the last 3 days.

smile

-----------

<blockquote><font class="small">quote:
[qb]It's not the most good looking thing, but it does what I need. [/qb]
HTML & CSS can be applied into that code to customize the look. You can also change the wordlets to slim down "show pages". smile
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#115118 - 02/28/03 02:38 PM Re: Borrowing from UBBDev
Stilgar Offline
Old Hand

Registered: 02/06/01
Posts: 2324
Loc: Northern California
No, actually, I was referring to the link that is created. The link itself is the #, wether it's the 2 or the 5 or the 30, but it also includes the space after the number. So the link is the number and the space right after it. Any way to make the link the number and end there? So the space following the number is just a space and not part of the link prior?

Thanks for your help. smile

Top
#115119 - 02/28/03 02:56 PM Re: Borrowing from UBBDev
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Ack...I was careless. I forgot to add the "</a>" at the end of each number. Click the link to the file again for the changes. Sorry about that.
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#115120 - 02/28/03 05:46 PM Re: Borrowing from UBBDev
Stilgar Offline
Old Hand

Registered: 02/06/01
Posts: 2324
Loc: Northern California
perfect! Thanks a million, PrimeTime!

Top
#115121 - 02/28/03 06:02 PM Re: Borrowing from UBBDev
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Glad it came out. smile
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#115122 - 02/28/03 08:04 PM Re: Borrowing from UBBDev
Stilgar Offline
Old Hand

Registered: 02/06/01
Posts: 2324
Loc: Northern California
Here's what it turned out like. I tweeked it a bit:



laugh

Top
#115123 - 02/28/03 08:41 PM Re: Borrowing from UBBDev
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Very nice Stilgar. I wasn't sure if you wanted the "|" there or not and so I left that part out. laugh
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#115124 - 03/07/03 09:48 AM Re: Borrowing from UBBDev
Ellen Offline
Member

Registered: 09/15/00
Posts: 146
Loc: Clifton, NJ
Quote:
quote:
Originally posted by ADWOFF:

One other thing that I'd love to be able to do with the directory is put the "content islands" that I create there. How difficult (impossible?!) might that be?

As always, thanks![/QB]
If anyone knows how, I would love to be able to do this as well. Thanks again for all your anticipated help!

Top
#115125 - 03/07/03 11:43 PM Re: Borrowing from UBBDev
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
You want to put CI's in your member directory, or pull the CI's in there out for use elsewhere?
_________________________
- Allen wavey
- What Drives You?

Top
#115126 - 03/08/03 12:45 PM Re: Borrowing from UBBDev
Ellen Offline
Member

Registered: 09/15/00
Posts: 146
Loc: Clifton, NJ
In my community directory, I notice that there are two Content Islands that are not included in the control panel area. These are Top Posters and Member of the Moment. They are generated as content islands in the community directory.

On the main page of my forum, I have included the content islands for last 7 posts, new members, and most recent topics. I know how to include them and they work great.

What I would like to know how to do is generate content islands for Member of the Moment or Top Poster on the front page of the forum.

Thanks in advance!

Top
#115127 - 03/08/03 01:56 PM Re: Borrowing from UBBDev
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
smile

I've seen a beta of how it's done.. I'll see if I can coax him to finish it smile
_________________________
- Allen wavey
- What Drives You?

Top
#115128 - 03/09/03 08:31 PM Re: Borrowing from UBBDev
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
Quote:
quote:</font><hr />Originally posted by Ellen:
<blockquote><font class="small">quote:
[qb]Originally posted by ADWOFF:

One other thing that I'd love to be able to do with the directory is put the "content islands" that I create there. How difficult (impossible?!) might that be?

As always, thanks![/qb]
If anyone knows how, I would love to be able to do this as well. Thanks again for all your anticipated help!<hr /></blockquote>I actually figured out how to do this--on my own--no less! laugh

I went into the public_directory.pl file and tried to figure out where the other islands ended; I then created the content islands ... put them into a table, and then pasted the code into the public_directory.pl file--and there they were!

Like, Ellen, though, I'd love to be able to do a CI for the "member of the moment" ...

Coax hard, Allen! wink
_________________________
Sue
adwoff.com

Top
#115129 - 03/09/03 08:53 PM Re: Borrowing from UBBDev
PrimeTime Offline
Member

Registered: 11/06/01
Posts: 1046
Just looking at the public_directory.pl placing the "Member of the Moment" on the forum's main page is possible. Same as what ADWOFF did I believe you can add the Directory codes into the forum summary. Initially when 6.4 just came out I was going to do something similar on the public_common.pl and my main page of the site. I haven't worked on it yet but I'm realizing that the CI has enormous potential.
_________________________
Members Spotlight Winner
bac-Clan
--------------------

Top
#115130 - 03/10/03 06:01 PM Re: Borrowing from UBBDev
Ellen Offline
Member

Registered: 09/15/00
Posts: 146
Loc: Clifton, NJ
The code that creates the member of the moment is in public_ci_members, but I don't know enough about coding to be able to insert that applicable piece of code into public_forum_summary. I tried a couple of things, but got an error message.

Top
#115131 - 03/14/03 08:31 AM Re: Borrowing from UBBDev
Ed Offline
Member

Registered: 12/24/00
Posts: 77
I am looking forward to this.

Quote:
quote:
Originally posted by AllenAyres:
good answers PT smile

Compact headers are what she's looking for in the second example. They haven't been updated, but I'll probably do it for 6.5 since 6.6 is a ways out - that is unless someone doesn't beat me to it wink
_________________________

Top
#115132 - 03/31/04 11:29 AM Re: Borrowing from UBBDev
ADWOFF Offline
Content Queen

Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
I am now working on cleaning up a few things before I go from my test site to upgrading my main board ...

I am revisiting this thread because I need to know where to delete some code out of the public_forum_page.pl file


Here's a screenshot:



How do I get rid of the (Moderated by: Sue @ ADWOFF) under the Forum Name? And how do I remove the page numbers from the "Hello, Sue [log out] ..." table?

Thanks!
_________________________
Sue
adwoff.com

Top
#115133 - 03/31/04 12:58 PM Re: Borrowing from UBBDev
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Well the Moderated by is actually a CP switch now, I believe it's in Display Settings, the Forum page expandyheader.

As for the page number moving, in public_forum_page.pl

FIND:
Code:
	before_navbar => qq~</font><td valign="bottom" align="right">
<font size="$vars_style{FDTextSize}" face="$vars_style{FontFace}">
$more_topics_wording
</font>
</td><font>~,
DELETE IT!

Top
Page 1 of 2 1 2 >



Moderator:  Gizmo, tackaberry 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks