Module: preformatted URLs (attachment + screenies, yay)
rebel2k
Joined: 2002-10-18
Posts: 39 |
![]() |
Damn, it seems that the any idea why? Result: (click to expand) Maybe my configuration is bad??!? best regards |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
rebel2k so you should enable G2's short urls (activate the rewrite module) and you're set. |
|
rebel2k
Joined: 2002-10-18
Posts: 39 |
![]() |
thx! I will try it soon! but an other case: seems that unregisterd users did Not see the Get item URLs link in the navigation menu! How can this could be fiexed? |
|
bgolat
Joined: 2005-10-20
Posts: 3 |
![]() |
any updates on this? i would like unregistered users to be able and see. |
|
shocksll
![]()
Joined: 2005-06-22
Posts: 352 |
![]() |
bgolat wrote:
any updates on this? i would like unregistered users to be able and see. Did you set the permissions correctly? See http://pictures.thelineberrys.com/gallery2/gallery2.php?g2_view=core.ShowItem&g2_itemId=27&g2_navId=x75edd9a0 You are an unregistered user and you should be able to get the urls. You have to give everybody access to [URLs] View formatted URLs |
|
rebel2k
Joined: 2002-10-18
Posts: 39 |
![]() |
damn you are right shocksll! Thanks for you hint ;) now it works well!! just one think I must to know: how can I make this plugin multilanguage? |
|
ZyreX
Joined: 2004-03-04
Posts: 43 |
![]() |
as I asked about earlier, is it possible to use the resized image rather than the thumbnail? If that had been possible, I would love this plugin more than I already do.. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
i've downloaded geturls-0.8.5.zip and changed a few things. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
cool, now unit test it and put it in bharat's review queue |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
nah, it's not ready for primetime, but much better than before. @module authors: |
|
shocksll
![]()
Joined: 2005-06-22
Posts: 352 |
![]() |
valiant wrote:
- weird: Callback.inc didn't serve a purpose before I was using the callback.inc in one of my themes to get the url of a child thumbnail on an album and/or photo page. Is there a better way to do that? Thanks for all your work. |
|
shocksll
![]()
Joined: 2005-06-22
Posts: 352 |
![]() |
So to answer my own question it does look like that instead of this $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.DownloadItem",'arg2' => "itemId=".($this->_tpl_vars['block']['geturls']['LoadUrls']['thumbid'])) I should be doing this $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ShowItem",'arg2' => "itemId=".($this->_tpl_vars['child']['thumbnail'])), $this); But on an album or photo page would this code work? $this->_reg_objects['g'][0]->url(array('arg1' => "view=core.ShowItem",'arg2' => "itemId=".($this->_tpl_vars['item']['thumbnail'])), $this); There was some reason I made the callback.inc but I'm trying to remember why. Steve Lineberry |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
ah, sorry for removing it then. $this->_reg_objects['g'][0]->url( ? i guess you call there so it seems you want a DownloadItem link. not a ShowItem link. or do you want a clickable thumbnail? if you're in a photo.tpl, then you should use {g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.thumbnail.id`"} could work for just a thumbnail maybe if you explain what exactly you're trying to do, i could help. |
|
shocksll
![]()
Joined: 2005-06-22
Posts: 352 |
![]() |
Ok, check out this page for instance. Click on customize and add to cart. This will popup another window with the thumbnail image of the item in a box and allows people to enter values in the boxes. So in the theme, I need to pass this popup page the url for the thumbnail in the querystring. I can get the url of the thumbnail for a child object in the album and according to your code above I should be able to get the thumbnail for an album/photo. The reason i'm using php code instead of smarty code is because i'm calling some php functions I wrote in the smarty template, so no i'm not doing global $gallery...etc. I'm just doing a php block in the smarty template. I'll give your code a shot when I get a chance. Originally when I was making this I just couldn't figure out how to get the thumbnails I needed so I created the callback in the getitemurls. Thanks. Steve Lineberry |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
$this->_reg_objects['g'][0]->url(array('arg1' => "view=core.DownloadItem",'arg2' => "itemId=".($this->_tpl_vars['child']['thumbnail']['id'])), $this); or something like that. |
|
pippin88
Joined: 2005-09-17
Posts: 23 |
![]() |
Nice changes valiant. How do I make it a block but only visible to logged in users? Is this possible? Could you make it possible to get all the URLs for an album at once from the album menu? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
this already works. |
|
pippin88
Joined: 2005-09-17
Posts: 23 |
![]() |
Got it working cheers Valiant. Willing to have a look at giving a page of URLs coverin every item in an album? |
|
Dutchovens
Joined: 2005-11-16
Posts: 3 |
![]() |
When I try to edit permission -> [URLs] View formatted URLs in 8.5.0 and 0.9.0 I get this error: Quote:
Error Detail - |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
i guess upgrading doesn't work 100%. please deactivate and uninstall the module, then install it again. |
|
Dutchovens
Joined: 2005-11-16
Posts: 3 |
![]() |
I got it working. I was trying to activate it for everyone and it didn't work, but when I use it for Registered Users it works fine. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
what exactly doesn't work? adding the geturls permission to the everybody group? |
|
Dutchovens
Joined: 2005-11-16
Posts: 3 |
![]() |
Adding the geturls permission to the everybody group causes that error, but when I tryed adding it to the Registered Users group it worked fine. I only allow registered users to access the gallery anyway, so I'm fine with it this way, but it might be different for other people. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
well, i can't reproduce the error... if it happens to anyone else, please let me know. |
|
chacness
Joined: 2005-11-19
Posts: 5 |
![]() |
I have version 0.9.0 of the module installed and I am getting a weird output for my link. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
ah, bharat's relative URL changes in the core code have also a consequence on this module. i'll fix it. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
a fixed version (0.9.1) is attached to the first post. |
|
bdmilitary
Joined: 2005-11-23
Posts: 9 |
![]() |
Hello, I am having some problems. I installed everything correctly but the main problems are: 1. I want normal viewers to be able to see the URL codes too. How do I do that? [img]http://photobucket.com/tutorials/images/background_image.jpg[/img] Many thanks in advance. BMF Webmaster |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
1. edit permissions, add permission for geturls view formatted urls to the everybody group (or to the registered users group) |
|
pippin88
Joined: 2005-09-17
Posts: 23 |
![]() |
I'd really like what bdmilitary is asking for, the only real missing feature of this great mod. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
i have it working, but now we need a whole bunch of other options. -> what to show as itemSummaries. etc. plesse provide such short titles for all existing features of this module, then i can change the module accordingly. |
|
bdmilitary
Joined: 2005-11-23
Posts: 9 |
![]() |
Valiant the custom features should be like this: Hotlink for forums (1) The main aim I want to establish with my gallery is: 1. Have an image sharing/hosting service going If I can get these three main features going I will be very happy since this this definitely the best gallery management software I have seen. I am really happy about it so far. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
actually, i think "Hotlink" is not a very common word, users won't understand it. |
|
bdmilitary
Joined: 2005-11-23
Posts: 9 |
![]() |
Valiant you are current, how about we just have "URL"? Also I mainly want the full URL short cut codes on the Photo view pages as they will all fit their properly. In album view we could just have URL (The direct link) and thumbnail URL code linking to main photo page. Thank you. |
|
pippin88
Joined: 2005-09-17
Posts: 23 |
![]() |
valiant - will we be able to select which ones we want to show like we currently can on the photo pages? I only use the BBcode clickable thumbnail line, so the naming isn't a big issue for me. What about calling them BB, HTML, Full? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
i'm experimenting. currently, i have added a javascript block toggle. so if you click on +, you see the URLs for a thumbnail, else it's just a single line. |
|
bdmilitary
Joined: 2005-11-23
Posts: 9 |
![]() |
That is an excellent idea Valiant! I think we could fit all the features in the Photo view if we use the "+" block toggle. |
|
bdmilitary
Joined: 2005-11-23
Posts: 9 |
![]() |
Valiant can you also add a select (highlight) + copy feature for all the shortcut URL codes to make it easier for users because I have the PG theme and right click on their is disabled. Thank you. |
|
pippin88
Joined: 2005-09-17
Posts: 23 |
![]() |
That's a neat idea bdmilitary. So I can grab all the pictures clickable thumbs very quickly rather than lots of selecting, then copying then pasting. However, I think having this as a menu (as in the menu on the side containing add photos etc) item would be better. Just a link that you click on and it copies all the appropriate URLs. Different menu items for different types, eg HTML or BBCode Possible? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
i really want someone other to work on this module. i'm too busy. i've added getItemSummaries in version 0.9.2 (get it from the first post). you can disable it in the site admin view. it looks awful, that should be motivation enough to improve it. things that need to be refactored in this module: Style: much to do...so please someone take the 0.9.2 version of this module and work on it |
|
bdmilitary
Joined: 2005-11-23
Posts: 9 |
![]() |
I got error when I tried installing it. Where can I get Core API & Module API upgrade? IT SAYS: Incompatible module! |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
upgrade to the latest nightly snapshot of G2. download link is in the upper right of this page. |
|
bdmilitary
Joined: 2005-11-23
Posts: 9 |
![]() |
Can you give me the exact link because I don't want to destroy the gallery as their are two nightly shots folders. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
downloads -> Nightly snapshots: Jesse Mullan's page -> gallery2 |
|
bdmilitary
Joined: 2005-11-23
Posts: 9 |
![]() |
Valiant I don't want people seeing the original images. Can you please redirect the watermarked version. For example when I click on the second BBCode Formatted Links option (Show image directly But I want the watermarked picture instead - like this one: Will this be possible? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
for now, someone else has to develop this module further. |
|
blazin6543
Joined: 2005-12-04
Posts: 5 |
![]() |
ok im gonna try installin the nightly thing but will i lose any of the work i already have on my site? including modules or anything else? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
you shouldn't lose anything. |
|
blazin6543
Joined: 2005-12-04
Posts: 5 |
![]() |
so i just upload the files into the gallery folder and override every file and reinstall or what? ive never done this with gallery2 |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
FAQ: How to upgrade Gallery2? use FTP to overwrite all files. |
|