Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2002
Posts: 39
Member
Member
Offline
Joined: Jan 2002
Posts: 39
Hi all, another picky template editing question. smile

I'm wondering how I can make the text links of the names of the members online in the list smaller because when my boards get about 50 people online, it doesn't look too good. I know that I have the option of placing it at the bottom, but my members prefer it at the top. I'm just not sure which file of the UBB to look in to edit this.

Thanks in advance for any answers. I launched my new forums tonight and I couldn't have done it without this site and its members.

Sponsored Links
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Nice board Xiphoid_pAOM. smile

Open public_pntf_summary.pl and look for:

Code
[/code]That's the first row "Recent Visitors".  Now if you keep scrolling down to approx. line 1050 you will find this code:

[code]
I think the "TextSize" is set to font size "2". You can change that to whatever number you wish or use style sheet to resize the "$user_string" font size.
smile

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
Seem reading everything that you guys write in this Forums pays smile

I was wondering where would I look to change the background of this table! Bingo.

Hey Prime, 2 questions for you regarding this:
1.How do I insert a column in this table to match the Calendar and NewsFader. Look HERE
2. How do I chane the name on the header from
"Forum Recent Visitors: ..." to just " Visitors"?

Thank you

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
#1:

Hmm...Well I don't have your exact codes to work with for the Recent Visitors but open public_pntf_summary.pl:

Find this code:

Code
[/code]A few lines below you should see something similar to this:

Code
</pre></div></div>Where it says <span style="font-weight: bold">size="1"</span> change the number to "2".  Your Recent Visitors' title will now match both NewsFader and Calendar.<br><br>Now go down and find a code similiar to:<br><br> <div class="ubbcode-block"><div class="ubbcode-header">Code</div><div class="ubbcode-body ubbcode-pre" ><pre>
and replace that with:

[code]
I'm not sure how it will come out since you seem to have "colspan 6" (7 overall) on the NewsFader and Calendar but I'm only counting 5 overall.

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

#2:

Go to Control Panel and look for "Wordlet List" drop down then "Recent Visitors" then somewhere at the bottom find:

pntf_simple_title

Change "Forum Recent Visitors" to "Recent Visitors" then press the update button.

smile

Joined: Jan 2002
Posts: 39
Member
Member
Offline
Joined: Jan 2002
Posts: 39
You the man, Prime. smile Thanks for the answers.

I also tried changing the color of $user_string, but the color tag I put in didn't change anything, I guess because it's a link. This is probably a dumb question, but is it possible to change the default link color? This would help in creating custom colors for mods and VIPs in the Recent Visitors list too.

Thanks!

Sponsored Links
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Hey Xiphoid_pAOM. You can't go directly to "$user_string" to reset the font color but you can do so here in public_pntf_summary.pl:

[code][/code]Now a while back in UBB version 6.2x there was a "Who's Online Status Effect" hack which may be of interest to you. I didn't change the code nor take credit for it but here:

Click Here

Now this will customize both Administrators and Moderators but take a look at the code and you'll be able to incorporate selected users or VIPs. Since it's HTML you can reset all font options (such as color), images or whatever you desire.

When you see "SORTORDER" you will need to find the pntf code I provided above because it won't match the hack's code.

smile

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
Prime, the Recent Visitors Wordless wont let me change the Forum Name unless I do it in the Configuration settings. And I cant delete the forum name because will delete it from all the pages including navigation links.

Second, I change the code a little, simplified it a little and added a .gif, but I cant the damn thing centered, have a look at this code and tell me what is wrong? for a visual, of course
HERE

[code][/code]Thank you

Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
This is the code which is located in the public_pntf_summary.pl file:

Code
[/code]Where it says "$title" remove that code.  Now it should only say "Recent Visitors".  

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

Now for your image alignment this code:

[code]
you will see align="left"...If you want that centered change it to "center".

I'll be back later tonight to check up.

smile

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
Damn! I'm such a door knob!
I added " align="center" " in the wrong location!
I took it off and fixed it!

[code][/code]I also took the "$title " off, not my header is perfect!
See if you can help me with the other post, News Fader editor.

Thanks alot Prime. Are there any bigger stars around? You deserve them!

Joined: Jan 2002
Posts: 39
Member
Member
Offline
Joined: Jan 2002
Posts: 39
Thanks again, Prime. That code worked great.

About the VIPs though, what variable name should I use in the if statement to determine whether it's that specific user or not? I've tried:

if ($show_public_name eq "Xiphoid")
if ($number eq "00000001"))

They aren't working... I suppose because the scope of the variables for the pntf_summary is different.

Sponsored Links
Joined: Nov 2001
Posts: 1,080
Member
Member
Offline
Joined: Nov 2001
Posts: 1,080
Felix:
I was curious why you had the "center" in your image tag but that wouldn't have mattered...The
tag was your target. Cool that you got it.


Xiphoid_pAOM:
I'm not sure if "$number" will work...You could try "$user_number".

For "$show_public_name" you could try "$pubname" or "$username".
Joined: Jan 2002
Posts: 39
Member
Member
Offline
Joined: Jan 2002
Posts: 39
Finally got it. smile It's "$pn" for the public name. Thanks for all of the help, Prime, I really appreciate 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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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)