Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2008, 04:57 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Add embed code under Attachment Thumbnails

I'm looking to add embed code so people can post my attachment images on their sites but I can't seem to find the correct place to do this. I have the code I want to use I just can't get it placed correctly.

I would like it placed directly under each thumbnail, the problem is when their is more then one attachment it throws my code all the way at the end of the thread. It doesn't place it under each thumbnail.

Where can I go so that it will ouput the code directly under each thumbnail?

Take a look at the screenshot.
Attached Images
File Type: jpg test.jpg (182.9 KB, 0 views)
Reply With Quote
  #2  
Old 09-10-2008, 05:31 PM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

are you using thumbnails or full images? If you're using thumbnails please paste your postbit_attachmentthumbnail template code, if you're using a full image, please paste your postbit_attachmentimage template. Paste in code view and I'll have a look at it.
Reply With Quote
  #3  
Old 09-10-2008, 05:33 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the postbit_attachmentthumbnail, thanks for looking

Code:
<center><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]" rel="Lightbox" id="attachment$attachment[attachmentid]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="thumbnail glossy ibgcolor00aa00 igradient00aaaa horizontal noshadow" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1&amp;d=$attachment[thumbnail_dateline]" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]" 4="$attachment[attachmentid]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
&nbsp;<if condition="$show['br']"><br /><br /></if></center>

<!-- Start the embed area -->
<tr>
                <td align="$stylevar[left]"><table width="80%" border="0" class="tborder" align="center" cellpadding="3" cellspacing="0">
                  <tr>
                    <td class="alt2" nowrap="nowrap"><div class="smallfont normal">
                      <div align="right"><strong>Embed Code:</strong> </div>
                    </div></td>
                    <td class="alt2"><div align="center"><span class="smallfont normal">
                      <input name="textfield" class="bginput" type="text" id="textfield" onClick="SelectAll('textfield');" value="<img src='attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]'" size="50" READONLY>
                    </span></div></td>
                  </tr>
                </table>
           
                </td>
            </tr>

<!-- end embed area-->
Reply With Quote
  #4  
Old 09-10-2008, 05:43 PM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try this:

Code:
<center><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]" rel="Lightbox" id="attachment$attachment[attachmentid]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="thumbnail glossy ibgcolor00aa00 igradient00aaaa horizontal noshadow" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1&amp;d=$attachment[thumbnail_dateline]" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]" 4="$attachment[attachmentid]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
&nbsp;<if condition="$show['br']"><br /><br /></if></center>
<br />
<div align="center"><div class="smallfont normal"><strong>Embed Code:</strong></div>
<span class="smallfont normal">
                      <input name="textfield" class="bginput" type="text" id="textfield" onClick="SelectAll('textfield');" value="<img src='http://www.documentingreality.com/forum/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]'/>" size="50" READONLY>
                    </span></div></div>
here it is with your table

Code:
<div>
<center><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]" rel="Lightbox" id="attachment$attachment[attachmentid]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="thumbnail glossy ibgcolor00aa00 igradient00aaaa horizontal noshadow" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;stc=1&amp;thumb=1&amp;d=$attachment[thumbnail_dateline]" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]" 4="$attachment[attachmentid]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a>
&nbsp;<if condition="$show['br']"><br /><br /></if></center>
<br />
<table border="0" class="tborder" align="center" cellpadding="3" cellspacing="0">
                  <tr>
                    <td class="alt2" nowrap="nowrap"><div class="smallfont normal">
                      <div align="right"><strong>Embed Code:</strong> </div>
                    </div></td>
                    <td class="alt2"><div align="center"><span class="smallfont normal">
                      <input name="textfield" class="bginput" type="text" id="textfield" onClick="SelectAll('textfield');" value="<img src='http://www.documentingreality.com/forum/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]'/>" size="50" READONLY>
                    </span></div>
                    </td>
                  </tr>
                </table>
</div>
Reply With Quote
  #5  
Old 09-10-2008, 05:46 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep that did it!

Now to study what you did...

Thanks a lot
Reply With Quote
  #6  
Old 09-10-2008, 05:49 PM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just edited my post with the code to make it look like you wanted it... You had a floating table row for no reason and I added a div around it so everything can stay together...
Reply With Quote
  #7  
Old 09-10-2008, 05:51 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You rock, thanks man

--------------- Added [DATE]1221074476[/DATE] at [TIME]1221074476[/TIME] ---------------

