|
Joined: Apr 2003
Posts: 16
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 16 |
On the topic display there are close/move/delete icons for the topic.
I want to be able to hide these icons, and only have them displayed for a Admin or Moderator etc..
I tried modifying the Perl code (my self, non experienced in UBB, just perl). But If the icons are hidden then when ever ANYONE loads the page again, they also seem to be hidden, or vica versa, i.e. the page must be being cached,
Anyway...can anyone help me ? etc....or comment ?..
UBB 6.3.1.2
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
would be nearly impossible without breaking the cache and those who know the addresses could type them in rather easily.
|
|
|
|
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 you want to get rid of 'em in general, replace the images with transparent images lol...
|
|
|
|
Joined: Apr 2003
Posts: 16
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 16 |
It was not for security reasons. It just seemed redundent for all Non Admin/Moder users.
I just wanted to ask the knowledgable to confirm is it possible without 'breaking the cache' by a combination of cookies and using javascript to 'document.write' HTML code for the ICONS based on whether the user is a Admin or Mod ?.
If so..any one tell me how ?..
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
you would need to store an staff member's status in the cookie, and also store in some kind of array which mods modded where, and you'll want to take into account that the tables will look fudged up at the bottom with no images there.
You'll have to go into ubb_lib_posting and do some escaping, and unescape in the javascript most likely. I would at least avoid something like document.write for something like css, and changing a class to display: none;
This will most likely require modding ubb_profile.cgi, ultimatebb.cgi, ubb_new_reply.cgi, ubb_new_topic.cgi, ubb_edit_post.cgi, public_topic_page.pl, and ubb_lib_posting.cgi
|
|
|
|
Joined: Apr 2003
Posts: 16
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 16 |
Weird Al
Solution is too heavy whoops too much for me. I only know Perl and not really UBB modding. So can only do simple modifications.
BTW How does one learn how to mod UBB ?.
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
quote: Originally posted by O A:
BTW How does one learn how to mod UBB ?. That's a great question. You can grab hacks here and parse them to see how certain functions are performed or just break your board over and over again. It's better of course to have a local version running so that your boards aren't down all the time.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
bah, I went for the constantly breaking my boards approach and look how I turned out 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
quote: Originally posted by O A: BTW How does one learn how to mod UBB ?. Breakin the code over and over, and over...
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
there are some nice tutorials and articles here: https://www.ubbdev.com/db/ultimatebb.php
|
|
|
|
Joined: Apr 2003
Posts: 16
Junior Member
|
Junior Member
Joined: Apr 2003
Posts: 16 |
>Breakin the code over and over, and over...
Yes....but initially how do ya figure how all the thing works....I mean so manny files etc..and sections...an relationshoips between them etc........ breakign the code is just an accident!
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
uhhh yeh an accident ::looks around:: hehe...
Take apart our mod's... Best way to figure it out, especially mods that play with the cp or profiles, you learn the systems enerally that way...
Heck, best bet is, look through all of your cp files and poke around, then look at their relationship through your member files.
You'll notice things falling together just by looking through previously made mod's.
|
|
|
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: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|