Previous Thread
Next Thread
Print Thread
Rate Thread
#115107 02/27/2003 9:49 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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:

[Linked Image]


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:

[Linked Image]

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:

[Linked Image]

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
Sponsored Links
#115108 02/27/2003 11:29 PM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
#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
</pre></div></div>That should get your Moderators to display.<br><br>---------------------<br><br>#2:<br>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.<br><br>The second part:  If you want to do it manually for only the public_forum_page.pl then these two codes:<br><br>$vars_wordlets{moderated_by} $Moderator<br><br>$more_topics_wording<br><br>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:<br><br>In public_forum_page.pl find:<br><br> <div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
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

#115109 02/28/2003 12:54 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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?
#115110 02/28/2003 1:20 AM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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
#115111 02/28/2003 2:21 AM
Joined: Feb 2001
Posts: 2,285
Old Hand
Old Hand
Joined: Feb 2001
Posts: 2,285
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?

Sponsored Links
#115112 02/28/2003 4:01 AM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
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

#115113 02/28/2003 12:19 PM
Joined: Feb 2001
Posts: 2,285
Old Hand
Old Hand
Joined: Feb 2001
Posts: 2,285
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!

#115114 02/28/2003 12:34 PM
Joined: Feb 2001
Posts: 2,285
Old Hand
Old Hand
Joined: Feb 2001
Posts: 2,285
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!

#115115 02/28/2003 12:51 PM
Joined: Feb 2001
Posts: 2,285
Old Hand
Old Hand
Joined: Feb 2001
Posts: 2,285
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?

#115116 02/28/2003 1:27 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
LOL ... not a problem, Stilgar! I'll try to steal whatever ideas anyone else comes up with, too! wink


Sue
adwoff.com
Sponsored Links
#115117 02/28/2003 3:34 PM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Quote
quote:
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?

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

-----------

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

#115118 02/28/2003 3:38 PM
Joined: Feb 2001
Posts: 2,285
Old Hand
Old Hand
Joined: Feb 2001
Posts: 2,285
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

#115119 02/28/2003 3:56 PM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Ack...I was careless. I forgot to add the "" at the end of each number. Click the link to the file again for the changes. Sorry about that.

#115120 02/28/2003 6:46 PM
Joined: Feb 2001
Posts: 2,285
Old Hand
Old Hand
Joined: Feb 2001
Posts: 2,285
perfect! Thanks a million, PrimeTime!

#115121 02/28/2003 7:02 PM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Glad it came out. smile

#115122 02/28/2003 9:04 PM
Joined: Feb 2001
Posts: 2,285
Old Hand
Old Hand
Joined: Feb 2001
Posts: 2,285
Here's what it turned out like. I tweeked it a bit:

[Linked Image]

laugh

#115123 02/28/2003 9:41 PM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Very nice Stilgar. I wasn't sure if you wanted the "|" there or not and so I left that part out. laugh

#115124 03/07/2003 10:48 AM
Joined: Sep 2000
Posts: 159
Member
Member
Offline
Joined: Sep 2000
Posts: 159
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!

#115125 03/08/2003 12:43 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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?
#115126 03/08/2003 1:45 PM
Joined: Sep 2000
Posts: 159
Member
Member
Offline
Joined: Sep 2000
Posts: 159
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!

#115127 03/08/2003 2:56 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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?
#115128 03/09/2003 9:31 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
Quote
quote:
Originally posted by Ellen:
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!
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
#115129 03/09/2003 9:53 PM
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
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.

#115130 03/10/2003 7:01 PM
Joined: Sep 2000
Posts: 159
Member
Member
Offline
Joined: Sep 2000
Posts: 159
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.

#115131 03/14/2003 9:31 AM
Joined: Dec 2000
Posts: 78
Ed Offline
Member
Member
Offline
Joined: Dec 2000
Posts: 78
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

#115132 03/31/2004 12:29 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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:

[Linked Image]

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
#115133 03/31/2004 1:58 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)