Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Attachmentstyle, choose where to place your Attachments Details »»
Attachmentstyle, choose where to place your Attachments
Version: 1.00, by MrNase MrNase is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 10-02-2004 Last Update: Never Installs: 13
Is in Beta Stage  
No support by the author.

Hello,

Some of you have used eBay before. On every auction you can select where the pictures you have uploaded should be displayed.
Since many of us use the vB attachment function to publish pictures there should be the possibility of doing exactly the same thing with your attachments.

This hack allows you (and your users) to select wether the attachments should be displayed:

* At the end of your posting (vB3 default setting)
* Above your posting
* At the left hand side of your posting

This hack is using phrases so it's very easy to translate.
The setting can be changed for every post so you can decide which one is the best for your attachments.

Why is this hack 'beta'?
Well, it works.. But is has only been tested by me
It has no installer yet and the markup could be a bit better but I hope you'll help me with that.

Is there an Online Demo?
No I don't think so but I'll provide you with screenshots


Have fun with it and please help me fixing errors so that this hack can be moved to 'Full Releases' as soon as possible


THIS HACK IS BETA..! PLEASE BACKUP YOUR DATABASE :devious:



Changes:
* Instructions are updated to v.02 and nexialys' Fix is in. Thank you
* Instructions are updated again and the current version is V0.3

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-05-2004, 11:06 PM
mrcancel's Avatar
mrcancel mrcancel is offline
 
Join Date: Dec 2003
Location: Hanoi Vietnam
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if i using postbit_legacy template then i can how make ?
Reply With Quote
  #23  
Old 11-05-2004, 11:11 PM
nexialys
Guest
 
Posts: n/a
Default

same thing, the postbit/postbit_legacy are built the same way.. you search the same detail, replace it the same way...
Reply With Quote
  #24  
Old 11-05-2004, 11:24 PM
mrcancel's Avatar
mrcancel mrcancel is offline
 
Join Date: Dec 2003
Location: Hanoi Vietnam
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, i see postbit_legacy ! but in beetween <!-- / icon and title --> and <if condition="$post['signature']"> is :
Code:
<td><img src="$stylevar[imgdir_misc]/pcon.gif" border="0" /></td>
		<td width="100%" background="$stylevar[imgdir_misc]/pbg2.gif" align="right"><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Cảnh c?o $post[musername]</a> ? <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>Xem cảnh c?o của $post[musername]</a><if condition="$show['postcount']"><font color="#FFFFFF">#</font><a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong><font color="#FFFFFF">$post[postcount]</font></strong></a> &nbsp;</if></td><td background="$stylevar[imgdir_misc]/pbg2.gif" align="right"><img src="$stylevar[imgdir_misc]/postl.gif" border="0" /></td>
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF"  align="center"><tr><td>
	<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
		<tr>
			<td valign="top">
				<table width="100%" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td background="$stylevar[imgdir_misc]/sd.gif"><img src="$stylevar[imgdir_misc]/sd.gif" border="0" /></td>
					</tr>
				</table>
				<table width="148" cellpadding="0" cellspacing="0" border="0" align="center">
					<tr>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="5" border="0" /></td>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="5" border="0" /></td>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="5" border="0" /></td>
					</tr>
					<tr>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="1" border="0" /></td>
						<td><img src="$stylevar[imgdir_misc]/tbit.gif" border="0" /></td>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="1" border="0" /></td>
					</tr>
					<tr>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="1" border="0" /></td>
						<td align="center" background="$stylevar[imgdir_misc]/tbitbg.gif">
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
	<img src="images/abc/$post[usergroupid].gif"><br>	<if condition="$show['avatar']"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" $style_avatar /></a></if>
						
							<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#94979D" width="100%">
							                <tr>	 
                  <td width="100%" align="center">
                  <table border="0" width="90%" cellspacing="0" cellpadding="2">
                    <tr>
                      <td width="100%" bgcolor="#FFFFFF">
	<font face="Tahoma">
	<font face="verdana,arial,helvetica" size="1" ><b><font size="1">
				<if condition="$post['uttstore_glow']"><div id="postmenu_$post[postid]" style="width:100%; filter:Glow(color=$post[uttstore_glow], strength=5);"><else /><div id="postmenu_$post[postid]"></if>
					<if condition="$show['profile']">
					<a href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
					<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
					<else />
					$post[musername]
					</if>
				</div></font></b></font></font></td>
                    </tr>
                    </table></td>
                </tr>
				                <tr>	 
                  <td width="100%" align="center">
                  <table border="0" width="90%" cellpadding="2">
                    <tr>
                      <td width="100%" bgcolor="#FFFFFF">
	<font face="verdana,arial,helvetica" size="1" ><b><font size="1" face="Tahoma"><font color="#183562"></font><font color="#183562"> <if condition="$post['usertitle']">$post[usertitle]</if></font> </font></b></font></td>
                    </tr>
                    </table></td>
                </tr>
				                <tr>	 
                  <td width="100%" align="center">
                  <table border="0" style="border-collapse: collapse" bordercolor="#94979D" width="90%" cellpadding="2">
                    <tr>
                      <td width="100%" bgcolor="#FFFFFF">
	<b>Tham gia: $post[joindate] </b> </td>
                    </tr>
                    </table></td>
                </tr>
                <tr>	 
                  <td width="100%" align="center">
                  <table border="0" style="border-collapse: collapse" bordercolor="#94979D" width="90%" cellpadding="2">
                    <tr>
                      <td width="100%" bgcolor="#FFFFFF">
	<b>$vbphrase[posts]: $post[posts]</b></td>
