PDA

View Full Version : ecRelease


Ron1n
12-31-2005, 10:00 PM
ecRelease is a BETA - stuff will go wrong

What is ecRelease?

It is a download database that integrates into vBulletin. It is very similar to the vBulletin.org download database (in concept) and can be found in action on www.elitecoders.org. It allows you to turn any thread in any forum into a release that will show up in the download section. Adding a release is similar to adding a poll.

Demo

overview - http://www.elitecoders.org/forum/showthread.php?p=69253
download database - http://www.elitecoders.org/forum/downloads.php
release thread - http://www.elitecoders.org/forum/showthread.php?p=67325

Known Bugs:

- Possible bug: When you submit, it wants to include a poll even though the poll is not checked
- Possible bug: MySQL error on attachment download

FAQ:

Q: Fatal error: Field releaseid is not defined in $validfields in class vb_datamanager_thread in /includes/class_dm.php on line 485
A: Perform the file edit via install.php or manually
Q: The drop down box for Release Categories is not a drop down
A: They should be separated by semicolons, not commas.

Here are my plans for future versions:

- Set "per forum" releases (depends on support)

Phrase Changes

(many are added automatically)

Template Changes

SHOWTHREAD
newpost
(many are added automatically)

File Changes

includes/class_dm_threadpost.php (can be done automatically or manually)

Install

Upload the contents of 'upload' to your forum directory
Import ecrelease.xml into your PRODUCTS by going to Plugin System -> Manage Products -> Add/Import Product
Perform the edits in edits.txt (templates)
Upload install.php to perform the 1 file edit, make sure you chmod +writeable

Time: 3-4 minutes

Upgrade

You can make all changes automatically by importing the XML or you can do things piece by piece by looking at the info files provided with the hack.

Giving Back

Have you installed this mod? Click install.
Do you like this mod? Rate me 5/5.
Do you want to donate? Go to www.unicef.org and be generous!

MaTraX
01-01-2006, 08:36 AM
Nice and very usefull :) Thank you. I will try it on my test board.

TheProphet
01-01-2006, 08:51 AM
Great work, will check it on my test board as well....

nhacso
01-01-2006, 10:23 AM
what wrong with install.php, i can't run install.php files :surprised:

Warning: file_get_contents(DIRincludes/class_dm_threadpost.php) [function.file-get-contents]: failed to open stream: No such file or directory in C:\www\upload\install.php on line 3

waza
01-01-2006, 10:25 AM
I don't really need this, but it seems to be a great hack, good work!

Kru
01-01-2006, 10:26 AM
Looks nice. However I installed everything made the changes in the templates. In vBulletion Options I enable Releases but nothing show up if I make a new thread. How can I activate it in a new post

Kru
01-01-2006, 10:35 AM
Well, found out that I must change the user permission. But now getting this error:

Fatal error: Field releaseid is not defined in $validfields in class vb_datamanager_thread in /includes/class_dm.php on line 485

Any idea what I made wrong?

bashy
01-01-2006, 12:54 PM
I have installed...
2 problems
1. The drop down box for Release Categories is not a drop down
all the catergory items show as "Movie,Music,Software,Game,Other" in the box

2. When you submit, it wants to include a poll even though the poll is not checked..Cant proceed as i dont want to install a poll!!

Please advise on these 2 issus found atm, dont know if theres any more as i cant go any further!!

Also is there a way to set this per forum as i am sure peeps dont want releases all over the place :)

Regards

Bashy

bashy
01-01-2006, 01:30 PM
I have gone the full hog and submitted a release (trial) even had to do the poll lol any way, once it was submitted i downloaded the attachment and the system threw a fit and chucked this error at me at the top of the forum....

There seems to have been a problem with the Bashy's Place database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.5.2:

Invalid SQL:

UPDATE release SET
downloads = downloads + 1
WHERE postid = 1997;

MySQL Error :
Error Number :
Date : Sunday, January 1st 2006 @ 03:27:14 PM
Script : http://www.bashys-place.com/forums/attachment.php?attachmentid=398&d=1136129066
Referrer : http://www.bashys-place.com/forums/showthread.php?t=735
IP Address : xx.xxx.xxx.xx
Username : Bashy
Classname : xx_xxxxx
HTTP/1.1 200 OK Transfer-Encoding: chunked Date: Sun, 01 Jan 2006 15:27:21 GMT Content-Type: text/html; charset=ISO-8859-1 Cache-Control: private Server: Apache/2.0.54 (Red Hat) X-Powered-By: PHP/4.3.11 Pragma: private 1 23278

Please advise on these few issues, this is a really good idea but only if it works!!

Bashy

Ron1n
01-01-2006, 02:24 PM
Fatal error: Field releaseid is not defined in $validfields in class vb_datamanager_thread in /includes/class_dm.php on line 485

Any idea what I made wrong?You didn't make the file edit/run the install.php to do the file edits for you.

1. The drop down box for Release Categories is not a drop down
all the catergory items show as "Movie,Music,Software,Game,Other" in the boxThey should be separated by semicolons, sorry.

2. When you submit, it wants to include a poll even though the poll is not checked..Cant proceed as i dont want to install a poll!!Weird, I dont have this problem. Does anyone else? I think it could be a problem with the edits you made in "newthread."

Also is there a way to set this per forum as i am sure peeps dont want releases all over the place :)Nope, its designed to work in any forum - thats sorta the point in designing the hack the way I did. I could have done it like the article mod and just converted every post within a forum into a release, but I decided not to since I like this method more. If there is overwheliming popular support for limiting which forums can or can not be "released" in, then I may add it to the usergroup permissions per forum or something like that.

UPDATE release SET
downloads = downloads + 1
WHERE postid = 1997;What version of mysql are you using? I dont get this error for some reason.

bashy
01-01-2006, 02:32 PM
Hi


Server Info

? Os: Linux w
? PHP: 4.3.11
? MySQL: 4.1.12
? Sql Size: 58MB
? Time: 15:40:57
? Date: 01 Jan 2006
? GMT: +0000

I get the DB error because i have the Who Downloaded hack installed, the error comes up after we click the Who Download button???

As for the file edits..., This 1 <input type="hidden" name="t" value="$threadid" /> Is actually in the template 4 times which could cause the Poll problem, therefore which one do i place your edit below?

Bashy

Ron1n
01-01-2006, 02:55 PM
As for the file edits..., This 1 <input type="hidden" name="t" value="$threadid" /> Is actually in the template 4 times which could cause the Poll problem, therefore which one do i place your edit below?

BashyPlace it ABOVE <input type="hidden" name="pollid" value="$pollid" />

Btw, this edit isnt in newpost, its in SHOWTHREAD, so it isnt effecting you...

I get the DB error because i have the Who Downloaded hack installed, the error comes up after we click the Who Download button???The DB error is for invalid syntax... at least thats what it seems like. Does anyone else have this problem?

bashy
01-01-2006, 02:58 PM
This is where it already is :)

I have just edited my last post with regards to the database error...

Is there out that you could sort out as i certainly want to keep both hacks :)

Bashy

Ron1n
01-01-2006, 03:02 PM
Do you only get this error when clicking on who downloaded, or do you also get it when downloading attachments. The two hacks may have some conflicts, but this doesnt look like one.

bashy
01-01-2006, 03:06 PM
hi

I only get it when anyone clicks the Who Downloaded button.
it happens on all the attachments not just the ones uploaded using you system, It was ok before we installed it...

I have had to disable your for now untill its reolved due to this error..
btw i dont get the error now its diabled...

Before i disabled it i still had to setup the poll as well, i have checked and rechecked the edits and there all ok!!

Regards

Bashy

