Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - impss

Pages: 1 2 [3] 4 5 6 7 ... 18
31
Thanks for this Mod

I made some changes on my own to add BBCode large linked image and BBCode Thumbnail linked image.

Code: [Select]
//Mod: UploadInfo
/**
 * Get image information immediately after successful upload
 * Contact: arjoon@gmail.com
 */

      $sitename = "http://www.your-site-name.com"; // modify this to your site's name without any trailing slash
      $cat_name = $cat_cache[$cat_id]['cat_name'];
      $uploaded_image_path = $sitename."/data/media"."/".$cat_id."/".$new_name;
      $uploaded_image_link = $sitename."/details.php?image_id=".$image_id;
      $uploaded_thumbnail_path = $sitename."/data/thumbnails"."/".$cat_id."/".$new_name; // use this for generating BB code for forums
      $uploaded_forum_code = "[URL=".$uploaded_image_link."][IMG]".$uploaded_image_path."[/IMG][/URL]";
      $uploaded_thumb_code = "[URL=".$uploaded_image_link."][IMG]".$uploaded_thumbnail_path."[/IMG][/URL]";
      $uploadinfo .= "<font size='2' face='Tahoma'><a href='".$sitename."/member.php?action=uploadform'><b>Upload another image</b></a>";
      $uploadinfo .= "<hr color='#C0C0C0' width='80%' size='1'>";
      $uploadinfo .= "Direct Path:<br /> <input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:0; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_path."' type='text' name='image'><br />";
      $uploadinfo .= "Image Path:<br /> <input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:0; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_link."' type='text' name='image'></font><br /><br />";
      $uploadinfo .= "BBCode with Full size Image:<br /> <input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:0; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_forum_code."' type='text' name='image'></font><br /><br />";
      $uploadinfo .= "BBCode with Thumbnail Image:<br /> <input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:0; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_code."' type='text' name='image'></font><br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>[ This image has to be validated by the admin before adding it to the site ]</font>";  // remove this line if you dont require validation
      $content .= "<table border=\"0\" align=\"center\">\n<tr>\n<td>\n".$uploadinfo."\n</td>\n</tr>\n</table>\n";

//end of UploadInfo

32
I would like to add this to my thumbnail_bit.html with a modified rateform (for stars) so that my members can rate directly from the thumbnails.

Everything seems to be working on the detail page, but when i rate from the thumbnails i get a "Security violation" error.

Can anybody help me?

thanks

 :)

I would really like my members to be able to vote from thumbnails without page refresh.
I really cant figure out why when i try to , it gives me a Security violation error.

If someone could help me with this it would be greatly appreciated.

33

theolbap , for my lightbox i used this code in the htaccess file and it seems to work

Code: [Select]
RewriteRule ^lightbox\.htm$ lightbox.php?%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.lightbox.htm$ details.php?image_id=$1&%{QUERY_STRING}

34
I would like to add this to my thumbnail_bit.html with a modified rateform (for stars) so that my members can rate directly from the thumbnails.

Everything seems to be working on the detail page, but when i rate from the thumbnails i get a "Security violation" error.

Can anybody help me?

thanks

 :)

35
I really wish we could get some help to get this working again.

Im not sure if its Mysql 5 or php5  that is the problem, but i really miss having a working forum.

 :(

36
no.. u dont install the old pm system.

you just do steps 1-16


steps 17-18 or for those people that had the old PM system before.

37

Awesome!!!!!!!!!! it works  8)


Thanks a ton mawenzi

39
hmmm.. now it just shows the regular template

I hope u know, im so lost.

lol

but i really appreciate the help trying to get this working

40
Parse error: syntax error, unexpected '"' in /home/fbiss/public_html/gallerytest/index.php on line 263

my line 263 is

Code: [Select]
$thumbnail_bit_cat = thumbnail_bit_".$cat_id.";

41
so theres no way for it to automatically detect the use of a custom template like it does for catogories?

cause i was thinking in the future i may use custom thumbnail_bits for other categories to.

*edit* what u posted works for just that template like it should.. but if i have multiple custom thumbnail bit i dont know what to do..

sorry if im being a pain.

42
yes.. a new image from category 10 will used the thumbnail_bit_10.html. while the rest of the new images will use the regular thumbnail_bit.html template

thats what im looking for.

43
sorry mawenzi

maybe i didnt explain in correctly.

I need it to change the thumbnail_bit for the new images specifically for a certain category.

I have thumbnail_bit_10.html working in the categories and search page. but i cant figure out how to make it select for the new images and random image.

44
... a very fast answer ...  :mrgreen:

 :wink:

now i just gotta figure out how to use the custom catogory template in the new images and random images and i will be all set..

but thats a different topic  :lol:

45
How would you go about changing the thumbnail_bit for the new images on the home page?

I assume what i have to change is this in the index.php

Code: [Select]
$new_images .= $site_template->parse_template("thumbnail_bit");
but everything i have tried so far hasnt worked.

thanks for the help

Pages: 1 2 [3] 4 5 6 7 ... 18