|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
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: 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
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
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]add after:
</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.
|
|
|
|
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 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
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
Thanks, guys! 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
|
|
|
|
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?
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
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
|
|
|
|
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!
|
|
|
|
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!
|
|
|
|
Joined: Feb 2001
Posts: 2,285
Old Hand
|
Old Hand
Joined: Feb 2001
Posts: 2,285 |
Sorry to hijack your thread, ADWOFF. 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?
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
LOL ... not a problem, Stilgar! I'll try to steal whatever ideas anyone else comes up with, too!
Sue adwoff.com
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
quote:
Originally posted by Stilgar: Sorry to hijack your thread, ADWOFF.
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]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. ----------- 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".
|
|
|
|
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.
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
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.
|
|
|
|
Joined: Feb 2001
Posts: 2,285
Old Hand
|
Old Hand
Joined: Feb 2001
Posts: 2,285 |
perfect! Thanks a million, PrimeTime!
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
Joined: Nov 2001
Posts: 1,080 |
Glad it came out.
|
|
|
|
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:
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
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.
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
Joined: Sep 2000
Posts: 159 |
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!
|
|
|
|
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?
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
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!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
I've seen a beta of how it's done.. I'll see if I can coax him to finish it
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
Joined: May 2001
Posts: 794 |
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! 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!
Sue adwoff.com
|
|
|
|
Joined: Nov 2001
Posts: 1,080
Member
|
Member
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.
|
|
|
|
Joined: Sep 2000
Posts: 159
Member
|
Member
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.
|
|
|
|
Joined: Dec 2000
Posts: 78
Member
|
Member
Joined: Dec 2000
Posts: 78 |
I am looking forward to this. quote: Originally posted by AllenAyres: good answers PT
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
|
|
|
|
Joined: May 2001
Posts: 794
Content Queen
|
Content Queen
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: 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
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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: 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!
|
|
|
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.
|
|
Posts: 5,833
Joined: January 2000
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|