Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Description: Adds a dropdown for the admin functions (close, move, delete) instead of the images.

By: Lord Dexter

Original Author: Tech-Ni-Kal

Requirements: Any 6.3.0 Version and Mod Wordlets Installed.

Compatability: Any 6.3 Version.

Download: Click Here

Please report any bugs. Also if you were part of this hack in any way and you have not been included in credits please ask and not yell at me. Thanks. smile

Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
If you REALLY want me to report bugs, you use a href=" in the second close_option and delete_option.

If you want a suggestion:
1. make the admin_select and ---- lines without #

2. put the jumpPage function's CONTENT in onchange="" instead of a link to it.

3. "onChange" isn't XHTMLed

To use suggestions 1/2:
[code][/code]

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Updated. Bug and Suggestion 3 done.

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Another bug - public_topic_page.pl shouldn't have   between the options tipsy

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Okay evetything has been done. Thanks alot LK. smile

Sponsored Links
Joined: Sep 2001
Posts: 379
Member
Member
Offline
Joined: Sep 2001
Posts: 379
Currently, all it needs is a working link. tipsy

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394

Joined: Sep 2001
Posts: 379
Member
Member
Offline
Joined: Sep 2001
Posts: 379
Much better! smile

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Thanks LK. I had to move servers. Link has been fixed in first post too.

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
i guess this isn't compatible with sticky threads, i tried installing this hack after i installed sticky threads and the dropdown menu options are not in the dropdown form, they're next to it in plain text confused

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
It's compatiable with Sticky Threads, but you'll need to edit the Sticky code in ubb_lib_posting.cgi so it is also in a dropdown.

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
nice

release a sticky threaded version? wink

the sticky thread code is so different from the rest frown

Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
ubb_lib_posting.cgi, find:

Code
[/code]Replace with:

[code]
Then carry on with the Dropdown Hack install as normal, and add $sticky_option and the tags where you want them...

(If this doesn't work, kick me, then tell me the right way, please wink )

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
still doesn't work, but it did the same thing that happened before I tried putting sticky code in.

the form is there, but options are not, they are next to the form in plain text frown

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
You replace it with similar code I used for the other dropdowns CTM, here I extracted it from my files....(replace this with the same code CTM asked your to find)

[code][/code]

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
ok, but that wasn't my problem.

even before i tried the sticky threads, the dropdown menu would be there but wouldn't have any options, and the "Move Topic" "Delete Topic" etc would be next to the dropdown menu in plain text :

*edit*
and when i put your new code in a get a ubb_get_topic.cgi error line 81
frown

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
What file did you put that code in?

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
quote:
Originally posted by Lord Dexter:
What file did you put that code in?

i put it in ubb_lib_posting.cgi, isn't that where it's supposed to go...

and can you tell me why the dropdown menu doesn't work? i guess it's just on my board??

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Yes, because it works fine everywhere else. Try-rehacking.

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
rehacked, same problem :

screenshot

i'm doing exactly what the text file says frown

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
That is weird, I have extracted what was in my ubb_lib_posting.cgi so use this if it has any difference to the txt file which I doubt:

[code][/code]Thats with sticky code too.

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
ok, thanks i'll try it later tonight

that's gonna be a pain in the ass to copy and put in notepad wink

still doesn't work frown

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Did you do the public_topic_page.pl step right? Because thats where the problem seems to be.

EDIT - Try this instead of what you have in public_topic_page.pl

[code][/code]

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
yes, that worked! smile all the functions work fine, I also put "$sticky_option" next to "$delete_option" and the sticky works fine also. thank you very much

one more q, how would I center the form vertically?

screenshot

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Is that code different to whats in the TXT file?

BTW, what do you mean center vertically?

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
quote:
Originally posted by Lord Dexter:
Is that code different to whats in the TXT file?

BTW, what do you mean center vertically?

yeah, the code is different. I think it was missing a tag or something, but it works now so update it wink

And I mean, the posting buttons are at the bottom of their table, while the admin functions menu is at the top of its table.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
There should be TD Tags above that code where you can change the align to center or bottom instead of top.

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
yeah, there is and i changed the valign to bottom but it still stayed at the top : i think it has something to do with cellpadding or spacing but I don't know how to fix that.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Give me that bit of code that you changed. (Post it here)

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
Code
<td width="25%" bgcolor="$vars_style{AltColumnColor1}" nowrap="nowrap" valign="bottom" align="center">
<font size="1" face="$vars_style{FontFace}">
$topic_wording $poll_link $reply_wording
</font>
</td>

<td width="50%" bgcolor="$vars_style{AltColumnColor2}" valign="bottom" align="center">
<font size="1" face="$vars_style{FontFace}">
$close_option    $move_option    $delete_option    $sticky_option
</font>
</td>

<td width="25%" bgcolor="$vars_style{AltColumnColor1}" align="right" valign="middle">
<font size="1" face="$vars_style{FontFace}">
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=next_topic;f=$forum_number;t=$topic_number;go=older"><img src="$vars_config{NonCGIURL}/$vars_style{prev_topic}" border="0" alt="$vars_wordlets{next_oldest_topic}" /></a>   <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=next_topic;f=$forum_number;t=$topic_number;go=newer"><img src="$vars_config{NonCGIURL}/$vars_style{next_topic}" border="0" alt="$vars_wordlets{next_newest_topic}" /></a>
</font>
</td>
There's the code, the middle table is the one I editted of course.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Can you edit the code there and put in the code from this hack?

Joined: Jul 2002
Posts: 45
Member
Member
Offline
Joined: Jul 2002
Posts: 45
Quote
quote:
Originally posted by Lord Dexter:
Can you edit the code there and put in the code from this hack?
eh? the only difference is before in the middle table the "valign" tag was set to "top."

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Change the valign="top" to valign="bottom" then, and maybe put the align tag before the valign tag.

Joined: Feb 2000
Posts: 59
Member
Member
Offline
Joined: Feb 2000
Posts: 59
Lord Dexter, is there anywhere to download this? Your links still aren't working.

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Updated, sorry forgot to update that one.


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
isaac
isaac
California
Posts: 1,157
Joined: July 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)