Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2003
Posts: 16
O A
Offline
Junior Member
Junior Member
Offline
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

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
would be nearly impossible without breaking the cache and those who know the addresses could type them in rather easily.


- Allen wavey
- What Drives 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
if you want to get rid of 'em in general, replace the images with transparent images lol...


UBBDev - 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: Apr 2003
Posts: 16
O A
Offline
Junior Member
Junior Member
Offline
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
Offline
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

Sponsored Links
Joined: Apr 2003
Posts: 16
O A
Offline
Junior Member
Junior Member
Offline
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
Offline
Joined: Jun 2001
Posts: 2,849
Quote
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
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
bah, I went for the constantly breaking my boards approach and look how I turned out tipsy

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
quote:
Originally posted by O A:
BTW How does one learn how to mod UBB ?.
Breakin the code over and over, and over...


UBBDev - 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: 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


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Apr 2003
Posts: 16
O A
Offline
Junior Member
Junior Member
Offline
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.


UBBDev - 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

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
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139
Sep 21st, 2024
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,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)