Ron1n
01-01-2006, 03:15 PM
Find in release_attachment_complete:
if (strpos($vbulletin->options['releaseextensions'], strtolower($extension)) !== false)
{
$db->query_write("
UPDATE " . TABLE_PREFIX . "release SET
downloads = downloads + 1
WHERE postid = $attachmentinfo[postid]
");
}

Add above:
if ($_REQUEST['do'] != 'whodownloaded')

bashy
01-01-2006, 03:19 PM
Hi

cheers for this but where exactly is release_attachment_complete: :o
sorry

Bashy

Ron1n
01-01-2006, 03:21 PM
Its a hook...

bashy
01-01-2006, 03:25 PM
so it is :o thanks...

This issue now resolved :)
Just the poll problem now any other thoughts to it?
I could copy an paste my showthread for you to check?

Bashy

Ron1n
01-01-2006, 03:26 PM
You could try... i am going out, ill be back later.

bashy
01-01-2006, 03:31 PM
Here ya go...im sure its right though :ermm:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$thread[title]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
</head>
<body onload="$onload">
$header
$navbar
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>

<td class="tcat"><span class="smallfont"><b><center>Thread Informations</center></b></span></td></tr>

<tr valign="middle"><td class="alt1">
<br />
<center><h3>$thread[title]</h3>
<h4>$vbphrase[views] : $thread[views]</h2>
<b>$vbphrase[replies] : $thread[replycount]</b><br /><br />
<b>Users Viewing This Thread : $activeusers</b></center>
</td>
</tr>
</table>
<br />
$poll
$vbookie_event
$release
<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php" method="post" id="inlinemodform">
$spacer_open
</if>

<a name="poststop" id="poststop"></a>

<!-- controls above postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />
<td class="smallfont">&nbsp;</td>
</if>
<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above postbits -->

<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">
<div class="smallfont">
<if condition="$show['firstunreadlink']">
<a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
<a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
</if>
&nbsp;
</div>
</td>
<td class="vbmenu_control" id="threadtools" nowrap="nowrap">
<a href="$show[nojs_link]#goto_threadtools"<if condition="is_browser('ie')"> accesskey="3"</if>>$vbphrase[thread_tools]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadtools"); </script></if>
</td>
<if condition="$show['search']">
<td class="vbmenu_control" id="threadsearch" nowrap="nowrap">
<a href="$show[nojs_link]#goto_threadsearch">$vbphrase[search_this_thread]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadsearch"); </script></if>
</td>
</if>
<if condition="$show['threadrating']">
<td class="vbmenu_control" id="threadrating" nowrap="nowrap">
<a href="$show[nojs_link]#goto_threadrating"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating"); </script></if>
</td>
</if>
<if condition="$vboptions['allowthreadedmode']">
<td class="vbmenu_control" id="displaymodes" nowrap="nowrap">
<a href="$show[nojs_link]#goto_displaymodes">$vbphrase[display_modes]</a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("displaymodes"); </script></if>
</td>
</if>

<if condition="$show['inlinemod']">
<if condition="$show['popups']">
<td class="vbmenu_control" id="imod" align="center" title="$vbphrase[moderation]"><script type="text/javascript"> vbmenu_register('imod'); </script></td>
<else />
<td class="thead" align="center">
<input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="inlineMod.check_all()" />
</td>
</if>
</if>

</tr>
</table>
<!-- / toolbar -->

<if condition="$show['inlinemod'] AND $show['popups']">
<div class="vbmenu_popup" id="imod_menu" style="display:none" align="$stylevar[left]">
$threadadmin_imod_menu_post
</div>
</if>

<!-- end content table -->
$spacer_close
<!-- / end content table -->

<if condition="$show['threadedmode'] OR $show['hybridmode']">
<!-- thread posts list -->
$threadlist
<!-- /thread posts list -->
</if>

<div id="posts">$postbits<div id="lastpost"></div></div>

<!-- start content table -->
$spacer_open
<!-- / start content table -->

<!-- controls below postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr valign="top">
<if condition="$show['largereplybutton']">
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td>
<else />
<td class="smallfont">&nbsp;</td>
</if>
<if condition="$show['pagenav'] OR $show['inlinemod']">
<td align="$stylevar[right]">$pagenav
<if condition="$show['inlinemod']">
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap; float:$stylevar[right]">
<if condition="$show['pagenav']"><br /></if><strong>$vbphrase[moderation]</strong><br />
<select name="do">
<optgroup label="$vbphrase[option]">
<if condition="$show['managethread']">
<option value="mergeposts">$vbphrase[merge_posts]</option>
<option value="moveposts">$vbphrase[move_posts]</option>
</if>
<if condition="$show['managepost']">
<option value="deleteposts">$vbphrase[delete_posts]</option>
<option value="undeleteposts">$vbphrase[undelete_posts]</option>
</if>
<if condition="$show['approvepost']">
<option value="approveposts">$vbphrase[approve_posts]</option>
<option value="unapproveposts">$vbphrase[unapprove_posts]</option>
</if>
<if condition="$show['approveattachment']">
<option value="approveattachments">$vbphrase[approve_attachments]</option>
<option value="unapproveattachments">$vbphrase[unapprove_attachments]</option>
</if>
</optgroup>
<optgroup label="____________________">
<option value="clearpost">$vbphrase[clear_post_list]</option>
</optgroup>
</select><input type="submit" class="button" id="inlinego" value="$vbphrase[go]" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="threadid" value="$threadinfo[threadid]" />
<input type="hidden" name="p" value="$postid" />
<input type="hidden" name="url" value="$url" />
</div>
<script type="text/javascript" src="clientscript/vbulletin_inlinemod.js"></script>
<script type="text/javascript">
<!--
inlineMod = new vB_Inline_Mod('inlineMod', 'post', 'inlinemodform', '$vbphrase[go_x]');
//-->
</script>
</if>
</td>
</if>
</tr>
</table>
<!-- / controls below postbits -->

<if condition="$show['inlinemod']">
$spacer_close
</form>
$spacer_open
</if>

<if condition="!$show['search_engine']">
<br />

<div class="smallfont" align="center">
<strong>&laquo;</strong>
<a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextoldest">$vbphrase[prev_thread]</a>
|
<a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextnewest">$vbphrase[next_thread]</a>
<strong>&raquo;</strong>
</div>
</if>

<br />













<if condition="$show['quickreply'] OR $show['ajax_js']">
<!-- ajax errors table -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" style="display:none; position:absolute" id="ajax_post_errors">
<tr>
<td class="thead">
<span style="float:$stylevar[right]"><input type="button" class="button" value=" X " onclick="vB_QuickEditor.hide_errors()" unselectable="true" /></span>
$vbphrase[vbulletin_message]
</td>
</tr>
<tr>
<td class="alt2" colspan="2" id="ajax_post_errors_message">&nbsp;</td>
</tr>
<tr>
<td class="tfoot" colspan="2" align="center"><a href="#" onclick="vB_QuickEditor.abort(); return false;">$vbphrase[cancel_changes]</a></td>
</tr>
</table>
<!-- / ajax errors table -->

<!-- scripts for quick reply and quick edit -->
$vBeditTemplate[clientscript]
<if condition="$show['quickedit']">
<script type="text/javascript" src="clientscript/vbulletin_quick_edit.js"></script>
<script type="text/javascript">
<!--
vB_AJAX_QuickEdit_Init('posts');
//-->
</script>
</if>
<!-- / scripts for quick reply and quick edit -->
</if>


<if condition="$show['quickreply']">
<!-- quick reply -->
<form action="newreply.php" method="post" name="vbform" onsubmit="return qr_prepare_submit(this, $vboptions[postminchars]);" id="qrform">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">
<if condition="$show['quickreply_collapse']"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('quickreply');"><img id="collapseimg_quickreply" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickreply].gif" alt="" border="0" /></a></if>
$vbphrase[quick_reply]
</td>
</tr>
</thead>
<tbody id="qr_error_tbody" style="display:none">
<tr>
<td class="thead">$vbphrase[errors_occured_when_submitted]</td>
</tr>
<tr>
<td class="alt1" id="qr_error_td"></td>
</tr>
<tr>
<td class="tfoot" align="center"><span class="smallfont"><a href="#" onclick="return qr_hide_errors()">$vbphrase[okay]</a></span></td>
</tr>
</tbody>
<tbody id="collapseobj_quickreply" style="$vbcollapse[collapseobj_quickreply]">
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td class="smallfont" align="$stylevar[left]">$vbphrase[message]:</td>
</tr>
<tr>
<td id="$editorid" class="vBulletin_editor" align="$stylevar[left]">$messagearea</td>
</tr>
<tr>
<td align="$stylevar[left]">

