Previous Thread
Next Thread
Print Thread
Rate Thread
#202917 05/02/2004 9:06 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Modification Name: Cosmetic Links

Author(s): Brett

Description: Replaces the links at the top of the page with images along with the active topics and thread ip link.

Demo: http://www.pavioni.com/cgi-bin/ubbcgi/ultimatebb.cgi

Requirements: UBB 6.7

Download Link: https://www.ubbdev.com/ubb/upload/00006378/Cosmetic6.7.zip

Credits: Blaze, Gizzy

The demo doesn't look pretty, i know since i don't have all the pics, but it should give you an idea of how it works. smile

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
cool Thanks laugh


- Allen wavey
- What Drives You?
Joined: Aug 2001
Posts: 103
Member
Member
Offline
Joined: Aug 2001
Posts: 103
What font did you use? I will try and use the same font and make some for 'statistics', 'games' and others that may need it.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
the images are from version 6.2 of the ubb when this was a new mod wink ...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: May 2001
Posts: 43
User
User
Offline
Joined: May 2001
Posts: 43
Hi, does this hack work with version 6.6? Thanks smile

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
it should work perfectly

Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Ok, I tried to add "Statistics" to the list, I can't seem to get the text replaced on the actual link.

In the CP, it shows up, and I associated the image, but on the board, it's still jsut text.

Wouldn't that be a Public_Common.pl problem?

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
You hadn't updated public_common.pl if there is still text on the board display.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
In public_common.pl I added "statistics" to the line "foreach my $gif" so that it appears like the rest of the line so it looks like...

Code
 foreach my $gif(qw(forum_home profile directory faq search register active_topics ip_logged statistics)) { 
and in vars wordlets cp2, I added the following...

Code
 q!style_statisticslink! => q!Statistics Link!, 
In the instructions, it says to modify "cp_styles" but I only have a "cp2_styles" to which I modded to last line to appear...

Code
 statisticslink)], 

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Looks like it's needs to be 'statistics_pntflink' instead of statisticslink. Your on the right track., in public_common change statistics to statistics_pntf. Untested, looks like it should work.

Sponsored Links
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Ok, I made the change and it didn't work, so I did this...

In public_common.pl I added "statistics_pntf" to the line "foreach my $gif" so that it appears like the rest of the line so it looks like...

Code
 foreach my $gif(qw(forum_home profile directory faq search register active_topics ip_logged statistics_pntf)) { 
and in vars wordlets cp2, I added the following...

Code
 q!style_statistics_pntf! => q!Statistics Link!, 
In the instructions, it says to modify "cp_styles" but I only have a "cp2_styles" to which I modded to last line to appear...

Code
 statistics_pntf)], 

Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
I forget there isn't a link to my board in my sig...


http://4.11.202.114/tin_benders/cgi-bin/ultimatebb.cgi


test:1234

Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Another question...

If you go to my board, the first couple buttons still have the "|" divider, while the others don't.

confused

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
search for and remove any | you find near the mainbuttons line code. some parts aren't just joined, the | is actually hardcoded

Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Quote
Originally posted by Ian Spence:

search for and remove any | you find near the mainbuttons line code. some parts aren't just joined, the | is actually hardcoded
Would that be in public_common.pl?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
yes. search for "# FAQ" and you will be in the right sub

Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Got those "|" out. Thanks!

Now, my last problem with this, is getting my "Statistics" button to work. Could you tell me what I need to call the statistics "thing" in each file?

In some places I called it statistics_pntf in others it's statistics and in another it's stasticslink.

Thanks!

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Code
my $static = join(" | ", @items);
is a good one to replace, just take out what you need to; also some items have a |, so you'll need to nuke those...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
He already did that. You didn't notice a second page, did you? tipsy

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
shhh; details! What if someone else has the same problem!


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
lol

What about my button?

Button button whos got the button?

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
well for statistics in public_common.pl it should be:
Code
	# STATISTICS
push(@items, qq(<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=statistics"><acronym title="$vars_wordlets{statistics_acronym}"><img src="$vars_config{NonCGIURL}/$vars_style{statisticslink}" border="0" alt="$vars_wordlets{statistics_acronym}" /></acronym></a>));


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Ok, so I added those lines under/after the #Cosmetic section and before/above the #Calendar section.

No joy. frown

Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Where can I find better, more detailed instructions concerning this hack?

I've been playing with it for a week, but I can't get my added button to work. frown

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
The only other documentation is from the older versions, which you can find in their respected forums (I think the last one i did was 6.5)


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: May 2001
Posts: 43
User
User
Offline
Joined: May 2001
Posts: 43
I've tried this hack on 6.6 and seems to work, thanks, but Does this hack include the alt text for each image? Since it doesn't appear.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
It appears that the only presance of
Code
alt=""
Is blank (exactly as shown above). I guess if you want alt text, bust open public_common.pl and add it lol...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Ok, I need help again.

I've been bessing with this, chainging things arund, and I still can't fix it. I opened the UBB and it shows the cosmetic buttons for everything but "Statistics". I did a view source, and scrolled to that section. Here is the problem I see...

For each of the links, it has the typical
Thanks for all your guys' help!

--phillip

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
easy, update your image code to look something like:
Code
<img src="Image/URL/Here" alt="Alt Text Here"></>


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
I actually know how to code that, but I guess what I don't know, is where that source is (which file) that I got when I did the "View Source" on the ultimatebb.cgi

Does that make any sense, or am I nutz?

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
The cosmetic links are listed in public_common.pl; look for:
Code
sub MainButtonOptions {


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
So...

How much $$$ to fix the code I killed on my site? The link works, but I just can't seem to make the image appear.

--Phillip

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
If interested in my services, my pricing guide is available at VNC Web Design . wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Aug 2001
Posts: 103
Member
Member
Offline
Joined: Aug 2001
Posts: 103
Ok folks. I need help on adding the Authority List also. Also when you're logged out, the hack to add the Login image hasn't been done.

If someone can show me how to do both of these, I'll e-mail you the images. I've done the Recorded IP also.


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
hatter
hatter
USA
Posts: 69
Joined: January 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)