I hate to bother you again but if I now had a postbit_attachmentflv that looked like this,

Code:
<center><div id="player_$attachmentid"><font color="red">You do not have flash player installed...</font></div>

<script language="javascript">
	var swfobject = new SWFObject("/forum/players/mediaplayer.swf","jsplayer_$attachmentid","425","344","7");
	
	swfobject.addParam("allowfullscreen","true");	        swfobject.addVariable("file","/forum/{$flvfilenameandlocation}");
        swfobject.addVariable("width","425");
	swfobject.addVariable("height","344");
	swfobject.addVariable("type","flv");
	swfobject.addVariable("overstretch","fit");
	swfobject.addVariable('frontcolor','0x555555'); 
	swfobject.addVariable("showicons","true");
	swfobject.addVariable("autostart","false");
	swfobject.addVariable("javascriptid","jsplayer_$attachmentid");
        swfobject.addVariable("showstop","true");
        swfobject.addVariable("showdigits","true");
        swfobject.addVariable("enablejs","true");
        swfobject.addVariable('image','/forum/thumbnails/$attachmentid.jpg');                         

	swfobject.write("player_$attachmentid");
</script>
</center>
How would I add it to that?
Reply With Quote
  #8  
Old 09-10-2008, 06:34 PM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good question...lol

Link me to an example post with flash. Is that all the code in the postbit_attachmentflv? If not, post all of it.
Reply With Quote
  #9  
Old 09-10-2008, 06:35 PM
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, that is all of it.

Example: http://www.documentingreality.com/fo...d-lesson-9606/

--------------- Added [DATE]1221075592[/DATE] at [TIME]1221075592[/TIME] ---------------

I can place the code you gave me before right under it and it displays fine but of course the code to the vid is wrong as it setup for images.
Reply With Quote
  #10  
Old 09-10-2008, 06:49 PM
nando99 nando99 is offline
 
Join Date: Dec 2005
Location: South Florida
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try this - I haven't tested it though bc I dont have the flv attachment.

Code:
<div>
<center><div id="player_$attachmentid"><font color="red">You do not have flash player installed...</font></div>

<script language="javascript">
	var swfobject = new SWFObject("/forum/players/mediaplayer.swf","jsplayer_$attachmentid","425","344","7");
	
	swfobject.addParam("allowfullscreen","true");	        
	swfobject.addVariable("file","/forum/{$flvfilenameandlocation}");
    swfobject.addVariable("width","425");
	swfobject.addVariable("height","344");
	swfobject.addVariable("type","flv");
	swfobject.addVariable("overstretch","fit");
	swfobject.addVariable('frontcolor','0x555555'); 
	swfobject.addVariable("showicons","true");
	swfobject.addVariable("autostart","false");
	swfobject.addVariable("javascriptid","jsplayer_$attachmentid");
    swfobject.addVariable("showstop","true");
    swfobject.addVariable("showdigits","true");
    swfobject.addVariable("enablejs","true");
    swfobject.addVariable('image','/forum/thumbnails/$attachmentid.jpg');                         

	swfobject.write("player_$attachmentid");
</script>
<br />
<table border="0" class="tborder" align="center" cellpadding="3" cellspacing="0">
                  <tr>
                    <td class="alt2" nowrap="nowrap"><div class="smallfont normal">
                      <div align="right"><strong>Embed Code:</strong> </div>
                    </div></td>
                    <td class="alt2"><div align="center"><span class="smallfont normal">
                      <input name="textfield" class="bginput" type="text" id="textfield" onClick="SelectAll('textfield');" value="<embed type='application/x-shockwave-flash' src='http://www.documentingreality.com/forum/players/mediaplayer.swf' style='' id='jsplayer_$attachmentid' name='jsplayer_$attachmentid' quality='high' allowfullscreen='true' flashvars='file=http://www.documentingreality.com/forum/{$flvfilenameandlocation}&amp;width=425&amp;height=344&amp;type=flv&amp;overstretch=fit&amp;frontcolor=0x555555&amp;showicons=true&amp;autostart=false&amp;javascriptid=jsplayer_$attachmentid&amp;showstop=true&amp;showdigits=true&amp;enablejs=true&amp;image=/forum/thumbnails/$attachmentid.jpg' width='425' height='344'>" size="50" READONLY>
                    </span></div>
                    </td>
                  </tr>
                </table>
                </center>
</div>
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 04:55 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.06686 seconds
  • Memory Usage 2,297KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete