vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Offering payment for...! (https://vborg.vbsupport.ru/showthread.php?t=46442)

NTLDR 12-08-2002 07:46 PM

It seems even easier than I first thought! First though you need this hack installed: https://vborg.vbsupport.ru/showthrea...threadid=21602

I'll post up the edits after I've checked and tested :D

Boofo 12-08-2002 07:49 PM

Where do we get the hack? It's not in the first post. :)

NTLDR 12-08-2002 07:53 PM

Its in the second post: https://vborg.vbsupport.ru/attachmen...&postid=133145

After taking a look all thats needed is a template edit, change postbit_attachmentimage to:

Code:

<!--<p>--><smallfont>$post[username] has attached this image:<br>
<a href="attachment.php?s=$session[sessionhash]&postid=$post[postid]"><img src="thumb.php?s=$session[sessionhash]&thumbid=$post[attachmentid]" border="0" alt="" vspace="8" hspace="4"></a>
</smallfont><!--</p>-->

And make sure that Viewing of attached images is set to on in the Admin CP vBulletin Options and in your profile :)

Boofo 12-08-2002 08:27 PM

NTLDR, I can't get this to work. I am getting db errors all over the place. Can you take a look at it and help me out?

Chris M 12-08-2002 08:39 PM

Post the errors:)

Maybe that can help us sort it out;)

Satan

NTLDR 12-08-2002 09:16 PM

Quote:

Originally posted by Boofo
NTLDR, I can't get this to work. I am getting db errors all over the place. Can you take a look at it and help me out?
What errors are you getting? IIRC the instructions wern't 100% correct for new versions of vB.

buss2002 12-08-2002 11:16 PM

Quote:

Originally posted by Larry@IOG
Replace your postbit_attachmentimage template with:



You will get the image to appear like the attachment:


Larry

Thank you so much!!!!!!!!!!

Now a question if you know :cheeky:

If i wish to have multiple attachments in the post what do i change?

Also how about a limit for nomal posters and a diffrent posting level for admins/moderators?

And is it possible to set it so that only registred users can see
the full size picture and unregistred only have permission to see the thumbnail?

Hope the questions arent too stupid :classic: but i got this
VB resently and are trying to get it all setup so i can open it.

Best Regards
Buss

Larry@IOG 12-09-2002 12:08 AM

If i wish to have multiple attachments in the post what do i change?
Good Luck I have tried to figure that one out with no luck at all

And is it possible to set it so that only registred users can see
the full size picture and unregistred only have permission to see the thumbnail?

Yes I would imagine in the showthread php code you could add rescritions to the attachment part



How much cash did I make so far? :nervous:


feel free to email me if you need some help

larryjude@hotmail.com


Larry

NTLDR 12-09-2002 07:00 PM

Quote:

Originally posted by buss2002
[B]If i wish to have multiple attachments in the post what do i change?
This is a pretty big hack, I know someone started this but its not been released.

Quote:

And is it possible to set it so that only registred users can see
the full size picture and unregistred only have permission to see the thumbnail?
Disallow viewing of attachments for the userregisted usergroup, they will still be able to see the thumbnails.

buss2002 12-09-2002 07:51 PM

Quote:

Originally posted by NTLDR


This is a pretty big hack, I know someone started this but its not been released.



Disallow viewing of attachments for the userregisted usergroup, they will still be able to see the thumbnails.

Hi again,
Thx for the info.
I just thought it was a simple code adding a extra attachment field in the postingform but i guess it?s much more complicated then that.

The disallowing of viewing attachments is exactly what i wish.
Only to let unregistred see the thumbnail and not the full picture.

Do you by any chance know of wich hack is needed for that? :classic:

Best Regards
Buss


All times are GMT. The time now is 01:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01170 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete