The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
adding a pic upload button?
Where in the code can I go to add a tinypic image button. So when someone clicks it it wil open a tinypic upload box? I had this on my old smf forum.
--------------- Added [DATE]1251429781[/DATE] at [TIME]1251429781[/TIME] --------------- Anyone? I just need to know where the code is for the message reply box. |
#2
|
||||
|
||||
Try searching on "button*" in "articles" "titles only" to find an article on this subject.
|
#3
|
|||
|
|||
Well the code I have is this. If I edit the editor_toolbaron I keep getting errors and the text box is gone.
Code:
<br /><a href="javascript:void(0);" id="tinypic_show_plugin" onclick="showTinypicPlugin(); document.getElementById(\'tinypic_show_plugin\').style.display = \'none\';"><img src="http://www.v-twinlounge.com/img/uploadimage.gif" title="'.$txt['tinypic_upload'].'" alt="'.$txt['tinypic_upload'].'" border="0"/></a> <script type="text/javascript"> tinypic_layout = "wide"; tinypic_type = "both"; tinypic_links = "forum"; tinypic_language = "en"; tinypic_search = "true"; tinypic_autoload = false; tinypic_callback_url = document.location.href.substr(0,document.location.href.lastIndexOf("/"))+"/callback.html"; tinypic_callback_text = "'.$txt['tinypic_add_to_post'].'"; </script> <script src="http://plugin.tinypic.com/j/plugin.js" type="text/javascript"></script> <br/> |
#4
|
||||
|
||||
Simply saying you "keep getting errors" isnt' going to help anyone help you. You need to say what the exact errors are if you expect help. Unfortunately, I'm not great with javascript, so I can't help with the javascript part.
|
#5
|
|||
|
|||
The error is this
The following error occurred when attempting to evaluate this template: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/jandb/public_html/v-twinlounge.com/testvb/forums/includes/adminfunctions_template.php(3950) : eval()'d code on line 156 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. |
#6
|
||||
|
||||
I can tell that your syntax is wrong in your html. You can't do this:
HTML Code:
title="'.$txt['tinypic_upload'].'" HTML Code:
title="$txt[tinypic_upload]" |
#7
|
|||
|
|||
How would you suggest I do it? This is what I used in my smf forum and it worked fine. Wich all of thiers is based around php, I know that. So what are my options?
|
#8
|
||||
|
||||
Well, I told you how you needed to change those variables. Did you change them? I see it like that in at least three places. After you change it, if you still have problems saving, post exactly the code you used.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|