<fieldset class="fieldset" style="margin:$stylevar[formspacer]px 0px 0px 0px">
<legend>$vbphrase[options]</legend>
<div>
<if condition="$bbuserinfo['signature']">
<div style="float:$stylevar[right]"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />$vbphrase[show_your_signature]</label></div>
</if>
<label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label>
</div>
</fieldset>

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

<div style="margin-top:$stylevar[cellpadding]px">
<input type="hidden" name="fromquickreply" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="postreply" />
<input type="hidden" name="t" value="$threadid" id="qr_threadid" />
<input type="hidden" name="p" value="$qrpostid" id="qr_postid" />
<input type="hidden" name="parseurl" value="1" />
<input type="submit" class="button" value="$vbphrase[post_quick_reply]" accesskey="s" title="(Alt + S)" name="sbutton" tabindex="2" id="qr_submit" onclick="clickedelm = this.value" />
<input type="submit" class="button" value="$vbphrase[go_advanced]" accesskey="x" title="(Alt + X)" name="preview" tabindex="3" id="qr_preview" onclick="clickedelm = this.value" />
</div>

<div align="center" id="qr_posting_msg" style="display:none; margin-top:6px">
<strong>$vbphrase[posting_quick_reply_please_wait]</strong>
</div>
</td>
</tr>
</tbody>
</table>
</form>

<if condition="!is_browser('ie') AND $show['wysiwyg']">
<!-- Mozilla work around for focusing on QR in WYSIWYG mode -->
<div id="qr_scroll"></div>
</if>

<br />

<script type="text/javascript" src="clientscript/vbulletin_quick_reply.js"></script>
<!-- end quick reply -->
</if>

<!-- currently active users -->
<if condition="$show['activeusers']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
<phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[users_viewing_this_thread_x_y_z]</phrase>
</td>
</tr>
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$activeusers</span>
</td>
</tr>
</table>
</if>
<!-- end currently active users -->
<!-- who viewed this thread -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">
$vbphrase[already_viewed_this_thread]
</td>
</tr>
<tr>
<td class="alt1" colspan="2">
<span class="smallfont">$thread[viewers]</span>
</td>
</tr>
</table>
<!-- who viewed this thread -->
<if condition="$show['popups']">
<!-- popup menu contents -->
<br />

<!-- thread tools menu -->
<div class="vbmenu_popup" id="threadtools_menu" style="display:none">
<form action="postings.php" method="post" name="threadadminform">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
</tr>
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="3" rel="nofollow">$vbphrase[show_printable_version]</a></td>
</tr>
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid" rel="nofollow">$vbphrase[email_this_page]</a></td>
</tr>
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid" rel="nofollow">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid" rel="nofollow">$vbphrase[subscribe_to_this_thread]</a>
</if>
</td>
</tr>
</if>
<if condition="$show['addpoll']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
</tr>
</if>
<if condition="$show['addrelease']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_release]" /> <a href="release.php?$session[sessionurl]do=newrelease&amp;t=$threadinfo[threadid]">$vbphrase[add_a_release_to_this_thread]</a></td>
</tr>
</if>
<if condition="$show['adminoptions']">
<tr>
<td class="thead">$vbphrase[admin_tools]<a name="goto_threadadmin"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<if condition="$show['openclose']"><div><label for="ao_oct"><input type="radio" name="do" id="ao_oct" value="openclosethread" checked="checked" /><if condition="$show['closethread']">$vbphrase[close_thread]<else />$vbphrase[open_thread]</if></label></div></if>
<if condition="$show['movethread']"><div><label for="ao_mvt"><input type="radio" name="do" id="ao_mvt" value="movethread" />$vbphrase[move_copy_thread]</label></div></if>
<if condition="$show['editthread']"><div><label for="ao_edt"><input type="radio" name="do" id="ao_edt" value="editthread" />$vbphrase[edit_thread]</label></div></if>
<if condition="$show['deletethread']"><div><label for="ao_dlt"><input type="radio" name="do" id="ao_dlt" value="deletethread" />$vbphrase[delete_thread]</label></div></if>
<if condition="$show['managethread']">
<div><label for="ao_sut"><input type="radio" name="do" id="ao_sut" value="stick" /><if condition="$show['unstick']">$vbphrase[unstick_thread]<else />$vbphrase[stick_thread]</if></label></div>
<div><label for="ao_mgt"><input type="radio" name="do" id="ao_mgt" value="mergethread" />$vbphrase[merge_threads]</label></div>
<!--<div><label for="ao_spt"><input type="radio" name="do" id="ao_spt" value="splitthread" />$vbphrase[split_thread]</label></div>-->
<div><label for="ao_rrd"><input type="radio" name="do" id="ao_rrd" value="removeredirect" />$vbphrase[remove_redirects]</label></div>
</if>
<if condition="$show['editpoll']"><div><label for="ao_edp"><input type="radio" name="do" id="ao_edp" value="editpoll" />$vbphrase[edit_poll]</label></div></if>
<if condition="$show['editrelease']"><div><label for="ao_edr"><input type="radio" name="do" id="ao_edr" value="editrelease" />$vbphrase[edit_release]</label></div></if>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="released" value="$releaseid" />
<input type="hidden" name="pollid" value="$pollid" />
<input type="submit" class="button" value="$vbphrase[perform_action]" />
</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / thread tools menu -->
<if condition="$vboptions['allowthreadedmode']">
<!-- ************************************************** ** -->

