The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 12-23-2008, 03:59 PM
stckhlm stckhlm is offline
Member
 
Join Date: Sep 2008
Posts: 54
Geek Article and Review System License Holder 
Question Is it possible to use HighSlide in GARS uploaded pictures ?

I have PhotoPlog Pro installed on my forum. But due to its not very integrated (most of users are not as much as active they are on forum), i would like to use GARS for my "Cd and Dvd Covers section.

With GARS i can do lot of customization. So i beleive it will much better to use GARS instead of PhotoPlog for above mentioned section.

As you know, in PhotoPlog forumdisplay its possible to enlarge the thread thumb by clicking on it. (I guess its below code...)
Code:
<script type="text/javascript">hs.registerOverlay({thumbnailId: 'hsjs1', overlayId: 'hscontrolbar', position: 'top right', hideOnMouseOut: true});</script>
					<a id="hsjs1" href="http://www.http://www.domain.com/large.picture.url" class="highslide" onClick="return hs.expand(this, {slideshowGroup: 'filebit'})"><img style="padding: 1px; border: 1px solid #CCCCCC;" src="http://www.domain.com/picture.thumb.url" alt="" border="0" /></a>
So i would like to learn if it is possible to use this option for GARS thumb too. With this customization, user will upload the large picture of the thread. Forumdisplay and showthread will still show the thumb of the uploaded picture but when you click it, it will highslide the large picture.

I will appreciate it a lot if you help me to find out an answer for this problem. (Ofcourse if its possible...)

Regards
Reply With Quote
  #2  
Old 12-26-2008, 12:28 AM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Nope, there is no tutorial for how to add Highslide to GARS so you'd need to take a look at the Highslide documentation here for some examples, and then incorporate the one you want into GARS by editing templates and/or code.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 12-26-2008, 10:20 PM
stckhlm stckhlm is offline
Member
 
Join Date: Sep 2008
Posts: 54
Geek Article and Review System License Holder 
Default

Ok lets forget highslide. Is it possible to make the thread thumbnail linked with original uploaded picture. I'm not looking for a module/container which gives the link of the uploaded image. I would like to make it possible to click the thread thumbnail for larger (original uploaded size) picture.

Is that possible ? If yes, can you please let me learn how ?
Reply With Quote
  #4  
Old 12-30-2008, 04:26 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Originals are only saved when using the thumbnail linked with original uploaded picture custom field. Untested but you could try changed var $dooriginal = false; to var $dooriginal = true; in the geek_class_upload.php file to save all originals, and then you would still need to edit the templates to add in the HTML to link to the original image by removing thumb_ from the thumbnail link, the latter of which might require editing code to create an original link by removing the thumb_ bit from the thumbnail link.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #5  
Old 01-01-2009, 11:03 AM
stckhlm stckhlm is offline
Member
 
Join Date: Sep 2008
Posts: 54
Geek Article and Review System License Holder 
Post

I've changed the var $dooriginal = false; line in geek_class_upload.php to var $dooriginal = true;

And after i did below change in GARS_pb template, its now working but showing the thumbnail.

But i have a problem with the "thumb_" bit. I can't find it.
Which template should i edit for removing the thumb_ bit.

Original :
Code:
<a href="$post[GARS_header_image]">
<img src="$post[GARS_header_image]" border="0" alt="$post[title]" />$post[GARS_post_header_image]
Changed to :
Code:
<a href="$post[GARS_header_image]"><img src="$post[GARS_header_image]" border="0" alt="$post[title]" />$post[GARS_post_header_image]</a>
Above change work for the thread preview. And which template do i have to edit for forumdisplay preview ?
Reply With Quote
  #6  
Old 01-01-2009, 08:36 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

The thumb_ bit is set in the gars_class_upload.php file. In the gars_class_edit.php file look for where $uploadedstuff['thumbpath'] is set. If $dooriginal is true, then $uploadedstuff['originalpath'] should also be set. The $header_image variable in the gars_class_edit.php code holds the link to the header image, the header_image field in the gars database table is where the link is stored, and if you are using the GARS_pb template for the first post, then $post[GARS_header_image] holds the link to the header image, where $post['GARS_header_image'] is set in the gars_class_page.php file for the showthread page. Probably the easiest thing to do would be to set a new variable named $post['GARS_header_image_orig'] in the gars_class_page.php file, using str_replace to strip out the thumb_ bit from the $post['GARS_header_image'] variable, and then use $post[GARS_header_image_orig] in the GARS_pb template, assuming that is the template you are using for the first post. For the forumdisplay page, you would need to do something similar with $thread['header_image'] in the GARS_threadbit template and the gars_class_list.php file.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pictures??? Nikoo Geek Article and Review System 2 04-09-2008 11:15 PM
highslide in gars beduino Geek Article and Review System 1 02-07-2008 06:10 PM
I can't get pictures uploaded Nikke Geek Article and Review System 3 11-04-2006 01:08 AM
What was the fix for the article pictures not showing? Brent Geek Article and Review System 0 06-04-2006 12:57 AM
Beta 1.01 uploaded The Geek Geek Article and Review System 0 08-29-2005 11:52 PM


All times are GMT. The time now is 08:27 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.