Module: preformatted URLs (attachment + screenies, yay)
ayamaguc
Joined: 2006-10-02
Posts: 21 |
![]() |
tink0509 wrote:
<input onclick="this.focus(); this.select();" name="forum" type="text" readonly="true" size="{$width}" value="<a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$GetUrlsData.itemId`" forceFullUrl=true}" target="_blank"><img src="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$GetUrlsData.itemId`" forceFullUrl=true}" alt="{$theme.item.title|escape}" width="" class="" /></a>"> This part is what matters. It is basically tag-value as I've broken it up above. Most of the tags relate to the structure of the link bar. You need to find the one the creates the link (the 'a href=' part). > value="<a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$GetUrlsData.itemId`" forceFullUrl=true}" if you understand xhtml (if you don't, learn b/c you'll never understand a meta-language spitting out xhtml if you don't understand the output), then you should understand the anchor ref tag, and that the goods that you want to redirect are between the quotes. > {g->url arg1="view=core.DownloadItem" arg2="itemId=`$GetUrlsData.itemId`" forceFullUrl=true} just guessing but you should be able to replace this text with or whatever and get it to build that. > target="_blank" target="_blank". you should be able to mentally start mapping the output with the script creating it. that will help you understand what is going on. tink0509 wrote:
<a onclick="javascript:clipboardData.setData('Text','<a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$GetUrlsData.itemId`" forceFullUrl=true htmlEntities=false}" target="_blank"><img src="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$GetUrlsData.itemId`" forceFullUrl=true}" alt="{$theme.item.title|escape}" width="" class="" /></a>');window.status = '[F2F]{$GetUrlsData.itemId}[/F2F] copied to your clipboard for forum posting!';" href>[F2F]</a> This part is what is generated for the click-copy links on the side. It is basically the same as the above. yah? |
|
tink0509
Joined: 2006-12-18
Posts: 33 |
![]() |
SO if I change the to it should work? I am learning XHTML a bit so this will help. Thanks a bunch. |
|
tink0509
Joined: 2006-12-18
Posts: 33 |
![]() |
I totally forgot. There are certain types of thins I am offering on my site that is code specific. Such as offering say contact tables and extended network graphics for myspace that use a specific code. I have a album for each kind. Album for Contact tables, album for extended network, etc. How can I specify the different codes needed for the URL rewrite and Get URL mods? Example Online indicators would use this type of code Does that make sense? Basically certain albums need code specific. Thanks for the help once again. Wish I knew what I was doing... |
|
ayamaguc
Joined: 2006-10-02
Posts: 21 |
![]() |
tink0509 wrote:
SO if I change the This is my best guess.I would put it in there, try it out, and see. Compare the output to what you need it to be, adjust, etc. |
|
ayamaguc
Joined: 2006-10-02
Posts: 21 |
![]() |
tink0509 wrote:
Such as offering say contact tables and extended network graphics for myspace that use a specific code. I'm sure this can be done, but it has to be done in PHP. So once you figure out what the xhtml needs to look like, get messy with conditionals in php. Or rent-a-coder or whatever to do it for you.. |
|
tink0509
Joined: 2006-12-18
Posts: 33 |
![]() |
ayamaguc wrote:
Thanks so much. I think I will need to find someone who could help me do it as Im, just learning xhtml and php so I dont think I will learn it in time for when I need it by. Do you recommend someone who can possibly do this for me? |
|
marco@mydub
Joined: 2004-01-07
Posts: 48 |
![]() |
Is this module still valid & current with the latest : Gallery version = 2.1.2 core 1.1.0.2 ? Thank You, marco |
|
ayamaguc
Joined: 2006-10-02
Posts: 21 |
![]() |
tink0509 wrote:
Thanks so much. I think I will need to find someone who could help me do it as Im, just learning xhtml and php so I dont think I will learn it in time for when I need it by.Do you recommend someone who can possibly do this for me? Tink- you still looking? Let me know and I can try to dig up my guy. |
|
scottnemiro
Joined: 2006-05-02
Posts: 57 |
![]() |
hey guys... i have manipulated the code to display the images how I want with alt="xxxx" functions and width"xxx" functions, but maybe in future release you can add this option through gallery. that may not have made sense.. ex: i want my url to read: <img src="http://www.mysite.com/gallery/pics/001.jpg" alt="Images hosted by MySite" width="300"> i had to hack the geturl.tps file to do this.. i actually made mine to use in MySpace and added <center> commands and <br> commands as well..maybe it could be an option in the module interface through your admin in gallery? something to think about. oh ya! i also added onclick="this.focus(); this.select();" in the <input> command so when you click on the formatted url it highlights the whole thing... very usefull for people that dont understand the "copy to clipboard" link to the right of the formatted url also...if you are having a problem with MySpace displaying your formatted urls because of the "?" mark in the url, hopefully Valiant will have this fixed and release a new update of geturl module tomorrow. |
|
tink0509
Joined: 2006-12-18
Posts: 33 |
![]() |
ayamaguc wrote:
Yes, I am clueless. I tried doing it myself and screwed up so much I had to uninstall and reinstall it, lol...Trial and error but I just cant figure it out. Thanks so much ayamaguc |
|
ayamaguc
Joined: 2006-10-02
Posts: 21 |
![]() |
Check your PMs. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Update -------------- |
|
hamba
Joined: 2005-06-25
Posts: 54 |
![]() |
nice update thanks but now I'm getting loads of this in my error log
I know I have debug on but this was not there brfore the update |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Thanks for reporting the issue. I fixed something related, please try the new zip which is attached to this topic (still version 0.9.5, but changed). -------------- |
|
hamba
Joined: 2005-06-25
Posts: 54 |
![]() |
Thanks its fixed \O/ |
|
ZyreX
Joined: 2004-03-04
Posts: 43 |
![]() |
I just upgraded to the new version, 0.9.5, and now the admin-panel for it don't work (http://xxxxxxx/gallery/admin/?g2_subView=geturls.GetUrlsSiteAdmin) It's just completely blank.. :S All file permissions are correct, and I can't see anything in the error_log.. What happened here? I also want geturl to give me all formatted urls for an entire album ;) |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
works for me. -------------- |
|
ZyreX
Joined: 2004-03-04
Posts: 43 |
![]() |
valiant: Thanks, to clear the cache worked |
|
shivaya
Joined: 2006-12-22
Posts: 132 |
![]() |
I added a field for the lightbox ( rel="lightbox" ), But I would like to know how to recover the ID of the parent album of the image, because I wish to add a id to the lightbox ( rel="lightbox[IDalbum]" ) |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
$item->getParentId() -------------- |
|
shivaya
Joined: 2006-12-22
Posts: 132 |
![]() |
valiant wrote:
$item->getParentId() thank you very much, all functions well ;) |
|
Junior
Joined: 2004-03-20
Posts: 3 |
![]() |
Ok Complete Idiot here, it's been a long day and for a break from coding another site I decided to search for this module Downloaded where have I gone wrong ? |
|
jjmcgaffey
Joined: 2007-02-22
Posts: 1 |
![]() |
I tried to install version 0.9.5 (tried 0.9.2 before and ran into problems - this one is better), but when I click on Install in the Modules page of my G2 installations, I get: Error Detail - * in modules/core/classes/helpers/GalleryPermissionHelper_advanced.class at line 853 (gallerycoreapi::error) System Information I tried clearing the caches, but it didn't help. I'm a PHP newbie - I really have no clue where it's finding duplicate permission ids or really, what that means. Is this module colliding with the core program? Help, please! --- |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
jjmcgaffey sorry about that. please see: -------------- |
|
chaosdax
Joined: 2005-12-27
Posts: 37 |
![]() |
I have not seen any post that has resolved my question. I want to link directly to my videos to allow people to either via them inline (which is already done) or download them (which is what I would like to get this module to do). Specifically, I would like a download link available underneath each thumbnail in the video gallery. I have looked at all the options and nothing seems to be working. Has anyone done this or is there a way to do this? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
I would like a download link available underneath each thumbnail in the video gallery. |
|
IceStorm
Joined: 2006-10-28
Posts: 14 |
![]() |
I think I've read this thread so many times my brain is mush. Please bear with me however. Like how the "clickable thumbnail link" but instead of the thumbnail its the full size picture. Please an idiot in need. Thank you Visit us at http://www.imageeden.com |
|
vince42
Joined: 2007-07-04
Posts: 3 |
![]() |
Hi all Great module. Works really well. Have one question though, bit of a newbie, so apologies if im missing something simple. How do you get the URLs to pop up in a new (blank) window? I know its easy as anything in Dreamweaver and the like, but I have no idea with this. Im guessing I need to change the code in the GetUrls.tpl file, Ive found what I think are the right lines, but I have no idea on what the grammer should be and short of typing in "Please open in new window" (which I dont think is the correct code) I have no idea!!!! Thanks in advance for any help you can give. |
|
shocksll
![]()
Joined: 2005-06-22
Posts: 352 |
![]() |
target="_blank" as in <a href="http://www.google.com" target="_blank">Open Google in a New Window</a> Steve Lineberry |
|
vince42
Joined: 2007-07-04
Posts: 3 |
![]() |
shocksll wrote:
target="_blank" yes, just like that!!!! can normal HTML be used though? |
|
shocksll
![]()
Joined: 2005-06-22
Posts: 352 |
![]() |
Yea, it's normal html in their right now, it's just encoded. Check out this section of the geturls.tpl {if $GetUrlsData.options.HtmlLink} <p class="gbDescription"> {g->text text="Link to the page of the item:"} <br /> <input onclick="this.focus(); this.select();" name="forum" type="text" readonly="true" size="{$width}" value="<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$GetUrlsData.itemId`" forceFullUrl=true forceSessionId=false}">click for image</a>" /> {if $GetUrlsData.showIeLinks} <a onclick="javascript:clipboardData.setData('Text','<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$GetUrlsData.itemId`" forceFullUrl=true forceSessionId=false htmlEntities=false}">click for image</a>');window.status = '[CLK]{$GetUrlsData.itemId}[/CLK] copied to your clipboard for forum posting!';" href>[CLK]</a>{/if} </p> {/if} If you wanted them to open in a new window you would change it to be {if $GetUrlsData.options.HtmlLink} <p class="gbDescription"> {g->text text="Link to the page of the item:"} <br /> <input onclick="this.focus(); this.select();" name="forum" type="text" readonly="true" size="{$width}" value="<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$GetUrlsData.itemId`" forceFullUrl=true forceSessionId=false}" target="_blank">click for image</a>" /> {if $GetUrlsData.showIeLinks} <a onclick="javascript:clipboardData.setData('Text','<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$GetUrlsData.itemId`" forceFullUrl=true forceSessionId=false htmlEntities=false}" target="_blank">click for image</a>');window.status = '[CLK]{$GetUrlsData.itemId}[/CLK] copied to your clipboard for forum posting!';" href>[CLK]</a>{/if} </p> {/if} Steve Lineberry |
|
justinj1
Joined: 2005-11-21
Posts: 67 |
![]() |
My album and thumbnail pages look like this: When I login as admin the "Get Item URLs" beneath the thumbs disappears, How can I get rid of the "Get Item URLs" beneath the thumbs for everyone? Thanks for this plugin |
|
jemostrom
Joined: 2007-05-06
Posts: 45 |
![]() |
My suggestion for a feature would be the ability to define custom URLs. I would for example like to make URLs that "fits" into another web site I have |
|
tim254
Joined: 2007-07-30
Posts: 3 |
![]() |
Is it possible to do something like this: <p align="center"><a href="http://www.myurl.com"><img src="http://www.myurl.com/image.jpg" border="0"></a><a href="http://www.myurl.com"><br></a><a href="http://www.myurl.com">My Images are Cool</a></p> If so, how would I edit the tpl file to do it. Any help on this would be great... Thanks. |
|
shocksll
![]()
Joined: 2005-06-22
Posts: 352 |
![]() |
Yes, see my post above where someone else asked how to modify the links to open in a new window. http://gallery.menalto.com/node/28154?page=5#comment-243130 Steve Lineberry |
|
tim254
Joined: 2007-07-30
Posts: 3 |
![]() |
Awesome, thank you! I don't know that much about encoded HTML, and was wondering if you have a good source for learning it ... or is it always different? I might be wrong, but it seems that Myspace uses encoded HTML and that's why it's always converted when I save regular HTML in my profile. However, I always have issues with it because of spaces and periods, etc. |
|
shocksll
![]()
Joined: 2005-06-22
Posts: 352 |
![]() |
From my post above you can kind of figure it out. You already know some html based on your post above <p align="center"><a href="http://www.myurl.com"><img src="http://www.myurl.com/image.jpg" border="0"></a><a href="http://www.myurl.com"><br></a><a href="http://www.myurl.com">My Images are Cool</a></p> And if this is supposed to be a link (from my post above) <a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$GetUrlsData.itemId`" forceFullUrl=true forceSessionId=false htmlEntities=false}" target="_blank">click for image</a> You can see the encoded parts < = < " = " > = > That's pretty much all you need for this case. BTW, the code inside the {} is the smarty syntax. If you plan on doing much template editing I would suggest you become fimilar with that syntax. Steve Lineberry |
|
tim254
Joined: 2007-07-30
Posts: 3 |
![]() |
Thanks Steve, now it makes sense. I really appreciate your help! - |
|
ZyreX
Joined: 2004-03-04
Posts: 43 |
![]() |
edit: It already had that function, that's great. lol. |
|
Etobow
Joined: 2007-07-31
Posts: 9 |
![]() |
Well here's my comment about this. I love it. I was tired of using Imageshack or xs.to for hosting my images, and I wanted to have them all safely stored on my webhost account. Yours work great, but I hate the fact that I must go through a few clicks before I get to the actual linking codes. This is particulary annoying when I batch upload images. Then I have to make a few clicks for each image. So if you could minimize clicks needed to get to the codes, to get batch linking codes and to maybe select images to get linking codes for with separators that would be splendid. That's my opinion about this module. |
|
skeal
Joined: 2007-02-18
Posts: 3 |
![]() |
same wish from me... batch-urls ... not to klick on any picture to get their links... first could be to geht the links of whole of the album... you can select the right ones afterwards with deleting the unwanted entries |
|
designsbybnc
Joined: 2007-10-11
Posts: 13 |
![]() |
I'm trying to figure out if there's a way to make it so that only the owner of an album can see the URL links to the images. I have everything set up right for the most part. If I'm logged in as a normal user, I can see the urls and everything works fine. Problem is I want to stop registered users from getting the urls or other users albums. I'm not the best at coding and this is very new to me as far as gallery use, so any help would be greatly appreciated. |
|
skunker
Joined: 2005-02-04
Posts: 344 |
![]() |
Does anyone know how to change the size of the thumbnail that is printed when using the "show a clickable thumbnail" bbcode URL? Currently, it's a bit too small and I want to increase the size to maybe 150px. What file in this module would I edit? Thanks! [img]http://www.fighterjetz.com/d/1329-2/DF-ST-91-03614.jpg[/img] |
|
skunker
Joined: 2005-02-04
Posts: 344 |
![]() |
200+ replies and no one can help answer my question? *Waaah*! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
it's a bit too small and I want to increase the size to maybe 150px. It takes the thumb from the album. If you want a bigger thumb than you have to set gallery to have a bigger thumb. Dave |
|
skunker
Joined: 2005-02-04
Posts: 344 |
![]() |
Dave, Update: It seems that "BBCode inline image" does what I want, except, it is not clickable. The size is perfect, though. So, we need to find a way to get it to send the user to my photo page when clicked. |
|
ayamaguc
Joined: 2006-10-02
Posts: 21 |
![]() |
Skunker- you need to realize that preformatted URLs is not a mainline feature. It is a module, completely free and more or less completely unsupported. This thread is lucky to get a handful of posts a month from folks nice enough to take time out and provide direction or share their own tinkerings with the community. No one 'owns' this module and as far as I know there is no active development that you can request a feature from. That said, you can probably use my notes and posted code to figure out how to make the thumb/resize changes you wish.. I modified only the HTML links.. but the the BBCode changes should be very similar. skunker wrote:
200+ replies and no one can help answer my question? *Waaah*! |
|
skunker
Joined: 2005-02-04
Posts: 344 |
![]() |
Hey ayamaguc, thanks for taking the time to reply. I'll now have to figure out which of your posts is the one I need to study |
|
ayamaguc
Joined: 2006-10-02
Posts: 21 |
![]() |
Check out postings from Nov. 2006. There's a code attachment there of the modifications I made to version 0.9.3. Good luck.. |
|
kreno
Joined: 2007-11-13
Posts: 6 |
![]() |
OK, I've been messing with this for a while, and I just don't get it. I have an item id, and all I want is the url to include the photo in my Wordpress page, with an <img> tag. This is for an embedded app. I may be being obtuse, but I just don't see how to do this. TIA, |
|