<!-- thread display mode menu -->
<div class="vbmenu_popup" id="displaymodes_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[display_modes]<a name="goto_displaymodes"></a></td>
</tr>
<tr>
<if condition="$show['linearmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" /> <strong>$vbphrase[linear_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" /> <a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=linear$highlightwords#post$FIR STPOSTID">$vbphrase[switch_to_linear_mode]</a></td>
</if>
</tr>
<tr>
<if condition="$show['hybridmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" /> <strong>$vbphrase[hybrid_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" /> <a href="showthread.php?$session[sessionurl]mode=hybrid&amp;t=$thread[threadid]$highlightwords">$vbphrase[switch_to_hybrid_mode]</a></td>
</if>
</tr>
<tr>
<if condition="$show['threadedmode']">
<td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" /> <strong>$vbphrase[threaded_mode]</strong></td>
<else />
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" /> <a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=threaded$highlightwords#post$F IRSTPOSTID">$vbphrase[switch_to_threaded_mode]</a></td>
</if>
</tr>
</table>
</div>
<!-- / thread display mode menu -->
</if>
<!-- ************************************************** ** -->

<if condition="$show['search']">
<!-- thread search menu -->
<div class="vbmenu_popup" id="threadsearch_menu" style="display:none">
<form action="search.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthread" value="1" />
<input type="hidden" name="showposts" value="1" />
<input type="hidden" name="searchthreadid" value="$threadid" />
<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / thread search menu -->
</if>

<!-- ************************************************** ** -->

<!-- thread rating menu -->
<div class="vbmenu_popup" id="threadrating_menu" style="display:none">
<form action="threadrate.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[rate_this_thread]<a name="goto_threadrating"></a></td>
</tr>
<if condition="$show['ratethread']">
<tr>
<td class="vbmenu_option" title="nohilite">
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" /><label for="vote5"><input type="radio" name="vote" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" /><label for="vote4"><input type="radio" name="vote" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" /><label for="vote3"><input type="radio" name="vote" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" /><label for="vote2"><input type="radio" name="vote" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" /><label for="vote1"><input type="radio" name="vote" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="submit" class="button" value="$vbphrase[vote_now]" />
</td>
</tr>
<else />
<tr>
<td>$vbphrase[already_rated_this_thread]</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / thread rating menu -->


<!-- / popup menu contents -->
<else />
<!-- controls for non-popup browsers -->


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
<tr>
<td class="thead" <if condition="!$show['search']">colspan="2"</if>>$vbphrase[thread_tools]<a name="goto_threadtools"></a></td>
<if condition="$show['search']"><td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td></if>
</tr>
<tr valign="top">
<td class="alt1" <if condition="!$show['search']">colspan="2"</if>>

<!-- thread tools -->
<div class="smallfont">
<if condition="!$show['search_engine']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" vspace="1" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="p" rel="nofollow">$vbphrase[show_printable_version]</a></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" vspace="1" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid" rel="nofollow">$vbphrase[email_this_page]</a></div>
</if>
<if condition="$show['member']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
<if condition="$show['subscribed']">
<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
<else />
<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
</if>
</div>
</if>
<if condition="$show['addpoll']">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" vspace="1" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></div>
</if>
</div>
<!-- / thread tools -->

</td>
<if condition="$show['search']">
<td class="alt1">

<!-- search this thread -->
<form action="search.php" method="post">
<div class="smallfont">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthread" value="1" />
<input type="hidden" name="showposts" value="1" />
<input type="hidden" name="searchthreadid" value="$threadid" />
<strong>$vbphrase[search_this_thread]</strong>:<br />
<input type="text" class="bginput" name="query" size="20" style="width:175px" />$gobutton<br />
<a href="search.php$session[sessionurl_q]">$vbphrase[advanced_search]</a>
</div>
</form>
<!-- / search this thread -->

</td>
</if>
</tr>
<if condition="$vboptions['allowthreadedmode'] OR $show['threadrating']">
<tr>
<if condition="$vboptions['allowthreadedmode']"><td class="thead" $nodhtmlcolspan>$vbphrase[display_modes]<a name="goto_displaymodes"></a></td></if>
<if condition="$show['threadrating']"><td class="thead" $nodhtmlcolspan>$vbphrase[rate_this_thread]<a name="goto_threadrating"></a></td></if>
</tr>
<tr valign="top">
<if condition="$vboptions['allowthreadedmode']">
<td class="alt2" $nodhtmlcolspan>

<!-- thread display modes -->

<div class="smallfont">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[linear_mode]" vspace="1" /> <if condition="$show['linearmode']"><strong>$vbphrase[linear_mode]</strong><else /><a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=linear$highlightwords#post$FIR STPOSTID">$vbphrase[switch_to_linear_mode]</a></if></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[hybrid_mode]" vspace="1" /> <if condition="$show['hybridmode']"><strong>$vbphrase[hybrid_mode]</strong><else /><a href="showthread.php?$session[sessionurl]mode=hybrid&amp;t=$thread[threadid]$highlightwords">$vbphrase[switch_to_hybrid_mode]</a></if></div>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[threaded_mode]" vspace="1" /> <if condition="$show['threadedmode']"><strong>$vbphrase[threaded_mode]</strong><else /><a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=threaded$highlightwords#post$F IRSTPOSTID">$vbphrase[switch_to_threaded_mode]</a></if></div>
</div>

<!-- / thread display modes -->

</td>
</if>
<if condition="$show['threadrating']">
<td class="alt2" $nodhtmlcolspan>

<!-- rate this thread -->
<form action="threadrate.php" method="post">
<div class="smallfont">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<strong>$vbphrase[rate_this_thread]</strong>:<br />
<select name="vote" onchange="this.form.submit()" style="width:175px">
<optgroup label="$vbphrase[choose_a_rating]">
<option value="5" $voteselected[5]>5 : $vbphrase[excellent]</option>
<option value="4" $voteselected[4]>4 : $vbphrase[good]</option>
<option value="3" $voteselected[3]>3 : $vbphrase[average]</option>
<option value="2" $voteselected[2]>2 : $vbphrase[bad]</option>
<option value="1" $voteselected[1]>1 : $vbphrase[terrible]</option>
</optgroup>
</select>$gobutton
</div>
</form>
<!-- / rate this thread -->

</td>
</if>
</tr>
</if>
</table>
<br />


<!-- / controls for non-popup browsers -->
</if>

<!-- forum rules and admin links -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="bottom">
<td class="smallfont" align="$stylevar[left]">
$forumrules
</td>
<td class="smallfont" align="$stylevar[right]">
<table cellpadding="0" cellspacing="0" border="0">
<if condition="!$show['popups'] AND $show['adminoptions']">
<tr>
<td>
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap">
<form action="postings.php" method="post" name="adminoptionsform">
<input type="hidden" name="s" value="$session[sessionhash]" />

<input type="hidden" name="t" value="$threadid" />
<strong>$vbphrase[admin_tools]</strong>:<br />
<select name="do" onchange="this.form.submit()">
<optgroup label="$vbphrase[thread_admin_tools]">
<if condition="$show['openclose']"><option value="openclosethread" selected="selected"><if condition="$show['closethread']">$vbphrase[close_thread]<else />$vbphrase[open_thread]</if></option></if>
<if condition="$show['editthread']"><option value="editthread">$vbphrase[edit_thread]</option></if>
<if condition="$show['deletethread']"><option value="deletethread">$vbphrase[delete_thread]</option></if>
<if condition="$show['movethread']"><option value="movethread">$vbphrase[move_copy_thread]</option></if>
<if condition="$show['managethread']">
<option value="stick"><if condition="$show['unstick']">$vbphrase[unstick_thread]<else />$vbphrase[stick_thread]</if></option>
<option value="mergethread">$vbphrase[merge_threads]</option>
<!--<option value="splitthread">$vbphrase[split_thread]</option>-->
<option value="removeredirect">$vbphrase[remove_redirects]</option>
</if>
<if condition="$show['editpoll']"><option value="editpoll">$vbphrase[edit_poll]</option></if>
<if condition="$show['editrelease']"><option value="editrelease">$vbphrase[edit_release]</option></if>
</optgroup>
</select>$gobutton
</form>
</div>
</td>
</tr>
<br />
</if>
<tr>
<td>
$forumjump
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- /forum rules and admin links -->

<br />
<table class="tborder" cellspacing="0" cellpadding="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<td class="alt2"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb] &gt;<strong>$navbits[lastelement]</strong></td>
</tr>
</table>
$similarthreads

$footer

<!-- temp -->
<div style="display:none">
<!-- thread rate -->
<if condition="$show['ratethread']">
<!-- thread ratings form here -->
<else />
<if condition="$show['threadrating']">
$vbphrase[you_rated_this_thread]: <strong>$threadinfo[vote]</strong>
</if>
</if>
<!-- / thread rate -->
</div>

</body>
</html>

Ron1n
01-01-2006, 03:41 PM
I didn't see that you said "showthread" i thought for sure you were talking about newpost.

Btw, this edit isnt in newpost, its in SHOWTHREAD, so it isnt effecting you...The problem you are having is a result of newpost, showthread is for after the thread has been created.

bashy
01-01-2006, 03:44 PM
Whopsy...just enabled the system again and tired it out again, upoaded an attchment and got this error again when i clicked the Who Downloaded buttom

Database error in vBulletin 3.5.2:

Invalid SQL:

UPDATE release SET
downloads = downloads + 1
WHERE postid = 2013;

MySQL Error :
Error Number :
Date : Sunday, January 1st 2006 @ 05:40:20 PM
Script : http://www.bashys-place.com/forums/attachment.php?attachmentid=403&d=1136137141
Referrer : http://www.bashys-place.com/forums/showthread.php?t=743
IP Address : xx.xx.xxx.xxx.
Username : Bashy
Classname : xx_xxxxx

It only does it once per attachment...

Bashy

bashy
01-01-2006, 03:46 PM
Hi, are you reffering to newthread not newpost

Heres my newthread as this is what the instructions say!


I didn't see that you said "showthread" i thought for sure you were talking about newpost.

The problem you are having is a result of newpost, showthread is for after the thread has been created.

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[post_new_thread]</title>
</head>
<body$onload>
$header
$navbar

$postpreview

<form action="newthread.php" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return vB_Editor['$editorid'].prepare_submit(this.subject.value, $vboptions[postminchars])"</if>>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
<span class="smallfont" style="float:$stylevar[right]"><strong>$vbphrase[forum]</strong>: <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]">$foruminfo[title]</a></span>
$vbphrase[post_new_thread]
</td>
</tr>
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">

$usernamecode

<!-- subject field -->
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
<td>&nbsp;&nbsp;</td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr>
</table>
<!-- / subject field -->

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>

<!-- message area -->
<div class="smallfont">$vbphrase[message]:</div>
$messagearea
<!-- / message area -->

$posticons

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

</div>
</div>

<div style="margin-top:$stylevar[cellpadding]px">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="do" value="postthread" />
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="p" tabindex="1" />
</div>
</td>
</tr>
</table>

<if condition="$show['additional_options']">
<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newpost_options')"><img id="collapseimg_newpost_options" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_newpost_options].gif" alt="" border="0" /></a>
$vbphrase[additional_options]
</td>
</tr>
</thead>
<tbody id="collapseobj_newpost_options" style="$vbcollapse[collapseobj_newpost_options]">
<tr valign="top">
<td class="panelsurround" align="center">
<div class="panel">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">

<if condition="$show['misc_options']">
<if condition="$show['release']">
<fieldset class="fieldset">
<legend>$vbphrase[cheatreleaseoptions]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postrelease"><input type="checkbox" name="postrelease" value="1" id="cb_postrelease" tabindex="1" $checked[postrelease]/>$vbphrase[thisisarelease]</label></div>
</div>
</fieldset>
</if>
<fieldset class="fieldset">
<legend>$vbphrase[miscellaneous_options]</legend>
<div style="padding:$stylevar[formspacer]px">
<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>
<if condition="$show['parseurl']"><div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div></if>
$disablesmiliesoption
</div>
</fieldset>
</if>

$attachmentoption

<if condition="$show['member']">
<fieldset class="fieldset">
<legend>$vbphrase[thread_subscription]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>$vbphrase[notification_type]:<br /><select name="emailupdate" tabindex="1">
<option value="9999" $emailchecked[9999]>$vbphrase[do_not_subscribe]</option>
<option value="0" $emailchecked[0]>$vbphrase[no_email_notification]</option>
<option value="1" $emailchecked[1]>$vbphrase[instant_email_notification]</option>
<option value="2" $emailchecked[2]>$vbphrase[daily_email_notification]</option>
<option value="3" $emailchecked[3]>$vbphrase[weekly_email_notification]</option>
</select></td>
<if condition="$show['subscribefolders']"><td>$vbphrase[folder]:<br /><select name="folderid" tabindex="1">$folderbits</select></td></if>
</tr>
</table>
</fieldset>
</if>

<if condition="$show['poll']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_poll]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postpoll"><input type="checkbox" name="postpoll" value="yes" id="cb_postpoll" tabindex="1" $checked[postpoll] />$vbphrase[yes_post_a_poll_thread]</label></div>
<div><label for="polloptnum">$vbphrase[number_of_poll_options]: <input type="text" class="bginput" size="5" name="polloptions" value="$polloptions" id="polloptnum" tabindex="1" /></label> <if condition="$vboptions['maxpolloptions']">($vbphrase[maximum]: $vboptions[maxpolloptions])</if></div>
</div>
</fieldset>
</if>
<if condition="$show['vbookieevent']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_vbookieevent]</legend>
<div style="padding:$stylevar[formspacer]px">

<div><label for="cb_postvbookieevent"><input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" $checked[postvbookieevent] />$vbphrase[yes_post_a_vbookieevent_thread]</label></div>

</div>
</fieldset>
</if>

$threadmanagement

</div>
</div>

<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="p" tabindex="1" />
</div>
</td>
</tr>
</tbody>
</table>
</if>

</form>

<br />

$forumrules

$footer

</body>
</html>

Regards

Bashy

Zia
01-01-2006, 03:55 PM
Dear RoN1N...
Its Looks Nice.....but while visiting the demo page...i saw there s ecShop
What is this? anything like ucash/ushop ??

Thanks

bashy
01-01-2006, 04:08 PM
Since doing this, it is no longer registering how many downloads
The Who Downloaded button shows how many times with no problems
But yours does not register any more!

Bashy

Find in release_attachment_complete:
if (strpos($vbulletin->options['releaseextensions'], strtolower($extension)) !== false)
{
$db->query_write("
UPDATE " . TABLE_PREFIX . "release SET
downloads = downloads + 1
WHERE postid = $attachmentinfo[postid]
");
}

Add above:
if ($_REQUEST['do'] != 'whodownloaded')

bashy
01-01-2006, 04:16 PM
Sorry about this...

I just want to recap on the problems...

1. When i download a file i get a database error, this happens with files that
where uploaded before this Release system was installed as well as upload with the system.....
2. Does not register the amount of times the files been downloaded
3. It wants to create a POLL and theres no way to stop this.

Upto now thats the only issues found...
Other than that i do like it cand cant wait to use it on my open forum!

These errors do not happen when the system is disabled!

Bashy

Snake
01-01-2006, 04:23 PM
Wow this is great. Thanks man.

Ron1n
01-01-2006, 04:27 PM
I don't think you're going to be able to use this mod... not sure why its not compatable with your forum, but i'm not going to be able to solve problems that I cant reproduce.

3. It wants to create a POLL and theres no way to stop this.

Well, theres one problem... but this wont effect your POLL issue.

<if condition="$show['release']">
<fieldset class="fieldset">
<legend>$vbphrase[cheatreleaseoptions]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postrelease"><input type="checkbox" name="postrelease" value="1" id="cb_postrelease" tabindex="1" $checked[postrelease]/>$vbphrase[thisisarelease]</label></div>
</div>
</fieldset>
</if>

Should be ABOVE

<if condition="$show['misc_options']">

2. Does not register the amount of times the files been downloaded

It doesn't register... in my mod, in the vb attachment system, in whodownloaded, in all of them?

1. When i download a file (sometimes) i get a database error

Its easier to help you if I know what the error is...

What is this? anything like ucash/ushop ??I dont know what uCash and uShop are... mine is an online shop where you can buy products via paypal.

bashy
01-01-2006, 04:41 PM
Its the same error as post #23

Bashy

Ron1n
01-01-2006, 04:46 PM
MySQL Error :
Error Number :

bashy
01-01-2006, 04:46 PM
2. Does not register the amount of times the files been downloaded

It doesn't register... in my mod, in the vb attachment system, in whodownloaded, in all of them?



Its meant to in yours ( Downloads: 0) the 0 does not change no matter how many times we download the file....

and does in Who downloaded
NetLimiter v1.30.zip
Uploaded By: Bashy
Posted On: 01-01-2006 - 05:39 PM
Viewed By: 1 Members And 0 Guests
Bashy: 2
01-01-2006 - 06:13 PM IP=xx.xxx.xxx.xx ALT_IP=xx.x.xx.xx
01-01-2006 - 05:40 PM IP=xx.xxx.xxx.xx ALT_IP=xx.x.xx.xx

Total Downloads Logged: 2
Total Downloads Of File: 2

Kru
01-01-2006, 04:49 PM
I run the install.php and it said: file_edits_complete. I checked class_dm_threadpost.php and it shows: 'pollid' => array(TYPE_UINT, REQ_NO),\n 'releaseid' => array(TYPE_UINT, REQ_NO),\n

Anyway if I clikc on subm it release I am getting this error message:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /var/www/vhosts/xxx.net/httpdocs/forum/includes/class_dm_threadpost.php on line 918

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /var/www/vhosts/xxx.net/httpdocs/forum/includes/class_dm_threadpost.php on line 918

bashy
01-01-2006, 04:56 PM
MySQL Error :
Error Number :


It does not give a number dont know why?

Bashy

Ron1n
01-01-2006, 05:08 PM
I can't help you then. It looks like you must either uninstall the who downloaded mod or uninstall this mod. Sorry.

bashy
01-01-2006, 05:10 PM
What about the poll issue?

Bashy

rb290
01-01-2006, 05:13 PM
kool, ill click install and wait for some fixes hopefully.

Ron1n
01-01-2006, 05:22 PM
What about the poll issue?

Bashy

Again, I think you are the only one with this problem. I'm not sure what to say... since I cannot replicate it.

kool, ill click install and wait for some fixes hopefully.What problems are you having?

rb290
01-01-2006, 05:31 PM
What problems are you having?

no problems, i havent tried yet, but since there are some bugs and stuff i have patience to wait for some updates if there will be any.

also, can you make it have like a "Download" button people will have to click to view the attachment?

Ron1n
01-01-2006, 05:46 PM
There shouldnt be any bugs... i think bashy's problems are unique.

Kru
01-01-2006, 08:02 PM
Ok found my bug for a strange reason this string: 'releaseid' => array(TYPE_UINT, REQ_NO), stood twice time in the same line.

Works like a charm, now.

INSTALLED!!! ;)

evenmonkeys
01-01-2006, 10:14 PM
Could someone mess with the template to make it look like vB.org's a little more?

Ron1n
01-01-2006, 11:26 PM
i'm not very skilled with templates... i welcome someone's work making the layout look a little better - or even an alternate layout style that the user can choose.

COBRAws
01-02-2006, 12:52 AM
hi, sorry but I need to know this before installing:

How do you select when a new thread becomes an overview or a release? Can I use the forum admin and tell it to all threads created in X forum will be releases?

How does the downloads hack categorize downloads?

Thank you in advance Ron1n. I only saw good and helpful hacks coming from you.

Ron1n
01-02-2006, 01:40 AM
How do you select when a new thread becomes an overview or a release? Can I use the forum admin and tell it to all threads created in X forum will be releases?You specify that a thread will be a release by checking a box (similar to creating a poll). You cannot make all threads in one section a release.

People have poll sections / debate forums on their sites, but they dont force people to only post threads with polls... thats because you might want some instruction posts or announcement posts. The same is true of a download forum. You may have 99.99% releases, but even at VB there are posts with instructions in them at the top of the forum (though they run their system differently).


How does the downloads hack categorize downloads?You create categories in the admincp.

DJ XtAzY
01-02-2006, 01:57 AM
awsome this is a great hack..... now my board looks much betta =]

