|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
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. 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
 Thanks 
|
|
|
|
Joined: Aug 2001
Posts: 103
Member
|
Member
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,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
the images are from version 6.2 of the ubb when this was a new mod  ...
|
|
|
|
Joined: May 2001
Posts: 43
User
|
User
Joined: May 2001
Posts: 43 |
Hi, does this hack work with version 6.6? Thanks 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
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,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
You hadn't updated public_common.pl if there is still text on the board display.
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
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... 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... 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...
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
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.
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
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... 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... 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...
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
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. 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
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
Joined: Nov 2003
Posts: 156 |
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
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
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,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
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...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
He already did that. You didn't notice a second page, did you? 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
shhh; details! What if someone else has the same problem!
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
lol
What about my button?
Button button whos got the button?
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
well for statistics in public_common.pl it should be: # 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>));
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
Ok, so I added those lines under/after the #Cosmetic section and before/above the #Calendar section. No joy. 
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
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. 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 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)
|
|
|
|
Joined: May 2001
Posts: 43
User
|
User
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,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
It appears that the only presance of Is blank (exactly as shown above). I guess if you want alt text, bust open public_common.pl and add it lol...
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
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,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
easy, update your image code to look something like: <img src="Image/URL/Here" alt="Alt Text Here"></>
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
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,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
The cosmetic links are listed in public_common.pl; look for:
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
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,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
If interested in my services, my pricing guide is available at VNC Web Design . 
|
|
|
|
Joined: Aug 2001
Posts: 103
Member
|
Member
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.
|
|
|
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: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|