<div class="info">$gender</div><div class="info"> <if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&shortname=admindonate&userid=$post[userid]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: $points (<a href="ushop.php?do=a&shortname=donate&userid=$post[userid]" target="_blank">Tặng tiền</a>)
				</div>

                    </tr>
                    </table>
                  </td>
                </tr>


              </table>
						</td>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="1" border="0" /></td>
					</tr>
					<tr>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="1" border="0" /></td>
						<td background="$stylevar[imgdir_misc]/tbitbg.gif"><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="5" border="0" /><br /><img src="$stylevar[imgdir_misc]/hr2.gif" border="0" /><br /><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="5" border="0" /></td>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="1" border="0" /></td>
					</tr>
					<tr>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="1" border="0" /></td>
						<td background="$stylevar[imgdir_misc]/tbitbg.gif" align="center">$post[iplogged]<a href="report.php?$session[sessionurl]p=$post[postid]"><img src="$stylevar[imgdir_misc]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a><if condition="$post['editlink']"><a href="$post[editlink]"><img src="$stylevar[imgdir_misc]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a></if><a href="$post[replylink]"><img src="$stylevar[imgdir_misc]/quote.gif" border="0" alt="$vbphrase[reply_with_quote]"></a><if condition="$post['forwardlink']"><a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a></if><if condition="$SHOWQUICKREPLY AND !$show['threadedmode']"><a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a></if></td>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="1" border="0" /></td>
					</tr>
					<tr>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="1" border="0" /></td>
						<td><img src="$stylevar[imgdir_misc]/bbit.gif" border="0" /></td>
						<td><img src="$stylevar[imgdir_misc]/spacer.gif" width="8" height="1" border="0" /></td>
					</tr>
				</table>
				<br />
			</td>
			<td width="100%" valign="top">
				 <table border="0" width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td width="100%" valign="top">
							<table width="100%" cellpadding="0" cellspacing="0" border="0">
								<tr>
									<td background="$stylevar[imgdir_misc]/sd.gif"><img src="$stylevar[imgdir_misc]/sd.gif" border="0" /></td>
								</tr>
							</table>
						</td>
						<td valign="top" height="28"><img src="$stylevar[imgdir_misc]/pnav.gif" height="28" border="0" /></td>
						<td background="$stylevar[imgdir_misc]/pnbg.gif" nowrap="nowrap"><if condition="$show['profile']"><a href="member.php?$session[sessionurl]userid=$post[userid]" target="_blank"><img src="$stylevar[imgdir_misc]/profile.gif" border="0" alt="$vbphrase[view_public_profile]"></a></if> <if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><img src="$stylevar[imgdir_misc]/sendpm.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>"></a></if>  <if condition="$show['homepage']"><a href="$post[homepage]" target="_blank"><img src="$stylevar[imgdir_misc]/home.gif" alt="<phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase>" border="0"></a></if> <if condition="$show['search']"><a href="search.php?$session[sessionurl]do=finduser&amp;userid=$post[userid]"><img src="$stylevar[imgdir_misc]/find.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase>"></a></if> 	<if condition="$post['userid']"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><img src="$stylevar[imgdir_misc]/buddy.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase>"></a></if></td>
						<td valign="top"><img src="$stylevar[imgdir_misc]/pnav2.gif" border="0" /></td>
						<td>&nbsp;</td>
					</tr>
				</table>
				<table width="100%" cellpadding="10" cellspacing="0" border="0" align="center">
					<tr>
						<td>
						    <font face="verdana,arial,helvetica" size="1" ><if condition="!$show['start_until_end']">
				$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
			<else />
				<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
			</if></font><br /><br />
	<!-- message, attachments, sig -->		
		<!-- message -->
		<font face="verdana" size="2"><div>$post[message]</div></font>
		<!-- / message -->
	
		<if condition="$show['attachments']">
		<!-- attachments -->
			<div style="padding:$stylevar[cellpadding]px">
			
			<if condition="$show['thumbnailattachment']">
				<fieldset class="fieldset">
					<legend>$vbphrase[attached_thumbnails]</legend>
					<div style="padding:$stylevar[formspacer]px">
					$post[thumbnailattachments]
					</div>
				</fieldset>
			</if>
		
			<if condition="$show['imageattachment']">
				<fieldset class="fieldset">
					<legend>$vbphrase[attached_images]</legend>
					<div style="padding:$stylevar[formspacer]px">
					$post[imageattachments]
					</div>
				</fieldset>
			</if>
			
			<if condition="$show['imageattachmentlink']">
				<fieldset class="fieldset">
					<legend>$vbphrase[attached_images]</legend>
					<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
					$post[imageattachmentlinks]
					</table>
					</fieldset>
			</if>
			
			<if condition="$show['otherattachment']">
				<fieldset class="fieldset">
					<legend>$vbphrase[attached_files]</legend>
					<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
					$post[otherattachments]
					</table>
				</fieldset>
			</if>
			
			<if condition="$show['moderatedattachment']">
				<fieldset class="fieldset">
					<legend>$vbphrase[attachments_pending_approval]</legend>
					<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
					$post[moderatedattachments]
					</table>
				</fieldset>		
			</if>
			
			</div>
		<!-- / attachments -->
		</if>