SLGR
01-02-2006, 02:08 AM
Ron1n, hello.
Some questions my friend.
Is this is one saves files in DB? If not, can such an option to choose where to store files can be integrated? And finally, i saw the demo at EliteCoders.org, and I wonder whether the main page can be adjusted to look like more like a forum.

For example:
- Category 1
- Category 2
- Category 3

When you enter Category 1, (let's say /forum/downloads.php?cid=1), you may then see all files related to Category 1. And so on.

General question:
Is the download system used in vBulletin.org available for members?
:P

Ron1n
01-02-2006, 03:10 AM
Is this is one saves files in DB? If not, can such an option to choose where to store files can be integrated?This makes use of the attachment system. It stores files in the db depending on whether your attachments are stored in the DB.

When you enter Category 1, (let's say /forum/downloads.php?cid=1), you may then see all files related to Category 1. And so on.atm, no. maybe in the future i'll provide two ways to browse files. however, you may be more interested in my other mod, ecDownloads.


Is the download system used in vBulletin.org available for members?no.

DJ XtAzY
01-02-2006, 03:42 AM
Could someone mess with the template to make it look like vB.org's a little more?

heres my showthread_release

it looks similiar vb.orgs =]



<!-- release #$post[releaseid] -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<!-- <td class="tcat" colspan="3">
Thread Title
</td> -->
</tr>
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal" colspan="3">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal" $post[scrolltothis] colspan="3">&nbsp;
</td>
</if>
</tr>
<table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt2" rowspan="3" width="175">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" 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>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
</td>
<td class="alt2"><strong>$vbphrase[released]:</strong> $post[postdate]</td>
<td class="alt2"><strong>$vbphrase[name]:</strong> $post[name]</td>
<td class="alt2" rowspan="3" width="250">
<!-- actions -->
<div style="padding:$stylevar[cellpadding]px">
<fieldset class="fieldset">
<legend>$vbphrase[release_actions]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
<if condition="$show['reportlink']">
<a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow">$vbphrase[report_release]</a><br>
</if>
</td>
</tr>
<tr>
<td>
<if condition="$show['editrelease']">
<a href="release.php?$session[sessionurl]do=releaseedit&t=$post[threadid]" rel="nofollow">$vbphrase[edit_release]</a>
</if>
</td>
</tr>
<tr>
<td>
<if condition="$show['editrelease']">
<a href="editpost.php?$session[sessionurl]p=$post[postid]" rel="nofollow">Edit Post</a><br>
</if>
</td>
</tr>
<tr>
<td id="threadrating">
<if condition="$show['threadrating']">
<a href="$show[nojs_link]#goto_threadrating"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$post[rating].gif" alt="<phrase 1="$post[votenum]" 2="$post[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating"); </script></if>
</if>
</td>
</tr>
</table>
</fieldset>
</div>
<!-- / actions -->
</td>
</tr>
<tr>
<td class="alt1"><strong>$vbphrase[category]:</strong> $post[category]</td>
<td class="alt1"><strong>$vbphrase[updated]:</strong> $post[edit_date]</td>
</tr>
<tr>
<td class="alt2"><strong>$vbphrase[author]:</strong> $post[author]</td>
<td class="alt2"><strong>$vbphrase[downloads]:</strong> $post[downloads]</td>
</tr>
<tr valign="top">
<td class="alt1" colspan="3">
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / 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>
</div>
<!-- / attachments -->
</if>
</td>
<td class="alt2">
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">
<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>
</td>
</tr>
<!-- <tr>
<td class="tfoot" colspan="3" align="center"><span class="smallfont">&nbsp;</span></td>
</tr> -->
</table>
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->
<!-- / release #$post[releaseid] -->
<br />


enjoy guys XD

SLGR
01-02-2006, 05:27 AM
This makes use of the attachment system. It stores files in the db depending on whether your attachments are stored in the DB.

atm, no. maybe in the future i'll provide two ways to browse files. however, you may be more interested in my other mod, ecDownloads.

no.

Thank you.
Recently, an IT Company offered my members access to a conference material.
As i talked with them, we agreed to provide a download page where only registered members could access files. I tried paFileDB, can't integrated with vB. Then I found your system, and yes, I was pretty interested in ecDownloads. I asked in here (https://vborg.vbsupport.ru/showpost.php?p=847595&postcount=98) the same question (if files get stored in db or not, and if not, if there's any possibility for such a modification in the extension) but westpointer answered that files get stored in file system and "From a technical stand point, yes, one could do that. However, I don't believe Ron1n or I have any plans to rewrite the code to store the files in the db."

I have a server of 150 ΜB and in theory unlimited dbs.
So, my file system cannot manage 20-30 pdf files of 5 mb each one, and those are only from one conference! I was also thinking to provide a section with antivirus downloads, and that's now impossible.

My only way now, seems to be to find a way out for paFileDB.
I have seen it working with other vB forum, but this was version 3.0.x
And i use 3.5.2.
or.... to find more money for bigger file system.
:D


Thank you my friend.
:)

DJ XtAzY
01-02-2006, 06:07 AM
i just wondering, is there a way to make the release show up on top on all the pages, like vbs?

SLGR
01-02-2006, 06:19 AM
i just wondering, is there a way to make the release show up on top on all the pages, like vbs?

I don't if there's an option show first post in all pages of a thread.
If yes, this may work for you, too.
:)

evenmonkeys
01-02-2006, 08:06 AM
Does this work without the download section?

Ron1n
01-02-2006, 11:11 AM
Thank you my friend.So, does this mean you're all set? If you need something scripted there are tons of coders on these boards who could modify ecDownloads for you to meet your needs (for a fee).

i just wondering, is there a way to make the release show up on top on all the pages, like vbs?it does... doesnt it?

Does this work without the download section?yes, just dont upload downloads.php if you dont want it. i coded the entire thing and then went back and added the download directory. :D

DJ XtAzY
01-02-2006, 01:36 PM
heres my sample thread

http://forum.animeost.net/showthread.php?t=5124

if u go to page 2, the release wont show at the top

also when i want to edit release from the Thread Tools it just brings this message next


Invalid Post specified. If you followed a valid link, please notify the administrator (http://forum.animeost.net/sendmessage.php)

P.Jackson
01-02-2006, 04:47 PM
very very nice ronin look forward to final release you are 1 amazing coder :) also enjoyed your work for the community

Ron1n
01-02-2006, 07:08 PM
I'll add those two bugs to my "to-do" list, they shouldnt be hard to sove.

When I click "edit release" it works fine... can you tell me what page you are linked to (please make sure it is the link for the thread you provided).

DJ XtAzY
01-02-2006, 08:52 PM
<a href="http://forum.animeost.net/showthread.php?t=5124" target="_blank">http://forum.animeost.net/showthread.php?t=5124</a>

Ron1n
01-02-2006, 09:03 PM
If thats the link.. then it works. I cant click "edit release" because I didnt post that thread.

Xtrato
01-03-2006, 03:29 AM
FIND IN SHOWTHREAD:

<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php" method="post" id="inlinemodform">
$spacer_open
</if>

ADD ABOVE:

$release

Cant find the condition inlinemod....

Ron1n
01-03-2006, 09:59 AM
You're clearly using a modified skin, try sticking it under $poll

MissKalunji
01-03-2006, 11:46 AM
is there a way to convert from ecdownload to this? without loosing the downloads

sjabnix
01-03-2006, 01:22 PM
I've just installed, but when i change usergroup permissions i get this error:
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635

I am able to change every other permissions except this one (i still get same error with others but they update, This doesnt)

Ron1n
01-03-2006, 01:39 PM
I've just installed, but when i change usergroup permissions i get this error:
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635

I am able to change every other permissions except this one (i still get same error with others but they update, This doesnt)I'm not sure what would cause this... i'll try to find out.

is there a way to convert from ecdownload to this? without loosing the downloadsUnfortunately there is not... sorry. Creating a conversion program would be a huge undertaking, almost as large as making the mod itself.

SLGR
01-03-2006, 01:49 PM
So, does this mean you're all set? If you need something scripted there are tons of coders on these boards who could modify ecDownloads for you to meet your needs (for a fee).

it does... doesnt it?

yes, just dont upload downloads.php if you dont want it. i coded the entire thing and then went back and added the download directory. :D


Honestly, I don't know my friend.
I hope soon i'll open a thread in here asking Coders to give me a price for:
1. How much will cost me to modify ecDownloads?
2. How much to modify paFileDB, to take skin from vB, and to recognize vB Member System.

Then i'll consider what's better for me, and i'f i can afford it, and we see.
Thanks for your replies and time.
:)

sjabnix
01-03-2006, 02:03 PM
I'm not sure what would cause this... i'll try to find out.

Unfortunately there is not... sorry. Creating a conversion program would be a huge undertaking, almost as large as making the mod itself.

Hmm, Actually i dont think its your mod anyway. Think i had this before. You know anything else could couse a problem like this?

Ron1n
01-03-2006, 03:56 PM
Try asking in general support on vbulletin.org and vbulletin.com

Xtrato
01-03-2006, 04:14 PM
You're clearly using a modified skin, try sticking it under $poll

Nope still not showing up.

DJ XtAzY
01-03-2006, 05:11 PM
If thats the link.. then it works. I cant click "edit release" because I didnt post that thread.

i can create a test account for u to make a thread and try to edit the release using the Thread tools....

it culd be just my board...... can anyone who also using this hack, edit the release using the thread tools?

bashy
01-03-2006, 05:14 PM
Hi

No, i cant edit the release from the Thread Tools, i get this
Invalid Post specified. If you followed a valid link, please notify the administrator

Bashy

bashy
01-03-2006, 05:43 PM
Spot the deliberate mistake :rolleyes:

Released: 1 Day Ago Updated: Never
Game: Movie Name: Green River Killer (2005)
Author: Ulli Lommel Ulli Lommel Ulli Lommel Ulli Lommel Downloads: 0

Ron1n
01-03-2006, 05:47 PM
i can create a test account for u to make a thread and try to edit the release using the Thread tools....

it culd be just my board...... can anyone who also using this hack, edit the release using the thread tools?just tell me what link you are directed to...

bashy
01-03-2006, 05:48 PM
just tell me what link you are directed to...

postings.php

Bashy

DJ XtAzY
01-03-2006, 07:43 PM
yes it redirects me to postings.php.......... i got confused on the earlier post

Ron1n
01-03-2006, 09:01 PM
please, tell me the exact URL (including ?p=#)

bashy
01-03-2006, 09:03 PM
please, tell me the exact URL (including ?p=#)

http://www.bashys-place.com/forums/postings.php

That is the full url...

Regards

Bashy

DJ XtAzY
01-04-2006, 12:06 AM
<a href="http://forum.animeost.net/postings.php" target="_blank">http://forum.animeost.net/postings.php</a>

thats the full url.......nothing fancy =p

sjabnix
01-04-2006, 12:32 PM
Okay, I got the updating usergroups to work but i got another problem now, When i run the installer i get some error in my class_dm_threadpost.php file, and i am probrably stupid/blind but i cant find the manually edits for the file

Xtrato
01-04-2006, 06:33 PM
Ronin the Cheat release option in the new thread area is not there! I did all the edits too what do i do?

Ron1n
01-04-2006, 06:43 PM
Okay, I got the updating usergroups to work but i got another problem now, When i run the installer i get some error in my class_dm_threadpost.php file, and i am probrably stupid/blind but i cant find the manually edits for the fileSearch for pollid... (ctrl+f) its near one of those.

Ronin the Cheat release option in the new thread area is not there! I did all the edits too what do i do?Undo the edit you did in newthread and do this:

FIND IN newthread:

<fieldset class="fieldset">
<legend>$vbphrase[miscellaneous_options]</legend>
<div style="padding:$stylevar[formspacer]px">
<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>
<div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div>
$disablesmiliesoption
</div>
</fieldset>

ADD BELOW:
<if condition="$show['release']">
<fieldset class="fieldset">
<legend>$vbphrase[cheatreleaseoptions]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postrelease"><input type="checkbox" name="postrelease" value="1" id="cb_postrelease" tabindex="1" $checked[postrelease]/>$vbphrase[thisisarelease]</label></div>
</div>
</fieldset>
</if>

sjabnix
01-04-2006, 07:01 PM
Search for pollid... (ctrl+f) its near one of those.


Sorry, Pretty much noob to this? what you mean, I dont know what to add/remove/edit in the code and/or where to do it

Ron1n
01-04-2006, 07:52 PM
i cant find the manually edits for the file
Sorry, Pretty much noob to this? what you mean, I dont know what to add/remove/edit in the code and/or where to do itOpen edits.txt and read the instructions. It will tell you what file to look in and what code to search for. Then it will tell you what to do (add below, add above) and you should be all set. If you can't perform this simple task please uninstal your modification until ecRelease is out of Beta. Betas are meant for experienced users, not newcommers.

Xtrato
01-05-2006, 01:47 AM
Undo the edit you did in newthread and do this:


all the newthread edits? I added this code in many places and it just not showing up.....

Ron1n
01-05-2006, 02:12 AM
all the newthread edits? I added this code in many places and it just not showing up.....does your usergroup have the right permissions?

Xtrato
01-05-2006, 03:42 AM
hmm you know what i fixed it i had a bad template file

now

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home2/strato/public_html/home/includes/class_dm_threadpost.php on line 918

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home2/strato/public_html/home/includes/class_dm_threadpost.php on line 918

EDIT : "for note anyways"

The install didnt inject the code correctly it put a (/n) before the 'releaseid' => array(TYPE_UINT, REQ_NO), causing the error

Xtrato
01-05-2006, 04:04 AM
And im getting the poll error that one other person was getting..

also where do you add upload?

Ron1n
01-05-2006, 01:39 PM
The install didnt inject the code correctly it put a (/n) before the 'releaseid' => array(TYPE_UINT, REQ_NO), causing the errorI'm aware. I should be \n or possibly just a return... i forget which one works.

And im getting the poll error that one other person was getting..

also where do you add upload?Add attachment

bashy
01-05-2006, 04:54 PM
Wahoo, least it aint just me getting the poll error ;)

Just a quicky Ron1n, Where do i make the edits to change the ones in red to Game > Title
Author > Platform

Released: 1 Minute Ago Updated: 1 Minute Ago
Game: Movie Name: The Chronicles of Narnia
Author: DVD Screener Downloads: 0

Cheers

Bashy

DJ XtAzY
01-05-2006, 06:38 PM
u shud be able to change it in the phrases. Just search it the "game" and "author" in the phrase manager

Xtrato
01-05-2006, 06:57 PM
Now what do you think could cause the poll error maybe the code is in the wrong place or......

bashy
01-05-2006, 07:37 PM
Cheers for that, managed to change to my requirements :)

As for the poll business, I have moved the edits around in the template and still get the poll issue :(

Xtrato
01-05-2006, 07:47 PM
me too maybe its just a bug in the edits ..

Ronin would it be possible to delete polls alltgether in the release system maybe add a code to stop it..

Ron1n
01-05-2006, 08:36 PM
I said I'd get to it...

you don't actually need to post the poll, just click on a link or something to avoid it in the meantime

bashy
01-07-2006, 05:21 PM
Ok no worries Ron1n...

What about the recording fo the downloads, i.e. how many have downloaded
this stays at zero still although i know for a fact 1 item has been downloaded 3 times, Blunts Who Downloaded tells me this, but yours does not seem to record the amount of times downloaded...

Any ideas?

Regards

Bashy

Ron1n
01-07-2006, 06:06 PM
Ok no worries Ron1n...

What about the recording fo the downloads, i.e. how many have downloaded
this stays at zero still although i know for a fact 1 item has been downloaded 3 times, Blunts Who Downloaded tells me this, but yours does not seem to record the amount of times downloaded...

Any ideas?

Regards

BashyWe've already established that the mods do not work togeather.

bashy
01-07-2006, 06:09 PM
I was wondering if you had found a way around it, I dont know anything at all about coding, but surely it must be something simple as it just the download count, no?

Regards

Bashy

The Geek
01-07-2006, 06:19 PM
Hwy Roin, can you please update your forumdisplay_query hook. it currently is:


$hook_query_fields = ', releaseid';


and it should be


$hook_query_fields .= ', releaseid';


So it doesnt conflict with other hacks (like mine :) )

Thanks man!

bashy
01-09-2006, 06:08 PM
Hi...

I have found a little more on this issue...

These 3 lines show up, i never noticed them before as ya need to refresh the page and click back to see it, dont ask, i dont know why lol..

Warning: mysql_query(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 395

Warning: mysql_error(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 837

Warning: mysql_errno(): 6 is not a valid MySQL-Link resource in /includes/class_core.php on line 855

So what are your thoughts on this now please

Bashy


I have gone the full hog and submitted a release (trial) even had to do the poll lol any way, once it was submitted i downloaded the attachment and the system threw a fit and chucked this error at me at the top of the forum....

There seems to have been a problem with the Bashy's Place database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.5.2:

Invalid SQL:

UPDATE release SET
downloads = downloads + 1
WHERE postid = 1997;

MySQL Error :
Error Number :
Date : Sunday, January 1st 2006 @ 03:27:14 PM
Script : http://www.bashys-place.com/forums/attachment.php?attachmentid=398&d=1136129066
Referrer : http://www.bashys-place.com/forums/showthread.php?t=735
IP Address : xx.xxx.xxx.xx
Username : Bashy
Classname : xx_xxxxx
HTTP/1.1 200 OK Transfer-Encoding: chunked Date: Sun, 01 Jan 2006 15:27:21 GMT Content-Type: text/html; charset=ISO-8859-1 Cache-Control: private Server: Apache/2.0.54 (Red Hat) X-Powered-By: PHP/4.3.11 Pragma: private 1 23278

Please advise on these few issues, this is a really good idea but only if it works!!

Bashy

Ron1n
01-09-2006, 07:29 PM
Hwy Roin, can you please update your forumdisplay_query hook. it currently is:


$hook_query_fields = ', releaseid';


and it should be


$hook_query_fields .= ', releaseid';


So it doesnt conflict with other hacks (like mine :) )

Thanks man!Yea, no problem. I'm going to be making another release this weekend.

nhacso
01-11-2006, 09:17 PM
Yea, no problem. I'm going to be making another release this weekend.
Yeah, everybody very very like your mod hack :up: and a waitting a new upgrade version of ecRelease. :banana:

DJ XtAzY
01-12-2006, 12:30 AM
Yeah, everybody very very like your mod hack :up: and a waitting a new upgrade version of ecRelease. :banana:

you know it XD

i check this hack everyday XD

Sinistra
01-14-2006, 09:03 PM
How do you declare it a Release? the check box didn't show up in my new thread template?

How do I fix the poll issue

chikkoo
01-16-2006, 04:03 AM
Nice Mod, congrats for the Coder.

But I will get till I get "per forum" feature.

Sinistra
01-20-2006, 02:47 PM
OK I got the release thing to show up now its just the poll issue I need to fix any suggestions?

DJ XtAzY
01-25-2006, 12:25 AM
any more updates?

Sinistra
01-25-2006, 12:51 AM
any more updates?
I would have to ask the ssame thing this poll issue needs to be addressed ASAP.

JoomlArt
03-04-2006, 11:12 AM
Hi, it's a month since last post in this hack? Is there any update?

DJ XtAzY
03-06-2006, 03:41 AM
i doubt so since hes busy workin on RPG and ushop ucash

MissKalunji
03-08-2006, 03:29 PM
how is this going?

DJ XtAzY
03-09-2006, 12:05 AM
i believe its going nowhere.... but this hack is cool

MissKalunji
03-09-2006, 12:21 AM
any major bug?

Ron1n
03-11-2006, 05:05 PM
Sorry guys. I've had some medical issues that have kept me away from my computer for an extended period of time. I have a lot of work to catch up on, and then I'll work on this. I'm sorry its been so long since I've been able to update this - let alone post replies to your questions. I wont be back online for about a week, but after that I'll get right to updating my hacks.

JoomlArt
03-13-2006, 04:12 AM
Sorry guys. I've had some medical issues that have kept me away from my computer for an extended period of time. I have a lot of work to catch up on, and then I'll work on this. I'm sorry its been so long since I've been able to update this - let alone post replies to your questions. I wont be back online for about a week, but after that I'll get right to updating my hacks.
Thank you Ron1n, I hope you are doing well and will be eager to put a hand on your new version

RedGTiVR6
05-02-2007, 04:51 PM
Just wondering how things are going on this project?

I've tried to access the demos but am told I need some credentials first.

Centrix
09-29-2007, 01:02 PM
When I try to view the demo's it says

Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

Additionally, a 401 Authorization Required error was encountered while trying to use an ErrorDocument to handle the request.

Any screenshots?

Vackrick
05-11-2008, 08:27 AM
Database error in vBulletin 3.7.0:

Invalid SQL:
INSERT INTO release
(postid, category, userid, name, author, authorid, official, dateline)
VALUES
(765, 'Site Tools,Project Tools', 138, 'HelpCenter Candidate 2', 'Kelvin Cheng', '138', 0, 1210497092);

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 'release
(postid, category, userid, name, author, authorid, official, dateline)' at line 1
Error Number : 1064
Request Date : Sunday, May 11th 2008 @ 05:25:28 AM
Error Date : Sunday, May 11th 2008 @ 05:25:28 AM
Script :
referre :
IP Address : 220.255.7.225
Username :
Classname : vB_Database
MySQL Version : 5.0.45-community