|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
This is what my files look like... # Forum Home
#Album push(@items, qq(<a href="$vars_config{CGIURL}/album.pl"
title="$vars_wordlets_mods{album_link}">$vars_wordlets_mods{album_link}</a>));
push(@items, qq(<a href="$ULTIMATEBB" title="$vars_wordlets{forum_acronym}">$vars_wordlets{forum_home_link}</a>)); and %vars_wordlets_mods = ( q!album_link! => q!Album!, q!QuickReplyShow! => q!Show QuickReply Box?!, q!QuickReply! => q!QuickReply!, q!QRSmilies! => q! Disable Smilies!, q!ShowSig! => q! Show Signature?!, q!QRWQuote! => q!QuickReply w/ Quote!, q!QRMessage! => q!Message:!, q!points_system! => q!Member's Points!, q!points_link1! => q!!, q!points_link2! => q!!, q!mod_wordlets! => q!Modifications Wordlets!, ); 1; Is this what you are talking about? I haven't had any problems installing any of the other upgrades/mods, but the #Forum didn't look right. Looks like I should have added to under the whole block. And the link to my album isn't showing up. Please excuse my ignorance, and thank you for the help.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I just visited your board and the link to the album works perfectly. Did you clear the cache?
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
Does anybody know what do I modify to get the HOME button to port me home to my /ultimatebb.cgi and how do I add an Album button to get me back to album.pl in line with the other links? Al? Thank you Felix http://romanianational.com/cgi-bin/album.pl
|
|
|
|
Joined: Apr 2001
Posts: 237
Member
|
Member
Joined: Apr 2001
Posts: 237 |
Ooops, sorry guys. I've missed this thread for a while... Allen: I see it's still broken here... Looks like "membersdir" may be set incorrectly in album.cfg. If you want, I can take a look at it to see if I can nail down the problem. (Would need your album admin code...) PhillipBurum: Looks like you've got it, it appears to be working now... Felix: Modifying the header buttons is actually pretty easy, it's all contained in album_header.tml. All the *.tml files are basically HTML with special dynamic ####TAGS#### embedded that album.pl uses. In this case, you'd be looking for a line that looks something like this: <a href="####ALBUMPROG####" class="optionslink"><img class="button" src="####CONFIG=home_button####" alt="" /></a> And you could change it to: <a href="http://www.romanianational.com/cgi-bin/ultimatebb.cgi" class="optionslink"><img class="button" src="####CONFIG=home_button####" alt="" /></a> I hope that helps. Cheers
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
Mike, I tried that first and didnt work, probably because I was trying to add one more button in the album.cfg. and swap the destination of the buttons? I dont know. Hoever, after half a day a came up with this and it works: ################## # in album.cfg # ##################
find: ******
# Home button home_button=thmb_album_home.gif
replace with: **************
# Album button album_button=thmb_album_home.gif
######################### # in Photo_Album.css # #########################
find: ******
/* Home, Search, Random, Upload, Recent Uploads */
replace with: **************
/* Home, Album, Search, Random, Upload, Recent Uploads */
######################### # in album_header.tml # #########################
find: ****** <a href="####ALBUMPROG####" class="optionslink"><img class="button" src="####CONFIG=home_button####" alt="" /></a>
replace with: ************* <a href="http://YOUR URL"><img class="button" src="http://YOUR SERVER/img/thmb_forum_home.gif" alt="" /></a> <a href="####ALBUMPROG####" class="optionslink"><img class="button" src="####CONFIG=album_button####" alt="" /></a>
####################################################################################### # # # MAKE SURE YOU CHANGE THE NAME OF THE ORIGINAL BUTTON "HOME" (thmb_album_home.gif) # # TO "thmb_forum_home.gif" and CREATE A NEW BUTTON "ALBUM" (thmb_album_home.gif) # # # ####################################################################################### FELIX Thanks for replying Felix
|
|
|
|
Joined: May 2001
Posts: 55
Member
|
Member
Joined: May 2001
Posts: 55 |
how do i log out? I dont see a link. I never even logged in, it just had my name there?
|
|
|
|
Joined: May 2001
Posts: 55
Member
|
Member
Joined: May 2001
Posts: 55 |
also error on line 541, but i didnt touch that line
autostream.com/cgi-bin/album.pl
|
|
|
|
Joined: Oct 2002
Posts: 394
Enthusiast
|
Enthusiast
Joined: Oct 2002
Posts: 394 |
Anybody tried to install ImageMagick into the Album? Sounds complicated. http://www.imagemagick.net/
|
|
|
|
Joined: May 2001
Posts: 55
Member
|
Member
Joined: May 2001
Posts: 55 |
still having problem with getting the style sheet to work. I stuck it everywhere and it wont work...?
|
|
|
|
Joined: Apr 2001
Posts: 237
Member
|
Member
Joined: Apr 2001
Posts: 237 |
Wow, these are all old problems - sorry for not checking here very often. Ilve seen both felix and autostream at my forums though, and I think their issues are resolved. Cheers
|
|
|
|
Joined: Apr 2001
Posts: 237
Member
|
Member
Joined: Apr 2001
Posts: 237 |
After over 5 months of work, album.pl V6.4 has been released! [ Download it here ] For new users: install instructions For existing users: upgrade instructions Note that both processes have changed significantly in this release. V6.4 release notes follow: V6.4New Features- Upgrading is now possible through the album.pl configuration menu. (All existing settings are merged with the new album.cfg.clean file.)
- The album.pl breakup begins! The main album.pl file has been split into album_admin.pm.
- Added thumbnail fading. (Thanks MessageDJ!)
- Added compatibility with Simple Machines Forum.
- Setting "default_guests" to "all" prohibits all non-admins from uploading. (I.E. all regular authenticated users are treated as guests.)
- Uses first thumbnail in an album as the album thumb, if there isn't already one.
- New ####CODE=[command]#### tag allows you to insert Perl code into your templates. Useful for changing the way album.pl runs, based on local or global template files.
- You can now use URLs like .../album.pl?random=1;ssi=2;photo_height=150 to specify a height or width for SSI images.
- album.pl no longer fails to run when "optional" Perl packages are missing such as MD5 or CGI::Cookie.
- Enhanced album_test.pl to provide "usage notes" for any Perl packages that are missing (to help assess the impact of missing modules).
- Updated templates, which now include code to honour "textmenu" settings.
- Admins can now upload files larger than the posted limit.
- Converted all included images to PNG format and created new album/photo/movie icons.
- You can now specify a file size for pic_resize upload resizing.
- Thumbnail borders are now "smarter."
- Added "All" in pages section to show all images on a single page.
- Added "showall=x" option for recent uploads to show "x" most recent uploads (default is 20).
- Users are now forced to select an album on upload, as there is no album selected by default (per_member_upload excluded).
- Moved the form tags outside of the ####UPLOAD#### tag, to allow admins to insert custom variables by editing the templates. Be sure to update album_upload.tml accordingly.
- Debug info now shows module name.
New Config Items- perl_gd: Allows the use of the Perl GD package to generate thumbnails. (Thanks to Daniel Hofverberg for the code!)
- skipalbums: Allows you to define the name of directories to "hide." (I.E. directories matching this regular expression will not be displayed as albums.)
- thumb_fading, fade_load, fade_to, fade_over, fade_out: Thumbnail fading settings.
- representative_thumbnails: Uses the first thumbnail in an album as it's "representative" thumbnail.
- allow_move: Allow/disallow users to move photos they upload.
- allow_link: Allow/disallow users to link photos they upload.
Bug Fixes- Fixed bug with shrouded images not doing proper referer checks.
- Fixed a bug with text menus and albums showing a || inappropriately.
- Fixed a bug where the user edit screen on the config screen would wreck auth_db.txt.
- Fixed the way the "edit" menu works. The "stop" checkbox is now always shown, and uses on/off as the default depending on the context.
- Quotes are now handled properly on the config screen.
- Metacharaters in filenames no longer break ratings.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Nice, the script is really getting sweet 
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
What would it take to add a small image inline with the |profile|www|email|pm|edit|quote| tags..?
I'm going to be supplying photo hosting space to paying members only, and the album.pl is located on a sub-domain. Currently, I have an image under the user name that points to their photo directory, but would much rather have it setup inline, and simply be able to manage it via a checkbox in the {PERMISSIONS} section in {MEMBER MANAGEMENT}.
PS: I'm running a new 6.7.1 board.
|
|
|
|
Joined: Apr 2001
Posts: 237
Member
|
Member
Joined: Apr 2001
Posts: 237 |
It's been 6 months since the last release, so it's time! album.pl V6.5 has been released. [ Download album.pl V6.5 ] For new users: install instructions For existing users: upgrade instructions Please report any problems to the album.pl support forums . V6.5 release notes follow: New Features (Mostly from J.J. Frister -- THANKS!) - Multiple "viewing" levels. Based on authentication type, but generally can specify "Anyone," "Member," or "Owner" at upload time. Only the specified users will be able to see the image.
- Moving/Deleting links only moves/deletes the link, not the actual photo.
- Views are now moved with the object
- The following slideshow changes:
- Will go into slideshow mode even if popups are blocked via Mozilla, Firefox or ZoneAlarm settings -- if popups are blocked, the browser window is still the regular one, rather than the borderless one.
- Returns you to the regular view of last photo seen in the slide show when you close the slideshow.
- Degrades nicely if Java is disabled - same result as when popups are blocked.
- Fits vertical photos into the screen height if you have ImageMagick installed
- Uses the Photo_album.css settings for back-ground of the slideshow
- Behaves the same way wether you start from album.pl?photo=... or from album.pl?slideshow=5;photo=...
- Fullscreen slideshows no longer have a body margin.
- Slideshow runs faster
[*]Added image=random and image=randthumb to display random photos/thumbnails directly (no HTML, just the image itself) [*]Added the ability to rename the (system) file or directory when moving. [*]Base script has been chopped into multiple modules. [*]Added module path configuration variable. [*]Can now handle JPEG 2000 (jp2) files. - If you view from a Windows platform, the site will ask you to install the Lurawave jp2 plugins.
- If you view from a Linux platform, conversion back to jpg occurs on the fly, via ImageMajick.
- jp2 files give me small storage requirements while maintaining image quality
[*]All thumbnails are png files [*]Auto-size photo display for the current browser window. [*]Option: Only some members can upload photos and add ratings [*]Provide the option of storing login cookies permanently or only for the current session. [*]Better phpbb cookie checking. [*]Updated ratings/comments section to use the "ratings" style class. [*]Put nav footer into a table [*]Updated style color definitions [*]Ratings cleaned up in css [*]Made SMF cookie name a var [*]Strip spaces from arrays in config [*]Better updateComment checking [*]Now Uses "title" instead of "alt" [*]New german translation [*]Added default error info when string table is not loaded [*]Won't display the auto-size link/button unless ImageMagick is found. [*]if photo_height or photo_width=auto are passed, default to small size if there's no ImageMagick [*]Returns small size from getPhotoDimensions if there's no ImageMagick [*]More phpBB defaults in album.cfg [*]Made footers a table [*]Messed with static stuff [*]Frister's fixes for png thumbnails and SSI stuff [*]Changed default_size to 0 (no resize) in album.cfg [*]Added ####PATH#### [*]Added jp2 to imgexts in album.cfg [*]Moved "allow edit/move/link" etc into the authentication section. New Config Items- module_path: Location of album.pl module files.
- @jp2exts: Valid extension(s) for JPEG 2000 files.
- temp_loc : Filesystem path for storing JPEG 2000 files temporarily.
- temp_web: Web location of temp_loc.
- auto_button: Filename for new "auto" button.
Bug Fixes- Fixed problem where page was not always set right when viewing photos
- Fixed double entry in notify file.
- Fixed problem reading binary descriptions.txt.
- Fixed nav footer to work in all browsers.
- Fixed problem reading binary descriptions.txt.
- Fixed nav footer to work in all browsers.
- Fixed owner problem.
- Fixed a bug related to view level when moving phots or albums.
- Fixed jhead comments
- Fixed breadcrumb function passing
- Fixed link/move menu so it only displays when config'd to
- Fixed tooptip when using jhead
- Several JavaScript fixes.
|
|
|
|
Joined: Apr 2001
Posts: 237
Member
|
Member
Joined: Apr 2001
Posts: 237 |
tgreene, sorry I missed your post... All you'd have to do is edit album_header.tml which is basically straight HTML, and add in the HTML for the image(s) you want to see.
Hope that makes sense.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Nice update Mike 
|
|
|
|
Joined: Apr 2001
Posts: 237
Member
|
Member
Joined: Apr 2001
Posts: 237 |
Thanks Allen... good to be back here for a bit! 
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
Mike ( or anyone) I'm back to working on my site again, and am still trying to resolve the issue I addressed above, in which I'm wanting to include a small camera icon in the row that has the other user icons in it. I'm currently having to manually add the icon and URL via a custom user tag, so it's not in the proper location. The way in which Mike has customized album.PL to seamlessly function with my UBB 6.7, was to setup Forum-9 as a restricted "Members Only" access portal, where members with access into F9 automatically being granted access and the ability to setup their own photo galleries. What I'm looking for, is for these very same members to AUTOMATICALLY have the camera icon added into the lineup of their available options. I figure that it's probably a pretty simple task ( for someone in the know) that would be done in public_topic_page.pl but I haven't a clue as to how to integrate it myself. My site is www.gr-outdoors.com and you'll quickly see what I'm trying to do here.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
I don't have my files here to check, but it should be relatively simple - one could either invest a bit of time to check private forum access and write the code to show the image (which might slow down a busy site), or for no slow-down a little less time could be invested to use one of the provided extra profile fields to fill-in during the time used to give the same person access to the private forum, then all the template editing needed would be just a call to the profile field. If no-one else gets it I should be able to sometime this weekend, right after a few other things promised 
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
Thanks so much. 
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
Any ideas yet Allen..? 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Do you allow members avatars?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
And are you using any of your custom profile fields yet?
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
NO to both questions, but in order to get it to function as I have it now, I have had to use the {Custom Title} firld in the user profile. What I currently have setup for the 3 Admins, is the following: While I don't mind having to go the manual route, I don't like the fact that it requires an overwrite of the actual user title and then dumps the 'camera.gif' icon under the Name & Title sections. Ideally, it would be setup so that ANY member having permissions setup for Forum #9, would automatically get the camera icom and a link to their photo galleries. Is this making any sense..?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
it is but where do you want the camera icon if not under the user title?
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
I want the camera icon to be in the same row as the others, and I really don't want the {TITLE} to have to be overwritten, if at all possible... Basically, I would like it to be setup the same as if a member lists a website, where the WEB icon automatically gets plugged into that members' data, along with the URL. the only difference being, is that rather than the WEB icon, a CAMERA is used, and the URL would always point to the photo gallery, with the specific member number being appended to the end (as shown in the code above).
PROFILE || CAMERA || WEB || EMAIL || PM || EDIT || QUOTE
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
do-able but a little time consuming - if my wife lets me use the computer much this week I'll try to knock it out for you.  Wouldn't be a bad modification for others too, I'll use the 4th custom profile field.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
OK, thank Melanie, try this (untested): https://www.ubbdev.com/ubb/upload/00000494/gallery_links.txt There should be a checkbox in control panel: Member Manage: Permissions tab to check if the member has a gallery Should work then.
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
Okay, I hacked in Melanie's code, but get an errors when attempting to gain access to the member data from the CP. This was the debugging report: quote: StandardHTML stack trace: at /home/groutdoors/www/forums/noncgi/Templates/cp2_common.pl line 96
main::StandardHTML called at /home/groutdoors/www/forums/noncgi/Templates/cp2_common.pl line 131
main::StandardHTML2() called at /home/groutdoors/www/forums/cgi-bin/cp2_lib.cgi line 756
main::CatchException() called at cp.cgi line 499
main::__ANON__() called at Modules/Error.pm line 303
eval {...} called at Modules/Error.pm line 294
Error::subs::run_clauses() called at Modules/Error.pm line 386
Error::subs::try() called at cp.cgi line 500
-------------------------------------------------------------------------------- Extra information:
Fatal error:
(RequireVars) /home/groutdoors/www/forums/noncgi/Templates/cp2_editprofile.pl: syntax error at /home/groutdoors/www/forums/noncgi/Templates/cp2_editprofile.pl line 545, near "?," Compilation failed in require at /home/groutdoors/www/forums/cgi-bin/ubb_lib.cgi line 952.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
ok, it looks like I have a syntax error, can you tell me what's on line 545?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
It's probaby this: title => Does user have photo gallery?, change it to: title => "Does user have photo gallery?", See if that doesn't cure it 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
and that was my code, Melanie just gave me time to write it 
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
Okay, I can get back into the members' data now, and I do see the checkbox, but there are still problems...
The checkbox default was/is 'ON', so I changed the value from '1' to '0', but that didn't help.
Also, the CAMERA.GIF icon doesn't show up where it should -- or at all for that matter, unless manually placed like before.
When viewing the forums (not the CP), nothing seems to have changed, even after clearing cache and rebuilding the index files.
Any other thoughts..?
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
Originally posted by AllenAyres: and that was my code, Melanie just gave me time to write it Sorry btw... The way you worded the post initially, I thought Melanie was one of the a code jockys at UBB that may have dug into this.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
it won't show up unless profile[19] has a 1 in it, I need to default it to off tho then have it checked to add it in.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
change this from:
value => 1,
to:
value => 0,
in that initial section
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
I tried that already, as stated 2 posts prior... Could it possibly be something in the following line..? checked => $profile[19] ? 0 : 1,
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
Just tried again... No matter what I do, the checkbox stays checked, yet the camera/link never appear like they should. 
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
The only thing that I can differentiate between being able to enable POLLS and this new GALLERY data that we've added, is that the POLLS (along with everything else) is Wordletized... ???
I tried adding $gallery into the Wordlets2.cgi, but that still didn't do anything , so this kinda has me wondering if any of of other VARS files need to be edited, or if $profile[19] somehow needs to be identified elsewhere..?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
have you tried submitting the profile? It stays checked because we default it to checked, doesn't mean there's actually a '1' in the custom profile 4 ( $user_profile[19] ) line of their profile - the camera icon will not show up unless the 1 is there. Submit the profile as changed then view the file and tell me if a 1 is on line #20.
I'm at work and do not have access to a site to work on (can't do it anyway until after work, maybe tonight or tomorrow night).
|
|
|
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: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|