Reply With Quote
  #25  
Old 11-06-2004, 01:41 AM
nexialys
Guest
 
Posts: n/a
Default

this is what you have to change... did you compared with the original postbit ?!
is your style modified or personalised ?!
Reply With Quote
  #26  
Old 11-06-2004, 09:59 AM
mrcancel's Avatar
mrcancel mrcancel is offline
 
Join Date: Dec 2003
Location: Hanoi Vietnam
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now i can how change it ??? help me !
Reply With Quote
  #27  
Old 02-03-2005, 01:32 PM
Nordinho Nordinho is offline
 
Join Date: Aug 2004
Location: Netherlands
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the hacks works great, but for 1 thing, if a new thread is posted, it doesn't check the default checkbox, so the attachment doesn't show...where would I change the default value??
Reply With Quote
  #28  
Old 03-01-2005, 01:21 PM
Nordinho Nordinho is offline
 
Join Date: Aug 2004
Location: Netherlands
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nordinho
the hacks works great, but for 1 thing, if a new thread is posted, it doesn't check the default checkbox, so the attachment doesn't show...where would I change the default value??
bump
Reply With Quote
  #29  
Old 04-25-2005, 07:28 PM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh boy....I really did it this time.... I installed this mod but couldn't post without getting a error that gave me this error:

Code:
Database error in vBulletin 3.0.7:

Invalid SQL:  
INSERT INTO vb3_post 
(threadid, parentid, title, username, userid, dateline, pagetext, allowsmilie, 
showsignature, ipaddress, proxyip, iconid, visible, attach, useragent, altip, attachstyle) 
VALUES 
(5153, 53039, '', 
'Robin', 1, 1114460198, 
'Awesome...well that only took me like four hours to figure out that what was wrong...
 
The hard part was that it was a stinking space!!!!', 1, 1, 
'69.219.97.214','', 0, 1, 0, 0) 
'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)', '69.219.97.214') 

mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ''Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.

mysql error number: 1064

Date: Monday 25th of April 2005 04:16:39 PM
Script: http://www.yourlincolnpark.com/LPSForum/newreply.php
Referer: http://www.yourlincolnpark.com/LPSForum/showthread.php?p=53095#post53095

So I uploaded my backup copies of the files that I altered for this mod.

Now I can post but I cannot edit as this is the error I get:


Code:
Database error in vBulletin 3.0.7:

Invalid SQL: SELECT attachstyle FROM vb3_post WHERE postid = 53100
mysql error: Unknown column 'attachstyle' in 'field list'

mysql error number: 1054

Date: Monday 25th of April 2005 04:33:11 PM
Script: http://www.yourlincolnpark.com/LPSForum/editpost.php?do=editpost&p=53100
Referer: http://www.yourlincolnpark.com/LPSForum/showthread.php?p=53100#post53100
Please can someone help me fix this... I know I shouldn't have tried it as it was beta but I was desperately needing the ability to place attachments.

I have already beat myself with a wet noodle.

Thanks in advance for any help I can get .
Reply With Quote
  #30  
Old 04-25-2005, 09:21 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

look like you didn't restore the backup of editpost.php
Reply With Quote
  #31  
Old 08-18-2005, 12:13 PM
htscpl's Avatar
htscpl htscpl is offline
 
Join Date: Sep 2003
Location: Houston
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting the same error as reported above:
Quote:
Database error in vBulletin 3.0.7:

Invalid SQL: SELECT attachstyle FROM post WHERE postid = 1258
mysql error: Unknown column 'attachstyle' in 'field list'

mysql error number: 1054

Date: Thursday 18th of August 2005 06:14:09 AM
Is this hack still supported ? I could use some help with it.
Reply With Quote
Reply


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


All times are GMT. The time now is 06:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04979 seconds
  • Memory Usage 2,335KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete